/* ═══════════════════════════════════════════════
   ThumbLion — Main Stylesheet
   Dark Navy · Red Accent palette
═══════════════════════════════════════════════ */

:root {
  /* ── New Red Theme ── */
  --bg-primary:        #0B0B1A;
  --bg-surface:        #12122A;
  --bg-card:           rgba(255, 255, 255, 0.04);
  --bg-card-hover:     rgba(255, 255, 255, 0.07);

  --accent-red:        #FF0000;
  --accent-red-light:  #FF4444;
  --accent-red-dim:    rgba(255, 0, 0, 0.15);
  --accent-red-border: rgba(255, 80, 80, 0.35);

  --text-white:        #FFFFFF;
  --text-secondary:    rgba(255, 255, 255, 0.55);

  --border-subtle:     rgba(255, 255, 255, 0.08);
  --border-medium:     rgba(255, 255, 255, 0.14);

  --gradient-red:       linear-gradient(135deg, #FF6666, #FF0000, #CC0000);
  --gradient-card-red:  linear-gradient(135deg, #2d0a0a, #8B0000);
  --gradient-card-gold: linear-gradient(135deg, #1a0a00, #7A4500);

  /* ── Legacy vars (remapped to red theme) ── */
  --primary:        #FF0000;
  --primary-dark:   #CC0000;
  --primary-light:  #FF4444;
  --secondary:      #CC0000;
  --accent:         #FF6666;
  --bg:             #0B0B1A;
  --bg-2:           #12122A;
  --bg-3:           rgba(255, 255, 255, 0.07);
  --text:           #FFFFFF;
  --text-muted:     rgba(255, 255, 255, 0.55);
  --text-dim:       rgba(255, 255, 255, 0.30);
  --border:         rgba(255, 255, 255, 0.08);
  --border-light:   rgba(255, 255, 255, 0.14);
  --success:        #22c55e;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --orange:         #f97316;
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      16px;
  --shadow:         0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:      0 8px 48px rgba(0,0,0,.5);
  --gradient:       linear-gradient(135deg, #FF6666, #FF0000, #CC0000);
  --gradient-dark:  linear-gradient(135deg, #1a0533, #2d0a0a);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--text); }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }

/* ══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
  background: rgba(11, 11, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border-subtle);
  transition: background .3s;
}
.navbar.scrolled { background: rgba(11, 11, 26, 0.97); }
.navbar-brand {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.3rem; font-weight: 600; color: var(--text-white);
}
.navbar-brand .brand-icon {
  width: 32px; height: 32px;
  background: var(--gradient-red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.navbar-nav {
  display: flex; align-items: center; gap: .25rem;
}
.navbar-nav a {
  padding: .5rem .85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.navbar-nav a:hover { color: var(--text-white); background: transparent; }
.navbar-nav a.active { color: var(--text-white); }

/* ── Tools dropdown ───────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; list-style: none; }
.nav-dropdown-toggle {
  padding: .5rem .85rem;
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-size: .9rem;
  transition: color .2s;
  background: none; border: none; cursor: pointer;
  font-family: inherit;
  display: flex; align-items: center; gap: .3rem;
  white-space: nowrap;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open > .nav-dropdown-toggle { color: var(--text-white); background: transparent; }
.nav-caret { font-size: .6rem; transition: transform .2s; display: inline-block; }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none; flex-direction: column; gap: .1rem;
  position: absolute; top: calc(100% + .4rem); left: 50%; transform: translateX(-50%);
  min-width: 210px;
  background: rgba(11, 11, 26, 0.95); border: 1px solid var(--border-medium);
  border-radius: var(--radius); padding: .4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.5); z-index: 1001;
  list-style: none; backdrop-filter: blur(12px);
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .85rem; border-radius: 6px;
  color: var(--text-secondary); font-size: .875rem; white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-dropdown-menu a:hover { color: var(--text-white) !important; background: rgba(255,255,255,0.07) !important; }

.navbar-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; cursor: pointer; background: none; border: none; color: var(--text); font-size: 1.4rem; }

/* ══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem 1.25rem;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  font-size: .9rem; font-weight: 600;
  transition: all .2s; white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--accent-red); color: #fff; border: none;
  border-radius: 8px;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-red-light);
  transform: translateY(-1px); color: #fff;
}
.btn-secondary {
  background: rgba(255,255,255,0.07); color: var(--text-secondary);
  border: 0.5px solid var(--border-medium); border-radius: 10px;
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(255,255,255,0.11); color: var(--text-white);
}
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 0.5px solid var(--border-medium);
}
.btn-ghost:hover { border-color: var(--accent-red-border); color: var(--accent-red-light); background: transparent; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #dc2626; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #000; }
.btn-sm { padding: .4rem .85rem; font-size: .82rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ══════════════════════════════════════════════
   HERO (Landing)
═══════════════════════════════════════════════ */
.hero {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 2rem 80px;
  position: relative; overflow: hidden;
  background: var(--bg-primary);
  text-align: center;
}
.hero-content { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }

/* New hero tag pill */
.hero-tag {
  display: inline-block;
  background: var(--accent-red-dim); border: 0.5px solid var(--accent-red-border);
  color: #FF8888; font-size: 13px; padding: 5px 16px;
  border-radius: 20px; margin-bottom: 1.5rem;
}

/* Legacy hero-badge kept for other pages */
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent-red-dim); border: 0.5px solid var(--accent-red-border);
  color: #FF8888; padding: .35rem .85rem;
  border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 700;
  line-height: 1.2; margin-bottom: 1.25rem; color: var(--text-white);
}
.hero h1 .gradient-text, .gradient-text {
  background: var(--gradient-red); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
  font-size: 16px; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 2rem; line-height: 1.7;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  align-items: center; justify-content: center; margin-bottom: 3rem;
}
.hero-stats {
  display: inline-flex; gap: 0; flex-wrap: wrap; justify-content: center;
  padding-top: 2rem; border-top: 0.5px solid var(--border-subtle);
}
.stat { display: flex; flex-direction: column; align-items: center; padding: 0 2rem; }
.stat + .stat { border-left: 0.5px solid var(--border-subtle); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--accent-red-light); }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.30); margin-top: .2rem; }

/* Hero glow circles */
.hero-glow {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 0;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,0,0,0.14) 0%, transparent 65%);
  top: -150px; left: -100px;
}
.hero-glow-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,60,0,0.09) 0%, transparent 65%);
  bottom: -80px; right: -60px;
}

