/* Dublogs bundle: api-docs.css v1.0.6 */
/* Dublogs Marketplace — blue & purple theme */
/* Dublogs brand lockup — animated globe + static wordmark with glimmer sweep */

.logo {
  position: relative;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.brand-mark {
  display: flex;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  animation: brand-mark-orbit 14s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.brand-mark-svg {
  display: block;
  width: 32px;
  height: 32px;
}

.brand-wordmark {
  display: inline-flex;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-wordmark-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.brand-wordmark-base {
  display: inline-block;
  color: #6366f1;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-sidebar-brand .brand-wordmark-base,
.admin-sidebar-brand .brand-wordmark-base {
  color: #c4b5fd;
  background: linear-gradient(135deg, #ddd6fe 0%, #a78bfa 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-wordmark-glimmer {
  position: absolute;
  top: -1px;
  left: 0;
  width: 42%;
  height: calc(100% + 2px);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 28%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.12) 72%,
    transparent 100%
  );
  transform: skewX(-16deg) translateX(-130%);
  animation: brand-glimmer-sweep 4.2s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.app-sidebar-brand .brand-wordmark-glimmer,
.admin-sidebar-brand .brand-wordmark-glimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 28%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.18) 72%,
    transparent 100%
  );
  mix-blend-mode: overlay;
}

@keyframes brand-mark-orbit {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0));
  }
  25% {
    transform: rotate(2.5deg) scale(1.04);
    filter: drop-shadow(0 3px 16px rgba(99, 102, 241, 0.32));
  }
  50% {
    transform: rotate(0deg) scale(1.02);
    filter: drop-shadow(0 1px 10px rgba(124, 58, 237, 0.22));
  }
  75% {
    transform: rotate(-2deg) scale(1.035);
    filter: drop-shadow(0 2px 14px rgba(59, 130, 246, 0.26));
  }
}

@keyframes brand-glimmer-sweep {
  0%, 16% {
    transform: skewX(-16deg) translateX(-130%);
    opacity: 0;
  }
  20% { opacity: 1; }
  46% {
    transform: skewX(-16deg) translateX(260%);
    opacity: 1;
  }
  50%, 100% {
    transform: skewX(-16deg) translateX(260%);
    opacity: 0;
  }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-wordmark-base {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark {
    animation: none !important;
    filter: none;
  }
  .brand-wordmark-glimmer {
    animation: none !important;
    opacity: 0;
  }
}

/* Shared icon utilities */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}
.icon img, .icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-white img, .icon-white svg { filter: brightness(0) invert(1); }
.icon-muted img, .icon-muted svg { opacity: 0.55; }

.lp-pill .icon-brand { width: 18px; height: 18px; }
.lp-pill .icon-brand img { width: 18px; height: 18px; object-fit: contain; }

.lp-field-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; opacity: 0.45; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.lp-field-icon img, .lp-field-icon svg { width: 18px; height: 18px; }

