/* ============================================================
   VidBoost — styles
   Light, airy product look. Blue brand accent. Built for X creators.
   Single stylesheet, mobile-first, no heavy effects.
   ============================================================ */

:root {
  /* palette */
  --page: #f1f5f9;
  --page-2: #e8eef6;
  --card: #ffffff;
  --card-soft: #f8fafc;
  --text: #111827;
  --muted: #4b5563;
  --muted-2: #6b7280;
  --line: #e5e7eb;
  --line-soft: #f1f5f9;
  --line-strong: #d1d5db;

  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --accent: #2e79ff;
  --accent-hot: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-line: #bfdbfe;
  --brand-gradient: linear-gradient(180deg, #5a9bff, #2e79ff);
  --brand-shadow: inset 0 -3px 6px rgba(0, 0, 0, .15), inset 0 1px 1px rgba(255, 255, 255, .3), 0 6px 18px rgba(46, 121, 255, .28);

  --ok: #15803d;
  --ok-bg: #f0fdf4;
  --ok-line: #bbf7d0;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;
  --bad: #dc2626;
  --bad-bg: #fef2f2;
  --bad-line: #fecaca;

  /* shape */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 2px 8px rgba(0, 0, 0, .04), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);

  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Archivo', 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1200px;
}

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

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

body {
  font-family: var(--font);
  background: var(--page);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--blue-200); color: var(--text); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 880px; }

/* ---------- shared surfaces ---------- */
.glass {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--blue-700);
  background: var(--card);
  border: 1px solid var(--blue-200);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}

.text-accent { color: var(--blue-600); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 20px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  border-color: rgba(255, 255, 255, .2);
  box-shadow: var(--brand-shadow);
}
.btn-primary:hover {
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .15), inset 0 1px 1px rgba(255, 255, 255, .3), 0 10px 24px rgba(46, 121, 255, .38);
  transform: translateY(-1px);
}

/* X (Twitter) sign-in button — neutral dark, like the reference's dark CTA */
.btn-x {
  background: #111827;
  color: #fff;
  border-color: #111827;
  box-shadow: var(--shadow-sm);
}
.btn-x:hover {
  background: #1f2937;
  border-color: #1f2937;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .22);
  transform: translateY(-1px);
}
.btn-x .x-wrap { display: inline-flex; }
.btn-x .x-icon { width: 17px; height: 17px; }
.btn-x-ghost { background: #fff; color: #111827; border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-x-ghost:hover { box-shadow: var(--shadow-md); }

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  background: var(--card-soft);
  border-color: var(--line-strong);
}

.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 14px; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; border-radius: 10px; }
.btn-xs { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }

.btn-dark {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.btn-dark:hover { background: #1f2937; }

.g-icon-sm { width: 18px; height: 18px; display: inline-grid; place-items: center; }
.g-icon-sm svg { width: 18px; height: 18px; }

.link-quiet {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s ease;
  background: none;
  border: none;
}
.link-quiet:hover { color: var(--text); }

/* ---------- logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #111827;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .2);
}
.logo-mark svg { width: 16px; height: 16px; color: #fff; margin-left: 1px; }
.logo-word { display: inline-block; margin-left: -3px; }
.logo-accent { color: var(--blue-600); }

/* ---------- header: floating pill ---------- */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding: 0 16px;
  pointer-events: none;
}
.header-inner {
  pointer-events: auto;
  max-width: 1160px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 10px 0 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #fbfbfa, #ffffff);
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px -8px rgba(15, 23, 42, .12), 0 1px 2px rgba(15, 23, 42, .04);
}

.nav-links {
  display: flex;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-2);
}
.nav-links a {
  padding: 7px 11px;
  border-radius: 9px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: #f3f4f6; }
.nav-links a.active { color: var(--blue-600); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.burger span {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s cubic-bezier(.2,.7,.3,1), transform .55s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; will-change: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% -140px, rgba(96, 165, 250, .22), transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, var(--page) 62%);
}
.hero-glow { display: none; }
.hero-orbit { display: none; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.badge-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 11px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--blue-200);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-2);
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}
.badge-strong { color: var(--blue-700); font-weight: 600; }
.live-text { font-weight: 700; letter-spacing: .08em; color: var(--blue-700); font-size: 11px; }
.badge-sep { width: 1px; height: 12px; background: var(--line-strong); }
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .16);
  flex: none;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, .16); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, .08); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.9vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero-title .text-accent {
  position: relative;
  display: inline-block;
  color: var(--blue-600);
}
.hero-title .text-accent::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 4px;
  height: 34%;
  border-radius: 4px;
  background: var(--blue-200);
  opacity: .55;
  z-index: -1;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.62;
  color: var(--muted);
  max-width: 530px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.hero-secondary {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s ease;
}
.hero-secondary:hover { color: var(--blue-600); }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted-2);
  font-weight: 500;
}
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5);
  flex: none;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 4.5px, #000 5px);
  mask: radial-gradient(circle at 50% 50%, transparent 4.5px, #000 5px);
}

.hero-social, .hero-social b { color: var(--muted); }