/* Legacy orbs (kept for backward compat) */
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.orb-1 { width: 600px; height: 600px; background: rgba(255,0,0,0.08); top: -200px; right: -100px; }
.orb-2 { width: 400px; height: 400px; background: rgba(255,60,0,0.06); bottom: -100px; left: -50px; }

/* ══════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════ */
section { padding: 100px 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block; color: var(--accent-red-light);
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px); font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 1rem; line-height: 1.2;
  color: var(--text-white);
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 540px; line-height: 1.7;
}
.section-header { margin-bottom: 4rem; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ── Feature grid ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card); border: 0.5px solid rgba(255,255,255,0.10);
  border-radius: 14px; padding: 24px;
  position: relative; z-index: 0;
  will-change: transform;
  transition: all 0.25s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,80,80,0.25);
  transform: translateY(-3px);
  z-index: 2;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-red-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1rem;
  color: var(--accent-red-light);
}
.feature-card h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: .5rem; color: var(--text-white); }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── How it works ── */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
  position: relative;
}
.step-card {
  background: var(--bg-card); border: 0.5px solid rgba(255,255,255,0.10);
  border-radius: 14px; padding: 2rem;
  text-align: center; position: relative;
  transition: all 0.25s;
}
.step-card:hover { background: var(--bg-card-hover); border-color: rgba(255,80,80,0.25); transform: translateY(-3px); }
.step-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #fff;
  margin: 0 auto 1.25rem;
}
.step-card h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: .5rem; color: var(--text-white); }
.step-card p { font-size: .88rem; color: var(--text-secondary); }