.lp-step-icon img, .lp-step-icon svg { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.lp-feature-icon img, .lp-feature-icon svg { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.lp-about-feat-icon { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #ede9fe; border-radius: 10px; }
.lp-about-feat-icon img, .lp-about-feat-icon svg { width: 20px; height: 20px; }
.lp-trust-pill .icon-inline { width: 14px; height: 14px; display: inline-flex; vertical-align: -2px; margin-right: 4px; }
.lp-trust-pill .icon-inline img, .lp-trust-pill .icon-inline svg { width: 14px; height: 14px; filter: brightness(0) invert(0.85); }
.lp-hero-kicker .icon-inline, .lp-engine-badge .icon-inline { width: 16px; height: 16px; display: inline-flex; vertical-align: -3px; margin-right: 4px; }
.lp-engine-badge .icon-inline img, .lp-engine-badge .icon-inline svg { filter: brightness(0) invert(1); opacity: 0.85; }
.lp-hero-kicker .icon-inline img { filter: brightness(0) invert(0.85); }
.lp-mockup-sms .received .icon-inline img { filter: none; }
.lp-mockup-sms .received { color: #4ade80; }
.lp-tag-pill .icon-inline { width: 14px; height: 14px; display: inline-flex; vertical-align: -2px; margin-right: 4px; }
.lp-check-icon svg, .lp-check-icon img { width: 12px; height: 12px; }
.lp-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.lp-stars .icon-star { width: 14px; height: 14px; color: #fbbf24; }
.lp-stars .icon-star svg { fill: #fbbf24; stroke: none; }
.lp-mockup .received .icon-inline { width: 14px; height: 14px; display: inline-flex; vertical-align: -2px; margin-right: 4px; }

/* Stats bar (Talktiyu-style) */
.lp-stats-wrap {
  background: #0b0f1a;
  padding: 0 0 48px;
}
.lp-stats {
  display: flex; justify-content: center; gap: 0;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; max-width: 640px; margin: 0 auto; overflow: hidden;
}
.lp-stat {
  flex: 1; padding: 24px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.lp-stat:last-child { border-right: none; }
.lp-stat-num { font-size: 28px; font-weight: 800; color: #fff; }
.lp-stat-label { font-size: 13px; color: #64748b; margin-top: 4px; }

.lp-wave { line-height: 0; margin-top: -1px; background: #0b0f1a; overflow: hidden; }
.lp-wave svg { display: block; width: 100%; height: 60px; }
.lp-wave-line { filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.55)); opacity: 0.95; }

/* Service pills with brand logos */
.lp-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0;
}
.lp-pill.more { background: #ede9fe; color: var(--purple); border-color: #c4b5fd; font-weight: 600; }

/* Dublogs — shared motion & scroll reveals */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4); }
  50% { transform: scale(1.03); box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Entrance utilities */
.anim-fade-up {
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--anim-delay, 0s);
}

.anim-fade-in {
  animation: fadeIn 0.45s ease both;
  animation-delay: var(--anim-delay, 0s);
}

.anim-slide-left {
  animation: slideInLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--anim-delay, 0s);
}

.anim-scale-in {
  animation: scaleIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--anim-delay, 0s);
}

.anim-stagger > * {
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.anim-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.anim-stagger > *:nth-child(2) { animation-delay: 0.12s; }
.anim-stagger > *:nth-child(3) { animation-delay: 0.19s; }
.anim-stagger > *:nth-child(4) { animation-delay: 0.26s; }
.anim-stagger > *:nth-child(5) { animation-delay: 0.33s; }
.anim-stagger > *:nth-child(6) { animation-delay: 0.4s; }

/* Scroll reveal */
/* Disable entrance animations in dashboards — they leave form sections at opacity:0 when the parent view was hidden during load */
.app-body .anim-fade-up,
.app-body .anim-fade-in,
.admin-console .anim-fade-up,
.admin-console .anim-fade-in,
.boost-page .anim-fade-up,
.accounts-page .anim-fade-up,
.sms-view.active .anim-fade-up {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover lift */
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Button press */
.btn, .app-action-card, .dash-fund-btn, .lp-signin-btn {
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.25s ease;
}
.btn:active, .dash-fund-btn:active {
  transform: scale(0.98);
}

/* Landing hero entrance */
.landing-page .lp-hero-left {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.landing-page .lp-hero-right {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.landing-page .lp-trust-pill {
  animation: scaleIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.landing-page .lp-trust-pill:nth-child(1) { animation-delay: 0.35s; }
.landing-page .lp-trust-pill:nth-child(2) { animation-delay: 0.45s; }
.landing-page .lp-trust-pill:nth-child(3) { animation-delay: 0.55s; }

.landing-page .lp-step,
.landing-page .lp-feature,
.landing-page .lp-testimonial {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.landing-page .lp-step:hover,
.landing-page .lp-feature:hover,
.landing-page .lp-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.landing-page .lp-service-pill {
  transition: transform 0.2s ease, background 0.2s ease;
}
.landing-page .lp-service-pill:hover {
  transform: translateY(-2px) scale(1.02);
}

.landing-page .lp-cta {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Dublogs — mobile-first enhancements */
body.nav-open {
  overflow: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.container {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* Prevent iOS zoom on input focus */
input, select, textarea, .btn {
  font-size: 16px;
}

@media (min-width: 769px) {
  input, select, textarea {
    font-size: 15px;
  }
}

/* Touch-friendly targets */
.btn, .nav a, .app-nav a, .app-topbar-btn, .app-menu-toggle,
.lp-join-btn, .lp-btn-white, .auth-modal-close, .mobile-nav-toggle {
  min-height: 44px;
  min-width: 44px;
}

/* Site header — mobile */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    min-height: 56px;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 0;
  }

  /* Non-landing shop headers — hide inline nav; use compact actions only */
  body:not(.landing-page) .site-header .nav:not(.landing-nav-drawer) {
    display: none !important;
  }

  .site-header.landing-header .nav:not(.landing-nav-drawer) {
    display: none !important;
  }

  .logo {
    font-size: 16px;
  }

  .logo img, .logo svg {
    height: 28px;
  }
}

/* Landing — mobile nav drawer */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
}

.landing-header-inner {
  position: relative;
}

.landing-nav-drawer {
  display: none !important;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 88vw);
  z-index: 600;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 72px 20px 24px;
  background: #fff;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.15);
  transform: translateX(100%);
  transition: transform 0.28s ease, visibility 0.28s ease;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
  margin-left: 0 !important;
  flex-wrap: nowrap !important;
}

.landing-nav-drawer.open {
  display: flex !important;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.landing-nav-drawer a {
  padding: 14px 12px !important;
  font-size: 16px !important;
  border-radius: 10px;
}

.landing-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 599;
  background: rgba(15, 23, 42, 0.45);
}

.landing-nav-overlay.open {
  display: block;
}

@media (max-width: 900px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }

  .landing-header-inner .landing-nav-center {
    display: none !important;
  }

  .landing-header-inner > .nav:last-child {
    display: none;
  }

  .landing-header-inner .nav-mobile-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
    align-items: center;
  }
}

@media (min-width: 901px) {
  .landing-nav-drawer,
  .landing-nav-overlay,
  .nav-mobile-actions {
    display: none !important;
  }
}

/* Landing hero — mobile */
@media (max-width: 640px) {
  .lp-hero-split {
    padding: 16px 0 32px;
  }

  .lp-hero-grid {
    border-radius: 18px;
    min-height: auto;
  }

  .lp-hero-left {
    padding: 28px 20px;
  }

  .lp-hero-left h1 {
    font-size: clamp(1.65rem, 7vw, 2.25rem) !important;
    line-height: 1.15;
  }

  .lp-hero-right {
    padding: 24px 18px !important;
  }

  .lp-hero-desc {
    font-size: 14px;
  }

  .lp-trust-row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .lp-section {
    padding: 48px 0 !important;
  }

  .lp-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .lp-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Auth pages & modal */
@media (max-width: 480px) {
  .auth-page-main {
    padding: 20px 12px;
    align-items: flex-start;
    padding-top: 24px;
  }

  .auth-modal-panel {
    padding: 22px 18px 20px;
    border-radius: 14px;
  }

  .auth-modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .auth-modal-panel {
    max-height: 92vh;
    margin-bottom: env(safe-area-inset-bottom);
  }
}

/* Tables & forms */
.table-wrap {
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}

.form-narrow {
  width: 100%;
}

.page {
  padding: 20px 0 40px;
}

/* App shell — small phones (wallet card layout; topbar handled in app.css) */
@media (max-width: 480px) {
  .dash-balance-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }

  .dash-fund-btn {
    width: 100%;
    justify-content: center;
  }

  .app-fab-support {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: 16px;
    padding: 12px 16px;
    font-size: 13px;
  }

  .wallet-fund-row {
    flex-direction: column;
  }

  .wallet-fund-submit {
    width: 100%;
  }

  .wallet-quick-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* SMS / boost grids */
@media (max-width: 900px) {
  .acc-product-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .sms-grid,
  .boost-grid,
  .acc-catalog-grid,
  .acc-product-grid {
    grid-template-columns: 1fr !important;
  }

  .sms-otp-btn {
    width: 44px;
    height: 44px;
  }

  .sms-service-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.sms-service-tabs::-webkit-scrollbar { display: none; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #7c3aed;
  --blue: #2563eb;
  --accent: #6366f1;
  --gradient: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  --bg: #f4f3ff;
  --surface: #ffffff;
  --border: #ddd6fe;
  --text: #1e1b4b;
  --muted: #6b7280;
  --success: #059669;
  --danger: #dc2626;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
  --max: 1140px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--text);
  text-decoration: none; white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo img, .logo svg { height: 32px; width: auto; max-width: none; flex-shrink: 0; }
.logo-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a {
  padding: 6px 12px; color: var(--muted); font-size: 14px;
  border-radius: var(--radius); text-decoration: none;
}
.nav a:hover, .nav a.active { color: var(--purple); background: #ede9fe; text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  background: var(--gradient); color: #fff;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; color: #fff; box-shadow: var(--shadow); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: var(--surface); color: var(--purple); border-color: var(--border); }
.btn-outline:hover { background: #ede9fe; color: var(--purple); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.btn-block { width: 100%; justify-content: center; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--muted); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 10px 16px; border-radius: var(--radius);
  background: #fff; color: #1f2937; border: 1px solid #d1d5db;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  font-family: inherit;
}
.btn-google:hover { background: #f9fafb; border-color: #9ca3af; text-decoration: none; color: #1f2937; }
.btn-google img { width: 18px; height: 18px; }
.btn-google.hidden { display: none; }

.badge {
  background: var(--purple); color: #fff;
  font-size: 11px; padding: 1px 6px; border-radius: 10px; margin-left: 4px;
}

.hero {
  background: var(--gradient);
  color: #fff;
  padding: 56px 0;
}
.hero h1 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.hero p { opacity: .92; max-width: 540px; font-size: 16px; }
.hero-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn-outline { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.25); color: #fff; }
.hero .btn { background: #fff; color: var(--purple); }
.hero .btn:hover { color: var(--blue); }

.page { padding: 32px 0 48px; }
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--purple); }

.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s;
}
.product-card:hover { border-color: var(--purple); box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15); }
.product-card img { aspect-ratio: 4/3; object-fit: cover; background: #ede9fe; }
.product-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--blue); font-weight: 600; }
.product-name { font-weight: 600; font-size: 14px; }
.product-desc { font-size: 13px; color: var(--muted); flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-weight: 700; font-size: 16px; color: var(--purple); }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; background: var(--surface);
}
.form-group input:focus, .form-group select:focus {
  outline: 2px solid var(--purple); outline-offset: 0;
}
.form-narrow { max-width: 420px; width: 100%; }

/* Centered auth / create-account modal */
.auth-page {
  min-height: 100vh;
  background: var(--bg);
}
.auth-page .site-header { flex-shrink: 0; }
.auth-page-main {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.auth-modal-card {
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 48px rgba(30, 27, 75, 0.14);
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}
.auth-modal-overlay.hidden { display: none; }
body.modal-open { overflow: hidden; }

.auth-modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(30, 27, 75, 0.22);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f4f3ff;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.auth-modal-close:hover { background: #ede9fe; color: var(--purple); }
.auth-modal-panel .page-title { margin-bottom: 16px; text-align: center; }
.auth-modal-sub { text-align: center; font-size: 14px; color: var(--muted); margin: -8px 0 18px; }

/* Standalone auth pages + register modal (matches hero sign-in panel) */
.auth-standalone-card,
.auth-modal-panel.auth-form-panel {
  width: 100%;
  max-width: 420px;
  background: #f4f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 24px 48px rgba(30, 27, 75, 0.14);
}
.auth-modal-panel.auth-form-panel {
  max-width: 440px;
  padding: 36px 32px 28px;
}
.auth-standalone-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  text-align: center;
}
.auth-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
  text-align: center;
}
.auth-text-btn {
  margin-top: 10px;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
}
.reset-link-sent {
  text-align: center;
  margin-bottom: 8px;
}
.reset-link-sent-lead {
  font-size: 16px;
  color: #0f172a;
  margin: 0 0 12px;
}
.reset-link-sent-body {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 10px;
}
.reset-link-sent-note {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 20px;
}
.auth-standalone-card .lp-signin-sub,
.auth-modal-panel.auth-form-panel .lp-signin-sub {
  text-align: center;
}
.auth-standalone-card .lp-signin-pills,
.auth-modal-panel.auth-form-panel .lp-signin-pills {
  justify-content: center;
}
.auth-page.landing-page { background: var(--bg); }
.auth-page.landing-page .landing-header { background: #fff; }

.form-icon-field { position: relative; }
.form-icon-field .field-icon {
  position: absolute; left: 12px; bottom: 10px;
  width: 18px; height: 18px; opacity: 0.45; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.form-icon-field .field-icon img { width: 18px; height: 18px; }
.form-icon-field input { padding-left: 40px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 8px 12px; background: #ede9fe; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--purple); border-bottom: 1px solid var(--border); }
td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.stat-value {
  font-size: 24px; font-weight: 700; margin-top: 4px;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.tab {
  padding: 8px 14px; font-size: 14px; cursor: pointer;
  border: none; background: none; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--purple); border-bottom-color: var(--purple); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.alert { padding: 10px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: var(--success); border: 1px solid #a7f3d0; }
.alert-info { background: #ede9fe; color: var(--purple); border: 1px solid #c4b5fd; }

.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 24px 0; margin-top: 48px; font-size: 13px; color: var(--muted);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { height: 22px; }

.cart-overlay { position: fixed; inset: 0; background: rgba(30, 27, 75, .45); z-index: 200; display: none; }
.cart-drawer {
  position: fixed; top: 0; right: -400px; width: 360px; max-width: 92vw;
  height: 100%; background: var(--surface); z-index: 201;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; transition: right .2s ease;
}
.cart-drawer.open { right: 0; }
.cart-overlay.open { display: block; }
.cart-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.cart-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.cart-item img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius); }

.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #ede9fe; color: var(--purple); border: 1px solid var(--border); }
.tag-green { background: #ecfdf5; color: var(--success); border-color: #a7f3d0; }
.tag-yellow { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.tag-red { background: #fef2f2; color: var(--danger); border-color: #fecaca; }

.empty { text-align: center; padding: 40px; color: var(--muted); }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 100px; }
.bar { flex: 1; background: var(--gradient); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .85; }

.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mb-2 { margin-bottom: 16px; }
.flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Dublogs Reseller API — interactive docs */
.api-docs-page { padding-bottom: 64px; }
.api-docs-hero {
  margin-bottom: 32px;
}
.api-docs-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 10px;
}
.api-docs-hero p {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}
.api-docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .api-docs-layout { grid-template-columns: 1fr; }
  .api-docs-nav { position: static !important; }
}
.api-docs-nav {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.api-docs-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.api-docs-nav a:hover,
.api-docs-nav a.active { background: rgba(124,58,237,0.12); color: var(--purple); }
.api-docs-section {
  margin-bottom: 36px;
  scroll-margin-top: 96px;
}
.api-docs-section h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.api-docs-section h3 {
  font-size: 1rem;
  margin: 20px 0 8px;
  color: #c4b5fd;
}
.api-docs-section p,
.api-docs-section li {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
.api-docs-section ul { padding-left: 20px; margin: 8px 0 16px; }
.api-endpoint {
  background: #0f1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.api-endpoint-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.api-method {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.api-method.get { background: rgba(37,99,235,0.18); color: #93c5fd; }
.api-method.post { background: rgba(16,185,129,0.18); color: #6ee7b7; }
.api-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: #e2e8f0;
}
.api-endpoint p { margin: 0 0 10px; }
.api-code {
  background: #181b26;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 0;
}
.api-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.api-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124,58,237,0.15);
  color: #c4b5fd;
}
.api-docs-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.api-docs-cta:hover { filter: brightness(1.08); color: #fff; }