/* ---------- hero mock: dark app window ---------- */
.hero-mock { position: relative; }
.mock-window {
  position: relative;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -28px rgba(15, 23, 42, .35), 0 2px 6px rgba(15, 23, 42, .05);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-bar .dot:nth-child(1) { background: #ff5f57; }
.mock-bar .dot:nth-child(2) { background: #febc2e; }
.mock-bar .dot:nth-child(3) { background: #28c840; }
.mock-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-url svg { width: 10px; height: 10px; flex: none; color: var(--text); }

.mock-body {
  padding: 18px;
  background: #0b1220;
  color: #e2e8f0;
  font-size: 12.5px;
}
.blurred { filter: none; }

.mock-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mock-label { font-size: 11px; color: #94a3b8; font-weight: 500; }
.mock-big {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.mock-up {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74, 222, 128, .12);
  padding: 2px 7px;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 4px;
}

.score-ring { position: relative; width: 60px; height: 60px; flex: none; }
.score-ring.big { width: 104px; height: 104px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(226, 232, 240, .12); stroke-width: 9; }
.ring-fg {
  fill: none;
  stroke: url(#none);
  stroke: #60a5fa;
  stroke-width: 9;
  stroke-linecap: round;
}
.score-ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.score-cap {
  font-size: 8px;
  color: #94a3b8;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  margin-top: 2px;
}

.mock-chart { height: 112px; margin: 12px 0 12px; }
.mock-chart svg { width: 100%; height: 100%; }

.mock-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, .12);
  border: 1px solid rgba(148, 163, 184, .18);
  color: #cbd5e1;
}
.tag.hot { color: #93c5fd; background: rgba(59, 130, 246, .16); border-color: rgba(96, 165, 250, .3); }

.mock-rows { display: grid; gap: 9px; }
.mock-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
}
.mock-row .bar {
  height: 5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #60a5fa, rgba(96, 165, 250, .15));
  width: var(--w);
}
.mock-row b { font-weight: 500; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row em { font-style: normal; color: #4ade80; font-weight: 600; font-size: 11px; }

.mock-lock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.mock-lock p { font-size: 12.5px; font-weight: 600; color: var(--text); margin-right: auto; }
.lock-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  color: var(--blue-600);
  flex: none;
}
.lock-icon svg { width: 17px; height: 17px; }
.lock-icon.big { width: 56px; height: 56px; border-radius: 16px; }
.lock-icon.big svg { width: 26px; height: 26px; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 13px;
  box-shadow: var(--shadow-md);
  animation: floaty 7s ease-in-out infinite;
}
.float-card b { color: var(--text); font-weight: 600; }
.float-card svg { width: 14px; height: 14px; color: var(--ok); }
.float-a { bottom: 74px; left: -30px; }
.float-b { top: -16px; right: -18px; animation-delay: -3.5s; }
.float-a .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- strip ---------- */
.strip { padding: 0 0 8px; background: var(--page); }
.strip-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted-2);
}
.strip-inner > span { font-weight: 600; font-size: 12.5px; }
.strip-items { display: flex; flex-wrap: wrap; gap: 10px 34px; }
.strip-items span { font-weight: 600; font-size: 14.5px; color: #94a3b8; letter-spacing: -0.01em; }

/* ---------- sections ---------- */
.section { padding: 76px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 12px;
  text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.6; }

.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- feature cards ---------- */
.feature-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.feature-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.feature-top { display: flex; align-items: center; justify-content: space-between; }
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  color: var(--blue-600);
}
.feature-icon svg { width: 20px; height: 20px; }

.badge-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--card-soft);
  border: 1px solid var(--line);
  color: var(--muted-2);
}
.badge-lock svg { width: 11px; height: 11px; }

.feature-card h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.02em; }
.feature-card > p { color: var(--muted); font-size: 14px; line-height: 1.62; }

.feature-mock {
  margin-top: 6px;
  border-radius: 12px;
  background: #0b1220;
  border: 1px solid #1e293b;
  padding: 12px;
  height: 92px;
  overflow: hidden;
  position: relative;
}
.feature-mock.blurred { filter: none; }
.feature-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 18, 32, .8));
  pointer-events: none;
  z-index: 1;
}
.feature-metric {
  position: absolute;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  background: rgba(15, 23, 42, .9);
  border: 1px solid #334155;
  border-radius: 9px;
  padding: 5px 9px;
}
.feature-metric b { font-size: 15px; color: #93c5fd; font-family: var(--font-display); }
.feature-metric span { font-size: 9px; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

.mini-svg { width: 100%; height: 100%; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 100%; }
.mini-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: rgba(148, 163, 184, .3); }
.mini-bars i:last-child { background: #60a5fa; }
.mini-bars.large { height: 110px; gap: 8px; }
.mini-list { display: grid; gap: 9px; }
.mini-list div { display: flex; align-items: center; gap: 8px; }
.mini-list span { width: 22px; height: 22px; border-radius: 6px; background: rgba(148, 163, 184, .3); flex: none; }
.mini-list b { height: 8px; border-radius: 4px; background: rgba(148, 163, 184, .3); flex: 1; }
.mini-list em { width: 26px; height: 8px; border-radius: 4px; background: rgba(96, 165, 250, .6); }
.mini-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-tags span {
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, .16);
  color: #cbd5e1;
}

/* ---------- stats ---------- */
.section-stats { padding: 8px 0 76px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stat-card { padding: 26px; position: relative; overflow: hidden; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 260px; line-height: 1.5; }
.stat-spark { display: flex; align-items: flex-end; gap: 4px; height: 32px; margin-top: 18px; }
.stat-spark i { flex: 1; height: var(--h); background: linear-gradient(180deg, #93c5fd, #dbeafe); border-radius: 3px 3px 0 0; }
.stats-note { text-align: center; color: var(--muted-2); font-size: 12.5px; margin-top: 20px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { padding: 26px; position: relative; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 18px; margin: 14px 0 8px; font-weight: 600; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- tools ---------- */
.section-calc {
  background: linear-gradient(180deg, var(--page) 0%, #eef3fa 40%, var(--page) 100%);
}
.calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.calc-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
  transition: box-shadow .25s ease;
}
.calc-card:focus-within { box-shadow: var(--shadow-md); }
.calc-card > * { min-width: 0; max-width: 100%; }
.calc-head { display: flex; align-items: center; gap: 11px; }
.calc-head h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.calc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  color: var(--blue-600);
}
.calc-icon svg { width: 17px; height: 17px; }

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.field-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.field-row-col { flex-direction: column; align-items: stretch; gap: 7px; }

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--fill, 30%), #e5e7eb var(--fill, 30%), #e5e7eb 100%);
  outline: none;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .2);
  transition: transform .15s ease;
  cursor: grab;
}
.range::-webkit-slider-thumb:hover { transform: scale(1.1); }
.range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .2);
  cursor: grab;
}