/* ── Score preview card ── */
.preview-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; overflow: hidden;
}
.preview-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.score-item { display: flex; flex-direction: column; gap: .4rem; }
.score-label-row { display: flex; justify-content: space-between; font-size: .82rem; }
.score-name { color: var(--text-muted); }
.score-val { font-weight: 700; color: var(--text); }
.score-bar { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 3px; transition: width 1.5s ease; }

/* ══════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--bg-surface); border: 0.5px solid var(--border-medium);
  border-radius: 16px; padding: 2rem;
  position: relative; transition: transform .3s, box-shadow .3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border: 2px solid var(--accent-red);
  box-shadow: 0 0 32px rgba(255,0,0,0.12);
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--accent-red); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem 1rem; border-radius: 0 0 8px 8px;
}
.plan-name { font-size: .85rem; font-weight: 600; color: var(--text-white); text-transform: uppercase; letter-spacing: .08em; }
.plan-price {
  display: flex; align-items: baseline; gap: .25rem;
  margin: .75rem 0 .25rem;
}
.plan-price .amount { font-size: 36px; font-weight: 700; color: var(--accent-red-light); }
.plan-price .currency { font-size: 1.25rem; font-weight: 600; color: var(--text-secondary); align-self: flex-start; margin-top: .5rem; }
.plan-price .period { font-size: .85rem; color: var(--text-secondary); }
.plan-credits { font-size: .88rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.plan-features { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: .6rem; }
.plan-features li {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; color: var(--text-secondary);
}
.plan-features li::before { content: '✓'; color: var(--accent-red-light); font-weight: 700; flex-shrink: 0; }

/* ── Detailed pricing plans (toggle, feature descriptions, lifetime deals) ── */
.pricing-toggle { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: 2rem auto 2.75rem; }
.pricing-toggle-group {
  display: inline-flex; background: var(--bg-3); border: 0.5px solid var(--border-medium);
  border-radius: 999px; padding: .25rem; gap: .25rem;
}
.pricing-toggle-btn {
  border: none; background: transparent; color: var(--text-secondary);
  font-size: .85rem; font-weight: 600; padding: .55rem 1.35rem; border-radius: 999px;
  cursor: pointer; transition: background .2s, color .2s; font-family: inherit;
}
.pricing-toggle-btn.active { background: var(--accent-red); color: #fff; }
.pricing-toggle-save {
  font-size: .72rem; font-weight: 700; color: var(--accent-red-light);
  background: var(--accent-red-dim); border: 0.5px solid var(--accent-red-border);
  padding: .2rem .6rem; border-radius: 999px; margin-left: .4rem;
}
.plan-price-pkr { font-size: .82rem; color: var(--text-secondary); margin-top: .2rem; }
.plan-price-note { font-size: .74rem; color: var(--text-muted); display: block; margin-top: .15rem; }
.price-monthly { display: block; }
.price-yearly { display: none; }
#pricingPlans.billing-monthly .price-monthly { display: block; }
#pricingPlans.billing-monthly .price-yearly { display: none; }
#pricingPlans:not(.billing-monthly) .price-monthly { display: none; }
#pricingPlans:not(.billing-monthly) .price-yearly { display: block; }
.plan-feature-list { list-style: none; margin: 1.25rem 0 2rem; display: flex; flex-direction: column; }
.plan-feature-row { display: flex; align-items: baseline; gap: .5rem; padding: 6px 0; }
.plan-feature-row-icon { flex-shrink: 0; width: 16px; text-align: center; font-size: 15px; font-weight: 700; }
.plan-feature-row-icon.check { color: var(--success); }
.plan-feature-row-icon.cross { color: var(--danger); }
.plan-feature-row-name { font-size: 13px; color: var(--text-white); }
.plan-feature-row.crossed .plan-feature-row-name { color: var(--text-muted); }
.plan-feature-row-detail { font-size: 11px; color: var(--text-muted); }
.plan-feature-soon-badge {
  font-size: 10px; font-weight: 700; color: #f59e0b; background: rgba(245, 158, 11, .15);
  border: 0.5px solid rgba(245, 158, 11, .35); padding: .1rem .45rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .03em;
}
.pricing-note-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin: 2.5rem 0; font-size: .82rem; color: var(--text-muted); text-align: center; }
.lifetime-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.lifetime-card {
  background: var(--bg-surface); border: 0.5px solid var(--border-medium);
  border-radius: 16px; padding: 1.85rem; text-align: center;
}
.lifetime-credits { font-size: .85rem; color: var(--text-secondary); margin: .5rem 0 .2rem; }
.lifetime-note { font-size: .75rem; color: var(--text-dim); margin-bottom: 1.5rem; }

