@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #0a0d0b;
  --ink-2: #111612;
  --ink-3: #1a201b;
  --paper: #f4f1e8;
  --paper-2: #ebe6d9;
  --paper-3: #e2dccb;
  --lime: #d8ff57;
  --lime-deep: #b9e535;
  --coral: #ff6d4a;
  --blue: #8bb8ff;
  --white: #fffdf7;
  --muted: #6b7168;
  --muted-light: #a9b1a6;
  --line: rgba(10, 13, 11, 0.14);
  --line-dark: rgba(255, 255, 255, 0.12);
  --danger: #b9371f;
  --success: #1f6b47;
  --warning: #8a5c00;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(10, 13, 11, 0.12);
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sidebar: 258px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.dark { background: var(--ink); color: var(--paper); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0; line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
code, pre, .mono { font-family: var(--font-mono); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.dark .eyebrow { color: var(--muted-light); }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap; background: rgba(255,255,255,.45);
}
.dark .tag { border-color: var(--line-dark); background: rgba(255,255,255,.05); }
.tag.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.tag.coral { background: #ffe2da; border-color: #ffc9ba; color: #8b2b15; }
.tag.good { background: #e3f5e9; border-color: #c2e6cf; color: var(--success); }
.tag.warn { background: #fff2cf; border-color: #f0dca6; color: var(--warning); }
.tag.bad { background: #ffe3dd; border-color: #f5c3b8; color: var(--danger); }
.tag.muted { background: rgba(10,13,11,.06); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 19px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; letter-spacing: -0.01em; transition: transform .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-primary:hover { background: var(--lime-deep); border-color: var(--lime-deep); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(10,13,11,.05); }
.dark .btn-ghost { border-color: var(--line-dark); color: var(--paper); }
.dark .btn-ghost:hover { background: rgba(255,255,255,.07); }
.btn-danger { background: #ffe3dd; border-color: #ffc9ba; color: var(--danger); }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 12px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 15px; }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.dark .link { color: var(--paper); }
.link:hover { text-decoration-thickness: 2px; }
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }

/* Landing */
.landing { background: var(--paper); overflow-x: hidden; }
.landing-nav-wrap { position: sticky; top: 0; z-index: 40; background: rgba(244,241,232,.84); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.landing-nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; font-size: 19px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: -0.06em; }
.brand-mark::after { content: '↗'; font-size: 16px; }
.brand .slash { color: var(--muted); font-weight: 400; }
.brand-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 500; }
.nav-links a { opacity: .74; transition: opacity .15s; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle { display: none; background: none; border: 0; padding: 8px; }
.hero { padding: 80px 0 60px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(48px, 6.2vw, 86px); line-height: .98; letter-spacing: -.06em; max-width: 720px; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.4px var(--ink); }
.hero h1 .accent { position: relative; display: inline-block; }
.hero h1 .accent::after { content: ''; position: absolute; left: 2%; right: 0; bottom: 5px; height: 12px; background: var(--lime); z-index: -1; transform: rotate(-1.2deg); }
.hero-lead { margin-top: 28px; max-width: 510px; font-size: 18px; line-height: 1.6; color: #3e453d; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-proof { margin-top: 34px; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .01em; }
.proof-avatars { display: flex; }
.proof-avatars span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -7px; display: grid; place-items: center; font-size: 9px; font-weight: 700; font-family: var(--font-body); background: var(--paper-3); }
.proof-avatars span:first-child { margin-left: 0; background: #ffd7c9; }
.proof-avatars span:nth-child(2) { background: #dff0b6; }
.proof-avatars span:nth-child(3) { background: #cbdcff; }
.hero-visual { position: relative; min-height: 510px; }
.hero-visual::before { content: ''; position: absolute; inset: 40px 8px 20px 40px; background: var(--ink); border-radius: 32px; transform: rotate(3deg); opacity: .08; filter: blur(2px); }
.gate-card {
  position: relative; z-index: 2; width: min(100%, 410px); margin-left: auto;
  background: var(--white); border: 1px solid var(--ink); border-radius: 26px;
  box-shadow: 14px 14px 0 var(--lime);
  overflow: hidden;
}
.gate-top { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); background: #fbf8ef; }
.gate-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.gate-brand i { width: 18px; height: 18px; border-radius: 6px; background: var(--ink); display: grid; place-items: center; color: var(--lime); font-style: normal; font-size: 9px; }
.gate-body { padding: 24px; }
.gate-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gate-title { font-size: 28px; margin-top: 8px; line-height: 1.05; letter-spacing: -.04em; }
.gate-copy { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
.gate-reward { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 20px 0 14px; border-radius: 14px; background: var(--paper); border: 1px dashed rgba(10,13,11,.22); }
.gate-reward-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--lime); display: grid; place-items: center; font-size: 18px; flex: 0 0 auto; }
.gate-reward-label { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.gate-reward-value { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.gate-survey { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.gate-survey-top { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); font-family: var(--font-mono); }
.gate-survey-title { font-size: 13px; font-weight: 600; margin-top: 6px; }
.gate-meta { display: flex; gap: 12px; margin-top: 9px; font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.gate-btn { margin-top: 14px; width: 100%; min-height: 42px; border-radius: 10px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 12px; }
.gate-note { margin-top: 12px; text-align: center; font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.hero-float { position: absolute; z-index: 3; background: var(--ink); color: var(--white); border-radius: 14px; padding: 11px 14px; font-family: var(--font-mono); font-size: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); display: flex; align-items: center; gap: 8px; }
.hero-float.verified { left: 4px; bottom: 42px; }
.hero-float.verified .dot { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 4px rgba(216,255,87,.14); }
.hero-float.amount { right: 8px; top: 46px; background: var(--lime); color: var(--ink); transform: rotate(3deg); }
.hero-float.amount strong { font-size: 15px; font-weight: 700; }
.hero-float.outage { left: 2px; top: 105px; background: var(--white); color: var(--ink); border: 1px solid var(--line); transform: rotate(-2deg); }
.hero-float.outage span { color: var(--muted); }

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); overflow: hidden; }
.marquee-inner { display: flex; gap: 50px; align-items: center; white-space: nowrap; padding: 16px 0; width: max-content; animation: marquee 32s linear infinite; }
.marquee-item { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.marquee-item::before { content: '✦'; color: var(--ink); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(34px, 4vw, 54px); letter-spacing: -.05em; max-width: 650px; }
.section-head p { max-width: 340px; color: var(--muted); font-size: 14px; }
.dark-section { background: var(--ink); color: var(--paper); }
.dark-section .eyebrow, .dark-section .section-head p { color: var(--muted-light); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 32px 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 230px; position: relative; background: rgba(255,255,255,.2); }
.feature:hover { background: var(--white); }
.feature-num { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.feature-icon { margin: 30px 0 20px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.feature h3 { font-size: 20px; letter-spacing: -.03em; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 28px; border: 1px solid var(--line-dark); border-radius: 20px; background: rgba(255,255,255,.035); min-height: 260px; display: flex; flex-direction: column; }
.step-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--muted-light); }
.step-top b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); font-weight: 500; color: var(--lime); }
.step h3 { margin-top: auto; font-size: 26px; letter-spacing: -.04em; }
.step p { margin-top: 10px; color: var(--muted-light); font-size: 13px; line-height: 1.6; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.code-card { background: #0d110e; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(10,13,11,.25); }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.code-head span { font-family: var(--font-mono); font-size: 10px; color: #9aa399; letter-spacing: .05em; }
.code-dots { display: flex; gap: 5px; }
.code-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3a423a; }
.code-dots i:first-child { background: var(--coral); }
.code-dots i:nth-child(2) { background: #e5c35b; }
.code-card pre { margin: 0; padding: 24px; color: #d8e0d4; font-size: 12px; line-height: 1.85; overflow-x: auto; }
.code-card .c { color: #788574; }
.code-card .g { color: var(--lime); }
.code-card .o { color: #ffa787; }
.checklist { display: grid; gap: 13px; margin-top: 26px; }
.check-item { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: #3e453d; }
.check-item .check { width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: 0 0 auto; font-size: 10px; background: var(--lime); }
.dark-section .check-item { color: var(--muted-light); }
.cta-band { background: var(--lime); border: 1px solid var(--ink); border-radius: 28px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden; }
.cta-band::after { content: 'SURVEY.'; position: absolute; right: 250px; bottom: -30px; font-family: var(--font-display); font-weight: 700; font-size: 130px; letter-spacing: -.08em; color: rgba(10,13,11,.06); pointer-events: none; }
.cta-band h2 { font-size: clamp(32px, 4vw, 52px); max-width: 620px; }
.cta-band .btn { position: relative; z-index: 1; }
.site-footer { padding: 54px 0 30px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { max-width: 260px; margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 13px; }
.footer-col a { display: block; font-size: 12px; margin-bottom: 9px; color: #3e453d; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 18px; font-family: var(--font-mono); font-size: 9px; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }

/* Auth */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.auth-aside { background: var(--ink); color: var(--paper); padding: 44px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::before { content: ''; position: absolute; width: 620px; height: 620px; border-radius: 50%; border: 1px solid rgba(216,255,87,.2); right: -260px; top: -180px; }
.auth-aside::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(216,255,87,.12); right: -130px; top: -40px; }
.auth-aside .brand { color: var(--paper); position: relative; z-index: 1; }
.auth-aside .brand-mark { background: var(--lime); color: var(--ink); }
.auth-quote { position: relative; z-index: 1; margin: auto 0; max-width: 430px; }
.auth-quote .eyebrow { color: var(--lime); }
.auth-quote h2 { font-size: clamp(34px, 4vw, 56px); margin-top: 22px; letter-spacing: -.055em; }
.auth-quote h2 em { font-style: normal; color: var(--lime); }
.auth-quote p { color: var(--muted-light); margin-top: 20px; max-width: 350px; font-size: 14px; }
.auth-points { display: grid; gap: 12px; margin-top: 32px; }
.auth-point { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 10px; color: var(--muted-light); text-transform: uppercase; letter-spacing: .06em; }
.auth-point b { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: var(--lime); font-size: 9px; }
.auth-aside-foot { position: relative; z-index: 1; font-family: var(--font-mono); font-size: 9px; color: #7d887c; letter-spacing: .08em; text-transform: uppercase; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 30px; }
.auth-card { width: min(100%, 440px); }
.auth-mobile-brand { display: none; margin-bottom: 34px; }
.auth-card h1 { font-size: 38px; letter-spacing: -.05em; }
.auth-card > p { color: var(--muted); margin-top: 10px; font-size: 13.5px; }
.auth-form { margin-top: 22px; display: grid; gap: 16px; }
.auth-google { width: 100%; margin-top: 20px; min-height: 48px; background: var(--white); border-color: rgba(10,13,11,.2); color: var(--ink); }
.auth-google:hover { border-color: var(--ink); background: #fffef8; }
.google-mark { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: #fff; border: 1px solid rgba(10,13,11,.18); font-family: var(--font-display); font-size: 12px; font-weight: 700; color: #4285f4; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--muted); font-family: var(--font-mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: .07em; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; font-weight: 600; }
.field .hint { font-size: 11px; color: var(--muted); line-height: 1.5; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; border-radius: 11px; border: 1px solid rgba(10,13,11,.18);
  background: rgba(255,255,255,.6); padding: 10px 13px; outline: none; font-size: 13.5px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px rgba(216,255,87,.5); }
.input::placeholder, .textarea::placeholder { color: #9a9f95; }
.textarea { min-height: 100px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236b7168' stroke-width='1.6'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 32px; }
.input-group { position: relative; }
.input-group .input { padding-right: 43px; }
.input-group .input-action { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { border: 1px solid #f2c4b9; background: #fff0eb; color: #8d2f1b; border-radius: 10px; padding: 11px 13px; font-size: 12px; line-height: 1.5; }
.form-success { border: 1px solid #bfdfc9; background: #edf8f0; color: var(--success); border-radius: 10px; padding: 11px 13px; font-size: 12px; line-height: 1.5; }
.auth-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.auth-meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.auth-submit { width: 100%; min-height: 48px; margin-top: 4px; }
.auth-switch { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.auth-switch a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.checkbox { display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.checkbox input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.verify-panel { text-align: center; padding: 20px 0; }
.verify-icon { width: 62px; height: 62px; border-radius: 18px; background: var(--lime); display: grid; place-items: center; margin: 0 auto 22px; font-size: 26px; border: 1px solid var(--ink); }
.verify-panel h2 { font-size: 30px; }
.verify-panel p { color: var(--muted); margin-top: 12px; font-size: 13px; line-height: 1.7; }
.verify-panel .btn { margin-top: 24px; width: 100%; }
.verify-email { font-weight: 600; color: var(--ink); word-break: break-all; }

/* App shell */
.app-body { background: #f1eee5; min-height: 100vh; }
.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--ink); color: var(--paper); padding: 24px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 30; }
.sidebar .brand { padding: 2px 8px 24px; border-bottom: 1px solid var(--line-dark); color: var(--paper); font-size: 17px; }
.sidebar .brand-mark { background: var(--lime); color: var(--ink); width: 27px; height: 27px; }
.sidebar-label { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; color: #737d72; letter-spacing: .1em; padding: 22px 10px 8px; }
.side-nav { display: grid; gap: 3px; }
.side-nav button { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; border-radius: 9px; background: transparent; color: #aab3a8; padding: 9px 10px; font-size: 12.5px; font-weight: 500; text-align: left; transition: background .15s, color .15s; }
.side-nav button:hover { background: rgba(255,255,255,.06); color: var(--paper); }
.side-nav button.active { background: var(--lime); color: var(--ink); font-weight: 600; }
.side-nav button .icon { width: 16px; height: 16px; opacity: .8; }
.side-nav button .nav-count { margin-left: auto; background: var(--coral); color: var(--ink); border-radius: 999px; padding: 1px 6px; font-size: 9px; font-weight: 700; }
.side-nav button.active .nav-count { background: var(--ink); color: var(--lime); }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line-dark); padding-top: 14px; }
.sidebar-user { display: flex; align-items: center; gap: 9px; padding: 9px 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 12px; flex: 0 0 auto; overflow: hidden; }
.sidebar-user-meta { min-width: 0; }
.sidebar-user-meta strong { display: block; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-meta span { display: block; font-size: 9px; color: #7d887c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-logout { margin-left: auto; background: none; border: 0; color: #7d887c; padding: 5px; }
.side-logout:hover { color: var(--coral); }
.sidebar-foot-link { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 9px; color: #7d887c; padding: 8px 10px; text-transform: uppercase; letter-spacing: .05em; }
.sidebar-foot-link:hover { color: var(--lime); }
.main { min-width: 0; }
.topbar { height: 68px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: rgba(241,238,229,.8); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; gap: 20px; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar h2 { font-size: 16px; letter-spacing: -.02em; font-weight: 600; font-family: var(--font-body); }
.topbar .crumb { font-family: var(--font-mono); font-size: 9px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.mobile-nav-toggle { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 7px; }
.page { padding: 32px 34px 60px; max-width: 1380px; }
.view { display: none; animation: fadeIn .25s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-head h1 { font-size: 30px; letter-spacing: -.04em; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 620px; }
.page-head-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.notice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 13px 15px; font-size: 12px; color: var(--muted); line-height: 1.55; margin-bottom: 20px; }
.notice strong { color: var(--ink); }
.notice.warning { border-color: #e8cf97; background: #fff9e9; color: #73541b; }
.notice.danger { border-color: #f0c0b4; background: #fff1ed; color: #84301d; }
.notice.success { border-color: #bfdfc9; background: #eff9f2; color: var(--success); }
.notice .icon { flex: 0 0 auto; margin-top: 1px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.metric { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 17px 18px; min-width: 0; position: relative; overflow: hidden; }
.metric .label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.metric .value { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -.045em; margin-top: 10px; }
.metric .sub { font-size: 10px; color: var(--muted); margin-top: 4px; }
.metric.accent { background: var(--lime); border-color: var(--ink); }
.metric.accent .label, .metric.accent .sub { color: #3d4b20; }
.metric.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.metric.dark .label, .metric.dark .sub { color: var(--muted-light); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 15px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15px; letter-spacing: -.02em; font-family: var(--font-body); font-weight: 600; }
.card-head .sub { font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.card-body { padding: 18px; }
.grid-2 { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; }
.grid-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack { display: grid; gap: 14px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.table th { text-align: left; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; font-size: 8.5px; letter-spacing: .07em; color: var(--muted); padding: 10px 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 13px; border-bottom: 1px solid rgba(10,13,11,.07); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(216,255,87,.12); }
.table .main-cell { font-weight: 600; font-size: 11.5px; }
.table .sub-cell { font-family: var(--font-mono); font-size: 9px; color: var(--muted); margin-top: 2px; }
.table .num { font-family: var(--font-mono); font-size: 10.5px; }
.table .actions { display: flex; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 12px; }
.empty-icon { width: 42px; height: 42px; border-radius: 12px; border: 1px dashed var(--line); display: grid; place-items: center; margin: 0 auto 12px; color: var(--muted); }
.empty h4 { font-family: var(--font-body); font-size: 13px; margin-bottom: 5px; color: var(--ink); }
.bar-chart { display: flex; align-items: end; gap: 6px; height: 150px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 5px; height: 100%; min-width: 0; }
.bar-fill { width: 100%; min-height: 2px; background: var(--line); border-radius: 4px 4px 2px 2px; position: relative; transition: height .4s ease; }
.bar-col:hover .bar-fill { background: var(--ink); }
.bar-col.today .bar-fill { background: var(--lime-deep); }
.bar-label { font-family: var(--font-mono); font-size: 7.5px; color: var(--muted); white-space: nowrap; }
.bar-legend { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 8.5px; color: var(--muted); margin-top: 9px; }
.site-card { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 18px; }
.site-card + .site-card { margin-top: 12px; }
.site-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.site-card h3 { font-size: 17px; letter-spacing: -.03em; }
.site-card .url { font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); margin-top: 4px; word-break: break-all; }
.site-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.site-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.key-box { display: flex; align-items: center; gap: 8px; background: #f6f2e8; border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; margin-top: 8px; }
.key-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 9.5px; white-space: nowrap; }
.key-box button { border: 0; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px; font-family: var(--font-mono); font-size: 8px; }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(10,13,11,.07); font-size: 12px; }
.status-line:last-child { border-bottom: 0; }
.status-line span:first-child { color: var(--muted); }
.status-line strong { font-weight: 600; }
.inline-code { background: rgba(10,13,11,.06); border-radius: 4px; padding: 1px 5px; font-family: var(--font-mono); font-size: 9.5px; }
.code-inline-box { background: #101510; color: #d7dfd2; border-radius: 10px; padding: 14px; font-family: var(--font-mono); font-size: 10px; line-height: 1.75; overflow-x: auto; white-space: pre; position: relative; }
.code-inline-box .copy-code { position: absolute; right: 8px; top: 8px; background: rgba(255,255,255,.1); color: #dfe7da; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; padding: 3px 7px; font-family: var(--font-mono); font-size: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section-title { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 18px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 4px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.switch input { appearance: none; width: 34px; height: 19px; border-radius: 999px; background: #c9c7bd; position: relative; transition: background .2s; cursor: pointer; flex: 0 0 auto; }
.switch input::after { content: ''; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--white); top: 3px; left: 3px; transition: transform .2s; }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(15px); background: var(--lime); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { border: 0; background: transparent; padding: 9px 12px; font-size: 11.5px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tab:hover { color: var(--ink); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-item .k { font-family: var(--font-mono); font-size: 8.5px; text-transform: uppercase; color: var(--muted); letter-spacing: .07em; }
.detail-item .v { font-size: 12.5px; font-weight: 500; margin-top: 4px; word-break: break-word; }
.section-split { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.mini-list { display: grid; gap: 0; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(10,13,11,.07); font-size: 11.5px; }
.mini-row:last-child { border-bottom: 0; }
.mini-row .muted { color: var(--muted); font-family: var(--font-mono); font-size: 9px; }

/* Dialogs and toasts */
dialog.app-dialog { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); margin: auto; }
dialog.app-dialog::backdrop { background: rgba(10,13,11,.55); backdrop-filter: blur(3px); }
.dialog-card { background: var(--white); border: 1px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.25); max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.dialog-head h3 { font-size: 19px; letter-spacing: -.03em; }
.dialog-head p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.dialog-close { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--muted); padding: 4px; }
.dialog-body { padding: 20px 21px; overflow-y: auto; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 21px; border-top: 1px solid var(--line); background: #faf7ee; }
.dialog-wide { width: min(780px, calc(100vw - 32px)) !important; }
.toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(340px, calc(100vw - 36px)); }
.toast { background: var(--ink); color: var(--paper); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; padding: 12px 14px; font-size: 12px; line-height: 1.5; box-shadow: 0 15px 40px rgba(0,0,0,.2); display: flex; gap: 9px; align-items: flex-start; animation: toastIn .2s ease; }
.toast.success { border-left: 3px solid var(--lime); }
.toast.error { border-left: 3px solid var(--coral); }
.toast button { background: none; border: 0; color: var(--muted-light); margin-left: auto; }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.spinner { width: 17px; height: 17px; border: 2px solid rgba(10,13,11,.2); border-top-color: var(--ink); border-radius: 50%; animation: spin .65s linear infinite; display: inline-block; }
.btn-dark .spinner, .btn-primary .spinner { border-color: rgba(10,13,11,.2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #e8e3d7 25%, #f2eee4 50%, #e8e3d7 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Admin specifics */
.admin-badge { font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px; background: var(--white); color: var(--muted); }
.admin-table .table td { font-size: 11px; }
.admin-table .table th { font-size: 8px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-row .input, .filter-row .select { width: auto; min-height: 34px; padding: 6px 11px; font-size: 11px; border-radius: 8px; }
.filter-row .select { padding-right: 30px; }
.two-col-admin { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(10,13,11,.07); font-size: 11.5px; }
.stat-row:last-child { border-bottom: 0; }
.stat-row span { color: var(--muted); }
.stat-row strong { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; }
.approval-card { border: 1px solid var(--line); border-radius: 13px; padding: 15px; background: #fbf8ef; }
.approval-card + .approval-card { margin-top: 10px; }
.approval-head { display: flex; justify-content: space-between; gap: 12px; }
.approval-head h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.approval-meta { display: grid; gap: 5px; margin: 10px 0 12px; color: var(--muted); font-size: 11px; }
.approval-meta b { color: var(--ink); font-weight: 500; }
.approval-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Docs */
.docs-page { background: var(--paper); }
.docs-top { border-bottom: 1px solid var(--line); height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px) / 2)); position: sticky; top: 0; z-index: 30; background: rgba(244,241,232,.9); backdrop-filter: blur(12px); gap: 20px; }
.docs-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr) 200px; gap: 44px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 80px; }
.docs-side { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.docs-side-label { font-family: var(--font-mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 18px 0 7px; }
.docs-side a { display: block; padding: 5px 8px; border-left: 2px solid transparent; font-size: 11px; color: #5a6158; line-height: 1.45; }
.docs-side a:hover { color: var(--ink); background: rgba(255,255,255,.4); }
.docs-side a.active { color: var(--ink); border-left-color: var(--ink); background: var(--white); font-weight: 600; }
.docs-content { min-width: 0; }
.docs-content .doc-hero { padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.docs-content .doc-hero h1 { font-size: 48px; letter-spacing: -.055em; }
.docs-content .doc-hero p { margin-top: 13px; color: var(--muted); font-size: 14px; max-width: 600px; }
.docs-content section { scroll-margin-top: 100px; margin-bottom: 52px; }
.docs-content h2 { font-size: 28px; letter-spacing: -.04em; margin-bottom: 14px; padding-top: 8px; }
.docs-content h3 { font-size: 16px; letter-spacing: -.02em; margin: 24px 0 9px; font-family: var(--font-body); font-weight: 600; }
.docs-content p, .docs-content li { font-size: 13px; color: #4b5249; line-height: 1.75; }
.docs-content p + p { margin-top: 10px; }
.docs-content ul, .docs-content ol { margin: 10px 0; padding-left: 21px; }
.docs-content li { margin-bottom: 5px; }
.docs-content a { text-decoration: underline; text-underline-offset: 2px; font-weight: 500; color: var(--ink); }
.docs-content code { background: #e9e4d8; border-radius: 4px; padding: 1px 5px; font-size: 10.5px; }
.docs-content pre { background: #101510; color: #d8e1d4; border-radius: 11px; padding: 17px; overflow-x: auto; font-size: 10.5px; line-height: 1.75; margin: 13px 0; position: relative; }
.docs-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.copy-doc { position: absolute; right: 9px; top: 9px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: #d8e1d4; font-family: var(--font-mono); font-size: 8px; border-radius: 5px; padding: 3px 7px; }
.doc-callout { border: 1px solid var(--line); background: var(--white); border-left: 3px solid var(--ink); padding: 13px 15px; border-radius: 0 9px 9px 0; margin: 15px 0; }
.doc-callout.warn { border-left-color: var(--coral); background: #fff7f3; }
.doc-callout strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.doc-callout p { font-size: 12px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 13px 0; font-size: 11px; border: 1px solid var(--line); }
.doc-table th { text-align: left; background: #eae5d8; padding: 8px 10px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: .05em; }
.doc-table td { padding: 8px 10px; border-bottom: 1px solid rgba(10,13,11,.08); vertical-align: top; color: #4b5249; }
.doc-table tr:last-child td { border-bottom: 0; }
.docs-toc { position: sticky; top: 100px; align-self: start; font-size: 10px; }
.docs-toc h4 { font-family: var(--font-mono); font-size: 8.5px; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; margin-bottom: 10px; }
.docs-toc a { display: block; color: #6b7168; padding: 3px 0; }
.docs-toc a:hover { color: var(--ink); }

/* Reward page */
.reward-page { min-height: 100vh; background: #0b0e0c; color: var(--paper); display: flex; align-items: center; justify-content: center; padding: 18px; position: relative; overflow: hidden; }
.reward-page::before { content: ''; position: fixed; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(216,255,87,.12), transparent 65%); top: -250px; right: -150px; }
.reward-page::after { content: ''; position: fixed; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(255,109,74,.08), transparent 65%); bottom: -230px; left: -120px; }
.reward-card { position: relative; z-index: 1; width: min(100%, 520px); background: var(--paper); color: var(--ink); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; box-shadow: 0 35px 80px rgba(0,0,0,.35); overflow: hidden; max-height: calc(100vh - 36px); display: flex; flex-direction: column; }
.reward-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 17px; border-bottom: 1px solid var(--line); background: #fbf8ef; flex: 0 0 auto; }
.reward-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.reward-brand i { width: 19px; height: 19px; border-radius: 6px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-style: normal; font-size: 9px; }
.reward-head .tag { font-size: 8px; padding: 3px 7px; }
.reward-body { padding: 23px; overflow-y: auto; }
.reward-kicker { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.reward-title { font-size: 26px; margin-top: 6px; letter-spacing: -.045em; }
@media (max-width: 520px) { .alt-reward { align-items: flex-start; flex-direction: column; } .alt-reward .btn { width: 100%; } }
.reward-copy { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 8px; }
.reward-banner { margin-top: 16px; border: 1px solid rgba(10,13,11,.19); border-radius: 13px; padding: 13px 14px; background: #fbf8ef; display: flex; gap: 11px; align-items: flex-start; }
.reward-banner .reward-icon { width: 37px; height: 37px; border-radius: 10px; background: var(--lime); display: grid; place-items: center; font-size: 17px; border: 1px solid var(--ink); flex: 0 0 auto; }
.reward-banner .k { font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.reward-banner .v { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.reward-banner .note { font-size: 10px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.survey-list { display: grid; gap: 8px; margin-top: 14px; }
.survey-option { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 12px; transition: border-color .15s, background .15s; position: relative; }
.survey-option:hover { border-color: var(--ink); background: #fffef8; }
.survey-option.selected { border-color: var(--ink); box-shadow: 3px 3px 0 var(--lime); }
.survey-option-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.survey-option-title { font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.survey-option .best { font-family: var(--font-mono); font-size: 7.5px; background: var(--lime); border-radius: 3px; padding: 1px 4px; font-weight: 600; }
.survey-option-meta { display: flex; gap: 11px; margin-top: 6px; font-family: var(--font-mono); font-size: 8.5px; color: var(--muted); }
.reward-actions { display: grid; gap: 8px; margin-top: 15px; }
.reward-actions .btn { width: 100%; }
.reward-foot-note { margin-top: 12px; font-family: var(--font-mono); font-size: 8px; color: var(--muted); text-align: center; line-height: 1.6; }
.survey-opened { border: 1px dashed rgba(10,13,11,.25); border-radius: 12px; padding: 16px; text-align: center; margin-top: 14px; background: #fbf8ef; }
.survey-opened h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.survey-opened p { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.survey-opened .btn { margin-top: 11px; }
.reward-success { text-align: center; padding: 22px 0 6px; }
.success-orb { width: 74px; height: 74px; border-radius: 22px; background: var(--lime); display: grid; place-items: center; margin: 0 auto 20px; font-size: 32px; border: 1px solid var(--ink); box-shadow: 6px 6px 0 rgba(10,13,11,.12); }
.reward-success h3 { font-size: 30px; letter-spacing: -.05em; }
.reward-success p { color: var(--muted); font-size: 12px; margin-top: 8px; line-height: 1.6; }
.reward-value-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--lime); border: 1px solid var(--ink); border-radius: 999px; padding: 7px 13px; margin-top: 16px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.reward-success .reward-actions { margin-top: 20px; }
.video-wrap { margin-top: 15px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-wrap video { width: 100%; max-height: 220px; display: block; }
.alt-rewards { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 14px; }
.alt-rewards-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.alt-rewards-head .tag { font-size: 7px; padding: 2px 6px; }
.alt-reward { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(10,13,11,.08); }
.alt-reward:last-of-type { border-bottom: 0; }
.alt-reward-copy { min-width: 0; }
.alt-reward-copy strong { display: block; font-size: 11.5px; }
.alt-reward-copy p { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.alt-reward .btn { flex: 0 0 auto; }
.alt-rewards > .btn { width: 100%; margin-top: 8px; }
.video-ad-shell { position: relative; margin-top: 15px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.video-ad-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ad-guard { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; background: radial-gradient(circle at center, rgba(0,0,0,.35), rgba(0,0,0,.72)); color: var(--paper); }
.video-ad-guard p { font-family: var(--font-mono); font-size: 8px; color: var(--muted-light); text-transform: uppercase; letter-spacing: .06em; }
.video-ad-guard.is-playing { justify-content: flex-end; align-items: flex-start; padding: 10px; background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,.45)); }
.video-guard-pill { display: inline-flex; border-radius: 999px; padding: 4px 8px; background: rgba(10,13,11,.65); color: var(--lime); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .08em; text-transform: uppercase; }
.video-meter { height: 5px; margin-top: 10px; border-radius: 99px; background: rgba(10,13,11,.12); overflow: hidden; }
.video-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lime-deep); transition: width .4s linear; }
.video-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-family: var(--font-mono); font-size: 8px; color: var(--muted); }
.video-meta .tag { font-size: 7px; padding: 2px 6px; }
.test-survey-card { max-height: min(700px, calc(100vh - 36px)); }
.test-question { margin-top: 15px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbf8ef; }
.test-question strong { display: block; font-size: 13px; margin-top: 6px; }
.test-question p { margin-top: 5px; font-size: 10px; color: var(--muted); line-height: 1.55; }
.reward-loading { text-align: center; padding: 50px 0; }
.reward-loading .spinner { width: 28px; height: 28px; border-width: 3px; border-top-color: var(--ink); }
.reward-loading p { margin-top: 13px; color: var(--muted); font-size: 11px; }
.reward-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 17px; border-top: 1px solid var(--line); background: #fbf8ef; flex: 0 0 auto; }
.reward-footer .secure { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 7.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.reward-footer button { background: none; border: 0; font-size: 9px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.reward-footer button:hover { color: var(--ink); }
.progress-track { height: 3px; background: rgba(10,13,11,.1); border-radius: 2px; overflow: hidden; margin-top: 14px; }
.progress-track span { display: block; height: 100%; width: 35%; background: var(--lime-deep); border-radius: 2px; animation: progressPulse 2.2s ease-in-out infinite; }
@keyframes progressPulse { 0% { width: 12%; } 50% { width: 68%; } 100% { width: 90%; opacity: .4; } }

/* Utility */
.text-muted { color: var(--muted); }
.text-small { font-size: 11px; }
.text-xs { font-size: 9px; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.no-wrap { white-space: nowrap; }

@media (max-width: 1100px) {
  .docs-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 30px; }
  .docs-toc { display: none; }
  .hero-grid { gap: 34px; }
  .hero-visual { min-height: 470px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
  .hero-visual { min-height: 0; margin-top: 20px; }
  .gate-card { margin: 0 auto; }
  .hero-float.amount { right: 0; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: start; gap: 14px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-brand { display: flex; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,.3); }
  .mobile-nav-toggle { display: inline-flex; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .section-split, .grid-1-1, .two-col-admin { grid-template-columns: 1fr; }
  .page { padding: 22px 18px 50px; }
  .topbar { padding: 0 18px; }
  .docs-layout { grid-template-columns: 1fr; padding-top: 22px; }
  .docs-side { display: none; }
  .docs-top { padding: 0 18px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 32px, 1180px); }
  .landing-nav { height: 64px; }
  .nav-actions .btn-ghost { display: none; }
  .hero h1 { font-size: 46px; }
  .hero-lead { font-size: 15px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; padding: 25px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 7px; }
  .form-row, .form-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric { padding: 14px; }
  .metric .value { font-size: 23px; }
  .page-head { flex-direction: column; }
  .page-head h1 { font-size: 26px; }
  .topbar h2 { font-size: 14px; }
  .topbar .crumb { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .auth-main { padding: 26px 18px; }
  .auth-card h1 { font-size: 32px; }
  .docs-content .doc-hero h1 { font-size: 36px; }
  .docs-content h2 { font-size: 23px; }
  .reward-card { border-radius: 16px; }
  .reward-body { padding: 18px; }
  .reward-title { font-size: 22px; }
  .toast-region { bottom: 11px; right: 11px; }
}