.select {
  width: 100%;
  padding: 10px 38px 10px 13px;
  border-radius: 10px;
  background-color: #fff;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 17px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.select option { background: #fff; color: var(--text); }
.select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }

.calc-result {
  margin-top: auto;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.calc-result > span { font-size: 12px; color: var(--blue-700); font-weight: 600; }
.calc-result strong {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.calc-result small { font-size: 12px; color: var(--muted); }

/* ---------- reviews ---------- */
/* (removed in v2.1 — the site no longer shows invented testimonials) */

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.plan.featured {
  border: 2px solid var(--blue-400);
  box-shadow: 0 20px 48px -20px rgba(46, 121, 255, .45), var(--shadow);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(46, 121, 255, .35);
}
.plan h3 { font-size: 19px; font-weight: 600; }
.plan-tagline { font-size: 13.5px; color: var(--muted); }
.plan-price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 8px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--text);
}
.plan-currency { font-size: 22px; color: var(--muted-2); margin-right: 1px; }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--muted-2); margin-left: 3px; }
.plan-features { list-style: none; display: grid; gap: 10px; margin: 14px 0 22px; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.plan-features svg { width: 16px; height: 16px; color: var(--blue-600); margin-top: 2px; flex: none; }
.plan-note { font-size: 11.5px; color: var(--muted-2); text-align: center; margin-top: 10px; }

.pricing-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.pricing-note a { color: var(--blue-600); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { padding: 0 20px; overflow: hidden; }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 18px; height: 18px; color: var(--muted-2); transition: transform .2s ease; flex: none; }
.faq-item[open] summary svg { transform: rotate(180deg); color: var(--blue-600); }
.faq-item p { color: var(--muted); font-size: 14.5px; line-height: 1.65; padding: 0 0 18px; max-width: 92%; }

/* ---------- final CTA ---------- */
.final-cta {
  position: relative;
  text-align: center;
  padding: 64px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 260px at 50% -80px, rgba(96, 165, 250, .25), transparent 70%),
    #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.final-glow { display: none; }
.final-cta h2 {
  position: relative;
  font-size: clamp(28px, 3.8vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
}
.final-cta p { position: relative; color: var(--muted); margin-bottom: 26px; font-size: 16px; }
.final-cta p b { color: var(--text); font-variant-numeric: tabular-nums; }
.final-cta .btn { position: relative; margin-bottom: 14px; }
.final-social { font-size: 13.5px; color: var(--muted-2) !important; margin-bottom: 0 !important; }
.final-social b { color: var(--text) !important; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 30px;
  background: #fff;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--muted-2); }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 12.5px; color: var(--muted-2); }

/* ---------- modal ---------- */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-root.open { opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.modal {
  position: relative;
  width: 100%;
  max-width: 430px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(.98);
  transition: transform .22s cubic-bezier(.2,.8,.3,1);
  text-align: center;
}
.modal-root.open .modal { transform: none; }
.modal h3 { font-size: 20px; margin-bottom: 10px; font-weight: 600; }
.modal-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.modal-cta { margin: 20px 0 12px; }
.modal-cta .btn { width: 100%; }
.modal-note { font-size: 12.5px !important; color: var(--muted-2) !important; }
.modal-note a { color: var(--blue-600); font-weight: 600; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted-2);
  font-size: 20px;
  line-height: 1;
}
.modal-close:hover { color: var(--text); border-color: var(--line-strong); }

.notif-list { display: grid; gap: 9px; text-align: left; margin-top: 10px; }
.notif-list div { padding: 12px 14px; border-radius: 11px; background: var(--card-soft); border: 1px solid var(--line); }
.notif-list b { display: block; font-size: 13.5px; margin-bottom: 2px; font-weight: 600; }
.notif-list span { font-size: 12.5px; color: var(--muted); }

body.modal-open { overflow: hidden; }

/* ============================================================
   AUTH PAGE
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(760px 420px at 50% -120px, rgba(96, 165, 250, .2), transparent 70%),
    var(--page);
}
.auth-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.auth-glow { display: none; }
.auth-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 70%);
}
.auth-back {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted-2);
  transition: color .15s ease;
}
.auth-back:hover { color: var(--text); }
.auth-back svg { width: 16px; height: 16px; }

.auth-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 20px 40px;
}
.auth-card {
  width: 100%;
  max-width: 430px;
  padding: 34px 32px 26px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(15, 23, 42, .25), var(--shadow);
  animation: cardIn .5s cubic-bezier(.2,.8,.3,1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.auth-logo { margin-bottom: 20px; }
.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--blue-700);
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  margin-bottom: 18px;
}
.auth-status b { color: var(--blue-700); font-variant-numeric: tabular-nums; font-weight: 600; }
.auth-card h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 24px; }

.btn-x.btn-lg { position: relative; padding: 14px 24px; font-size: 15.5px; }
.btn-x.loading .btn-x-label { opacity: .75; }
.btn-x .spinner {
  display: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn-x.loading .x-wrap { display: none; }
.btn-x.loading .spinner { display: inline-block; }
.btn-x.loading { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-note { font-size: 12.5px; color: var(--muted-2); margin-top: 14px; line-height: 1.55; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.auth-perks { list-style: none; display: grid; gap: 10px; text-align: left; }
.auth-perks li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.auth-perks svg { width: 15px; height: 15px; color: var(--blue-600); flex: none; }

.auth-social {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.auth-social b { color: var(--text); font-variant-numeric: tabular-nums; }
.auth-social a { color: var(--blue-600); font-weight: 600; }
.auth-legal { margin-top: 20px; font-size: 12px; color: var(--muted-2); text-align: center; }
.auth-legal a { color: var(--muted); text-decoration: underline; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-page { display: flex; min-height: 100vh; background: var(--page); }

.sidebar {
  width: 260px;
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 60;
  transition: transform .28s cubic-bezier(.2,.8,.3,1);
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 0; }
.sidebar-close {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted-2);
  font-size: 20px;
  line-height: 1;
}

.account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  padding: 9px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-soft);
  color: inherit;
  text-align: left;
  width: 100%;
  transition: background .15s ease, border-color .15s ease;
}
.account:hover { background: #f3f6fa; border-color: var(--line-strong); }
.account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  object-fit: cover;
  background: var(--brand-gradient);
  color: #fff;
}
.account-info { display: flex; flex-direction: column; min-width: 0; }
.account-info b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-plan { font-size: 11.5px; color: var(--muted-2); }
.account-initial { color: #fff; }

.side-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.side-nav::-webkit-scrollbar { width: 4px; }
.side-nav::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.side-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 16px 10px 6px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.side-link svg { width: 17px; height: 17px; flex: none; }
.side-link:hover { background: #f3f4f6; color: var(--text); }
.side-link.active {
  background: var(--accent-soft);
  color: var(--blue-700);
  font-weight: 600;
}
.side-link.active svg { color: var(--blue-600); }
.side-link .mini-lock { margin-left: auto; font-size: 10px; opacity: .7; }

.sidebar-foot { padding-top: 12px; border-top: 1px solid var(--line); }
.plan-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
}
.plan-chip div { display: flex; flex-direction: column; line-height: 1.25; }
.plan-chip span { font-size: 10.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.plan-chip b { font-size: 14px; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .35);
  z-index: 55;
}

.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 24px;
  background: rgba(255, 255, 255, .85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.sidebar-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  place-items: center;
}
.sidebar-toggle svg { width: 20px; height: 20px; }

.dash-head-search {
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dash-head-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.dash-head-search svg { width: 16px; height: 16px; color: var(--muted-2); flex: none; }
.dash-head-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13.5px;
}
.dash-head-search input::placeholder { color: var(--muted-2); }
.dash-head-search kbd {
  font-size: 10.5px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  background: #fff;
}
.dash-head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  color: var(--blue-700);
}
.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: color .15s ease, border-color .15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 17px; height: 17px; }
.notif-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bad);
  box-shadow: 0 0 0 2px #fff;
}

.dash-content { padding: 26px; max-width: 1240px; width: 100%; margin: 0 auto; }
.view { animation: viewIn .25s ease; }
.view[hidden] { display: none !important; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.view-head h1 { font-size: clamp(22px, 2.5vw, 29px); font-weight: 700; letter-spacing: -0.03em; }
.view-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.dash-h2 { font-size: 17px; font-weight: 600; margin: 26px 0 14px; }

.activation-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--blue-200);
  background: var(--accent-soft);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.ab-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--blue-200);
  color: var(--blue-600);
}
.ab-icon svg { width: 20px; height: 20px; }
.ab-body { display: flex; flex-direction: column; gap: 2px; }
.ab-body b { font-size: 14px; font-weight: 600; }
.ab-body span { font-size: 13px; color: var(--muted); }
.ab-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(59, 130, 246, .12); }
.ab-progress i { display: block; height: 100%; width: 38%; background: var(--brand-gradient); animation: progress 3.2s ease-in-out infinite alternate; }
@keyframes progress { from { width: 22%; } to { width: 64%; } }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 17px 18px; display: flex; flex-direction: column; gap: 5px; position: relative; overflow: hidden; }
.kpi-label { font-size: 12.5px; color: var(--muted-2); font-weight: 500; }
.kpi-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.locked-val { filter: blur(3.5px); user-select: none; opacity: .9; }
.kpi-delta {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  margin-top: 2px;
}
.kpi-delta.up { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }

.dash-grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.panel { padding: 18px 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.panel-tag {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--blue-700);
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  border-radius: 6px;
  padding: 2px 7px;
}
.seg { display: flex; gap: 2px; background: var(--card-soft); border: 1px solid var(--line); padding: 3px; border-radius: 9px; }
.seg button {
  border: none;
  background: none;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.seg button.active { background: #fff; color: var(--text); box-shadow: var(--shadow-xs); }

.big-chart { position: relative; height: 200px; }
.big-chart svg { width: 100%; height: 100%; }
.blur-soft { filter: blur(3px); }
.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, .55);
  border-radius: 12px;
}
.lock-overlay p { font-size: 12.5px; color: var(--text); font-weight: 600; }

.score-block { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.score-ring.big { width: 104px; height: 104px; }
.score-ring.big .ring-bg { stroke: var(--line-soft); }
.score-ring.big .ring-fg { stroke: var(--accent); }
.score-ring.big .score-num { font-size: 30px; color: var(--text); }
.score-ring.big .score-cap { color: var(--muted-2); font-size: 9px; }
.score-copy { font-size: 13px; color: var(--muted); line-height: 1.55; }
.score-copy b { color: var(--text); }

.mini-rows { display: grid; gap: 8px; }
.mini-rows div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--card-soft);
  border: 1px solid var(--line-soft);
}
.mini-rows b { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-rows em { font-style: normal; color: var(--ok); font-weight: 600; flex: none; }

.dash-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dash-feature {
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.dash-feature:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.dash-feature h3 { font-size: 14.5px; margin-top: 2px; font-weight: 600; }
.dash-feature > p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.feature-mock.mini { height: 52px; padding: 8px; margin-top: auto; }
.feature-mock.mini .mini-bars { gap: 4px; }

.saved-list { display: grid; gap: 8px; }
.saved-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card-soft);
  border: 1px solid var(--line-soft);
}
.saved-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  background: var(--accent-soft);
  color: var(--blue-600);
}
.saved-row div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; flex: 1; }
.saved-row b { font-size: 13px; font-weight: 600; }
.saved-row div span { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-row em { font-style: normal; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted-2); font-size: 13px; }
.link-btn {
  background: none;
  border: none;
  color: var(--blue-600);
  font-size: 12.5px;
  font-weight: 600;
  padding: 0;
}
.link-btn:hover { color: var(--blue-700); text-decoration: underline; }

.roadmap { list-style: none; display: grid; gap: 4px; }
.roadmap li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.roadmap li:last-child { border-bottom: none; }
.roadmap b { font-weight: 500; }
.roadmap span { margin-left: auto; font-size: 11.5px; color: var(--muted-2); }
.rd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.rd-dot.done { background: #22c55e; }

.upsell {
  margin-top: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-color: var(--blue-200);
  background: var(--accent-soft);
}
.upsell h3 { font-size: 17px; margin-bottom: 4px; font-weight: 600; }
.upsell p { font-size: 13.5px; color: var(--muted); max-width: 520px; }

.locked-screen { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 480px; }
.locked-mock { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; padding: 14px; background: var(--card-soft); border-radius: var(--radius); }
.locked-mock .panel { padding: 16px; }
.feed { display: grid; gap: 10px; }
.feed-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-soft);
}
.feed-thumb { width: 40px; height: 28px; border-radius: 6px; background: linear-gradient(140deg, #93c5fd, #dbeafe); }
.feed-row div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.feed-row b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.feed-row div span { font-size: 11px; color: var(--muted-2); }
.feed-row em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); }
.locked-mock .mini-bars { height: 220px; }

.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 30px;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .96), rgba(255, 255, 255, .72) 70%);
}
.locked-overlay h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.03em; }
.locked-overlay p { color: var(--muted); font-size: 14px; margin-bottom: 4px; }

/* ---------- dashboard header extras ---------- */
.dash-head-channel { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash-head-channel img { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; }
.dash-head-channel div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dash-head-channel b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-head-channel span { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.verify-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 26px 0;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn);
}
.verify-banner svg { width: 20px; height: 20px; flex: none; }
.verify-banner div { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.verify-banner b { color: #78350f; font-size: 13.5px; font-weight: 600; }
.verify-banner span { font-size: 12.5px; color: #92400e; }

.signout-float { position: fixed; bottom: 18px; right: 18px; z-index: 30; }
.signout-float .link-quiet {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* ---------- onboarding ---------- */
.onboarding { min-height: 100vh; display: flex; justify-content: center; padding: 28px 20px 56px; background: var(--page); }
.onboarding-inner { width: 100%; max-width: 560px; }
.onboarding-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.stepper-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted-2);
}
.stepper-dot.active { background: var(--brand-gradient); border-color: transparent; color: #fff; box-shadow: var(--brand-shadow); }
.stepper-line { flex: 1; height: 1px; background: var(--line); }

.onboarding-card { padding: 30px; }
.onboarding-card h1 { font-size: 25px; letter-spacing: -0.03em; margin-bottom: 6px; font-weight: 700; }
.onboarding-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.ob-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 16px 0 7px; }
.ob-search { display: flex; gap: 10px; }
.ob-search .text-input { flex: 1; }
.ob-search .btn { flex: none; }
.ob-search .btn.loading-btn { opacity: .7; pointer-events: none; }
.ob-hint { font-size: 12px; color: var(--muted-2); margin-top: 7px; }
.suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; font-size: 12px; color: var(--muted-2); }
.suggestions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  transition: color .15s ease, border-color .15s ease;
}
.suggestions button:hover { color: var(--blue-600); border-color: var(--blue-200); }

.found-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding: 13px;
  border-radius: 13px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  cursor: pointer;
  animation: viewIn .25s ease;
}
.found-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.found-info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.found-info b { font-size: 14.5px; font-weight: 600; }
.found-info span { font-size: 12.5px; color: var(--muted); }
.found-stats { color: var(--muted-2) !important; font-size: 12px !important; }

.profile-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.profile-cover { height: 84px; background: linear-gradient(120deg, #bfdbfe, #93c5fd, #c7d2fe); }
.profile-body { display: flex; align-items: flex-end; gap: 13px; padding: 0 18px; margin-top: -30px; }
.profile-avatar { width: 68px; height: 68px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; background: var(--card-soft); }
.profile-names { display: flex; flex-direction: column; padding-bottom: 6px; line-height: 1.3; min-width: 0; }
.profile-names b { font-size: 17px; font-weight: 600; }
.profile-names span { font-size: 12.5px; color: var(--muted); }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 16px; background: var(--line); }
.profile-stats div { background: #fff; padding: 13px 16px; display: flex; flex-direction: column; gap: 2px; }
.profile-stats b { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.profile-stats span { font-size: 11.5px; color: var(--muted-2); }

.ob-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.verification {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 12.5px;
  line-height: 1.5;
}
.verification svg { width: 17px; height: 17px; flex: none; }
.verification.ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: #166534; }
.verification.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: #92400e; }
.verification b { color: inherit; font-weight: 600; }
.onboarding-foot { text-align: center; margin-top: 22px; font-size: 12.5px; color: var(--muted-2); }
.onboarding-foot a { color: var(--muted); text-decoration: underline; }

/* ---------- dashboard blocks ---------- */
.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  font-size: 11.5px;
  color: var(--muted-2);
}
.stat-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat-inline div {
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  background: var(--card-soft);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-inline b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-inline span { font-size: 10.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; }

.summary-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.summary-tile { padding: 17px 18px; display: flex; flex-direction: column; gap: 2px; }
.summary-tile b { font-family: var(--font-display); font-size: 25px; letter-spacing: -0.03em; font-weight: 700; }
.summary-tile span { font-size: 12px; color: var(--muted-2); }

.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted-2);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--card-soft); }
.td-video { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.td-video b { font-weight: 500; }
.video-dot {
  width: 24px;
  height: 18px;
  border-radius: 5px;
  flex: none;
  background: linear-gradient(140deg, #93c5fd, #dbeafe);
  border: 1px solid var(--blue-200);
}
.td-up { color: var(--ok); font-weight: 600; }
.td-muted { color: var(--muted-2); }
.score-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  color: var(--blue-700);
  font-weight: 600;
  font-size: 12px;
}
.data-table .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.total-row td { font-weight: 700; border-top: 1px solid var(--line-strong); }
.table-wrap { overflow-x: auto; }

.competitor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.competitor-card { padding: 17px; display: flex; flex-direction: column; gap: 13px; }
.comp-head { display: flex; align-items: center; gap: 10px; }
.comp-head div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.comp-head b { font-size: 14px; font-weight: 600; }
.comp-head span { font-size: 11.5px; color: var(--muted-2); }
.comp-head .btn { margin-left: auto; flex: none; }
.comp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  color: var(--blue-700);
}
.comp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.comp-stats div { display: flex; flex-direction: column; gap: 1px; }
.comp-stats b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.comp-stats span { font-size: 10.5px; color: var(--muted-2); }
.comp-topics { font-size: 11.5px; color: var(--blue-700); background: var(--accent-soft); border: 1px solid var(--blue-100); border-radius: 8px; padding: 7px 10px; }
.btn.tracked { border-color: var(--ok-line); color: var(--ok); background: var(--ok-bg); }

.seo-panel { padding: 22px; }
.seo-input { display: flex; gap: 10px; }
.seo-input .text-input { flex: 1; }
.seo-result { margin-top: 20px; display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: start; }
.seo-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 10px;
  border-radius: 13px;
  background: var(--card-soft);
  border: 1px solid var(--line);
}
.seo-score b { font-family: var(--font-display); font-size: 42px; font-weight: 700; line-height: 1; }
.seo-score span { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.seo-checks { list-style: none; display: grid; gap: 9px; }
.seo-checks li { display: flex; gap: 10px; font-size: 13px; }
.seo-checks svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.seo-checks li.ok { color: var(--text); }
.seo-checks li.ok svg { color: var(--ok); }
.seo-checks li.bad svg { color: var(--bad); }
.seo-checks li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.seo-checks li b { font-weight: 500; }
.seo-checks li span { font-size: 12px; color: var(--muted-2); }

.idea-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.idea-card { padding: 18px; display: flex; flex-direction: column; gap: 9px; position: relative; animation: viewIn .25s ease; }
.idea-num { font-size: 11px; font-weight: 700; color: var(--blue-600); letter-spacing: .08em; }
.idea-card h3 { font-size: 15px; line-height: 1.4; font-weight: 600; }
.idea-card p { font-size: 12.5px; color: var(--muted); flex: 1; line-height: 1.55; }
.idea-bars { display: grid; gap: 6px; }
.idea-bars div { display: grid; grid-template-columns: 66px 1fr 26px; align-items: center; gap: 8px; font-size: 11px; color: var(--muted-2); }
.idea-bars i { height: 6px; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--accent), #bfdbfe); width: var(--w); }
.idea-bars i.alt { background: linear-gradient(90deg, #a5b4fc, #e0e7ff); }
.idea-bars b { text-align: right; color: var(--text); font-weight: 600; }
.idea-card .btn { align-self: flex-start; }

.planner { padding: 4px; }
.pl-head { font-size: 15px; font-weight: 700; padding: 6px 6px 12px; font-family: var(--font-display); }
.pl-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pl-dow { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); text-align: center; padding-bottom: 4px; font-weight: 600; }
.pl-cell {
  min-height: 62px;
  border-radius: 9px;
  padding: 6px 7px;
  background: var(--card-soft);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pl-cell.empty { background: transparent; border-color: transparent; }
.pl-cell span { font-size: 12px; color: var(--muted); font-weight: 500; }
.pl-cell.today { border-color: var(--blue-400); background: var(--accent-soft); }
.pl-cell.today span { color: var(--blue-700); font-weight: 700; }
.pl-cell.slot { background: var(--accent-soft); border-color: var(--blue-100); }
.pl-cell em { font-style: normal; font-size: 10px; color: var(--blue-700); font-weight: 500; line-height: 1.25; }
.pl-legend { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted-2); padding: 12px 6px 2px; }
.dot-slot { width: 10px; height: 10px; border-radius: 3px; background: var(--blue-200); flex: none; }

/* ---------- revenue page ---------- */
.rev-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.rev-controls { display: flex; flex-direction: column; gap: 10px; }
.rev-summary { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.rev-eyebrow { font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.rev-big {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.rev-year { color: var(--muted); font-size: 13.5px; }
.rev-bar { display: flex; height: 10px; border-radius: var(--radius-pill); overflow: hidden; background: var(--line-soft); margin: 12px 0; gap: 2px; }
.rev-bar i { display: block; height: 100%; }
.rev-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); }
.rev-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rev-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.rev-legend b { color: var(--text); }
.rev-extra {
  margin-top: 8px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  font-size: 12.5px;
  color: var(--blue-700);
}

/* ---------- referral teaser (landing) ---------- */
.referral-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(96, 165, 250, .16), transparent 70%),
    #fff;
  box-shadow: var(--shadow);
}
.referral-teaser-body h2 { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.03em; margin-bottom: 12px; }
.referral-teaser-body p { color: var(--muted); font-size: 15.5px; line-height: 1.62; margin-bottom: 22px; max-width: 520px; }
.referral-teaser-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card-soft);
}
.rt-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.rt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.rt-row b { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }
.rt-row small { font-size: 11.5px; font-weight: 500; color: var(--muted-2); }