/* ══════════════════════════════════════════════
   CARDS / PANELS
═══════════════════════════════════════════════ */
.card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.card-subtitle { font-size: .82rem; color: var(--text-muted); margin-top: .2rem; }

/* ══════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: .5rem;
}
.form-control {
  width: 100%; padding: .65rem 1rem;
  background: rgba(255,255,255,0.06); border: 0.5px solid var(--border-medium);
  border-radius: var(--radius-sm); color: var(--text-white);
  font-size: .9rem; transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--accent-red-border);
  box-shadow: 0 0 0 3px rgba(255,0,0,0.10);
}
.form-control::placeholder { color: var(--text-dim); }
.form-control:disabled { opacity: .6; cursor: not-allowed; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: .78rem; color: var(--text-dim); margin-top: .35rem; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: .35rem; }

/* ══════════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════════ */
.alert {
  padding: .85rem 1.1rem; border-radius: var(--radius-sm);
  font-size: .88rem; display: flex; align-items: flex-start; gap: .6rem;
  margin-bottom: 1rem; border: 1px solid transparent;
}
.alert-success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: #86efac; }
.alert-danger  { background: rgba(239,68,68,.1);  border-color: rgba(239,68,68,.3);  color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); color: #fcd34d; }
.alert-info    { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.3); color: #a5b4fc; }

