/* FillxForm referral site - shared styles */
:root {
  --ink: #0b1020;
  --ink-2: #334155;
  --mut: #64748b;
  --line: #e5e7f0;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef2ff;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --err: #dc2626;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px -20px rgba(49, 46, 129, .35);
  --grad: linear-gradient(135deg, var(--brand), var(--brand-2));
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; }
.logo span em { font-style: normal; color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1;
  padding: 15px 24px; border-radius: 12px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(79, 70, 229, .55); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 14px 30px -8px rgba(79, 70, 229, .65); }
.btn-white { background: #fff; color: var(--brand); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 18px 30px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; background:
  radial-gradient(900px 400px at 85% -10%, rgba(124, 58, 237, .14), transparent 60%),
  radial-gradient(700px 380px at 0% 0%, rgba(79, 70, 229, .12), transparent 60%),
  var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 48px 0 60px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 14px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(5, 150, 105, .15); }
.hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; margin: 18px 0 18px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: var(--mut); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); }

/* ---------- browser notice ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--warn-soft); border: 1px solid #fde68a; color: #78350f; font-size: 14px; max-width: 560px; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice button { margin-top: 8px; }

/* ---------- product mock ---------- */
.mock { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.mock-bar .url { margin-left: 10px; flex: 1; height: 26px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--mut); display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap; }
.mock-body { padding: 22px; }
.mock-title { font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.field { margin-bottom: 12px; }
.field small { display: block; font-size: 12px; color: var(--mut); margin-bottom: 4px; font-weight: 600; }
.field div { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; padding: 0 12px; font-size: 14px; color: var(--ink); position: relative; overflow: hidden; }
.field div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(79, 70, 229, .12), transparent); transform: translateX(-100%); animation: shimmer 2.6s ease-in-out infinite; }
.field:nth-child(3) div::after { animation-delay: .25s; }
.field:nth-child(4) div::after { animation-delay: .5s; }
.field:nth-child(5) div::after { animation-delay: .75s; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
.mock-chip { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); }
.mock-chip b { color: #a5b4fc; }
@media (prefers-reduced-motion: reduce) { .field div::after { animation: none; display: none; } }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .kicker { color: var(--brand); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 12px; font-weight: 800; }
.section-head p { color: var(--mut); font-size: 17px; }
@media (max-width: 760px) { .section { padding: 60px 0; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 18px; margin: 14px 0 6px; }
.card p { color: var(--mut); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.icon svg { width: 22px; height: 22px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--mut); font-size: 15px; }

/* ---------- reward band ---------- */
.band { background: var(--grad); color: #fff; border-radius: 26px; padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; padding: 32px 24px; } }
.band h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
.band p { opacity: .92; margin-top: 10px; font-size: 17px; }
.band-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.band-stats div { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 16px 12px; text-align: center; }
.band-stats b { display: block; font-size: 26px; font-weight: 800; }
.band-stats span { font-size: 13px; opacity: .9; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); }

/* ---------- final CTA ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.final p { color: var(--mut); margin-bottom: 26px; font-size: 17px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--mut); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--mut); text-decoration: none; margin-left: 18px; }
.footer a:hover { color: var(--brand); }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input, select {
  width: 100%; padding: 13px 14px; border: 1px solid #cbd5e1; border-radius: 11px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 3px solid #c7d2fe; border-color: var(--brand); }
input[readonly] { background: var(--bg-soft); }
.msg { margin-top: 10px; font-size: 14px; min-height: 20px; color: var(--ok); }
.msg.err { color: var(--err); }
.linkbtn { background: none; border: 0; color: var(--brand); font: inherit; font-size: 14px; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- dashboard ---------- */
.dash { padding: 36px 0 70px; background: var(--bg-soft); min-height: calc(100vh - 64px); }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-top h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.who { color: var(--mut); font-size: 14px; margin-top: 4px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 19px; }
.panel .sub { color: var(--mut); font-size: 15px; margin: 4px 0 16px; }
.authbox { max-width: 460px; margin: 30px auto; padding: 32px; }
.authbox h1 { font-size: 28px; font-weight: 800; }
.tabs { display: flex; gap: 6px; background: var(--brand-soft); border-radius: 12px; padding: 4px; margin: 20px 0 6px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 11px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--brand); cursor: pointer; }
.tabs button.on { background: #fff; box-shadow: var(--shadow-sm); }
.or { display: flex; align-items: center; gap: 12px; color: var(--mut); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.small { font-size: 13px; color: var(--mut); }
.guest-note { background: var(--warn-soft); border: 1px solid #fde68a; color: #78350f; border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; }
.guest-note h2 { font-size: 17px; }
.guest-note p { font-size: 14px; margin: 4px 0 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > input { flex: 1; min-width: 200px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); }
.stat span { color: var(--mut); font-size: 13px; font-weight: 600; }
.stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.stat.accent b { color: var(--brand); }

.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 960px) { .two { grid-template-columns: 1fr; } }
.two .panel { margin-bottom: 0; }
.two + .panel, .two + .two { margin-top: 18px; }

.bar { height: 14px; background: #e0e7ff; border-radius: 99px; overflow: hidden; margin: 16px 0 10px; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .6s ease; }

.chart { display: flex; gap: 6px; align-items: stretch; height: 160px; margin-top: 16px; border-bottom: 1px solid var(--line); }
.col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.bars { display: flex; gap: 2px; align-items: flex-end; flex: 1; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; }
.bars i.c { background: #c7d2fe; }
.bars i.n { background: var(--brand); }
.lbl { display: block; text-align: center; font-size: 10px; color: var(--mut); margin-top: 4px; padding-bottom: 2px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--mut); margin-top: 10px; }
.legend em { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

ul.rules { margin: 10px 0 0; padding: 0; list-style: none; }
ul.rules li { position: relative; padding-left: 26px; margin: 10px 0; color: var(--ink-2); font-size: 15px; }
ul.rules li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-soft); border: 4px solid var(--brand); box-sizing: border-box; }

/* ---------- locked payouts ---------- */
.locked { position: relative; overflow: hidden; }
.locked-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f1f5f9; color: var(--ink-2); border: 1px solid var(--line); }
.badge svg { width: 13px; height: 13px; }
.locked-body { position: relative; margin-top: 16px; user-select: none; pointer-events: none; }
.locked-body .fake { filter: blur(1.5px) grayscale(.4); opacity: .55; }
.locked-cover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; }
.lock-ring { width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; place-items: center; margin: 0 auto 10px; color: var(--ink-2); }
.lock-ring svg { width: 26px; height: 26px; }
.locked-cover b { display: block; font-size: 16px; }
.locked-cover span { font-size: 13px; color: var(--mut); }
.locked .balance { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.locked .balance b { color: var(--brand); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 50; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.spinner { width: 34px; height: 34px; border: 3px solid #e0e7ff; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 80px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- welcome ---------- */
.welcome-hero { background: var(--grad); color: #fff; border-radius: 26px; padding: 52px 32px; text-align: center; margin: 36px 0 26px; box-shadow: var(--shadow-lg); }
.welcome-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
.welcome-hero p { opacity: .92; margin-top: 10px; font-size: 18px; }
.check { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; margin: 0 auto 18px; }
.check svg { width: 32px; height: 32px; }
.applied { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 14px; font-weight: 600; }

/* fixes */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.btn-soft { color: var(--brand); }
.locked-cover > div { background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; max-width: 340px; box-shadow: var(--shadow-sm); }
.guest-note .msg:empty { display: none; }
.band-stats b span { font-size: inherit; opacity: 1; }

/* =====================================================================
   Sign-in page
   ===================================================================== */
.auth-page { background: var(--bg-soft); }
.auth-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-brand {
  position: relative; overflow: hidden; color: #fff; padding: 40px 56px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background:
    radial-gradient(600px 380px at 110% 0%, rgba(255, 255, 255, .16), transparent 60%),
    radial-gradient(500px 340px at -10% 110%, rgba(255, 255, 255, .12), transparent 60%),
    linear-gradient(150deg, #4338ca 0%, #5b21b6 55%, #6d28d9 100%);
}
.auth-brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.auth-brand > * { position: relative; z-index: 1; }
.logo-light { color: #fff; }
.logo-mark-light { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); }
.auth-brand-body { max-width: 520px; }
.auth-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }
.auth-brand h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; margin: 20px 0 16px; }
.auth-brand-body > p { font-size: 17px; opacity: .9; }
.auth-points { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(4px); }
.pt-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.pt-icon svg { width: 19px; height: 19px; }
.auth-points b { display: block; font-size: 15px; }
.auth-points span { font-size: 14px; opacity: .82; }
.auth-brand-foot { font-size: 13px; opacity: .75; }
.auth-brand-foot a { color: #fff; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 30px; font-weight: 800; }
.auth-sub { color: var(--mut); margin: 8px 0 26px; }
.auth-mobile-logo { display: none; margin-bottom: 28px; }
.btn-google { background: #fff; color: var(--ink); border: 1px solid #d5d9e3; box-shadow: var(--shadow-sm); }
.btn-google:hover:not(:disabled) { background: #fafbff; border-color: #c3c8d6; }
.btn-tall { margin-top: 22px; padding-top: 16px; padding-bottom: 16px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row label { margin-bottom: 6px; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 64px; }
.pass-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--brand); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.pass-toggle:hover { background: var(--brand-soft); }
.auth-switch { margin-top: 18px; font-size: 14px; color: var(--ink-2); text-align: center; }
.auth-legal { margin-top: 26px; font-size: 12px; color: var(--mut); text-align: center; }
.auth-legal a { color: var(--mut); }
#authMsg:empty { display: none; }
#authMsg { padding: 11px 14px; border-radius: 11px; background: var(--ok-soft); }
#authMsg.err { background: #fef2f2; }

@media (max-width: 920px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-mobile-logo { display: flex; }
  .auth-main { align-items: flex-start; padding-top: 48px; }
}

/* =====================================================================
   Dashboard additions
   ===================================================================== */
.logo-tag { font-size: 12px; font-weight: 600; color: var(--mut); padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; margin-left: 4px; letter-spacing: 0; }
@media (max-width: 560px) { .logo-tag { display: none; } }
.user-menu { display: flex; align-items: center; gap: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.user-email { font-size: 14px; color: var(--ink-2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .user-email { display: none; } }

.link-panel { border-color: #dcd9fb; background: linear-gradient(180deg, #fbfaff, #fff); }
.link-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.code-chip { font-size: 13px; color: var(--mut); padding: 7px 12px; border: 1px dashed #c7d2fe; border-radius: 10px; background: #fff; }
.code-chip b { color: var(--brand); letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.share { align-items: center; }
.share-label { font-size: 13px; color: var(--mut); margin-right: 4px; }
.stat small { display: block; font-size: 12px; color: var(--mut); margin-top: 2px; }
.legend { margin-top: 4px; }
.lg-c { background: #c7d2fe; }
.lg-n { background: var(--brand); }
.empty { text-align: center; color: var(--mut); font-size: 14px; padding: 14px 0 4px; }

.funnel { display: grid; gap: 14px; margin-top: 6px; }
.f-row { display: grid; grid-template-columns: 96px 1fr 56px; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.f-row b { text-align: right; font-size: 16px; color: var(--ink); }
.f-bar { height: 12px; border-radius: 99px; background: #eef0f6; overflow: hidden; }
.f-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--grad); transition: width .6s ease; }
.f-row:nth-child(1) .f-bar i { background: #c7d2fe; }
.f-row:nth-child(2) .f-bar i { background: #818cf8; }

.rules-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
@media (max-width: 760px) { .rules-grid { grid-template-columns: 1fr; } }
.app-page .footer { background: var(--bg-soft); }

/* ---------- dashboard v2: alert, tables, account ---------- */
.alert { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; font-size: 14px; }
.alert b { margin-right: 4px; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 4px; border-bottom: 1px solid #f1f2f7; color: var(--ink-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-ok { background: var(--ok-soft); color: #047857; }
.pill-wait { background: #fff7ed; color: #b45309; }
.pill-no { background: #f1f5f9; color: #475569; cursor: help; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; margin: 4px 0 0; font-size: 14px; }
.kv dt { color: var(--mut); }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: var(--brand); }
.two + .two { margin-top: 18px; }
.tbl .why { font-size: 11px; color: var(--mut); margin-top: 3px; white-space: normal; max-width: 260px; }
.goodbye { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 56px 28px; margin: 48px 0 70px; box-shadow: var(--shadow-sm); }
.goodbye h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; margin: 14px 0 12px; }
.goodbye p { color: var(--ink-2); max-width: 520px; margin: 0 auto; }
.goodbye-icon { font-size: 44px; width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); }

/* ---------- install protection ---------- */
.protect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 4px; }
@media (max-width: 860px) { .protect-grid { grid-template-columns: repeat(2, 1fr); } }
.pcard { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--bg-soft); }
.pcard b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.pcard span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 2px; }
.pcard small { display: block; font-size: 12px; color: var(--mut); margin-top: 2px; }
.badge-ok { background: var(--ok-soft); color: #047857; border-color: #a7f3d0; }

/* =====================================================================
   Navigation menu (public + dashboard)
   ===================================================================== */
.menu { display: flex; align-items: center; gap: 4px; }
.menu > a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color .15s ease, background .15s ease; }
.menu > a:hover { color: var(--brand); background: var(--brand-soft); }
.menu > a.active { color: var(--brand); font-weight: 600; }
.menu-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.menu-actions .btn-primary { color: #fff; }
.menu-mobile-only { display: none; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 11px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* dashboard nav */
.app-nav .menu > a { font-size: 14px; padding: 8px 11px; }
.app-nav .menu > a.active { background: var(--brand-soft); }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; font: inherit; }
.user-btn:hover { border-color: #c7d2fe; }
.user-btn .chev { width: 16px; height: 16px; color: var(--mut); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 44px -12px rgba(15, 23, 42, .25); padding: 6px; z-index: 40; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; font: inherit; font-size: 14px; color: var(--ink-2); text-decoration: none; background: none; border: 0; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg-soft); color: var(--ink); }
.drop-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.drop-head b { display: block; font-size: 14px; }
.drop-head span { display: block; font-size: 13px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.drop-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.dropdown .drop-signout { color: var(--err); font-weight: 600; }
.dash [id] { scroll-margin-top: 84px; }
section[id], .legal [id] { scroll-margin-top: 80px; }

@media (max-width: 1080px) { .app-nav .user-email { display: none; } }
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .app-nav .menu-toggle.hide { display: none !important; }
  .menu, .app-nav .menu { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(15, 23, 42, .25); display: none; }
  .nav-open .menu:not(.hide) { display: flex; }
  .menu > a, .app-nav .menu > a { padding: 12px 10px; font-size: 16px; }
  .menu-actions { margin: 10px 0 0; flex-direction: column; align-items: stretch; }
  .menu-actions .btn { width: 100%; }
  .menu-mobile-only { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
  .menu-mobile-only a { color: var(--ink-2); text-decoration: none; padding: 12px 10px; font-size: 16px; }
  .menu-signout { text-align: left; padding: 12px 10px; font-size: 16px; color: var(--err); text-decoration: none; }
  .app-nav .user-btn { padding-right: 8px; }
}

/* =====================================================================
   Home page extras
   ===================================================================== */
.band-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); margin-bottom: 14px; }
.band .cta-row { margin-top: 24px; }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.btn-ghost-light:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.band-stats b { font-size: 22px; }
.faq details p a { font-weight: 600; }
.ref-note { background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--mut); font-size: 13px; padding: 14px 0; text-align: center; }

/* =====================================================================
   Site footer
   ===================================================================== */
.site-footer { background: #0b1020; color: #cbd5e1; padding: 56px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.site-footer .logo { color: #fff; }
.site-footer .logo span em { color: #a5b4fc; }
.foot-brand p { margin-top: 14px; max-width: 360px; color: #94a3b8; }
.foot-brand .foot-company { color: #cbd5e1; }
.foot-brand .foot-company b { color: #fff; }
.foot-col h4 { margin: 4px 0 14px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.foot-col a { display: block; color: #94a3b8; text-decoration: none; margin: 9px 0; }
.foot-col a:hover { color: #fff; }
.foot-col a.hide { display: none; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; font-size: 13px; color: #64748b; }
.app-footer { background: var(--bg-soft); }

/* =====================================================================
   Legal pages
   ===================================================================== */
.legal-hero { background: radial-gradient(700px 300px at 85% -20%, rgba(124, 58, 237, .12), transparent 60%), var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.legal-hero .kicker { color: var(--brand); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.legal-hero h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; margin: 8px 0 10px; }
.legal-hero p { color: var(--mut); }
.legal-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-top: 44px; padding-bottom: 80px; }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; gap: 24px; } .legal-toc { position: static !important; } }
.legal-toc { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; border-left: 2px solid var(--line); padding-left: 14px; }
.legal-toc b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); margin-bottom: 8px; }
.legal-toc a { color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.legal-toc a:hover { color: var(--brand); }
.prose { max-width: 760px; color: var(--ink-2); font-size: 16px; }
.prose h2 { font-size: 22px; color: var(--ink); margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16px; color: var(--ink); margin: 20px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.legal-tbl { margin: 8px 0 16px; }
.legal-tbl td { white-space: normal; vertical-align: top; }
.legal-tbl td:first-child { white-space: nowrap; }

/* =====================================================================
   Sign-in page extras
   ===================================================================== */
.auth-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 12px; }
.auth-top .auth-mobile-logo { margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--mut); text-decoration: none; font-size: 14px; font-weight: 500; margin-left: auto; }
.back-link:hover { color: var(--brand); }
.back-link svg { width: 16px; height: 16px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--ink-2); margin-top: 18px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--brand); padding: 0; }
.check-row.hide { display: none !important; }

/* ---------- account action page (password reset, email verification) ---------- */
.action-main { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px;
  background: radial-gradient(700px 360px at 85% -10%, rgba(124, 58, 237, .14), transparent 60%), radial-gradient(600px 340px at 0% 0%, rgba(79, 70, 229, .12), transparent 60%), var(--bg-soft); }
.action-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px 32px 26px; box-shadow: var(--shadow-lg); }
.action-card > .logo { margin-bottom: 28px; }
.action-card h1 { font-size: 26px; font-weight: 800; }
.action-card .auth-sub { margin-bottom: 18px; }
.action-card .auth-sub b { color: var(--ink); overflow-wrap: anywhere; }
.action-card label:first-of-type { margin-top: 0; }
.action-card #resetMsg:empty { display: none; }
.action-card #resetMsg { padding: 11px 14px; border-radius: 11px; background: #fef2f2; }
.action-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.action-icon svg { width: 30px; height: 30px; }
.action-icon.ok { background: var(--ok-soft); color: var(--ok); }
.action-icon.err { background: #fef2f2; color: var(--err); }
#vResult .btn { margin-top: 6px; }
@media (max-width: 480px) { .action-card { padding: 28px 22px 22px; } }