/* ---------- referral page ---------- */
.ref-hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(900px 400px at 25% -120px, rgba(96, 165, 250, .22), transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, var(--page) 70%);
}
.ref-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.ref-hero-copy h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.ref-hero-copy > p { color: var(--muted); font-size: 16.5px; line-height: 1.65; max-width: 540px; margin-bottom: 28px; }

.ref-hero-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgba(15, 23, 42, .3);
}
.ref-commission { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ref-commission-label { display: block; font-size: 12.5px; color: var(--muted-2); font-weight: 500; margin-bottom: 6px; }
.ref-commission-num {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--blue-600);
}
.ref-commission-num small { font-family: var(--font); font-size: 13.5px; font-weight: 500; color: var(--muted-2); letter-spacing: 0; margin-left: 8px; }

.ref-mini-table { margin-top: 16px; }
.ref-mini-head, .ref-mini-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 9px 0; font-size: 13.5px; }
.ref-mini-head { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-weight: 600; }
.ref-mini-row { border-top: 1px solid var(--line-soft); color: var(--muted); }
.ref-mini-row b { color: var(--ok); font-weight: 600; text-align: left; }
.ref-mini-head span:last-child, .ref-mini-row b { text-align: right; }
.ref-mini-head span:nth-child(2), .ref-mini-row span:nth-child(2) { text-align: center; }
.ref-example {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  font-size: 13px;
  color: var(--blue-700);
}
.ref-example b { font-family: var(--font-display); font-size: 18px; color: var(--text); }