/* ══════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.badge-success { background: rgba(34,197,94,.15);  color: var(--success); }
.badge-danger  { background: rgba(239,68,68,.15);  color: var(--danger); }
.badge-warning { background: rgba(245,158,11,.15); color: var(--warning); }
.badge-primary { background: var(--accent-red-dim); color: var(--accent-red-light); }
.badge-muted   { background: var(--bg-3);           color: var(--text-muted); }

/* ══════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--bg-3); padding: .75rem 1rem;
  text-align: left; font-size: .78rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap;
}
td { padding: .85rem 1rem; font-size: .88rem; border-top: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,.02); }
.td-thumb { width: 60px; }
.td-thumb img { width: 56px; height: 32px; object-fit: cover; border-radius: 4px; }

/* ══════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,0,0,0.08) 0%, transparent 60%), var(--bg);
}
.auth-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  display: flex; align-items: center; gap: .5rem; justify-content: center;
  margin-bottom: 2rem;
}
.auth-logo-icon {
  width: 40px; height: 40px; background: var(--gradient);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.auth-logo-text { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.auth-title { font-size: 1.5rem; font-weight: 800; margin-bottom: .4rem; }
.auth-subtitle { font-size: .88rem; color: var(--text-muted); margin-bottom: 2rem; }
.auth-footer { margin-top: 1.5rem; text-align: center; font-size: .85rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary-light); font-weight: 600; }

/* ══════════════════════════════════════════════
   DASHBOARD LAYOUT
═══════════════════════════════════════════════ */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh; z-index: 100;
  transition: transform .3s;
}
.sidebar-logo {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-icon {
  width: 32px; height: 32px; background: var(--gradient);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.sidebar-logo-text { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.sidebar-nav { flex: 1; padding: 1rem .75rem; overflow-y: auto; }
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-section-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-dim);
  padding: 0 .5rem; margin-bottom: .4rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .75rem; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .88rem; font-weight: 500;
  transition: color .2s, background .2s; cursor: pointer;
  text-decoration: none;
}
.sidebar-link:hover { color: var(--text); background: var(--bg-3); }
.sidebar-link.active { color: var(--accent-red-light); background: var(--accent-red-dim); font-weight: 600; }
.sidebar-link .icon { width: 18px; text-align: center; font-size: 1rem; }
.sidebar-footer {
  padding: 1rem .75rem 1.25rem;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem;
}
.sidebar-user-avatar {
  width: 34px; height: 34px; background: var(--gradient);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sidebar-user-info .name { font-size: .85rem; font-weight: 600; color: var(--text); }
.sidebar-user-info .role { font-size: .72rem; color: var(--text-dim); }
.sidebar-credits {
  background: var(--bg-3); border-radius: var(--radius-sm);
  padding: .6rem .75rem; margin-bottom: .75rem;
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-credits .label { font-size: .75rem; color: var(--text-muted); }
.sidebar-credits .value { font-size: .95rem; font-weight: 700; color: var(--primary-light); }

.main-content {
  flex: 1; margin-left: 240px;
  display: flex; flex-direction: column; min-height: 100vh;
}
.topbar {
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: .75rem; }
.page-body { padding: 2rem; flex: 1; }

/* ══════════════════════════════════════════════
   STATS GRID
═══════════════════════════════════════════════ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.stat-card .stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1rem;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: .2rem; }
.stat-card .stat-label { font-size: .82rem; color: var(--text-muted); }
.stat-card .stat-change { font-size: .78rem; margin-top: .5rem; display: flex; align-items: center; gap: .3rem; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ══════════════════════════════════════════════
   UPLOAD / ANALYZE
═══════════════════════════════════════════════ */
.upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg); padding: 3rem 2rem;
  text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent-red);
  background: var(--accent-red-dim);
}
.upload-icon { font-size: 3rem; margin-bottom: 1rem; }
.upload-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.upload-subtitle { font-size: .88rem; color: var(--text-muted); }
.upload-browse { color: var(--primary-light); font-weight: 600; }

.analysis-result { display: none; }
.analysis-result.show { display: block; }

.overall-score-ring {
  position: relative; width: 140px; height: 140px; margin: 0 auto 1.5rem;
}
.score-ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-ring-value { font-size: 2.2rem; font-weight: 800; color: var(--text); line-height: 1; }
.score-ring-label { font-size: .72rem; color: var(--text-muted); margin-top: .2rem; }

.score-breakdown { display: flex; flex-direction: column; gap: .85rem; }
.score-row { display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: .75rem; }
.score-row-label { font-size: .85rem; color: var(--text-muted); }
.score-row-bar { height: 8px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.score-row-fill { height: 100%; border-radius: 4px; transition: width 1.2s cubic-bezier(.34,1.56,.64,1); }
.score-row-num { font-size: .85rem; font-weight: 700; text-align: right; }

.suggestion-list { display: flex; flex-direction: column; gap: .75rem; }
.suggestion-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem 1rem; background: var(--bg-3);
  border-radius: var(--radius-sm); font-size: .88rem; color: var(--text-muted);
}
.suggestion-item .sug-icon { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }

