/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #080808;
  --surface:      #111111;
  --surface2:     #191919;
  --surface3:     #222222;
  --border:       #242424;
  --border2:      #303030;
  --text:         #f0f0f0;
  --text-muted:   #888;
  --text-dim:     #555;
  --accent:       #e1306c;
  --accent2:      #833ab4;
  --accent3:      #f09433;
  --green:        #22c55e;
  --green-dim:    #15803d;
  --red:          #ef4444;
  --red-dim:      #991b1b;
  --blue:         #3b82f6;
  --teal:         #14b8a6;
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --shadow:       0 2px 16px rgba(0,0,0,.4);
  --shadow-lg:    0 8px 48px rgba(0,0,0,.6);
  --nav-h:        64px;
  --max-w:        1200px;
  --max-w-narrow: 600px;
}

/* ── Light mode ──────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:         #f2f2f2;
  --surface:    #ffffff;
  --surface2:   #f5f5f5;
  --surface3:   #ededed;
  --border:     #e2e2e2;
  --border2:    #d0d0d0;
  --text:       #0a0a0a;
  --text-muted: #555555;
  --text-dim:   #999999;
  --shadow:     0 2px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 48px rgba(0,0,0,.15);
}

/* Navbar — hardcoded dark backgrounds override */
[data-theme="light"] .navbar {
  background: rgba(255,255,255,.88);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(255,255,255,.97);
  border-bottom-color: var(--border);
}
[data-theme="light"] .nav-mobile {
  background: rgba(255,255,255,.98);
}

/* Backdrop overlays — lighten in light mode */
[data-theme="light"] .plans-modal-backdrop,
[data-theme="light"] .confirm-backdrop,
[data-theme="light"] .modal-backdrop {
  background: rgba(0,0,0,.4);
}

/* Hero section tints */
[data-theme="light"] .hero-badge {
  background: rgba(225,48,108,.08);
  border-color: rgba(225,48,108,.2);
  color: #c0184e;
}
[data-theme="light"] .hero-stats { color: var(--text-dim); }