.apply-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
.apply-copy h2 { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.03em; margin-bottom: 12px; }
.apply-copy p { color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 460px; }
.apply-list { list-style: none; display: grid; gap: 9px; margin-top: 22px; }
.apply-list li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.apply-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5);
  flex: none;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 5.5px, #000 6px);
  mask: radial-gradient(circle at 50% 50%, transparent 5.5px, #000 6px);
}
.apply-form { padding: 26px; }
.apply-form .ob-label:first-child { margin-top: 0; }
.apply-form .btn { margin-top: 18px; }
.apply-form .tool-note { margin-top: 10px; text-align: center; }
.apply-form .form-error { margin-top: 12px; }

.apply-success { max-width: 520px; margin: 0 auto; padding: 32px; text-align: center; }
.apply-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  color: var(--ok);
}
.apply-success-icon svg { width: 22px; height: 22px; }
.apply-success h3 { font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.apply-success p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }

.ref-terms-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.ref-h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.03em; margin-bottom: 18px; }
.terms-list { list-style: none; display: grid; gap: 12px; }
.terms-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.terms-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
}

/* ---------- text inputs ---------- */
.invite-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.invite-input { text-align: center; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.text-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.text-input::placeholder { color: #9ca3af; }
.text-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
.text-input.invalid { border-color: var(--bad); }
.form-error { color: var(--bad); font-size: 12.5px; text-align: left; }

.textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.calc-card .text-input + .text-input { margin-top: 8px; }

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
}
.check-row input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

.tool-note { font-size: 12px; color: var(--muted-2); }
.tool-tip {
  font-size: 12.5px;
  color: var(--blue-700);
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  border-radius: 10px;
  padding: 11px 13px;
  margin-top: auto;
  line-height: 1.5;
}
.tool-tip b { color: var(--text); }

/* ---------- contact page ---------- */
.contact-page { min-height: 100vh; display: flex; flex-direction: column; }
.contact-page main { flex: 1; }
.contact-hero { position: relative; overflow: hidden; padding-top: 56px; }
.contact-glow { display: none; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.contact-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.contact-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  color: var(--blue-600);
}
.contact-ico svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: 12px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; font-family: var(--font); }
.contact-card b { font-size: 16.5px; font-weight: 600; word-break: break-word; }
.contact-card span { font-size: 13px; color: var(--muted); }
.contact-cta { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.contact-cta h3 { font-size: 18px; margin-bottom: 4px; font-weight: 600; }
.contact-cta p { color: var(--muted); font-size: 14px; }
.contact-mail {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
  color: var(--blue-700);
  font-weight: 600;
  font-size: 14.5px;
}

/* ---------- hook lab ---------- */
.hook-list { display: grid; gap: 8px; max-height: 270px; overflow-y: auto; padding-right: 2px; }
.hook-list::-webkit-scrollbar { width: 5px; }
.hook-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.hook-item {
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--card-soft);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: viewIn .2s ease;
}
.hook-item p { font-size: 12.5px; color: var(--text); line-height: 1.5; }
.hook-meta { display: flex; align-items: center; gap: 12px; font-size: 10.5px; color: var(--muted-2); font-weight: 500; }
.hook-meta .link-btn { margin-left: auto; }