/* ══════════════════════════════════════════════
   HISTORY PAGE
═══════════════════════════════════════════════ */
.history-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem;
}
.history-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.history-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.history-card-thumb { position: relative; aspect-ratio: 16/9; background: var(--bg-3); overflow: hidden; }
.history-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.history-card-score {
  position: absolute; top: .5rem; right: .5rem;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  color: #fff; font-size: .78rem; font-weight: 700;
  padding: .2rem .5rem; border-radius: 6px;
}
.history-card-body { padding: 1rem; }
.history-card-name { font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-card-meta { display: flex; justify-content: space-between; align-items: center; }
.history-card-date { font-size: .75rem; color: var(--text-dim); }

/* ══════════════════════════════════════════════
   ADMIN PANEL
═══════════════════════════════════════════════ */
.admin-sidebar .sidebar-logo-icon { background: linear-gradient(135deg, #dc2626, #f97316); }

/* ══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: var(--bg-surface); border-top: 0.5px solid var(--border-subtle);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 3rem;
  max-width: 1200px; margin: 0 auto 3rem;
}
.footer-brand { }
.footer-brand-logo {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem;
  color: var(--text-white);
}
.footer-brand-icon {
  width: 28px; height: 28px; background: var(--gradient-red);
  border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: .8rem;
}
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,0.30); line-height: 1.65; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 500; margin-bottom: 1rem; color: var(--text-white); }
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.30); transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent-red-light); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 1.5rem; border-top: 0.5px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.30);
}

/* ══════════════════════════════════════════════
   MISC UTILITIES
═══════════════════════════════════════════════ */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger)  !important; }
.text-warning { color: var(--warning) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-primary { color: var(--primary-light) !important; }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.spinner {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .7s linear infinite; flex-shrink: 0;
}
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }

/* ── Pagination ── */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.page-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-muted); font-size: .85rem; cursor: pointer; transition: all .2s;
}
.page-btn:hover { background: var(--bg-3); color: var(--text); }
.page-btn.active { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  transform: scale(.95) translateY(10px); transition: transform .2s;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.25rem; cursor: pointer; transition: color .2s; }
.modal-close:hover { color: var(--text); }

/* ══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.fade-in { animation: fadeIn .4s ease forwards; }
.animate-pulse { animation: pulse 2s infinite; }

/* ══════════════════════════════════════════════
   HERO VISUAL — Animated Preview Card
═══════════════════════════════════════════════ */
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes hero-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,0,0,0.20), 0 8px 48px rgba(0,0,0,.45); }
  50%       { box-shadow: 0 0 0 1px rgba(255,0,0,0.45), 0 0 48px rgba(255,0,0,0.12), 0 8px 48px rgba(0,0,0,.45); }
}
@keyframes scan-sweep {
  0%   { top: -2px; opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}
@keyframes shimmer-move {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .2; }
}
@keyframes badge-float-1 {
  0%, 100% { transform: rotate(-3deg) translateY(0px); }
  50%       { transform: rotate(-3deg) translateY(-7px); }
}
@keyframes badge-float-2 {
  0%, 100% { transform: rotate(2deg) translateY(0px); }
  50%       { transform: rotate(2deg) translateY(-9px); }
}

/* Animated card wrapper */
.preview-card--animated {
  animation: hero-float 4s ease-in-out infinite,
             hero-glow 3s ease-in-out infinite;
}

/* Card top row */
.preview-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}

/* Live badge */
.preview-live-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .65rem; font-weight: 700;
  color: var(--success); text-transform: uppercase; letter-spacing: .06em;
}
.live-dot {
  width: 6px; height: 6px;
  background: var(--success); border-radius: 50%;
  animation: live-blink 1s ease-in-out infinite;
}