/* Preview card */
[data-theme="light"] .hero-preview {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
}
[data-theme="light"] .preview-title-bar { color: var(--text-muted); }
[data-theme="light"] .preview-stat-card { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .preview-stat-card.accent { background: rgba(225,48,108,.06); border-color: rgba(225,48,108,.15); }
[data-theme="light"] .preview-user-item { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .preview-fade { background: linear-gradient(to top, var(--surface) 50%, transparent); }

/* Stats strip */
[data-theme="light"] .stats-strip { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .strip-stat { border-color: var(--border); }

/* Pricing */
[data-theme="light"] .pricing-card { background: var(--surface); border-color: var(--border2); }
[data-theme="light"] .pricing-card--value { border-color: rgba(131,58,180,.3); }
[data-theme="light"] .pricing-card-badge { box-shadow: none; }

/* Feature & example cards */
[data-theme="light"] .feature-card { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .example-card { background: var(--surface); border-color: var(--border); }

/* Analyze/auth cards */
[data-theme="light"] .analyze-card,
[data-theme="light"] .buy-scan-card { background: var(--surface); border-color: var(--border2); }
[data-theme="light"] .analyze-info-card { background: var(--surface); border-color: var(--border); }

/* Form inputs */
[data-theme="light"] .input-wrap input,
[data-theme="light"] .form-group input {
  background: var(--surface);
  border-color: var(--border2);
  color: var(--text);
}
[data-theme="light"] .input-wrap input::placeholder { color: var(--text-dim); }

/* Dashboard & analysis items */
[data-theme="light"] .analysis-item { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .dash-stat { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .plan-block { background: var(--surface); }
[data-theme="light"] .plan-block--active { background: rgba(131,58,180,.04); }

/* Monitor & confirm modals */
[data-theme="light"] .monitor-card { background: var(--surface); border-color: var(--border2); }
[data-theme="light"] .confirm-box  { background: var(--surface); border-color: var(--border2); }
[data-theme="light"] .plans-modal-box { background: var(--surface); border-color: var(--border2); }
[data-theme="light"] .plan-card { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .plan-card--featured { background: rgba(225,48,108,.03); border-color: rgba(225,48,108,.25); }
[data-theme="light"] .plan-card--value    { background: rgba(131,58,180,.03); border-color: rgba(131,58,180,.25); }

/* Modal */
[data-theme="light"] .modal-box { background: var(--surface); border-color: var(--border2); }
[data-theme="light"] .modal-stat { background: var(--surface2); }
[data-theme="light"] .modal-user { background: var(--surface2); border-color: var(--border); }

/* History */
[data-theme="light"] .history-item { background: var(--surface); border-color: var(--border); }

/* Subscription mgmt */
[data-theme="light"] .sub-mgmt-card { background: var(--surface); border-color: var(--border2); }
[data-theme="light"] .monitored-profile-item { background: var(--surface2); border-color: var(--border); }

/* Upsell & buy scan options */
[data-theme="light"] .buy-scan-option { background: var(--surface); border-color: var(--border2); }
[data-theme="light"] .upsell-plan-btn { background: var(--surface); border-color: var(--border2); }
[data-theme="light"] .upsell-plan-btn--featured { background: rgba(225,48,108,.04); border-color: rgba(225,48,108,.25); }
[data-theme="light"] .upsell-plan-btn--value    { background: rgba(131,58,180,.04); border-color: rgba(131,58,180,.25); }
[data-theme="light"] .monitor-upsell { background: var(--surface); border-color: var(--border2); }

/* Running badge */
[data-theme="light"] .running-badge { background: rgba(34,197,94,.1); color: #16a34a; }
[data-theme="light"] .error-badge   { background: rgba(239,68,68,.1); color: #dc2626; }

/* Result modal stats */
[data-theme="light"] .modal-stats-row .modal-stat.accent span { color: #c0184e; }

/* Account page */
[data-theme="light"] .account-panel {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 12px 32px rgba(15,23,42,.06);
}
[data-theme="light"] .account-panel--plan { background: linear-gradient(135deg, rgba(225,48,108,.05), var(--surface) 42%); }
[data-theme="light"] .account-panel--balance { background: linear-gradient(135deg, rgba(34,197,94,.06), var(--surface) 42%); }
[data-theme="light"] .account-input { background: var(--surface2); border-color: var(--border2); color: var(--text); }
[data-theme="light"] .account-ddi { background: var(--surface2); border-color: var(--border2); }
[data-theme="light"] .account-payment-row { background: var(--surface2); border-color: var(--border); }
/* Support page */
[data-theme="light"] .support-contact-card { background: var(--surface); border-color: var(--border2); }
[data-theme="light"] .faq-item { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .faq-question:hover { background: var(--surface2); }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

.gradient-text {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8,8,8,.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8,8,8,.95);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo { width: 28px; height: 28px; }
.nav-brand-text {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  background: linear-gradient(135deg, #f09433, #e1306c, #833ab4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 6px 12px;
  font-size: .875rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface2); }

.btn-nav-primary {
  padding: 7px 16px;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #e1306c, #833ab4);
  border-radius: var(--radius-sm);
  transition: opacity .2s, transform .2s;
}
.btn-nav-primary:hover { opacity: .9; transform: translateY(-1px); }

.nav-theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border2); background: none;
  color: var(--text-muted); cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
  flex-shrink: 0;
}
.nav-theme-btn:hover { color: var(--text); background: var(--surface2); }
.nav-theme-btn svg { width: 16px; height: 16px; }
.nav-theme-btn .icon-moon { display: none; }
[data-theme="light"] .nav-theme-btn .icon-sun  { display: none; }
[data-theme="light"] .nav-theme-btn .icon-moon { display: block; }

.nav-user-menu { position: relative; }

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-size: .875rem;
  transition: background .2s;
}
.nav-user-btn:hover { background: var(--surface3); }

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e1306c, #833ab4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.nav-user-name { font-weight: 500; }
.nav-chevron { width: 14px; height: 14px; color: var(--text-muted); transition: transform .2s; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 8px;
  display: none;
  box-shadow: var(--shadow-lg);
}
.nav-dropdown.open { display: block; }

.nav-dropdown-header { padding: 8px 12px 12px; }
.dropdown-user-name { font-size: .875rem; font-weight: 600; }
.dropdown-user-email { font-size: .75rem; color: var(--text-muted); margin-top: 2px; word-break: break-all; }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-size: .875rem;
  text-align: left;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text);
  transition: background .2s;
}
.nav-dropdown-item:hover { background: var(--surface2); }
.nav-dropdown-item.danger { color: var(--red); }
.nav-dropdown-item.danger:hover { background: rgba(239,68,68,.1); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 16px 16px;
  border-top: 1px solid var(--border);
  background: rgba(8,8,8,.98);
  gap: 2px;
}
.nav-mobile.open { display: flex; }

.nav-mobile-link {
  display: block;
  padding: 12px 16px;
  font-size: .9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
}
.nav-mobile-link:hover { color: var(--text); background: var(--surface2); }
.nav-mobile-link.primary { color: #fff; background: linear-gradient(135deg, #e1306c, #833ab4); margin-top: 8px; text-align: center; }
.nav-mobile-link.danger { color: var(--red); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .navbar { height: auto; }
  .nav-inner { height: var(--nav-h); }
}

/* ── Main content offset ──────────────────────────────────────────────────── */
.main-content { padding-top: var(--nav-h); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-logo { width: 32px; height: 32px; flex-shrink: 0; margin-top: 2px; }
.footer-brand-name { font-weight: 700; font-size: .95rem; }
.footer-brand-tagline { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }
.footer-nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-nav a { font-size: .875rem; color: var(--text-muted); transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
}
.footer-bottom p { font-size: .8rem; color: var(--text-dim); }

/* ── Landing: Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 24px 80px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(225,48,108,.12) 0%, rgba(131,58,180,.08) 40%, transparent 70%);
  pointer-events: none;
}

.hero-inner { flex: 1; min-width: 300px; max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(225,48,108,.1);
  border: 1px solid rgba(225,48,108,.25);
  border-radius: 100px;
  font-size: .78rem;
  color: #e1306c;
  margin-bottom: 24px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e1306c;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #aaa;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  background-size: 200%;
  border-radius: 100px;
  transition: background-position .4s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(225,48,108,.4);
}
.btn-hero-primary:hover {
  background-position: right;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(225,48,108,.5);
}
.btn-hero-primary svg { width: 18px; height: 18px; }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: 100px;
  background: var(--surface);
  transition: background .2s, border-color .2s, transform .2s;
}
.btn-hero-secondary:hover { background: var(--surface2); border-color: var(--text-dim); transform: translateY(-2px); }

.hero-note {
  font-size: .8rem;
  color: var(--text-dim);
}

/* Preview card */
.hero-preview { flex: 1; min-width: 300px; max-width: 400px; }

.preview-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border2); }
.preview-dots span:nth-child(1) { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:nth-child(3) { background: #22c55e; }
.preview-title-bar { font-size: .75rem; color: var(--text-muted); font-weight: 500; margin: 0 auto; }

.preview-body { padding: 16px; position: relative; }

.preview-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.preview-stat {
  flex: 1;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}
.preview-stat.accent { background: rgba(225,48,108,.12); border: 1px solid rgba(225,48,108,.2); }
.preview-stat-num { display: block; font-size: 1.1rem; font-weight: 700; }
.preview-stat.accent .preview-stat-num { color: #e1306c; }
.preview-stat-big { font-size: 1.4rem !important; font-weight: 800 !important; animation: pulse-red 1.8s ease-in-out infinite; }
@keyframes pulse-red {
  0%, 100% { color: #e1306c; }
  50% { color: #ff5590; }
}
.preview-stat-lbl { font-size: .7rem; color: var(--text-muted); }

.preview-list { display: flex; flex-direction: column; gap: 8px; }

.preview-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
}
.preview-user-blur { filter: blur(4px); opacity: .5; }
.preview-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.preview-user-info { flex: 1; min-width: 0; }
.preview-username { display: block; font-size: .8rem; font-weight: 600; truncate: true; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-fullname { display: block; font-size: .7rem; color: var(--text-muted); }
.preview-tag { font-size: .7rem; color: #e1306c; font-weight: 500; white-space: nowrap; }

.preview-cta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 16px;
  background: linear-gradient(to top, var(--surface) 50%, transparent);
  text-align: center;
}
.preview-cta-btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #e1306c, #833ab4);
  color: #fff;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  transition: opacity .2s;
}
.preview-cta-btn:hover { opacity: .85; }

/* ── Stats strip ──────────────────────────────────────────────────────────── */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stats-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.strip-stat {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 12px 24px;
}
.strip-num { display: block; font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg, #f09433, #e1306c, #833ab4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.strip-lbl { display: block; font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.strip-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* ── Section base ─────────────────────────────────────────────────────────── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px;
}
.section-head { text-align: center; margin-bottom: 36px; }
.section-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e1306c;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.section-desc { font-size: 1.05rem; color: #aaa; max-width: 520px; margin: 0 auto; }

/* ── Features grid ────────────────────────────────────────────────────────── */
.features-section { background: var(--surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-3px); }

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon-wrap svg { width: 24px; height: 24px; }
.feature-icon-wrap.purple { background: rgba(131,58,180,.15); color: #a855f7; }
.feature-icon-wrap.pink   { background: rgba(225,48,108,.15); color: #e1306c; }
.feature-icon-wrap.orange { background: rgba(240,148,51,.15);  color: #f09433; }
.feature-icon-wrap.green  { background: rgba(34,197,94,.15);   color: #22c55e; }
.feature-icon-wrap.blue   { background: rgba(59,130,246,.15);  color: #3b82f6; }
.feature-icon-wrap.teal   { background: rgba(20,184,166,.15);  color: #14b8a6; }

.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.feature-card p  { font-size: .9rem; color: #aaa; line-height: 1.7; }

/* ── How it works ─────────────────────────────────────────────────────────── */
.steps-container {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.step-card {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  padding: 32px 24px;
  text-align: center;
}
.step-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f09433, #e1306c, #833ab4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}
.step-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step-content p  { font-size: .875rem; color: var(--text-muted); }
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  color: var(--text-dim);
}
.step-connector svg { width: 24px; height: 24px; }

/* ── CTA Section ──────────────────────────────────────────────────────────── */
.cta-section {
  padding: 56px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(225,48,108,.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.cta-inner p  { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 32px; }
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-radius: 100px;
  box-shadow: 0 4px 32px rgba(225,48,108,.45);
  transition: transform .2s, box-shadow .2s;
}
.btn-cta-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(225,48,108,.55); }
.btn-cta-primary svg { width: 18px; height: 18px; }
.cta-note { font-size: .8rem; color: var(--text-dim); margin-top: 16px; }

/* ── Auth pages ───────────────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo-link { display: inline-block; margin-bottom: 16px; }
.auth-logo { width: 48px; height: 48px; margin: 0 auto; }
.auth-header h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-header p  { font-size: .875rem; color: var(--text-muted); }

.auth-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.form-label-row { display: flex; align-items: center; justify-content: space-between; }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap input {
  width: 100%;
  padding: 11px 40px 11px 38px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9rem;
  transition: border-color .2s, background .2s;
  outline: none;
}
.input-wrap input:focus { border-color: #e1306c; background: var(--bg); }
.input-wrap input::placeholder { color: var(--text-dim); }

.input-icon {
  position: absolute;
  left: 10px;
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  pointer-events: none;
}
.input-at {
  position: absolute;
  left: 12px;
  font-size: .95rem;
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
}
.input-wrap--at input { padding-left: 26px; }

.input-toggle-pass {
  position: absolute;
  right: 10px;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}
.input-toggle-pass:hover { color: var(--text-muted); }
.input-toggle-pass svg { width: 18px; height: 18px; }

.form-remember { display: flex; align-items: center; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .875rem;
  color: var(--text-muted);
}
.checkbox-label input { display: none; }
.checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
  position: relative;
}
.checkbox-label input:checked ~ .checkbox-custom {
  background: #e1306c;
  border-color: #e1306c;
}
.checkbox-label input:checked ~ .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 3px; left: 5px;
  width: 6px; height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-hint { font-size: .78rem; color: var(--text-dim); }

.form-error {
  padding: 10px 14px;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: #f87171;
}

.btn-auth-submit {
  width: 100%;
  padding: 13px;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #e1306c, #833ab4);
  border: none;
  border-radius: var(--radius-sm);
  transition: opacity .2s, transform .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-auth-submit:hover { opacity: .9; transform: translateY(-1px); }
.btn-auth-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-terms { font-size: .75rem; color: var(--text-dim); text-align: center; line-height: 1.5; }

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: .875rem;
  color: var(--text-muted);
}
.auth-footer a { color: #e1306c; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* Password strength */
.pass-strength { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.strength-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.strength-fill { height: 100%; transition: width .3s, background .3s; }
.strength-label { font-size: .75rem; font-weight: 600; min-width: 70px; text-align: right; }

/* ── App pages (dashboard/analyze/history) ────────────────────────────────── */
.app-page {
  padding: 40px 0 80px;
  min-height: calc(100vh - var(--nav-h));
}
.app-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.app-inner--narrow {
  max-width: var(--max-w-narrow);
}
.app-inner--account {
  max-width: 980px;
}

/* ── Page header ──────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.page-header p  { font-size: .875rem; color: var(--text-muted); margin-top: 4px; }

/* Primary action button */
.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #e1306c, #833ab4);
  border-radius: var(--radius-sm);
  border: none;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.btn-primary-action:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary-action svg { width: 16px; height: 16px; }

.btn-secondary-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background .2s, border-color .2s;
}
.btn-secondary-sm:hover { background: var(--surface3); border-color: var(--border2); color: var(--text); }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-welcome { display: flex; align-items: center; gap: 16px; }
.dash-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e1306c, #833ab4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.dash-welcome h1 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.dash-welcome p  { font-size: .875rem; color: var(--text-muted); margin-top: 3px; }

/* Stats cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.stat-card-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-card-icon svg { width: 22px; height: 22px; }
.stat-card-icon.purple { background: rgba(131,58,180,.15); color: #a855f7; }
.stat-card-icon.pink   { background: rgba(225,48,108,.15); color: #e1306c; }
.stat-card-icon.orange { background: rgba(240,148,51,.15);  color: #f09433; }
.stat-card-body { display: flex; flex-direction: column; }
.stat-card-num  { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.stat-card-lbl  { font-size: .75rem; color: var(--text-muted); margin-top: 5px; }
.stat-card-date { font-size: 1rem; }

/* Dash section */
.dash-section { margin-top: 32px; }
.dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dash-section-head h2 { font-size: 1.1rem; font-weight: 700; }
.dash-see-all { font-size: .875rem; color: #e1306c; font-weight: 600; }
.dash-see-all:hover { text-decoration: underline; }

/* Analyses list */
.analyses-list { display: flex; flex-direction: column; gap: 8px; }

.analysis-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 16px;
  flex-wrap: wrap;
  transition: border-color .2s;
}
.analysis-item:hover { border-color: var(--border2); }
.analysis-item.running { border-color: rgba(240,148,51,.3); background: rgba(240,148,51,.04); }

.analysis-item-left { display: flex; align-items: center; gap: 12px; }
.analysis-ig-avatar { width: 36px; height: 36px; flex-shrink: 0; }
.analysis-username { display: block; font-size: .9rem; font-weight: 600; }
.analysis-date { display: block; font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

.analysis-item-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.analysis-count { font-size: .875rem; color: var(--text-muted); }

.analysis-view-btn {
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: #e1306c;
  border: 1px solid rgba(225,48,108,.3);
  border-radius: var(--radius-sm);
  background: rgba(225,48,108,.08);
  transition: background .2s;
}
.analysis-view-btn:hover { background: rgba(225,48,108,.15); }

/* Status badges */
.running-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: #f09433;
  background: rgba(240,148,51,.1);
  border-radius: 100px;
  padding: 4px 10px;
}
.running-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f09433;
  animation: pulse 1.5s ease-in-out infinite;
}
.error-badge {
  display: inline-flex;
  align-items: center;
  font-size: .8rem;
  font-weight: 600;
  color: #f87171;
  background: rgba(239,68,68,.1);
  border-radius: 100px;
  padding: 4px 10px;
}

/* Empty states */
.dash-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border: 1px dashed var(--border2);
  border-radius: var(--radius-lg);
}
.dash-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-dim);
}
.dash-empty-icon svg { width: 32px; height: 32px; }
.dash-empty h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.dash-empty p  { font-size: .875rem; color: var(--text-muted); margin-bottom: 20px; }

/* Quickstart */
.quickstart-card {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.quickstart-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.qs-step {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.qs-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e1306c, #833ab4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.qs-step p  { font-size: .875rem; color: var(--text-muted); }
.qs-step strong { color: var(--text); }
.qs-arrow { font-size: 1.2rem; color: var(--text-dim); }

/* ── Analysis page ────────────────────────────────────────────────────────── */
.analyze-view { display: none; }
.analyze-view.active { display: block; }

.analyze-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  margin-bottom: 16px;
}

.analyze-card-header { text-align: center; margin-bottom: 32px; }
.analyze-ig-icon { width: 52px; height: 52px; margin: 0 auto 16px; }
.analyze-card-header h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.analyze-card-header h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.analyze-card-header p  { font-size: .875rem; color: var(--text-muted); }

.analyze-spinner-wrap { margin-bottom: 16px; }
.analyze-spinning-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  animation: spin-slow 3s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* Progress */
.progress-block { margin-bottom: 20px; }
.progress-track {
  width: 100%;
  height: 8px;
  background: var(--surface3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #f09433, #e1306c, #833ab4);
  border-radius: 4px;
  transition: width .6s ease;
  width: 0%;
}
.progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--text-muted);
}
.progress-pct { font-weight: 700; color: var(--text); }
.progress-eta { font-size: .8rem; color: var(--text-dim); margin-top: 8px; text-align: center; }

.analyze-resume-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-dim);
  text-align: center;
  justify-content: center;
}
.analyze-resume-note svg { width: 16px; height: 16px; flex-shrink: 0; }

.analyze-info-cards { display: flex; flex-direction: column; gap: 8px; }
.analyze-info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface2);
  border-radius: var(--radius);
  font-size: .825rem;
}
.analyze-info-card svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-dim); margin-top: 1px; }
.analyze-info-card strong { display: block; color: var(--text); margin-bottom: 2px; }
.analyze-info-card span  { color: var(--text-muted); }

/* Results */
.results-header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  transition: background .2s;
}
.btn-back:hover { background: var(--surface2); }
.btn-back svg { width: 16px; height: 16px; }
.results-header-bar h2 { font-size: 1.3rem; font-weight: 800; flex: 1; }

.results-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.results-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.results-stat-accent { border-color: rgba(225,48,108,.3); background: rgba(225,48,108,.06); }
.results-stat-num { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.results-stat-accent .results-stat-num { color: #e1306c; }
.results-stat-lbl { display: block; font-size: .75rem; color: var(--text-muted); margin-top: 4px; }

.api-warning {
  padding: 10px 14px;
  background: rgba(240,148,51,.08);
  border: 1px solid rgba(240,148,51,.25);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  color: #f09433;
  margin-bottom: 16px;
}

.results-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.results-list-header h3 { font-size: .95rem; font-weight: 700; color: var(--text-muted); }

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.btn-copy svg { width: 14px; height: 14px; }
.btn-copy:hover { background: var(--surface3); }

.users-list { display: flex; flex-direction: column; gap: 8px; }

.user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.user-item:hover { border-color: var(--border2); }
.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface3);
}
.user-avatar-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e1306c, #833ab4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-username { display: block; font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-fullname { display: block; font-size: .78rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.user-link {
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: #e1306c;
  border: 1px solid rgba(225,48,108,.3);
  border-radius: var(--radius-sm);
  background: rgba(225,48,108,.08);
  white-space: nowrap;
  transition: background .2s;
}
.user-link:hover { background: rgba(225,48,108,.15); }

.results-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.results-empty .big-check { font-size: 3rem; margin-bottom: 12px; }
.results-empty p { font-size: .95rem; color: var(--text-muted); }

/* ── History page ─────────────────────────────────────────────────────────── */
.history-list { display: flex; flex-direction: column; gap: 10px; }

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 16px;
  flex-wrap: wrap;
  transition: border-color .2s;
}
.history-item:hover { border-color: var(--border2); }
.history-item:target { border-color: #e1306c; }

.history-item-left { display: flex; align-items: center; gap: 14px; }
.history-ig-avatar  { width: 40px; height: 40px; flex-shrink: 0; }
.history-username   { display: block; font-size: .95rem; font-weight: 700; }
.history-date       { display: block; font-size: .78rem; color: var(--text-muted); margin-top: 3px; }

.history-item-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.history-result     { text-align: right; }
.history-unfollow-count { display: block; font-size: 1.3rem; font-weight: 800; color: #e1306c; }
.history-unfollow-lbl   { display: block; font-size: .72rem; color: var(--text-muted); }

.btn-view-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: #e1306c;
  border: 1px solid rgba(225,48,108,.3);
  border-radius: var(--radius-sm);
  background: rgba(225,48,108,.08);
  transition: background .2s;
}
.btn-view-result:hover { background: rgba(225,48,108,.15); }
.btn-view-result svg { width: 14px; height: 14px; }

.history-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--surface);
  border: 1px dashed var(--border2);
  border-radius: var(--radius-lg);
}
.empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--text-dim);
}
.empty-icon svg { width: 36px; height: 36px; }
.history-empty h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.history-empty p  { font-size: .875rem; color: var(--text-muted); margin-bottom: 24px; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.result-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
}
.modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: var(--surface3); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.modal-loading { text-align: center; color: var(--text-muted); padding: 24px; }
.modal-error   { text-align: center; color: var(--red); padding: 24px; }
.modal-empty   { text-align: center; padding: 24px; }
.modal-empty .big-check { font-size: 2.5rem; margin-bottom: 12px; }

.modal-stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.modal-stat {
  flex: 1;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.modal-stat.accent { background: rgba(225,48,108,.1); }
.modal-stat span  { display: block; font-size: 1.2rem; font-weight: 800; }
.modal-stat.accent span { color: #e1306c; }
.modal-stat small { display: block; font-size: .72rem; color: var(--text-muted); margin-top: 3px; }

.modal-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}
.modal-list-header span { font-size: .85rem; color: var(--text-muted); }
.btn-copy-modal {
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.btn-copy-modal:hover { background: var(--surface3); }

.modal-users-list { display: flex; flex-direction: column; gap: 8px; }
.modal-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
}
.modal-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface3);
}
.modal-avatar-placeholder {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #e1306c, #833ab4);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.modal-user-info { flex: 1; min-width: 0; }
.modal-username { display: block; font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-fullname { display: block; font-size: .75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-ig-link {
  padding: 5px 10px;
  font-size: .75rem;
  font-weight: 600;
  color: #e1306c;
  border: 1px solid rgba(225,48,108,.3);
  border-radius: var(--radius-sm);
  background: rgba(225,48,108,.08);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}
.modal-ig-link:hover { background: rgba(225,48,108,.15); }

/* ── Admin styles ─────────────────────────────────────────────────────────── */
.admin-body { background: #050505; }

.admin-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.admin-auth-header { text-align: center; }
.admin-auth-header svg { margin: 0 auto 12px; }
.admin-auth-header h1 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.admin-auth-header p  { font-size: .875rem; color: var(--text-muted); }

.admin-view { display: none; }
.admin-view.active { display: block; }

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5,5,5,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-brand { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 700; }
.admin-logout-btn {
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color .2s;
}
.admin-logout-btn:hover { color: var(--text); }

.admin-content { max-width: 1100px; margin: 0 auto; padding: 24px 24px 60px; }

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-stat-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.admin-stat-icon svg { width: 20px; height: 20px; }
.admin-stat-icon.purple { background: rgba(131,58,180,.15); color: #a855f7; }
.admin-stat-icon.pink   { background: rgba(225,48,108,.15); color: #e1306c; }
.admin-stat-icon.orange { background: rgba(240,148,51,.15);  color: #f09433; }
.admin-stat-body { display: flex; flex-direction: column; }
.admin-stat-body span  { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.admin-stat-body small { font-size: .72rem; color: var(--text-muted); margin-top: 4px; }

.admin-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.admin-section-head h2 { font-size: 1rem; font-weight: 700; }

.admin-session-update { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Session result cards */
.session-card {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface2);
}
.session-card.ok { border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.06); }
.session-card.err { border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.06); }
.session-status { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.green { background: #22c55e; }
.dot.red   { background: #ef4444; }
.session-profile { display: flex; align-items: center; gap: 10px; }
.session-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--surface3); }
.session-username { font-size: .9rem; font-weight: 700; }
.session-name    { font-size: .8rem; color: var(--text-muted); }
.session-stats   { font-size: .78rem; color: var(--text-dim); margin-top: 2px; }
.session-err-msg { font-size: .85rem; color: var(--red); }

/* Users table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.admin-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface2); }
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

/* Jobs */
.admin-jobs-list { display: flex; flex-direction: column; gap: 8px; }
.admin-job-card {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border);
}
.admin-job-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.admin-job-status { font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 100px; }
.admin-job-status.run  { background: rgba(240,148,51,.15); color: #f09433; }
.admin-job-status.done { background: rgba(34,197,94,.15);  color: #22c55e; }
.admin-job-status.err  { background: rgba(239,68,68,.15);  color: #ef4444; }
.admin-job-age   { font-size: .75rem; color: var(--text-dim); }
.admin-cancel    { margin-left: auto; padding: 4px 10px; font-size: .75rem; font-weight: 600; color: var(--red); background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); border-radius: var(--radius-sm); }
.admin-job-label { font-size: .85rem; color: var(--text-muted); margin-bottom: 8px; }
.admin-job-error { font-size: .8rem; color: var(--red); margin-bottom: 8px; }
.admin-job-bar   { height: 4px; background: var(--surface3); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.admin-job-fill  { height: 100%; background: linear-gradient(135deg, #f09433, #e1306c); transition: width .3s; }
.admin-job-id    { font-size: .7rem; color: var(--text-dim); font-family: monospace; }

.admin-empty { font-size: .875rem; color: var(--text-dim); text-align: center; padding: 20px; }

/* ── Auth divider ─────────────────────────────────────────────────────────── */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-dim); font-size: .8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Scan credits banner ───────────────────────────────────────────────────── */
.scan-credits-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(135deg, #1a0f1f, #111);
  border: 1px solid rgba(225,48,108,.3);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  box-shadow: 0 0 30px rgba(225,48,108,.08);
}
.scan-credits-banner.no-scans {
  border-color: rgba(239,68,68,.3);
  background: linear-gradient(135deg, #1a0a0a, #111);
}
.scan-credits-info { display: flex; align-items: center; gap: 16px; }
.scan-credits-count {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #f09433, #e1306c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 48px;
  text-align: center;
}
.scan-credits-count--zero {
  background: linear-gradient(135deg, #666, #444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.scan-credits-label { display: block; font-size: 1rem; font-weight: 700; color: #f0f0f0; }
.scan-credits-sub   { display: block; font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.scan-credits-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-buy-scan {
  flex-shrink: 0; background: linear-gradient(135deg, #f09433, #e1306c);
  color: #fff; border: none; border-radius: 8px; padding: 9px 18px;
  font-size: .85rem; font-weight: 600; cursor: pointer; transition: opacity .15s;
}
.btn-buy-scan:hover { opacity: .85; }
.btn-buy-scan:disabled { opacity: .5; cursor: not-allowed; }
.btn-buy-scan--pack { background: linear-gradient(135deg, #833ab4, #3b82f6); }

.btn-buy-more {
  flex-shrink: 0;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.btn-buy-more:hover { color: var(--text); border-color: #555; }

.buy-options-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 16px;
  margin-top: -12px;
}

.btn-buy-cancel {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: .85rem;
  cursor: pointer;
  margin-left: auto;
  padding: 4px 8px;
}
.btn-buy-cancel:hover { color: var(--text-muted); }

/* ── Subscription panel ───────────────────────────────────────────────────── */
.subscription-panel {
  background: var(--surface); border: 1px solid #833ab440;
  border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 0 30px #833ab412;
}
.sub-panel-header { display: flex; align-items: center; justify-content: space-between; }
.sub-panel-title { display: flex; align-items: center; gap: 14px; }
.sub-icon { width: 28px; height: 28px; color: #a855f7; flex-shrink: 0; }
.sub-panel-title h3 { font-size: 1rem; font-weight: 700; color: #fff; margin: 0; }
.sub-expires { font-size: .8rem; color: var(--text-dim); margin: 2px 0 0; }
.sub-badge { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: .05em; }
.sub-badge--active { background: #4ade8022; color: #4ade80; border: 1px solid #4ade8040; }

.sub-whatsapp { display: flex; flex-direction: column; gap: 6px; }
.sub-wpp-label { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: #aaa; }
.wpp-icon { width: 16px; height: 16px; color: #25D366; flex-shrink: 0; }
.sub-wpp-row { display: flex; gap: 8px; }
.sub-wpp-input {
  flex: 1; background: var(--bg); border: 1px solid var(--border2); color: #fff;
  border-radius: 8px; padding: 9px 12px; font-size: .9rem; outline: none;
}
.sub-wpp-input:focus { border-color: #25D36680; }
.btn-save-wpp {
  background: #25D36622; color: #25D366; border: 1px solid #25D36640;
  border-radius: 8px; padding: 9px 16px; font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.btn-save-wpp:hover { background: #25D36633; }
.sub-wpp-hint { font-size: .75rem; color: var(--text-dim); opacity: .6; }

.sub-profiles { display: flex; flex-direction: column; gap: 12px; }
.sub-profiles-header { display: flex; align-items: center; justify-content: space-between; }
.sub-profiles-header h4 { font-size: .9rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.sub-profile-count { font-size: .75rem; color: var(--text-dim); font-weight: 400; }
.btn-add-profile {
  background: var(--bg); border: 1px solid var(--border2); color: #a855f7;
  border-radius: 8px; padding: 6px 14px; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: border-color .15s;
}
.btn-add-profile:hover { border-color: #a855f760; }
.btn-extra-profile {
  background: linear-gradient(135deg, #833ab420, #3b82f620); color: #a855f7;
  border: 1px solid #833ab440; border-radius: 8px; padding: 6px 14px;
  font-size: .82rem; font-weight: 600; cursor: pointer; transition: opacity .15s;
}
.btn-extra-profile:hover { opacity: .8; }

.add-profile-form { margin-top: 4px; }
.add-profile-row { display: flex; align-items: center; gap: 8px; }
.add-profile-at { color: var(--text-dim); font-size: .9rem; }
.add-profile-input {
  flex: 1; background: var(--bg); border: 1px solid var(--border2); color: #fff;
  border-radius: 8px; padding: 8px 12px; font-size: .9rem; outline: none;
}
.add-profile-input:focus { border-color: #a855f760; }
.btn-confirm-add {
  background: linear-gradient(135deg, #833ab4, #3b82f6); color: #fff;
  border: none; border-radius: 8px; padding: 8px 16px; font-size: .85rem; font-weight: 700; cursor: pointer;
}
.btn-cancel-add {
  background: none; border: 1px solid var(--border2); color: var(--text-dim);
  border-radius: 8px; padding: 8px 12px; font-size: .85rem; cursor: pointer;
}

.monitored-profiles-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.monitored-profile-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px;
}
.mp-left { display: flex; align-items: center; gap: 12px; }
.mp-avatar { width: 32px; height: 32px; flex-shrink: 0; }
.mp-username { font-size: .9rem; font-weight: 600; color: #fff; display: block; }
.mp-last-check { font-size: .75rem; color: var(--text-dim); display: block; }
.btn-remove-profile {
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  padding: 4px; border-radius: 6px; transition: color .15s;
}
.btn-remove-profile:hover { color: #e1306c; }
.btn-remove-profile svg { width: 16px; height: 16px; }
.mp-empty { font-size: .85rem; color: var(--text-dim); text-align: center; padding: 16px; }

.sub-upsell {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.sub-upsell-icon { color: #a855f7; flex-shrink: 0; }
.sub-upsell-icon svg { width: 32px; height: 32px; }
.sub-upsell-text { flex: 1; min-width: 200px; }
.sub-upsell-text h3 { font-size: .95rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.sub-upsell-text p { font-size: .82rem; color: var(--text-dim); margin: 0; }
.sub-upsell-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sub-trimestral {
  background: linear-gradient(135deg, #f09433, #e1306c); color: #fff;
  border: none; border-radius: 8px; padding: 9px 16px; font-size: .85rem; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.btn-sub-anual {
  background: linear-gradient(135deg, #833ab4, #3b82f6); color: #fff;
  border: none; border-radius: 8px; padding: 9px 16px; font-size: .85rem; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}

/* ── Pricing section ──────────────────────────────────────────────────────── */
.pricing-section { padding: 56px 24px; }
.pricing-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1060px; margin: 48px auto 0;
}
.pricing-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px; position: relative; display: flex; flex-direction: column; gap: 24px;
}
.pricing-card--featured {
  border-color: #e1306c66;
  background: linear-gradient(145deg, #1a0a10, #111);
  box-shadow: 0 0 40px #e1306c18;
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #f09433, #e1306c);
  color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 14px;
  border-radius: 20px; white-space: nowrap; letter-spacing: .05em;
}
.pricing-card-header h3 { font-size: 1.1rem; color: #aaa; margin-bottom: 12px; font-weight: 600; }
.pricing-price { display: flex; align-items: baseline; gap: 6px; }
.price-amount { font-size: 2.2rem; font-weight: 800; color: #fff; }
.pricing-card--featured .price-amount { background: linear-gradient(135deg,#f09433,#e1306c); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.price-period { font-size: .85rem; color: var(--text-dim); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #bbb; }
.pricing-features li svg { width: 16px; height: 16px; flex-shrink: 0; color: #4ade80; }
.pricing-feat-disabled { opacity: .4; }
.pricing-feat-disabled svg { color: #666 !important; }
.pricing-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #f09433, #e1306c); color: #fff;
  border-radius: 10px; padding: 13px 20px; font-weight: 700; font-size: .95rem;
  text-decoration: none; transition: opacity .15s;
}
.pricing-btn-primary:hover { opacity: .85; }
.pricing-btn-primary svg { width: 16px; height: 16px; }
.pricing-btn-secondary {
  display: block; text-align: center; border: 1px solid var(--border2);
  color: var(--text-dim); border-radius: 10px; padding: 13px 20px;
  font-weight: 600; font-size: .95rem; text-decoration: none; transition: border-color .15s, color .15s;
}
.pricing-btn-secondary:hover { border-color: #e1306c66; color: #fff; }
.pricing-note { font-size: .78rem; color: var(--text-dim); text-align: center; opacity: .7; }

.pricing-card--value {
  border-color: #833ab466;
  background: linear-gradient(145deg, #0e0a1a, #111);
  box-shadow: 0 0 40px #833ab418;
}
.pricing-badge--value {
  background: linear-gradient(135deg, #833ab4, #3b82f6);
}
.price-amount--value {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-btn-value {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #833ab4, #3b82f6); color: #fff;
  border-radius: 10px; padding: 13px 20px; font-weight: 700; font-size: .95rem;
  text-decoration: none; transition: opacity .15s;
}
.pricing-btn-value:hover { opacity: .85; }
.pricing-btn-value svg { width: 16px; height: 16px; }

.pricing-card-sub { font-size: .8rem; color: var(--text-dim); margin: -8px 0 8px; opacity: .75; }
.pricing-extra-note { text-align: center; margin-top: 28px; font-size: .87rem; color: var(--text-dim); }
.pricing-extra-note strong { color: #fff; }

/* ── Examples section ─────────────────────────────────────────────────────── */
.examples-section { background: var(--bg); }

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .examples-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ── App preview section ──────────────────────────────────────────────────── */
.app-preview-section { background: var(--surface); }

.example-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.example-card {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.example-card:hover {
  border-color: rgba(225,48,108,.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(225,48,108,.12);
}

.example-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.example-card-info { display: flex; flex-direction: column; gap: 4px; }
.example-card-username { font-size: .95rem; font-weight: 700; color: var(--text); }
.example-card-name    { font-size: .8rem; color: var(--text-muted); }

.example-card-tag {
  font-size: .78rem;
  font-weight: 700;
  color: #e1306c;
  background: rgba(225,48,108,.1);
  border: 1px solid rgba(225,48,108,.25);
  border-radius: 100px;
  padding: 4px 12px;
}

.example-card-btn {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  transition: color .2s, border-color .2s;
}
.example-card-btn:hover { color: var(--text); border-color: #555; }

@media (max-width: 640px) {
  .example-cards-grid { grid-template-columns: 1fr; max-width: 340px; }
}

/* ── No-scan buy screen ────────────────────────────────────────────────────── */
.no-scan-price-box {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; margin: 8px 0;
}
.no-scan-price { font-size: 1rem; color: var(--text-dim); margin-bottom: 4px; }
.no-scan-price span { font-size: 2.8rem; font-weight: 800; background: linear-gradient(135deg,#f09433,#e1306c); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.no-scan-desc { font-size: .85rem; color: var(--text-dim); }
.no-scan-features { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.no-scan-features li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text-dim); }
.no-scan-features li svg { width: 16px; height: 16px; flex-shrink: 0; color: #4ade80; }

/* ── Plan block (dashboard) ───────────────────────────────────────────────── */
.plan-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 4px;
  flex-wrap: wrap;
  min-height: 52px;
}
.plan-block--active { border-color: rgba(131,58,180,.25); background: rgba(131,58,180,.05); }
.plan-block--free   { border-color: var(--border); }
.plan-block-left  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-block-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }

.plan-block-badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(135deg,#833ab4,#3b82f6); color: #fff;
  padding: 3px 10px; border-radius: 20px;
}
.plan-block-info { font-size: .82rem; color: var(--text-muted); }
.plan-block-info strong { color: var(--text); }

.plan-credit-pill {
  font-size: .82rem; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
  background: var(--surface2); border: 1px solid var(--border2); color: var(--text-muted);
}
.plan-credit-pill--ok    { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.25); color: #4ade80; }
.plan-credit-pill--empty { background: var(--surface2); border-color: var(--border2); color: var(--text-dim); }

.plan-btn-primary {
  padding: 9px 18px; border-radius: var(--radius-sm); border: none;
  background: linear-gradient(135deg, #f09433, #e1306c, #833ab4);
  color: #fff; font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: opacity .15s, transform .15s; white-space: nowrap;
  box-shadow: 0 2px 12px rgba(225,48,108,.3);
  letter-spacing: .01em;
}
.plan-btn-primary:hover  { opacity: .9; transform: translateY(-1px); }
.plan-btn-primary:active { opacity: .8; transform: none; }
.plan-btn-add {
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border2); background: none;
  color: var(--text-muted); font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: color .15s, border-color .15s; white-space: nowrap;
}
.plan-btn-add:hover { color: var(--text); border-color: #555; }

/* Buy options expanded */
.buy-options-bar {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 4px;
}
.buy-options-title { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.buy-options-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.buy-option-btn {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface2);
  text-align: left; cursor: pointer; transition: border-color .15s;
}
.buy-option-btn:hover { border-color: rgba(225,48,108,.4); }
.buy-option-btn--featured { border-color: rgba(225,48,108,.3); background: rgba(225,48,108,.06); }
.buy-option-btn--value    { border-color: rgba(131,58,180,.3); background: rgba(131,58,180,.06); }
.buy-option-name  { font-size: .82rem; font-weight: 700; color: var(--text); }
.buy-option-price { font-size: 1rem; font-weight: 800; color: #e1306c; line-height: 1.2; }
.buy-option-btn--value .buy-option-price { color: #a855f7; }
.buy-option-desc  { font-size: .72rem; color: var(--text-dim); }
.buy-options-close {
  display: block; width: 100%; padding: 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: none; color: var(--text-dim);
  font-size: .8rem; cursor: pointer; transition: color .15s;
}
.buy-options-close:hover { color: var(--text-muted); }

/* ── Plans modal ─────────────────────────────────────────────────────────── */
.plans-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.plans-modal.hidden { display: none; }
.plans-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
}
.plans-modal-box {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 28px 24px;
  width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto;
}
.plans-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.plans-modal-head h2 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.plans-modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border2); background: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  transition: color .15s, border-color .15s;
}
.plans-modal-close:hover { color: var(--text); border-color: #555; }
.plans-modal-close svg { width: 16px; height: 16px; }
.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.plan-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px;
  transition: border-color .15s;
}
.plan-card--featured { border-color: rgba(225,48,108,.4); background: rgba(225,48,108,.04); }
.plan-card--value    { border-color: rgba(131,58,180,.4); background: rgba(131,58,180,.04); }
.plan-card-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 20px;
  background: linear-gradient(135deg,#e1306c,#833ab4); color: #fff;
  white-space: nowrap;
}
.plan-card-badge--value { background: linear-gradient(135deg,#833ab4,#6d28d9); }
.plan-card-top { margin-bottom: 16px; }
.plan-card-name { display: block; font-size: .85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.plan-card-price { margin-bottom: 8px; }
.plan-card-price span { font-size: 1.6rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.plan-card-price--featured span { color: #e1306c; }
.plan-card-price--value span    { color: #a855f7; }
.plan-card-price small { font-size: .75rem; color: var(--text-dim); margin-left: 4px; }
.plan-card-desc { font-size: .78rem; color: var(--text-dim); margin: 0; line-height: 1.4; }
.plan-card-features {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.plan-card-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text-muted);
}
.plan-card-features svg { width: 16px; height: 16px; flex-shrink: 0; color: #22c55e; }
.plan-card-btn {
  display: block; width: 100%; padding: 11px;
  border-radius: var(--radius-sm); border: none;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: opacity .15s, transform .15s; text-align: center;
}
.plan-card-btn--default  { background: var(--surface3,#2a2a2a); color: var(--text); border: 1px solid var(--border2); }
.plan-card-btn--default:hover { background: var(--surface); }
.plan-card-btn--featured {
  background: linear-gradient(135deg,#e1306c,#833ab4); color: #fff;
  box-shadow: 0 2px 12px rgba(225,48,108,.3);
}
.plan-card-btn--value {
  background: linear-gradient(135deg,#833ab4,#6d28d9); color: #fff;
  box-shadow: 0 2px 12px rgba(131,58,180,.3);
}
.plan-card-btn--featured:hover,
.plan-card-btn--value:hover { opacity: .88; transform: translateY(-1px); }

/* ── Dashboard stats row ──────────────────────────────────────────────────── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.dash-stats--two { grid-template-columns: repeat(2, 1fr); }
.dash-stat {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 16px 12px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dash-stat-num {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1;
}
.dash-stat-num--accent { color: #e1306c; }
.dash-stat-num--muted  { color: var(--text-dim); font-size: 1.3rem; }
.dash-stat-lbl { font-size: .72rem; color: var(--text-muted); }
.dash-stat-date { font-size: .85rem !important; font-weight: 600; letter-spacing: 0; }

/* ── Subscription management card ────────────────────────────────────────── */
.dash-monitor-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); text-decoration: none;
  transition: border-color .18s, background .18s;
}
.dash-monitor-banner:hover { border-color: rgba(225,48,108,.35); background: var(--surface2); }
.dash-monitor-banner-left { display: flex; align-items: center; gap: 12px; }
.dash-monitor-banner-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(131,58,180,.12); color: #a855f7;
  display: flex; align-items: center; justify-content: center;
}
.dash-monitor-banner-icon svg { width: 18px; height: 18px; }
.dash-monitor-banner strong { display: block; font-size: .88rem; color: var(--text); }
.dash-monitor-banner span { font-size: .75rem; color: var(--text-dim); }
.dash-monitor-banner > svg { color: var(--text-dim); flex-shrink: 0; }
[data-theme="light"] .dash-monitor-banner { background: var(--surface); border-color: var(--border2); }
.sub-profile-count { font-size: .75rem; color: var(--text-dim); font-weight: 400; }

/* ── Buy scan card (analyze page, no scans) ───────────────────────────────── */
.buy-scan-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 20px; margin-bottom: 16px;
}
.buy-scan-header { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.buy-scan-header svg { margin: 0 auto; }
.buy-scan-header h1 { font-size: 1.3rem; font-weight: 800; }
.buy-scan-header p  { font-size: .85rem; color: var(--text-muted); }
.buy-scan-options { display: flex; flex-direction: column; gap: 8px; }
.buy-scan-option {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface2);
  text-align: left; cursor: pointer; transition: border-color .15s, background .15s;
  width: 100%;
}
.buy-scan-option:hover { border-color: rgba(225,48,108,.4); background: var(--surface3); }
.buy-scan-option--sub  { border-color: rgba(225,48,108,.25); }
.buy-scan-option--best { border-color: rgba(131,58,180,.3); background: rgba(131,58,180,.05); }
.buy-scan-option--best:hover { background: rgba(131,58,180,.1); }
.buy-scan-option-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.buy-scan-option-name  { font-size: .9rem; font-weight: 700; color: var(--text); }
.buy-scan-option-price { font-size: 1rem; font-weight: 800; color: #e1306c; }
.buy-scan-option--best .buy-scan-option-price { color: #a855f7; }
.buy-scan-option-desc  { font-size: .78rem; color: var(--text-dim); }
.buy-scan-best-tag {
  font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 10px;
  background: rgba(131,58,180,.2); color: #a855f7; vertical-align: middle; margin-left: 4px;
  white-space: nowrap; display: inline-block;
}

/* ── Monitor page ────────────────────────────────────────────────────────── */
.page-title-row { margin-bottom: 20px; }
.page-title-row h1 { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.page-title-row p  { font-size: .9rem; color: var(--text-muted); }

.monitor-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 20px;
  margin-bottom: 12px;
}
.monitor-card-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.monitor-plan-info { display: flex; align-items: center; gap: 10px; flex: 1; }
.monitor-plan-badge {
  font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px;
  background: linear-gradient(135deg, #e1306c, #833ab4); color: #fff;
}
.monitor-plan-expires { font-size: .83rem; color: var(--text-muted); }
.monitor-plan-expires strong { color: var(--text); }

.monitor-section { display: flex; flex-direction: column; gap: 12px; }
.monitor-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 700; color: var(--text);
}
.monitor-section-title svg { width: 16px; height: 16px; flex-shrink: 0; color: #25D366; }
.monitor-section-title:nth-child(1) svg { color: #25D366; }

.monitor-wpp-section { padding: 0; }
.monitor-wpp-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.monitor-wpp-header strong { display: block; font-size: .88rem; color: var(--text); }
.monitor-wpp-header span { font-size: .75rem; color: var(--text-dim); }
.monitor-wpp-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(37,211,102,.12); color: #25D366;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.monitor-wpp-change-btn {
  margin-left: auto; font-size: .78rem; color: var(--text-dim); background: none;
  border: 1px solid var(--border2); border-radius: 6px; padding: 4px 10px; cursor: pointer;
}
.monitor-wpp-change-btn:hover { border-color: #25D366; color: #25D366; }
.monitor-wpp-confirmed {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; font-size: .82rem; color: var(--text-muted);
}
#mon-wpp-form { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.monitor-wpp-row {
  display: flex; gap: 8px; align-items: center;
}
.monitor-wpp-ddi {
  padding: 0 10px; height: 40px; line-height: 40px;
  background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius-sm);
  font-size: .83rem; color: var(--text-dim); white-space: nowrap; flex-shrink: 0;
}

/* ── Country picker ─────────────────────────────────────────────────────── */
.country-picker-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px; height: 40px; flex-shrink: 0;
  background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius-sm);
  color: var(--text); font-size: .85rem; font-weight: 500; cursor: pointer;
  transition: border-color .18s, background .18s; white-space: nowrap;
}
.country-picker-btn:hover { border-color: rgba(225,48,108,.4); background: var(--surface3,var(--surface2)); }
.country-picker-btn span:first-child { font-size: 1.1rem; }

.country-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
}
.country-modal.hidden { display: none !important; }
.country-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
}
.country-modal-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px; max-height: 70vh;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: slideUp .22s ease;
}
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.country-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 12px; border-bottom: 1px solid var(--border);
}
.country-modal-head strong { font-size: .95rem; }
.country-modal-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface2); border: none; color: var(--text-dim);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.country-search-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.country-search-wrap svg { color: var(--text-dim); flex-shrink: 0; }
.country-search-input {
  flex: 1; background: none; border: none; outline: none;
  font-size: .9rem; color: var(--text); font-family: inherit;
}
.country-search-input::placeholder { color: var(--text-dim); }
.country-list {
  list-style: none; overflow-y: auto; flex: 1;
  padding: 6px 0;
}
.country-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; cursor: pointer; transition: background .12s;
}
.country-item:hover { background: var(--surface2); }
.country-item.selected { background: rgba(225,48,108,.08); }
.country-item-flag { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.country-item-name { flex: 1; font-size: .88rem; color: var(--text); }
.country-item-code { font-size: .82rem; color: var(--text-dim); font-weight: 500; }
[data-theme="light"] .country-modal-box { background: #fff; border-color: var(--border2); }
[data-theme="light"] .country-search-wrap { background: var(--surface2); }
[data-theme="light"] .country-item:hover { background: var(--surface2); }
@media (min-width: 540px) {
  .country-modal { align-items: center; }
  .country-modal-box { border-radius: 20px; max-height: 500px; }
}

.monitor-profiles-actions { display: flex; gap: 8px; }

.btn-add-profile {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px dashed var(--border2); background: none;
  color: var(--text-muted); font-size: .83rem; font-weight: 600; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.btn-add-profile svg { width: 15px; height: 15px; }
.btn-add-profile:hover { color: var(--text); border-color: #555; }

.mp-empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 32px 16px; text-align: center;
  background: var(--surface2); border-radius: var(--radius-sm);
}
.mp-empty-state svg { width: 40px; height: 40px; color: var(--text-dim); }
.mp-empty-state p { font-size: .9rem; font-weight: 600; color: var(--text-muted); }
.mp-empty-state span { font-size: .8rem; color: var(--text-dim); }

/* Monitor upsell */
.monitor-upsell {
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; padding: 40px 24px; text-align: center;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); margin-bottom: 12px;
}
.monitor-upsell-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(225,48,108,.08); border: 1px solid rgba(225,48,108,.2);
  display: flex; align-items: center; justify-content: center;
}
.monitor-upsell-icon svg { width: 36px; height: 36px; color: #e1306c; }
.monitor-upsell h2 { font-size: 1.25rem; font-weight: 800; }
.monitor-upsell > p { font-size: .9rem; color: var(--text-muted); max-width: 380px; }

.upsell-features {
  display: flex; flex-direction: column; gap: 10px;
  text-align: left; width: 100%; max-width: 340px;
}
.upsell-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: var(--text-muted);
}
.upsell-feature svg { width: 16px; height: 16px; flex-shrink: 0; color: #22c55e; }

.upsell-plans {
  display: flex; gap: 10px; width: 100%; max-width: 420px;
}
.upsell-plan-btn {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  padding: 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface2);
  text-align: left; cursor: pointer; transition: border-color .15s, transform .15s;
}
.upsell-plan-btn:hover { transform: translateY(-2px); }
.upsell-plan-btn--featured { border-color: rgba(225,48,108,.4); background: rgba(225,48,108,.05); }
.upsell-plan-btn--value    { border-color: rgba(131,58,180,.4); background: rgba(131,58,180,.05); }
.upsell-plan-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .85rem; font-weight: 700; color: var(--text);
}
.upsell-plan-price { font-size: 1rem; font-weight: 800; color: #e1306c; }
.upsell-plan-btn--value .upsell-plan-price { color: #a855f7; }
.upsell-plan-desc { font-size: .75rem; color: var(--text-dim); }

/* ── Account page ────────────────────────────────────────────────────────── */
.account-section { margin-bottom: 20px; }
.account-section-title {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .07em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.account-page {
  padding-top: 48px;
}
.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.account-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f09433, #e1306c 50%, #833ab4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(225,48,108,.24);
  flex-shrink: 0;
}
.account-kicker {
  color: #e1306c;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.account-profile h1 {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
}
.account-profile p:last-child {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.account-overview,
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.account-overview { margin-bottom: 14px; }
.account-panel {
  background: rgba(17,17,17,.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.account-panel--plan {
  background: linear-gradient(135deg, rgba(225,48,108,.08), var(--surface) 46%);
}
.account-panel--balance {
  background: linear-gradient(135deg, rgba(34,197,94,.08), var(--surface) 46%);
}
.account-panel--wide {
  grid-column: 1 / -1;
}
.account-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.account-panel-head h2 {
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.25;
}
.account-panel-head p {
  color: var(--text-muted);
  font-size: .8rem;
  line-height: 1.45;
  margin-top: 2px;
}
.account-panel-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.account-panel-icon svg {
  width: 19px;
  height: 19px;
}
.account-panel-icon--accent {
  background: rgba(225,48,108,.12);
  border-color: rgba(225,48,108,.24);
  color: #e1306c;
}
.account-panel-icon--success {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.24);
  color: #4ade80;
}
.account-panel-icon--whatsapp {
  background: rgba(37,211,102,.12);
  border-color: rgba(37,211,102,.24);
  color: #25d366;
}
.account-plan-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.account-plan-summary div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.account-plan-summary strong {
  font-size: .98rem;
  font-weight: 800;
}
.account-plan-summary span:not(.account-plan-badge) {
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.35;
}
.account-plan-summary b {
  color: var(--text);
  font-weight: 700;
}
.account-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg,#e1306c,#833ab4);
  color: #fff;
  font-size: .73rem;
  font-weight: 800;
  white-space: nowrap;
}
.account-plan-badge--free {
  background: var(--surface3);
  color: var(--text-muted);
}
.account-balance-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.account-balance-summary strong {
  font-size: 3rem;
  line-height: .9;
  font-weight: 800;
  color: var(--text-dim);
}
.account-balance-summary strong.is-positive {
  color: #4ade80;
}
.account-balance-summary span {
  color: var(--text-muted);
  font-size: .9rem;
}
.account-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--text-dim);
  font-size: .8rem;
}
.account-link,
.account-text-btn {
  color: #e1306c;
  font-size: .82rem;
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
}
.account-link:hover,
.account-text-btn:hover { color: #f472b6; }
.account-primary-btn,
.account-secondary-btn,
.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-weight: 800;
  white-space: nowrap;
  transition: opacity .15s, transform .15s, border-color .15s, background .15s;
}
.account-primary-btn,
.account-btn {
  border: none;
  background: linear-gradient(135deg,#e1306c,#833ab4);
  color: #fff;
  box-shadow: 0 8px 22px rgba(225,48,108,.22);
}
.account-secondary-btn {
  border: 1px solid var(--border2);
  color: var(--text);
  background: var(--surface2);
}
.account-primary-btn:hover,
.account-btn:hover { opacity: .9; transform: translateY(-1px); }
.account-secondary-btn:hover { border-color: rgba(225,48,108,.35); background: var(--surface3); }
.account-btn:disabled {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
}
.account-status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: .85rem;
  padding: 10px 12px;
  background: rgba(34,197,94,.06);
  border: 1px solid rgba(34,197,94,.18);
  border-radius: var(--radius-sm);
}
.account-status-line strong {
  color: var(--text);
  font-weight: 700;
}
.account-hint {
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.5;
  margin-bottom: 10px;
}
.account-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-code-row { margin-top: 10px; }
.account-ddi {
  min-height: 42px;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}
.account-input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text);
  font-size: .9rem;
  transition: border-color .15s, box-shadow .15s;
}
.account-input:focus {
  outline: none;
  border-color: rgba(225,48,108,.65);
  box-shadow: 0 0 0 3px rgba(225,48,108,.12);
}
.account-form-msg {
  min-height: 20px;
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 600;
}
.account-form-msg.is-success { color: #4ade80; }
.account-form-msg.is-error { color: #f87171; }
.account-empty {
  color: var(--text-dim);
  font-size: .86rem;
  padding: 10px 0;
}
.account-payments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.account-payment-ref {
  display: block;
  color: var(--text-muted);
  font-family: monospace;
  font-size: .8rem;
  word-break: break-word;
}
.account-payment-date {
  display: block;
  color: var(--text-dim);
  font-size: .78rem;
  margin-top: 2px;
}
.account-payment-amt {
  color: var(--text);
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
}
.account-password-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.account-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.account-actions-row .account-form-msg {
  flex: 1;
  margin-top: 0;
}

/* ── Support page ─────────────────────────────────────────────────────────── */
.support-contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px;
}
.support-contact-left { display: flex; align-items: center; gap: 14px; }
.support-contact-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(225,48,108,.1); border: 1px solid rgba(225,48,108,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.support-contact-icon svg { width: 20px; height: 20px; color: #e1306c; }
.support-contact-title { font-size: .9rem; font-weight: 700; }
.support-contact-desc  { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.support-contact-btn {
  padding: 9px 20px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg,#e1306c,#833ab4); color: #fff;
  font-size: .83rem; font-weight: 700;
  transition: opacity .15s; white-space: nowrap;
}
.support-contact-btn:hover { opacity: .88; }

.faq-list { display: flex; flex-direction: column; gap: 6px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 14px 18px; background: none; border: none;
  color: var(--text); font-size: .88rem; font-weight: 600; cursor: pointer;
  text-align: left; transition: background .15s;
}
.faq-question:hover { background: var(--surface2); }
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); transition: transform .2s; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 18px;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 18px 14px; }
.faq-answer p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.faq-answer a { color: #e1306c; }

.support-status-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(34,197,94,.06); border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 8px;
}
.support-status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); flex-shrink: 0;
}
.support-status-title { font-size: .88rem; font-weight: 700; color: #4ade80; }
.support-status-desc  { font-size: .78rem; color: var(--text-dim); margin-top: 2px; }

/* dot indicator helper */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.green  { background: #22c55e; }
.dot.orange { background: #f59e0b; }
.dot.red    { background: #ef4444; }

/* ── Confirm modal ───────────────────────────────────────────────────────── */
.confirm-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.confirm-modal.hidden { display: none; }
.confirm-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
}
.confirm-box {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 32px 28px;
  width: 100%; max-width: 380px;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
}
.confirm-icon { font-size: 2.5rem; line-height: 1; }
.confirm-box h3 { font-size: 1.2rem; font-weight: 800; margin: 0; }
.confirm-price-row { display: flex; align-items: center; gap: 10px; }
.confirm-price { font-size: 1.8rem; font-weight: 800; color: #e1306c; letter-spacing: -.03em; }
.confirm-badge {
  font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25); color: #4ade80;
  text-transform: uppercase; letter-spacing: .05em;
}
.confirm-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  width: 100%; text-align: left;
}
.confirm-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: var(--text-muted);
}
.confirm-features svg { width: 16px; height: 16px; flex-shrink: 0; color: #22c55e; }
.confirm-note {
  display: flex; align-items: center; gap: 8px;
  font-size: .75rem; color: var(--text-dim);
  background: var(--surface2); padding: 10px 14px;
  border-radius: var(--radius-sm); width: 100%; text-align: left;
}
.confirm-note svg { width: 16px; height: 16px; flex-shrink: 0; color: #22c55e; }
.confirm-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border-radius: var(--radius-sm); border: none;
  background: linear-gradient(135deg, #e1306c, #833ab4); color: #fff;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 20px rgba(225,48,108,.35);
  transition: opacity .15s, transform .15s;
}
.confirm-btn svg { width: 18px; height: 18px; }
.confirm-btn:hover  { opacity: .9; transform: translateY(-1px); }
.confirm-btn:active { opacity: .8; transform: none; }
.confirm-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.confirm-cancel {
  background: none; border: none; color: var(--text-dim);
  font-size: .85rem; cursor: pointer; padding: 4px 8px;
  transition: color .15s;
}
.confirm-cancel:hover { color: var(--text-muted); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pricing-cards { grid-template-columns: 1fr 1fr; max-width: 700px; }
  .pricing-cards .pricing-card:last-child { grid-column: 1 / -1; max-width: 340px; margin: 0 auto; width: 100%; }
}

@media (max-width: 640px) {
  .hero { padding: 60px 16px 40px; gap: 32px; }
  .hero-preview { max-width: 100%; }
  .stats-strip-inner { gap: 0; }
  .strip-stat { min-width: 100px; padding: 12px 16px; }
  .strip-divider { display: none; }
  .auth-card { padding: 24px 16px; border-radius: var(--radius); }
  .analyze-card { padding: 24px 16px; border-radius: var(--radius); }
  .results-stats-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .results-stat-num { font-size: 1.2rem; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .history-item-right { margin-left: 0; }
  .modal-box { max-height: 90vh; }
  .step-connector { display: none; }
  .steps-container { gap: 24px; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 420px; }
  .account-page { padding-top: 28px; }
  .account-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-header .btn-primary-action {
    width: 100%;
    justify-content: center;
  }
  .account-overview,
  .account-grid,
  .account-password-grid {
    grid-template-columns: 1fr;
  }
  .account-panel--wide { grid-column: auto; }
  .account-actions-row {
    align-items: stretch;
    flex-direction: column;
  }
  .account-actions-row .account-btn {
    width: 100%;
  }
}

/* ── Mobile-first: ≤480px ─────────────────────────────────────────────────── */
@media (max-width: 480px) {

  /* Global touch targets */
  button, a, [role="button"] { -webkit-tap-highlight-color: transparent; }

  /* Navbar */
  .nav-inner { padding: 0 14px; }
  .nav-brand-text { font-size: .9rem; }

  /* Page & app padding */
  .app-inner { padding: 0 14px; }
  .app-page  { padding: 24px 0 80px; }
  .section-inner { padding: 40px 14px; }

  /* Account */
  .account-profile {
    align-items: flex-start;
  }
  .account-avatar {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
  .account-profile h1 {
    font-size: 1.28rem;
  }
  .account-panel {
    padding: 16px;
    gap: 16px;
  }
  .account-panel-footer,
  .account-input-row {
    align-items: stretch;
    flex-direction: column;
  }
  .account-panel-footer .account-primary-btn,
  .account-panel-footer .account-secondary-btn,
  .account-input-row .account-btn {
    width: 100%;
  }
  .account-ddi {
    width: 100%;
  }
  .account-balance-summary strong {
    font-size: 2.45rem;
  }
  .account-payment-row {
    align-items: flex-start;
    flex-direction: column;
  }

  /* Hero */
  .hero {
    padding: 48px 14px 36px;
    gap: 28px;
    flex-direction: column;
  }
  .hero-inner { min-width: 0; max-width: 100%; text-align: center; }
  .hero-badge { white-space: normal; font-size: .75rem; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.6rem); margin-bottom: 14px; }
  .hero-subtitle { font-size: .95rem; margin-bottom: 24px; text-align: left; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    min-height: 52px;
    font-size: .95rem;
    border-radius: var(--radius);
  }
  .hero-preview { display: none; }

  /* Stats strip */
  .stats-strip-inner { padding: 16px 14px; flex-wrap: wrap; gap: 0; }
  .strip-stat { min-width: 50%; flex: none; padding: 10px 12px; }
  .strip-num { font-size: 1.4rem; }

  /* Sections */
  .section-head h2 { font-size: 1.6rem; }
  .section-desc { font-size: .9rem; }

  /* Features grid */
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 20px; }

  /* Steps */
  .step-card { padding: 20px 16px; min-width: 100%; }

  /* CTA section */
  .cta-section { padding: 40px 14px; }
  .btn-cta-primary {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    min-height: 52px;
    font-size: .95rem;
    border-radius: var(--radius);
  }

  /* Auth */
  .auth-page { padding: 20px 14px; align-items: flex-start; padding-top: 32px; }
  .auth-card { padding: 24px 16px; border-radius: var(--radius); }
  .auth-header { margin-bottom: 24px; }
  .auth-header h1 { font-size: 1.3rem; }
  .input-wrap input { min-height: 48px; font-size: 1rem; padding: 12px 40px 12px 36px; }
  .btn-auth-submit { min-height: 52px; font-size: 1rem; padding: 14px; border-radius: var(--radius-sm); }

  /* Dashboard header */
  .dash-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dash-welcome { gap: 12px; }
  .dash-avatar { width: 44px; height: 44px; font-size: 1.1rem; }
  .dash-welcome h1 { font-size: 1.2rem; }

  /* Stats cards — 2 column grid */
  .stats-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }
  .stat-card-item { padding: 14px 12px; gap: 10px; }
  .stat-card-icon { width: 36px; height: 36px; }
  .stat-card-icon svg { width: 18px; height: 18px; }
  .stat-card-num { font-size: 1.3rem; }

  /* Page header */
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .page-header h1 { font-size: 1.4rem; }
  .btn-primary-action { width: 100%; justify-content: center; min-height: 48px; }

  /* Analysis items */
  .analysis-item { padding: 12px 12px; gap: 10px; }
  .analysis-item-left { gap: 10px; }
  .analysis-item-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .analysis-ig-avatar { width: 32px; height: 32px; }
  .analysis-username { font-size: .85rem; }
  .analysis-view-btn { min-height: 36px; padding: 6px 12px; }

  /* Section heads */
  .dash-section-head { margin-bottom: 12px; }
  .dash-section-head h2 { font-size: 1rem; }

  /* Scan credits banner */
  .scan-credits-banner {
    padding: 16px;
    gap: 12px;
    border-radius: var(--radius);
    margin-bottom: 20px;
  }
  .scan-credits-info { gap: 12px; }
  .scan-credits-count { font-size: 2.4rem; min-width: 40px; }
  .scan-credits-label { font-size: .9rem; }
  .scan-credits-actions { flex-direction: column; gap: 8px; width: 100%; }
  .btn-buy-scan, .btn-buy-more {
    width: 100%;
    text-align: center;
    min-height: 44px;
    padding: 10px 16px;
  }
  .buy-options-bar {
    flex-direction: column;
    padding: 12px 14px;
    gap: 8px;
  }
  .buy-options-bar .btn-buy-scan { font-size: .9rem; }
  .btn-buy-cancel { align-self: center; }

  /* Subscription panel */
  .subscription-panel { padding: 16px; gap: 16px; border-radius: var(--radius); }
  .sub-panel-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sub-wpp-row { flex-direction: column; gap: 8px; }
  .btn-save-wpp { min-height: 44px; width: 100%; }
  .sub-wpp-input { min-height: 44px; font-size: 1rem; }
  .add-profile-row { flex-wrap: wrap; }
  .add-profile-input { min-height: 44px; font-size: 1rem; }
  .btn-confirm-add, .btn-cancel-add { min-height: 44px; padding: 10px 16px; }
  .sub-upsell { padding: 14px; gap: 12px; }
  .sub-upsell-actions { flex-direction: column; width: 100%; }
  .btn-sub-trimestral, .btn-sub-anual {
    width: 100%;
    min-height: 48px;
    font-size: .9rem;
    border-radius: var(--radius-sm);
  }

  /* Analyze card */
  .analyze-card { padding: 20px 14px; border-radius: var(--radius); }
  .analyze-card-header h1, .analyze-card-header h2 { font-size: 1.2rem; }
  .analyze-card-header p  { font-size: .85rem; }
  .btn-hero-primary.analyze-start { width: 100%; justify-content: center; min-height: 52px; }

  /* Input within analyze/auth */
  .input-wrap--at input { min-height: 48px; font-size: 1rem; }

  /* Results stats */
  .results-stats-row { gap: 6px; }
  .results-stat-card { padding: 12px 8px; }
  .results-stat-num { font-size: 1.1rem; }
  .results-stat-lbl { font-size: .68rem; }

  /* Results list header */
  .results-list-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn-copy { min-height: 40px; }

  /* User items */
  .user-item { padding: 10px 12px; gap: 10px; }
  .user-avatar, .user-avatar-placeholder { width: 38px; height: 38px; }
  .user-link { min-height: 36px; padding: 6px 10px; }

  /* History */
  .history-item { padding: 12px 14px; gap: 10px; }
  .history-item-left { gap: 10px; }
  .history-item-right { margin-left: 0; width: 100%; justify-content: space-between; align-items: center; }
  .history-ig-avatar { width: 36px; height: 36px; }
  .history-username { font-size: .88rem; }
  .history-unfollow-count { font-size: 1.1rem; }
  .btn-view-result { min-height: 40px; padding: 8px 12px; }

  /* Empty states */
  .dash-empty { padding: 40px 16px; }
  .history-empty { padding: 48px 16px; }

  /* Quickstart card */
  .quickstart-card { padding: 16px; }
  .quickstart-steps { flex-direction: column; gap: 12px; align-items: flex-start; }
  .qs-arrow { display: none; }

  /* Modal — near full-screen */
  .result-modal { padding: 0; align-items: flex-end; }
  .modal-box {
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none;
  }
  .modal-header { padding: 16px 16px; }
  .modal-header h3 { font-size: .95rem; }
  .modal-body { padding: 16px; }
  .modal-close { min-width: 44px; min-height: 44px; width: 44px; height: 44px; }

  /* Modal stats */
  .modal-stats-row { gap: 8px; }
  .modal-stat span { font-size: 1.1rem; }

  /* Pricing */
  .pricing-section { padding: 40px 14px; }
  .pricing-cards { max-width: 100%; gap: 14px; }
  .pricing-card { padding: 24px 18px; gap: 18px; }
  .price-amount { font-size: 1.9rem; }
  .pricing-btn-primary, .pricing-btn-secondary, .pricing-btn-value {
    padding: 14px 16px;
    min-height: 52px;
    font-size: .95rem;
  }

  /* Example cards */
  .example-cards-grid { grid-template-columns: 1fr; max-width: 100%; gap: 10px; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 16px; padding: 28px 14px; }
  .footer-nav { gap: 16px; }
  .footer-bottom { padding: 12px 14px; }

  /* Back button */
  .btn-back { min-height: 40px; padding: 8px 12px; }
  .results-header-bar { gap: 10px; margin-bottom: 16px; }
  .results-header-bar h2 { font-size: 1.1rem; }

  /* Btn-secondary-sm used across pages */
  .btn-secondary-sm { min-height: 40px; padding: 8px 14px; }

  /* Plan block */
  .plan-block { padding: 12px 14px; gap: 8px; }
  .plan-block-right { margin-left: 0; width: 100%; }
  .plan-btn-primary, .plan-btn-add { flex: 1; text-align: center; min-height: 40px; }

  /* Buy options */
  .buy-options-list { grid-template-columns: 1fr; }
  .buy-option-btn { flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 12px; }
  .buy-option-price { font-size: .9rem; }

  /* Dash stats */
  .dash-stats { gap: 6px; }
  .dash-stat { padding: 12px 8px; }
  .dash-stat-num { font-size: 1.3rem; }

  /* Sub mgmt */
  .sub-mgmt-card { padding: 14px; gap: 14px; }

  /* Buy scan card */
  .buy-scan-card { padding: 20px 14px; gap: 16px; }
  .buy-scan-header h1 { font-size: 1.15rem; }
  .buy-scan-option { padding: 12px 14px; }

  /* Plans modal */
  .plans-modal { padding: 0; align-items: flex-end; }
  .plans-modal-box {
    max-width: 100%; max-height: 88vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none; padding: 20px 16px;
  }
  .plans-grid { grid-template-columns: 1fr; gap: 10px; }
  .plan-card-badge { top: -10px; }
  .plan-card { padding: 16px 14px; }
  .plan-card--featured { margin-top: 10px; }
  .plan-card--value    { margin-top: 10px; }
}