/* ---------- humanize checker ---------- */
.human-result { display: grid; grid-template-columns: 110px 1fr; gap: 14px; animation: viewIn .25s ease; align-items: start; }
.human-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  border-radius: 12px;
  background: var(--card-soft);
  border: 1px solid var(--line);
}
.human-score b { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1; }
.human-score span { font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-top: 5px; text-align: center; }
.human-score small { font-size: 10.5px; color: var(--muted-2); margin-top: 4px; text-align: center; }

.calc-result-mini { padding: 12px 14px; }
.calc-result-mini strong { font-size: 22px; }
.calc-card .seo-checks.compact { gap: 7px; }
.calc-card .seo-checks.compact li { font-size: 12px; }
.calc-card .seo-checks.compact svg { width: 15px; height: 15px; }
.calc-card .seo-checks { max-height: 230px; overflow-y: auto; }

/* ---------- dashboard: post checker / profile audit ---------- */
.seo-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.seo-input .textarea { flex: 1; }
.profile-form { display: flex; flex-direction: column; }
.profile-form .ob-label:first-child { margin-top: 0; }

/* ---------- dashboard: referrals ---------- */
.ref-link-panel { margin-bottom: 16px; padding: 18px 20px; }
.ref-link-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.ref-link-row { display: flex; gap: 10px; }
.ref-link-row .text-input {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--card-soft);
  color: var(--muted);
}
.ref-link-row .btn { flex: none; }
.ref-link-panel .tool-note { margin-top: 8px; }