/* Thumbnail mockup */
.preview-thumb-wrapper {
  position: relative; aspect-ratio: 16/9;
  margin-bottom: 1rem; border-radius: 8px; overflow: hidden;
}
.preview-thumb {
  width: 100%; height: 100%;
  position: relative; overflow: hidden;
}
.thumb-gfx {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 28% 55%, rgba(255,100,0,.45) 0%, transparent 45%),
    radial-gradient(circle at 72% 28%, rgba(255,0,0,.35) 0%, transparent 42%),
    linear-gradient(135deg, #1a0000 0%, #2d0a0a 45%, #1a0000 100%);
}
.thumb-person-icon {
  position: absolute; left: 12%; top: 50%;
  transform: translateY(-50%);
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.6));
  z-index: 2;
}
.thumb-text-block {
  position: absolute; right: 10%; top: 50%;
  transform: translateY(-50%); text-align: right; z-index: 2;
}
.thumb-headline {
  font-size: 1.35rem; font-weight: 900; color: #fff;
  line-height: 1.1; letter-spacing: -.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.thumb-headline span { color: #fbbf24; }
.thumb-sub {
  font-size: .58rem; color: rgba(255,255,255,.65);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; margin-top: .25rem;
}
.thumb-scan-line {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,0,0,.9) 30%,
    rgba(255,80,80,1) 50%, rgba(255,0,0,.9) 70%, transparent 100%);
  box-shadow: 0 0 10px rgba(255,0,0,.8), 0 0 24px rgba(255,0,0,.4);
  animation: scan-sweep 2.8s ease-in-out infinite;
  animation-delay: .8s; z-index: 5;
}
.thumb-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, transparent 40%,
    rgba(255,255,255,.08) 49%, rgba(255,255,255,.15) 50%,
    rgba(255,255,255,.08) 51%, transparent 60%, transparent 100%);
  animation: shimmer-move 3.5s ease-in-out infinite;
  animation-delay: .3s; z-index: 4;
}
.thumb-corner-badge {
  position: absolute; top: .5rem; right: .5rem;
  background: rgba(0,0,0,.78); backdrop-filter: blur(4px);
  border: 1px solid rgba(34,197,94,.55);
  color: #22c55e; font-size: .82rem; font-weight: 800;
  padding: .22rem .6rem; border-radius: 6px; z-index: 6;
}

/* Floating stat badges beside card */
.hero-badge-float {
  position: absolute;
  background: rgba(30,41,59,.95); border: 1px solid var(--border);
  border-radius: 10px; padding: .5rem .85rem;
  font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; gap: .4rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04);
  white-space: nowrap; pointer-events: none; z-index: 10;
}
.hero-badge-float--1 {
  top: 35px; left: -105px;
  color: var(--success);
  animation: badge-float-1 3.5s ease-in-out infinite;
  animation-delay: .5s;
}
.hero-badge-float--2 {
  bottom: 55px; right: -20px;
  color: var(--primary-light);
  animation: badge-float-2 4s ease-in-out infinite;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  animation: live-blink 1.2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 1.25rem; }
  .navbar-nav { display: none; }
  .nav-toggle { display: flex; }
  .navbar-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(11,11,26,0.97); border-bottom: 0.5px solid var(--border-subtle);
    padding: 1rem; gap: .25rem;
    backdrop-filter: blur(12px);
  }
  /* Mobile dropdown overrides */
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static; transform: none;
    box-shadow: none; border: none;
    background: transparent; padding: .15rem 0 .15rem 1rem;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  section { padding: 60px 1.25rem; }
  .hero { padding: 100px 1.25rem 60px; }
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { padding: 0 1.25rem; }
  .page-body { padding: 1.25rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .score-row { grid-template-columns: 90px 1fr 36px; }
}
@media (max-width: 480px) {
  /* Hide Log In ghost button on tiny screens so hamburger stays visible */
  .navbar-actions .btn-ghost { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 1rem; align-items: center; }
  .hero-stats .stat { padding: 0; }
  .stat + .stat { border-left: none; border-top: 0.5px solid var(--border-subtle); padding-top: 1rem; width: 100%; text-align: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .lifetime-grid { grid-template-columns: 1fr; }
  .pricing-toggle-btn { padding: .55rem .9rem; font-size: .8rem; }
  .preview-scores { grid-template-columns: 1fr; }
  .auth-card { padding: 1.75rem 1.25rem; }
}

/* ══════════════════════════════════════════════
   BOUNCE ARROW
═══════════════════════════════════════════════ */
.arrow-container {
  text-align: center;
  padding: 24px 0 16px;
}
.arrow-label {
  font-size: 12px;
  color: rgba(255,255,255,0.30);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.bounce-arrows {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  animation: bounceDown 1.5s ease-in-out infinite;
}
.chevron {
  width: 20px;
  height: 10px;
  border-right: 2.5px solid var(--accent-red);
  border-bottom: 2.5px solid var(--accent-red);
  transform: rotate(45deg);
}
.chevron:nth-child(2) { opacity: 0.55; }
.chevron:nth-child(3) { opacity: 0.2; }
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(9px); }
}

/* ══════════════════════════════════════════════
   COMPARISON CARDS SECTION
═══════════════════════════════════════════════ */
.comparison-section {
  padding: 20px 2rem 80px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
.comp-card {
  border-radius: 14px;
  padding: 20px;
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.comp-card--before {
  border: 0.5px solid var(--border-medium);
  background: var(--bg-card);
}
.comp-card--optimized {
  border: 1.5px solid rgba(255,60,60,0.5);
  background: rgba(255,0,0,0.07);
  box-shadow: 0 0 28px rgba(255,0,0,0.12);
}
.comp-card--best {
  border: 1.5px solid rgba(255,180,0,0.45);
  background: rgba(255,180,0,0.06);
  box-shadow: 0 0 28px rgba(255,180,0,0.10);
}
.comp-top-line {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFB800, transparent);
}
.comp-crown {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: #FFB800; color: #1a0000;
  font-size: 10px; font-weight: 600;
  padding: 3px 10px; border-radius: 10px;
  white-space: nowrap;
}
.comp-badge {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 8px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.comp-badge--before { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.50); }
.comp-badge--optimized { background: rgba(255,0,0,0.15); color: #FF8888; }
.comp-badge--gold { background: rgba(255,184,0,0.15); color: #FFB800; }

.comp-thumb-area {
  width: 100%; height: 100px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a1a2e, #2d2d4e);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; margin-bottom: 14px;
  flex-shrink: 0;
}
.comp-thumb-area--red { background: var(--gradient-card-red); }
.comp-thumb-area--gold { background: var(--gradient-card-gold); }

.comp-body {}
.comp-title { font-size: 14px; font-weight: 600; color: var(--text-white); margin-bottom: 6px; }
.comp-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; }
.comp-ctr-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-secondary); margin-bottom: 5px;
}
.comp-ctr-value { font-weight: 700; color: var(--text-white); }
.comp-ctr-bar-track {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px; overflow: hidden;
}
.comp-ctr-bar {
  height: 100%; width: 0;
  border-radius: 3px;
  transition: width 1s ease;
}

/* ══════════════════════════════════════════════
   SCROLLING SHOWCASE SECTION
═══════════════════════════════════════════════ */
.showcase-section {
  position: relative;
  overflow: hidden;
  padding: 0 0 80px;
}
.showcase-fade-left,
.showcase-fade-right {
  position: absolute; top: 0; bottom: 0; width: 120px;
  z-index: 2; pointer-events: none;
}
.showcase-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}
.showcase-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}
.showcase-row {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  width: max-content;
}
.row-left { animation: scrollLeft 30s linear infinite; }
.row-right { animation: scrollRight 35s linear infinite; margin-top: 12px; }
.showcase-row:hover { animation-play-state: paused; }

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes scrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.showcase-card {
  width: 200px; height: 112px;
  border-radius: 10px; flex-shrink: 0;
  position: relative; overflow: hidden;
}
.showcase-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: rgba(255,255,255,0.85);
  font-size: 11px; font-weight: 500;
  padding: 16px 8px 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, rgba(255,0,0,0.12), rgba(180,0,0,0.08));
  border: 0.5px solid rgba(255,0,0,0.25);
  border-radius: 20px;
  padding: 60px 2rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--text-white); margin-bottom: 1rem; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 2rem; }
.cta-banner .fine-print { color: rgba(255,255,255,0.30); font-size: 12px; margin-top: 1rem; }

/* ══════════════════════════════════════════════
   RESPONSIVE — NEW SECTIONS
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .comparison-grid { grid-template-columns: 1fr 1fr; }
  .showcase-card { width: 150px; height: 84px; }
}
@media (max-width: 480px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .comp-card--best { margin-top: 16px; }
}