.ref-chart { height: 190px; }
.ref-chart svg { width: 100%; height: 170px; }

.ref-rates { display: grid; gap: 8px; }
.ref-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--card-soft);
  border: 1px solid var(--line-soft);
}
.ref-rate-row div { display: flex; flex-direction: column; line-height: 1.3; }
.ref-rate-row div b { font-size: 13.5px; font-weight: 600; }
.ref-rate-row div span { font-size: 11.5px; color: var(--muted-2); }
.ref-rate-row > b { font-family: var(--font-display); font-size: 17px; color: var(--ok); font-variant-numeric: tabular-nums; }
.ref-rate-row > b small { font-family: var(--font); font-size: 11px; font-weight: 500; color: var(--muted-2); }
.ref-rates .tool-note { margin-top: 4px; padding: 0 2px; }

.ref-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}
.ref-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ref-status.off { color: var(--muted-2); background: var(--card-soft); border-color: var(--line); }
.ref-earn { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- referral page: "how your link works" card ---------- */
.ref-os-steps { display: grid; gap: 14px; }
.ref-os-row { display: flex; align-items: flex-start; gap: 12px; }
.ref-os-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-700);
  background: var(--accent-soft);
  border: 1px solid var(--blue-200);
}
.ref-os-row div { display: flex; flex-direction: column; gap: 1px; }
.ref-os-row b { font-size: 14px; font-weight: 600; }
.ref-os-row span { font-size: 13px; color: var(--muted); }
.apply-form .btn { margin-top: 20px; }
.apply-form .tool-note { text-align: center; }
.apply-form .tool-note a { color: var(--blue-600); font-weight: 600; }

/* ---------- small fixes ---------- */
.btn .x-icon { flex: none; }
.contact-mail { word-break: break-all; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .referral-teaser { grid-template-columns: 1fr; gap: 26px; padding: 32px; }
  .ref-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .ref-hero-card { max-width: 520px; }
  .apply-grid, .ref-terms-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-mock { max-width: 620px; margin: 0 auto; width: 100%; }
  .float-a { left: 6px; bottom: 76px; }
  .float-b { right: 6px; top: -14px; }
  .grid-3, .calc-grid, .pricing-grid, .steps, .stats-grid { grid-template-columns: 1fr 1fr; }
  .calc-wide { grid-column: 1 / -1; }
  .calc-grid .calc-card:last-child { grid-column: 1 / -1; }
  .calc-cols { grid-template-columns: 1fr; }
  .dash-features { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid-2 { grid-template-columns: 1fr; }
  .locked-mock { grid-template-columns: 1fr; }
  .idea-grid, .competitor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .rev-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .site-header { top: 8px; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 11px 12px; font-size: 15px; }
  .burger { display: flex; }
  .header-actions .btn-sm { display: none; }
  .header-actions .link-quiet { display: none; }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 20px 0 60px rgba(15, 23, 42, .16);
  }
  .sidebar.open { transform: none; }
  .sidebar-close { display: grid; place-items: center; }
  .sidebar-overlay.show { display: block; }
  .sidebar-toggle { display: grid; }
  .dash-header { padding: 0 14px; }
  .dash-content { padding: 20px 16px 40px; }
  .verify-banner { margin: 14px 16px 0; flex-wrap: wrap; }
  .onboarding { padding: 20px 16px 48px; }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 15px; }

  .header-inner { height: 56px; padding: 0 8px 0 14px; gap: 10px; }
  .hero { padding: 34px 0 52px; }
  .hero-sub { font-size: 15.5px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn-lg { width: 100%; }
  .hero-secondary { width: 100%; text-align: center; }
  .hero-points { margin-top: 22px; gap: 6px 16px; font-size: 12.5px; }

  .grid-3, .calc-grid, .pricing-grid, .steps, .stats-grid,
  .idea-grid, .competitor-grid, .contact-grid, .summary-row { grid-template-columns: 1fr; }
  .calc-grid .calc-card:last-child { grid-column: auto; }
  .calc-wide { grid-column: auto; }

  .mock-body { padding: 14px; }
  .mock-top { gap: 10px; }
  .mock-big { font-size: 22px; }
  .score-ring { width: 52px; height: 52px; }
  .score-num { font-size: 17px; }
  .score-cap { font-size: 7px; }
  .mock-chart { height: 84px; }
  .mock-row { grid-template-columns: 44px 1fr auto; font-size: 10.5px; gap: 8px; }
  .tag { font-size: 10px; }
  .float-card { display: none; }
  .mock-lock { flex-wrap: wrap; }
  .mock-lock p { white-space: normal; }
  .mock-lock .btn { width: 100%; }

  .strip-inner { gap: 10px 20px; padding: 16px 0; }
  .strip-items { gap: 6px 18px; }
  .strip-items span { font-size: 13px; }

  .plan-price { font-size: 38px; }
  .upsell { padding: 18px; }
  .final-cta { padding: 44px 20px; }
  .final-cta p { font-size: 15px; }

  .dash-features { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 21px; }
  .dash-head-search { display: none; }
  .dash-head-actions { margin-left: auto; }
  .dash-head-actions .btn-sm { display: none; }
  .view-head { flex-direction: column; gap: 10px; }
  .view-head .seg { align-self: flex-start; }
  .view-head .btn { align-self: flex-start; }
  .activation-banner { flex-wrap: wrap; }
  .auth-card { padding: 28px 20px 22px; }
  .auth-back { top: 14px; left: 16px; }
  .sidebar { width: 86vw; max-width: 300px; }
  .locked-mock .mini-bars { height: 140px; }
  .score-block { gap: 12px; }
  .score-ring.big { width: 84px; height: 84px; }
  .score-ring.big .score-num { font-size: 24px; }
  .seo-result { grid-template-columns: 1fr; }
  .seo-input { flex-direction: column; }
  .seo-actions .btn { width: 100%; }
  .human-result { grid-template-columns: 1fr; }
  .hook-list { max-height: none; }
  .calc-card .seo-checks { max-height: none; }
  .onboarding-card { padding: 22px 18px; }
  .ob-search { flex-direction: column; }
  .profile-stats { grid-template-columns: 1fr 1fr 1fr; }
  .profile-stats div { padding: 11px 10px; }
  .revenue-split { grid-template-columns: 1fr; }
  .pl-cell { min-height: 50px; padding: 5px; }
  .pl-cell em { font-size: 9px; }
  .dash-head-channel span { display: none; }
  .signout-float { display: none; }
  .verify-banner .btn { width: 100%; }
  .calc-result-big strong { font-size: 30px; }
  .chart-foot { flex-direction: column; gap: 2px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 34px; }
  .btn-lg { font-size: 15px; }
  .plan { padding: 24px 20px; }
  .panel { padding: 16px; }
  .seo-panel { padding: 18px; }
  .pl-dow { font-size: 9px; }
  .pl-cell span { font-size: 10.5px; }
  .pl-cell em { display: none; }
  .pl-cell.slot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-500);
    margin-top: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
