/* UnlockVI: design system + pages. Mobile first. Sunset coast palette, cinematic photography, condensed display type. */

/* Display: Big Shoulders Display Black (single file mapped to every weight, so no faux bold). UI + body: League Spartan variable. Both SIL OFL. */
@font-face { font-family: 'Big Shoulders Display'; src: url('/fonts/big-shoulders-display-latin-900-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
/* Impact-style face, used only for the big GTA VI word marks */
@font-face { font-family: 'Anton'; src: url('/fonts/anton-latin-400-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'League Spartan'; src: url('/fonts/league-spartan-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --bg: #07050c;
  --bg-2: #0f0a18;
  --bg-3: #171025;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #fff7ef;
  --muted: #c6b9d2;
  --dim: #8d809d;
  --peach: #ffc78a;
  --orange: #ff8a4c;
  --pink: #ff4f8b;
  --pink-2: #ff7aa8;
  --violet: #9b4dff;
  --teal: #3fe0d0;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --sunset: linear-gradient(100deg, #ffc78a 0%, #ff8a4c 26%, #ff4f8b 58%, #9b4dff 100%);
  --sunset-v: linear-gradient(180deg, #ffc78a 0%, #ff8a4c 30%, #ff4f8b 62%, #9b4dff 100%);
  --grad: linear-gradient(100deg, #ff8a4c 0%, #ff4f8b 50%, #9b4dff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font: 'League Spartan', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; font-weight: 450; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pink-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; }
h1, h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.6rem, 9vw, 5rem); }
h2 { font-size: clamp(2.2rem, 6.4vw, 3.8rem); line-height: 1; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.grad, .sunset-text { text-shadow: none; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 0.95rem/1 var(--font); color: #fff; white-space: nowrap; letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s, opacity 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 0.86rem; }
.btn-lg { --h: 58px; padding: 0 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--text); color: #160b1f; box-shadow: 0 10px 40px -12px rgba(255, 138, 76, 0.65); position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--sunset); opacity: 0; transition: opacity 0.3s; }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 50px -12px rgba(255, 79, 139, 0.8); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.btn-danger { background: rgba(248, 113, 113, 0.14); color: #fecaca; box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.45); }
.btn-ok { background: rgba(74, 222, 128, 0.14); color: #bbf7d0; box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.45); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; box-shadow: none; }
.btn-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- header / footer */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 5, 12, 0.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}
.landing .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.landing .site-header.scrolled { background: rgba(7, 5, 12, 0.82); border-bottom-color: var(--line); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.logo:hover { color: #fff; }
.logo-mark { width: 32px; height: 32px; filter: drop-shadow(0 0 10px rgba(255, 79, 139, 0.45)); }
.logo-word { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.logo-word b { font-weight: 400; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-link { color: rgba(255, 247, 239, 0.82); font-weight: 600; font-size: 0.9rem; padding: 8px 10px; border-radius: 10px; }
.nav-link:hover, .nav-link.active { color: #fff; }
.hide-sm { display: none; }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; background: var(--bg); }
.footer-top { display: flex; flex-direction: column; gap: 22px; margin-bottom: 26px; }
.footer-brand p { margin: 10px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.disclaimer { color: var(--dim); font-size: 0.8rem; line-height: 1.55; max-width: 900px; }
.draft-banner { background: #3b2a06; color: #fde68a; font-size: 0.84rem; text-align: center; padding: 8px 16px; border-bottom: 1px solid #6b4d0c; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: clamp(640px, 100svh, 980px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: 120px 0 72px; }
.hero-media, .section-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .section-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: 50% 60%; animation: hero-zoom 18s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-grade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 5, 12, 0.55) 0%, rgba(7, 5, 12, 0) 22%),
    linear-gradient(180deg, rgba(255, 138, 76, 0.18) 0%, rgba(255, 79, 139, 0.28) 45%, rgba(91, 33, 182, 0.55) 75%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 5, 12, 0.7) 0%, rgba(7, 5, 12, 0.15) 60%, transparent 100%);
  mix-blend-mode: normal;
}
.hero-grade::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 40%, rgba(255, 138, 76, 0.25), transparent 70%); mix-blend-mode: screen; }
.hero-inner { display: grid; gap: 40px; align-items: end; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(7, 5, 12, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ffe9dc; margin-bottom: 18px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(63, 224, 208, 0.2); }
.display { display: grid; gap: 0.02em; margin: 0 0 18px; line-height: 0.88; text-shadow: 0 4px 40px rgba(7, 5, 12, 0.35); }
.display span { display: block; }
.d-sm { font-size: clamp(2.2rem, 8vw, 4rem); }
.d-xl { font-family: 'Anton', Impact, 'Haettenschweiler', 'Arial Narrow Bold', sans-serif; font-size: clamp(5.8rem, 28vw, 14rem); line-height: 0.9; letter-spacing: 0; padding-bottom: 0.04em; }
.d-xl span { display: inline; }
.xl-white { color: #fffaf4; text-shadow: 0 2px 0 rgba(60, 14, 70, 0.35), 0 10px 40px rgba(30, 6, 50, 0.65); }
.xl-grad { background: linear-gradient(170deg, #ffd9a0 0%, #ff9a5a 25%, #ff4f8b 55%, #b04dff 85%, #8b3dff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 26px rgba(30, 6, 50, 0.6)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.35)); padding-right: 0.03em; }
.d-xl .xl-vi { display: inline-grid; isolation: isolate; }
.xl-vi::before, .xl-vi::after, .d-xl .xl-vi .xl-grad { grid-area: 1 / 1; }
.xl-vi::before, .xl-vi::after { content: attr(data-t); z-index: -1; pointer-events: none; padding-right: 0.03em; }
.xl-vi::before { color: #1c0830; -webkit-text-stroke: 0.075em #1c0830; filter: drop-shadow(0 10px 30px rgba(20, 4, 36, 0.6)); }
.xl-vi::after { color: #fffaf4; -webkit-text-stroke: 0.034em #fffaf4; }
.xl-vi .xl-grad { filter: none; }
.d-md { font-size: clamp(1.9rem, 6.6vw, 3.4rem); }
.lead { font-size: clamp(1.02rem, 2.3vw, 1.2rem); color: #fbeee6; max-width: 33em; text-shadow: 0 2px 20px rgba(7, 5, 12, 0.6); }
.lead-sm { color: #eadff0; font-size: 1.02rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.cta-row .btn { flex: 1 1 auto; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.9rem; color: #f6e9f0; font-weight: 500; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust .icon { width: 18px; height: 18px; stroke: var(--teal); stroke-width: 2.4; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* reward pass card */
.hero-pass { display: none; perspective: 1200px; justify-self: end; }
.pass {
  position: relative; width: 320px; padding: 22px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 45%), rgba(16, 9, 28, 0.55);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 40px 80px -30px rgba(7, 5, 12, 0.9);
  transform-style: preserve-3d; transition: transform 0.2s ease-out; animation: float 6s ease-in-out infinite;
}
.pass-shine { position: absolute; inset: -40%; background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, 0.14), transparent 40%); pointer-events: none; }
@keyframes float { 50% { translate: 0 -10px; } }
.pass-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pass-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ring {
  --size: 156px; width: var(--size); height: var(--size); margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(from 0deg, #ffc78a 0, #ff8a4c calc(var(--p) * 0.3%), #ff4f8b calc(var(--p) * 0.65%), #9b4dff calc(var(--p) * 1%), rgba(255, 255, 255, 0.1) 0);
  box-shadow: 0 0 50px -6px rgba(255, 79, 139, 0.6);
  animation: ring-fill 2.4s cubic-bezier(0.2, 0.7, 0.1, 1) both 0.4s;
}
@keyframes ring-fill { from { --p: 0; } }
.ring-inner { width: calc(var(--size) - 20px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #2a1838, #0d0816); display: grid; place-content: center; text-align: center; }
.ring-pct { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.ring-sub { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.pass-title { display: grid; gap: 2px; text-align: center; }
.pass-kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.pass-title strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.01em; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.chip-preview { background: rgba(251, 191, 36, 0.14); color: #fde68a; box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.4); }
.chip-ok { background: rgba(74, 222, 128, 0.13); color: #bbf7d0; box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.4); }
.chip-pending { background: rgba(251, 191, 36, 0.13); color: #fde68a; box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.4); }
.chip-bad { background: rgba(248, 113, 113, 0.13); color: #fecaca; box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.4); }
.chip-info { background: rgba(255, 79, 139, 0.14); color: #ffd1e1; box-shadow: inset 0 0 0 1px rgba(255, 79, 139, 0.45); }
.chip-muted { background: rgba(255, 255, 255, 0.07); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* marquee */
.marquee { overflow: hidden; background: var(--sunset); color: #1a0b1f; padding: 14px 0; border-block: 1px solid rgba(255, 255, 255, 0.2); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(1.3rem, 3.4vw, 2rem); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; line-height: 1; }
.marquee i { font-style: normal; margin: 0 0.6em; font-size: 0.7em; vertical-align: 0.15em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.disclaimer-strip { background: var(--bg-2); color: var(--muted); font-size: 0.8rem; padding: 12px 0; text-align: center; border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- sections */
.section { padding: 80px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.center-head { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--peach); margin-bottom: 12px; }
.display-h2 { margin-bottom: 0.4em; }

/* how it works */
.how-grid { display: grid; gap: 40px; align-items: center; }
.how-media { position: relative; margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 11; order: 2; box-shadow: 0 40px 80px -40px rgba(255, 79, 139, 0.5); }
.how-media img { width: 100%; height: 100%; object-fit: cover; }
.how-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 5, 12, 0.85)), linear-gradient(200deg, rgba(255, 138, 76, 0.18), rgba(155, 77, 255, 0.25)); }
.how-media figcaption { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.how-media .kicker { margin-bottom: 6px; }
.how-cap { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 4.4vw, 2.2rem); line-height: 1.05; text-transform: uppercase; }
.steps { list-style: none; padding: 0; margin: 10px 0 30px; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step:first-child { border-top: 1px solid var(--line); }
.step-n { font-family: var(--font-display); font-size: 2.6rem; line-height: 0.9; background: var(--sunset-v); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 1.6em; }
.step h3 { margin-bottom: 4px; font-size: 1.12rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* reward (edition-style) */
.reward { background: radial-gradient(80% 60% at 50% 0%, rgba(155, 77, 255, 0.22), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.platform-tabs { display: flex; justify-content: center; gap: 6px; margin: -8px auto 26px; padding: 5px; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; }
.ptab { border: 0; cursor: pointer; padding: 10px 18px; border-radius: 999px; background: transparent; color: var(--muted); font: 700 0.88rem var(--font); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.ptab.active { background: var(--text); color: #160b1f; }
.reward-card { display: grid; border-radius: 28px; overflow: hidden; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2), 0 50px 100px -50px rgba(255, 79, 139, 0.55); max-width: 1040px; margin: 0 auto; }
.reward-art { position: relative; min-height: 360px; overflow: hidden; display: grid; place-items: center; padding: 34px 22px; background: radial-gradient(70% 60% at 50% 40%, rgba(255, 79, 139, 0.35), transparent 70%), linear-gradient(170deg, #2a1240 0%, #160a26 60%, #0d0718 100%); isolation: isolate; perspective: 1200px; }
.reward-art::before { content: ''; position: absolute; inset: auto -10% -30% -10%; height: 60%; z-index: -1; background: linear-gradient(to top, rgba(255, 79, 139, 0.35) 1px, transparent 1px) 0 0 / 100% 18px, linear-gradient(to right, rgba(155, 77, 255, 0.3) 1px, transparent 1px) 0 0 / 40px 100%; transform: perspective(300px) rotateX(62deg); transform-origin: top; -webkit-mask: linear-gradient(transparent, #000 60%); mask: linear-gradient(transparent, #000 60%); }
.reward-art-sun { position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; border-radius: 50%; left: 50%; top: 8%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 199, 138, 0.55), rgba(255, 79, 139, 0.25) 45%, transparent 70%); filter: blur(8px); }
.code-stage { position: relative; width: min(420px, 100%); transform-style: preserve-3d; }
.code-card { position: relative; aspect-ratio: 1.586; border-radius: 22px; overflow: hidden; isolation: isolate; padding: 18px 20px; display: flex; flex-direction: column; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 40px 80px -24px rgba(10, 2, 20, 0.95), 0 0 70px -10px rgba(255, 79, 139, 0.55); transform: rotateX(8deg) rotateY(-14deg) rotateZ(2deg); transition: transform 0.25s ease-out; animation: card-float 7s ease-in-out infinite; }
.code-card-back { position: absolute; inset: 0; transform: translate(26px, -18px) rotateX(8deg) rotateY(-14deg) rotateZ(7deg); background: linear-gradient(135deg, #ffc78a, #ff4f8b 50%, #9b4dff); opacity: 0.55; box-shadow: none; animation: none; }
@keyframes card-float { 50% { translate: 0 -10px; } }
.code-photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.code-grade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(160deg, rgba(255, 138, 76, 0.35) 0%, rgba(255, 79, 139, 0.35) 45%, rgba(60, 14, 110, 0.85) 100%), linear-gradient(180deg, transparent 40%, rgba(12, 4, 24, 0.75)); }
.code-shine { position: absolute; inset: -50%; z-index: -1; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.28) 46%, rgba(255, 199, 138, 0.18) 50%, rgba(155, 77, 255, 0.2) 54%, transparent 62%); animation: shine 5s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes shine { 0%, 15% { transform: translateX(-30%); } 60%, 100% { transform: translateX(30%); } }
.code-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.code-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.code-brand svg { width: 20px; height: 20px; }
.code-platform { padding: 5px 10px; border-radius: 999px; background: rgba(12, 4, 24, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 0.7rem; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.code-title { margin-top: auto; display: flex; align-items: baseline; gap: 0.18em; font-family: 'Anton', Impact, sans-serif; font-size: clamp(3.4rem, 15vw, 5.4rem); line-height: 0.9; }
.code-gta { color: #fffaf4; text-shadow: 0 6px 24px rgba(20, 4, 36, 0.6); }
.code-vi { display: inline-grid; isolation: isolate; }
.code-vi::before, .code-vi::after, .code-vi .xl-grad { grid-area: 1 / 1; }
.code-vi::before, .code-vi::after { content: attr(data-t); z-index: -1; padding-right: 0.03em; }
.code-vi::before { color: #1c0830; -webkit-text-stroke: 0.075em #1c0830; }
.code-vi::after { color: #fffaf4; -webkit-text-stroke: 0.034em #fffaf4; }
.code-sub { font-size: 0.74rem; font-weight: 600; color: rgba(255, 247, 239, 0.88); margin: 4px 0 12px; }
.code-key { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(12, 4, 24, 0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.code-key .icon { width: 16px; height: 16px; color: var(--peach); stroke-width: 2.2; }
.code-mask { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86rem; letter-spacing: 0.12em; white-space: pre; color: rgba(255, 255, 255, 0.85); }
.code-unlock { margin-left: auto; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--peach); white-space: nowrap; }
.reward-info { padding: 28px 24px 30px; }
.reward-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 2.8rem); text-transform: uppercase; line-height: 1; margin: 14px 0 6px; }
.included { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 12px; }
.included li { display: flex; gap: 12px; color: #eadff0; font-size: 0.96rem; }
.included .icon { color: var(--teal); stroke-width: 2.4; width: 20px; height: 20px; margin-top: 2px; }
.included b { color: #fff; }

/* progress preview on night photo */
.night { overflow: hidden; isolation: isolate; }
.night .section-media img { object-position: 50% 50%; }
.night::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 5, 12, 0.45) 20%, rgba(20, 8, 40, 0.5) 80%, var(--bg) 100%), linear-gradient(90deg, rgba(7, 5, 12, 0.8), rgba(7, 5, 12, 0.1)); }
.preview-grid { display: grid; gap: 36px; align-items: center; }
.legend { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.legend b { color: var(--text); }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.sw-verified { background: var(--sunset); }
.sw-pending { background: repeating-linear-gradient(135deg, rgba(251, 191, 36, 0.75) 0 4px, rgba(251, 191, 36, 0.25) 4px 8px); }
.preview-card { padding: 26px; border-radius: 24px; background: rgba(16, 9, 28, 0.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
.preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.preview-pct { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; margin-bottom: 16px; }
.preview-pct small { font-family: var(--font); font-size: 1rem; font-weight: 500; color: var(--muted); }
.preview-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; margin-top: 12px; }
.preview-note { margin: 14px 0 0; font-size: 0.92rem; color: #f1e6f4; }
.slider-label { display: block; margin-top: 18px; }

/* progress bar */
.bar { position: relative; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bar-lg { height: 22px; }
.bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--sunset); box-shadow: 0 0 24px rgba(255, 79, 139, 0.6); transition: width 0.6s cubic-bezier(0.2, 0.7, 0.1, 1); }
.bar-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; border-radius: inherit; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.bar-pending { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(251, 191, 36, 0.6) 0 5px, rgba(251, 191, 36, 0.2) 5px 10px); transition: left 0.6s, width 0.6s; }
.tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.18); }

input[type='range'] { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; height: 28px; cursor: pointer; }
input[type='range']::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); }
input[type='range']::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 79, 139, 0.55), 0 0 20px rgba(255, 79, 139, 0.8); }
input[type='range']::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 79, 139, 0.55), 0 0 20px rgba(255, 79, 139, 0.8); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.stat { position: relative; padding: 22px 18px 20px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; overflow: hidden; }
.stat::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sunset); }
.stat-v { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.5rem); line-height: 1; text-transform: uppercase; }
.stat-l { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.know { padding: 28px 22px; border-radius: 24px; background: linear-gradient(160deg, rgba(255, 138, 76, 0.1), rgba(155, 77, 255, 0.1)); box-shadow: inset 0 0 0 1px rgba(255, 199, 138, 0.22); }
.know h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; letter-spacing: 0.01em; }
.know-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 16px; }
.know-list li { display: flex; gap: 14px; color: var(--muted); font-size: 0.95rem; }
.know-list b { color: var(--text); }
.know-list .icon { color: var(--peach); margin-top: 2px; }

.faq { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius-sm); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.25s; }
.faq-item[open] { box-shadow: inset 0 0 0 1px rgba(255, 138, 76, 0.45); background: rgba(255, 255, 255, 0.055); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 20px 20px; margin: 0; color: var(--muted); }
.faq-plus { position: absolute; right: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--peach); border-radius: 2px; transition: transform 0.25s; }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }

/* final cta on dusk photo */
.final-cta { position: relative; overflow: hidden; isolation: isolate; padding: 90px 0 110px; text-align: center; }
.final-cta .section-media img { object-position: 85% 40%; }
.final-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 5, 12, 0.35) 30%, rgba(60, 14, 70, 0.55) 70%, var(--bg) 100%); }
.final-inner { display: grid; justify-items: center; }
.final-title { justify-items: center; }
.final-cta .lead { margin: 0 auto 26px; }
.final-meta { margin: 18px 0 0; color: #f3e7ef; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- generic content pages */
.page { padding: 48px 0 80px; }
.page-head { margin-bottom: 28px; }
.prose { max-width: 760px; color: #ddd2e6; }
.prose h2 { font-size: 1.6rem; margin: 1.8em 0 0.5em; color: var(--text); }
.prose h3 { margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- forms / auth */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 0 80px; position: relative; isolation: isolate; }
.auth::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 5, 12, 0.72) 0%, rgba(30, 10, 50, 0.7) 55%, var(--bg) 100%), radial-gradient(60% 45% at 50% 0%, rgba(255, 79, 139, 0.25), transparent 70%); pointer-events: none; }
.auth-media img { object-position: 50% 60%; }
.auth-grid { display: grid; gap: 28px; justify-items: center; }
.auth-summary { width: 100%; max-width: 440px; }
.auth-title { font-family: 'Anton', Impact, sans-serif; font-size: clamp(3.6rem, 14vw, 6.5rem); line-height: 0.9; margin: 0 0 10px; }
.auth-summary .included { margin-bottom: 0; }
.card { position: relative; width: 100%; padding: 26px 22px; border-radius: 24px; background: rgba(15, 10, 24, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
.auth .card { max-width: 440px; }
.card h1 { font-size: clamp(2rem, 8vw, 2.4rem); margin-bottom: 8px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-size: 0.86rem; font-weight: 700; color: #ecdff0; }
.input, select.input, textarea.input {
  width: 100%; height: 52px; padding: 0 14px; border-radius: 12px; border: 0; color: var(--text); font: 500 1rem var(--font);
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 0.2s, background 0.2s;
}
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.input option, select.input optgroup { background: var(--bg-3); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--pink); background: rgba(255, 255, 255, 0.08); }
.input-code { text-align: center; letter-spacing: 0.4em; font-family: var(--font-display); font-size: 2rem; height: 66px; padding-left: 0.4em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; appearance: none; -webkit-appearance: none; border-radius: 6px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; display: grid; place-items: center; transition: background 0.15s, box-shadow 0.15s; }
.check input::after { content: ''; width: 11px; height: 6px; border-left: 2.5px solid #160b1f; border-bottom: 2.5px solid #160b1f; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--sunset); box-shadow: none; }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }
.hint { font-size: 0.82rem; color: var(--dim); }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 0.9rem; margin-bottom: 16px; }
.alert-error { background: rgba(248, 113, 113, 0.1); color: #fecaca; box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.35); }
.alert-ok { background: rgba(74, 222, 128, 0.1); color: #bbf7d0; box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.35); }
.alert-info { background: rgba(255, 79, 139, 0.1); color: #ffd1e1; box-shadow: inset 0 0 0 1px rgba(255, 79, 139, 0.35); }
.alert-warn { background: rgba(251, 191, 36, 0.1); color: #fde68a; box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.35); }
.auth-foot { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.cf-turnstile { margin-bottom: 16px; min-height: 65px; }

/* ---------------------------------------------------------------- app (dashboard) */
.app-page { padding: 28px 0 80px; }
.app-grid { display: grid; gap: 16px; }
.panel { padding: 22px 20px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.panel h2 { font-size: 1.5rem; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.reward-hero { position: relative; overflow: hidden; padding: 26px 22px; border-radius: 26px; isolation: isolate; background: radial-gradient(80% 120% at 100% 0%, rgba(255, 138, 76, 0.28), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgba(155, 77, 255, 0.28), transparent 60%), var(--bg-3); box-shadow: inset 0 0 0 1px rgba(255, 199, 138, 0.25); }
.reward-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.reward-name { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 6vw, 3rem); line-height: 1; margin: 4px 0; }
.big-pct { font-family: var(--font-display); font-size: clamp(3.4rem, 12vw, 5rem); line-height: 1; }
.big-pct small { font-family: var(--font); font-size: 1rem; color: var(--muted); }
.progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.remaining { color: #f1e6f4; font-size: 0.95rem; margin: 12px 0 0; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.kv div { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 1px var(--line); }
.kv dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); }
.kv dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.kv dd.pending { color: var(--amber); }
.kv dd.ok { color: var(--green); }
.reward-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.reward-actions .btn { flex: 1 1 200px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.list li:last-child { border-bottom: 0; }
.list .t { display: grid; gap: 2px; min-width: 0; }
.list .t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .amt { font-weight: 800; white-space: nowrap; text-align: right; }
.amt.plus { color: var(--green); }
.amt.minus { color: var(--red); }
.amt.wait { color: var(--amber); }
.empty { text-align: center; padding: 28px 10px; color: var(--muted); }
.platform-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.platform-picker label { position: relative; display: grid; place-items: center; padding: 16px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; font-weight: 700; font-size: 0.92rem; text-align: center; }
.platform-picker input { position: absolute; opacity: 0; }
.platform-picker label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--pink); background: rgba(255, 79, 139, 0.1); }
.steps-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: m; }
.steps-mini li { counter-increment: m; display: flex; gap: 12px; font-size: 0.92rem; color: var(--muted); }
.steps-mini li::before { content: counter(m); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 800; color: #160b1f; background: var(--sunset); }
.steps-mini b { color: var(--text); }
.subnav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 2px; scrollbar-width: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 0.9rem; font-weight: 600; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.subnav a.active { color: #160b1f; background: var(--text); box-shadow: none; }
.tab-short { display: none; }
@media (max-width: 520px) {
  .subnav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: visible; }
  .subnav a { text-align: center; padding: 9px 4px; background: transparent; box-shadow: none; font-size: 0.86rem; }
  .tab-full { display: none; }
  .tab-short { display: inline; }
}
.milestones { position: relative; height: 18px; margin-top: 6px; font-size: 0.72rem; font-weight: 700; color: var(--dim); }
.milestones span { position: absolute; top: 0; transform: translateX(-50%); }
.milestones .end { right: 0; transform: none; font-family: 'Anton', Impact, sans-serif; font-weight: 400; letter-spacing: 0.04em; font-size: 0.8rem; }
.milestones .hit { color: var(--peach); }

.offerwall-frame { width: 100%; height: 78vh; min-height: 640px; border: 0; border-radius: 18px; background: #fff; display: block; }
.offerwall-shell { border-radius: 22px; padding: 5px; background: var(--sunset); box-shadow: 0 30px 80px -30px rgba(255, 79, 139, 0.6); }
.progress-strip { display: grid; gap: 10px; padding: 16px 18px; border-radius: 18px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); margin-bottom: 16px; }
.progress-strip .row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.9rem; }

table.table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.table th, .table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); font-weight: 700; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; }

/* ---------------------------------------------------------------- responsive */
@media (min-width: 640px) {
  .wrap { padding: 0 28px; }
  .cta-row .btn { flex: 0 0 auto; }
  .hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .kv { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 34px 32px; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .reward-art { min-height: 440px; padding: 44px 36px; }
  .reward-info { padding: 36px 34px; }
}
@media (min-width: 900px) {
  .hide-sm { display: inline-flex; }
  .hero { padding: 140px 0 96px; }
  .hero-inner { grid-template-columns: 1fr auto; gap: 40px; }
  .hero-pass { display: block; }
  .scroll-cue { display: block; }
  .how-grid { grid-template-columns: 0.85fr 1fr; gap: 72px; }
  .how-media { order: 0; aspect-ratio: 4 / 5; }
  .reward-card { grid-template-columns: 1.05fr 1fr; }
  .reward-art { min-height: 540px; }
  .preview-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .section { padding: 120px 0; }
  .know { padding: 34px 38px; }
  .know-list { grid-template-columns: 1fr 1fr; gap: 20px 32px; }
  .app-grid { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .app-grid .span-all { grid-column: 1 / -1; }
  .final-cta { padding: 140px 0 150px; }
  .auth-grid { grid-template-columns: 1fr 440px; align-items: center; gap: 72px; max-width: 1100px; }
  .auth-grid .auth-summary { order: -1; max-width: none; }
  .sticky-cta { display: none !important; }
}

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

/* ---------------------------------------------------------------- sticky mobile CTA (landing) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(7, 5, 12, 0.92) 35%); transform: translateY(110%); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1); }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { --h: 54px; }
@media (hover: hover) { .reward-card:hover .code-card { transform: rotateX(4deg) rotateY(-6deg) rotateZ(1deg) scale(1.02); } }
/* Reward code card scales with its container so it fits any screen */
.code-stage { container-type: inline-size; width: min(460px, 86%); }
.code-card { padding: 4.6cqw 5cqw; border-radius: 5.4cqw; }
.code-brand { font-size: 2.5cqw; gap: 1.6cqw; }
.code-brand svg { width: 5cqw; height: 5cqw; }
.code-platform { font-size: 2.8cqw; padding: 1.3cqw 2.6cqw; }
.code-title { font-size: 21cqw; }
.code-sub { font-size: 3cqw; margin: 1cqw 0 3cqw; }
.code-key { padding: 2.3cqw 3cqw; gap: 2.4cqw; border-radius: 3cqw; }
.code-key .icon { width: 4cqw; height: 4cqw; }
.code-mask { font-size: 3.4cqw; letter-spacing: 0.1em; }
.code-unlock { font-size: 2.5cqw; }
@media (max-width: 639px) {
  .code-card { transform: rotateX(6deg) rotateY(-8deg) rotateZ(1.5deg); }
  .code-card-back { transform: translate(5%, -5%) rotateX(6deg) rotateY(-8deg) rotateZ(6deg); }
  .reward-art { min-height: 0; padding: 44px 16px 52px; }
}

/* ---------------------------------------------------------------- guide (how it works) */
.guide { padding-top: 40px; }
.crumbs { color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.guide-h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 0.95; margin-bottom: 14px; }
.tldr { margin: 28px 0 40px; padding: 24px 22px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 138, 76, 0.12), rgba(155, 77, 255, 0.12)); box-shadow: inset 0 0 0 1px rgba(255, 199, 138, 0.25); }
.tldr h2 { font-size: 1.8rem; margin-bottom: 12px; }
.tldr ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: #eadff0; }
.tldr b { color: #fff; }
.guide-steps { list-style: none; padding: 0; counter-reset: g; display: grid; gap: 4px; }
.guide-steps li { counter-increment: g; position: relative; padding: 14px 0 14px 64px; border-bottom: 1px solid var(--line); }
.guide-steps li::before { content: counter(g, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; background: var(--sunset-v); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guide-steps h3 { margin: 0 0 4px; color: var(--text); }
.guide-steps p { margin: 0; }
.prose .table-wrap { margin: 10px 0 8px; }
.guide-cta { margin: 48px 0 0; padding: 32px 24px; border-radius: 24px; text-align: center; background: radial-gradient(80% 120% at 50% 0%, rgba(255, 79, 139, 0.22), transparent 60%), var(--bg-3); box-shadow: inset 0 0 0 1px rgba(255, 79, 139, 0.3); }
.guide-cta-t { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; margin-bottom: 16px; }

/* delivered gift card codes */
.codes { margin-top: 16px; padding: 16px; border-radius: 16px; background: rgba(74, 222, 128, 0.07); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.3); }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-top: 8px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--line); }
.code-value { font-size: 1rem; letter-spacing: 0.06em; word-break: break-all; color: #fff; }

/* ---------------------------------------------------------------- own offer list (feed based networks) */
.offers-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.offers-head h2 { margin: 0; }
.offers-how { list-style: none; counter-reset: oh; display: grid; gap: 8px; margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.88rem; color: var(--muted); }
.offers-how li { counter-increment: oh; display: flex; align-items: center; gap: 10px; }
.offers-how li::before { content: counter(oh); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.74rem; font-weight: 800; color: #160b1f; background: var(--sunset); }
.offers-how b { color: var(--text); }
.offer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.offer { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, background 0.2s, transform 0.2s; }
.offer:hover { background: rgba(255, 255, 255, 0.055); box-shadow: inset 0 0 0 1px rgba(255, 138, 76, 0.45); }
.offer-img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--sunset); box-shadow: 0 0 0 1px var(--line); }
.offer-body { min-width: 0; display: grid; gap: 6px; align-content: start; }
.offer-title { margin: 0; font-family: var(--font); font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.offer-desc { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.offer-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: #ddd6fe; background: rgba(155, 77, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(155, 77, 255, 0.35); }
.offer-tag-cost { color: #fecaca; background: rgba(248, 113, 113, 0.14); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.45); }
.offer-side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.offer-reward { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(74, 222, 128, 0.12); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.4); color: #bbf7d0; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.offer-reward b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1; color: var(--green); }
.offer-btn { min-width: 116px; }
.offer-warning { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 0.8rem; line-height: 1.45; color: #fecaca; background: rgba(248, 113, 113, 0.08); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.3); }
@media (min-width: 720px) {
  .offer { grid-template-columns: 64px 1fr auto; align-items: center; }
  .offer-side { grid-column: auto; flex-direction: column; align-items: stretch; gap: 8px; padding: 0 0 0 16px; border-top: 0; border-left: 1px solid var(--line); min-width: 150px; }
  .offer-reward { justify-content: center; }
}

/* offer wall panel: warm sunset surface so it stands out from the neutral side panels */
.panel.offers-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(255, 138, 76, 0.32), transparent 60%),
    radial-gradient(80% 70% at 0% 100%, rgba(155, 77, 255, 0.38), transparent 65%),
    linear-gradient(160deg, #2a1240 0%, #1b0d2e 55%, #140a22 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 76, 0.45), 0 30px 80px -40px rgba(255, 79, 139, 0.7);
}
.panel.offers-panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sunset); }
.offers-panel .offers-how { background: rgba(7, 5, 12, 0.45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.offers-panel .offer { background: rgba(7, 5, 12, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.offers-panel .offer:hover { background: rgba(7, 5, 12, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 138, 76, 0.6); }
.offers-panel .chip-muted { background: rgba(7, 5, 12, 0.45); color: #f1e6f4; }
.offers-panel .hint { color: #b9aec6; }

/* offers page refinements */
.strip-next { font-size: 0.82rem; color: var(--muted); }
.strip-next b { color: var(--peach); }
.offers-aside { display: grid; gap: 16px; }
.offers-aside .panel h2 { font-size: 1.3rem; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.tips li { position: relative; padding-left: 22px; line-height: 1.45; }
.tips li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 10px; height: 10px; border-radius: 3px; background: var(--sunset); }
.tips b { color: var(--text); }
.offers-aside .faq-item { margin-top: 8px; }
.offers-aside .faq-item summary { padding: 13px 44px 13px 14px; font-size: 0.9rem; }
.offers-aside .faq-item p { padding: 0 14px 14px; font-size: 0.86rem; }
.offer-filter { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(7, 5, 12, 0.45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.ofl { border: 0; cursor: pointer; padding: 7px 12px; border-radius: 999px; background: transparent; color: #e7dcef; font: 700 0.8rem var(--font); white-space: nowrap; }
.ofl span { opacity: 0.6; margin-left: 2px; }
.ofl.active { background: var(--text); color: #160b1f; }
.offer-list[data-filter='free'] .offer-paid, .offer-list[data-filter='paid'] .offer-free { display: none; }
.offers-toast { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 0.88rem; color: #bbf7d0; background: rgba(74, 222, 128, 0.1); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.35); }
.offers-toast[hidden] { display: none; }
.offer-impact { font-size: 0.74rem; color: var(--muted); text-align: center; }
.offer-tag-started { color: #fde68a; background: rgba(251, 191, 36, 0.12); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.4); }
.offer-tag-done { color: #bbf7d0; background: rgba(74, 222, 128, 0.12); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.4); }
.offer-done { opacity: 0.6; }
.btn-ext { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.offer-side .offer-impact { display: none; }
@media (min-width: 720px) {
  .offers-how { display: flex; flex-wrap: wrap; gap: 8px 22px; }
  .offer-side .offer-impact { display: block; margin-top: -2px; }
}
@media (max-width: 519px) {
  .offer-filter { width: 100%; }
  .ofl { flex: 1; padding: 8px 6px; }
}
.nav-btn { background: none; border: 0; cursor: pointer; font: 600 0.9rem var(--font); }

/* ---------------------------------------------------------------- modal (contact support) */
.modal { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 24px; background: transparent; color: var(--text); overflow: visible; }
.modal::backdrop { background: rgba(7, 5, 12, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.22s cubic-bezier(0.2, 0.7, 0.1, 1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-card { position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 24px 22px 22px; border-radius: 24px; background: radial-gradient(80% 60% at 100% 0%, rgba(255, 138, 76, 0.18), transparent 60%), var(--bg-2); box-shadow: inset 0 0 0 1px rgba(255, 138, 76, 0.35), 0 40px 100px -20px rgba(0, 0, 0, 0.9); }
.modal-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 24px 24px 0 0; background: var(--sunset); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.modal-head h2 { margin: 0; font-size: 1.8rem; }
.modal-x { width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--text); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-2); }
.modal-x:hover { background: rgba(255, 255, 255, 0.14); }
.modal-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.modal-actions .btn { min-width: 120px; }
.modal .field { margin-bottom: 14px; }
.support-offer[hidden] { display: none; }
@media (max-width: 519px) { .modal-actions .btn { flex: 1; min-width: 0; } .modal-card { padding: 22px 18px 18px; } }

/* ---------------------------------------------------------------- admin light theme (content only; header and footer stay dark) */
.admin-light {
  --text: #1b1426; --muted: #574d66; --dim: #6f6580; --line: #e7e2ee; --line-2: #d2cadd;
  --panel: #fff; --panel-2: #f6f4f9; --peach: #b4541a; --pink-2: #c81e63; --pink: #d6246a;
  --amber: #a85d00; --green: #15803d; --red: #c62828;
  background: #f4f2f8; color: var(--text); min-height: 70vh;
}
.admin-light a:hover { color: #8c1246; }
.admin-light .panel, .admin-light .stat { background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 3px rgba(27, 20, 38, 0.05); }
.admin-light .kv div { background: var(--panel-2); }
.admin-light .bar { background: #ebe6f1; }
.admin-light .bar-fill { box-shadow: none; }
.admin-light .table th { color: var(--dim); }
.admin-light .table tbody tr:hover td { background: #faf8fc; }
.admin-light .subnav a { background: #fff; }
.admin-light .subnav a.active { color: #fff; background: var(--text); }
.admin-light .btn { color: var(--text); }
.admin-light .btn-primary { color: #fff; box-shadow: 0 8px 24px -12px rgba(214, 36, 106, 0.6); }
.admin-light .btn-ghost { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
.admin-light .btn-ghost:hover { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.admin-light .btn-danger { background: #fdeceb; color: #b42318; box-shadow: inset 0 0 0 1px #f5b5ae; }
.admin-light .btn-ok { background: #e9f8ee; color: #146c34; box-shadow: inset 0 0 0 1px #a6e0b8; }
.admin-light .field label, .admin-light .label { color: var(--text); }
.admin-light .input { background: #fff; color: var(--text); }
.admin-light .input:focus { background: #fff; }
.admin-light select.input option, .admin-light select.input optgroup { background: #fff; color: var(--text); }
.admin-light .check input { background: #fff; }
.admin-light .alert-error { background: #fdeceb; color: #9b1c13; box-shadow: inset 0 0 0 1px #f5b5ae; }
.admin-light .alert-ok { background: #e9f8ee; color: #146c34; box-shadow: inset 0 0 0 1px #a6e0b8; }
.admin-light .alert-info { background: #fdeaf2; color: #8c1246; box-shadow: inset 0 0 0 1px #f4b3cc; }
.admin-light .alert-warn { background: #fff5e0; color: #7a4300; box-shadow: inset 0 0 0 1px #f3cf86; }
.admin-light .chip-ok { background: #e9f8ee; color: #146c34; box-shadow: inset 0 0 0 1px #a6e0b8; }
.admin-light .chip-pending, .admin-light .chip-preview { background: #fff5e0; color: #7a4300; box-shadow: inset 0 0 0 1px #f3cf86; }
.admin-light .chip-bad { background: #fdeceb; color: #9b1c13; box-shadow: inset 0 0 0 1px #f5b5ae; }
.admin-light .chip-info { background: #fdeaf2; color: #8c1246; box-shadow: inset 0 0 0 1px #f4b3cc; }
.admin-light .chip-muted { background: var(--panel-2); }
.admin-light pre { background: var(--panel-2); padding: 10px; border-radius: 8px; }
.admin-light :focus-visible { outline-color: var(--pink); }
.admin-bar { display: flex; align-items: flex-start; gap: 12px; }
.admin-bar .subnav { flex: 1; min-width: 0; }
.theme-toggle { flex: none; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.theme-toggle a { padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.theme-toggle a[aria-current] { background: var(--text); color: var(--bg); }
.admin-light .theme-toggle a[aria-current] { color: #fff; }
@media (max-width: 719px) {
  .admin-bar { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .admin-bar .subnav { flex: none; width: 100%; display: flex; gap: 6px; padding: 0 0 2px; border-radius: 0; background: none; box-shadow: none; overflow-x: auto; }
  .admin-bar .subnav a { padding: 8px 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
  .admin-light .admin-bar .subnav a { background: #fff; }
  .admin-bar .subnav a.active { background: var(--text); box-shadow: none; }
  .theme-toggle { align-self: flex-end; }
  .app-page .panel-head { flex-wrap: wrap; }
  .admin-bar ~ .panel-head > span { display: flex; flex-wrap: wrap; row-gap: 4px; margin-left: -10px; }
}
/* admin light: plain business dashboard look (no sunset accents, regular type) */
.admin-light { --pink-2: #1d4ed8; --pink: #2563eb; --peach: #1d4ed8; --radius: 10px; background: #f5f6f8; --line: #e3e6eb; --line-2: #cfd4dc; --text: #111827; --muted: #4b5563; --dim: #6b7280; --panel-2: #f8f9fb; }
.admin-light a:hover { color: #1e3a8a; }
.admin-light h1, .admin-light h2 { font-family: var(--font); text-transform: none; letter-spacing: -0.01em; font-weight: 700; }
.admin-light h1 { font-size: 1.5rem !important; }
.admin-light .panel h2 { font-size: 1.1rem; margin-bottom: 12px; }
.admin-light .panel, .admin-light .stat { border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(17, 24, 39, 0.04); }
.admin-light .stat::before { display: none; }
.admin-light .stat-v { font-family: var(--font); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.admin-light .kv div { border-radius: 8px; }
.admin-light .kv dd { font-family: var(--font); font-weight: 700; font-size: 1.3rem; }
.admin-light .bar { height: 10px; border-radius: 4px; background: #e9ecf1; box-shadow: none; }
.admin-light .bar-fill { background: #2563eb; border-radius: 4px; box-shadow: none; }
.admin-light .bar-fill::after { display: none; }
.admin-light .subnav a, .admin-light .theme-toggle, .admin-light .theme-toggle a { border-radius: 8px; }
.admin-light .subnav a { box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.admin-light .subnav a.active, .admin-light .theme-toggle a[aria-current] { background: #111827; color: #fff; }
.admin-light .btn { border-radius: 8px; }
.admin-light .btn-primary { background: #2563eb; color: #fff; box-shadow: none; }
.admin-light .btn-primary::before { display: none; }
.admin-light .btn-primary:hover { background: #1d4ed8; color: #fff; box-shadow: none; }
.admin-light .input { border-radius: 8px; height: 44px; }
.admin-light textarea.input { height: auto; }
.admin-light select.input { background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; }
.admin-light .input:focus { box-shadow: inset 0 0 0 2px #2563eb; }
.admin-light .check input:checked { background: #2563eb; }
.admin-light .check input::after { border-color: #fff; }
.admin-light .alert, .admin-light .chip { border-radius: 6px; }
.admin-light .alert-info { background: #eff4ff; color: #1e3a8a; box-shadow: inset 0 0 0 1px #c7d7fe; }
.admin-light .chip-info { background: #eff4ff; color: #1e3a8a; box-shadow: inset 0 0 0 1px #c7d7fe; }
.admin-light .grad, .admin-light .sunset-text { background: none; color: var(--text); }
.admin-light :focus-visible { outline-color: #2563eb; }
/* admin pagination */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; font-size: 0.88rem; }
.pager-info { color: var(--muted); font-variant-numeric: tabular-nums; }
.pager-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pager-links a, .pager-links span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pager-links a { color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.pager-links a:hover { box-shadow: inset 0 0 0 1px var(--text); color: var(--text); }
.pager-links .cur { background: var(--text); color: var(--bg); }
.admin-light .pager-links a { background: #fff; }
.admin-light .pager-links .cur { background: #111827; color: #fff; }
.pager-links .is-off { color: var(--dim); opacity: 0.55; }
.pager-links .gap { min-width: 20px; padding: 0; color: var(--dim); }
.admin-bar ~ .table-wrap .table td:first-child, .admin-bar ~ .table-wrap .table th { white-space: nowrap; }

/* ---------------------------------------------------------------- admin work queue UI */
.admin-h1 { font-size: 1.5rem; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-h1 .chip { font-family: var(--font); text-transform: none; letter-spacing: 0; }
.strong { font-weight: 700; }
.txt-warn { color: var(--amber); }
.txt-bad { color: var(--red); }
.crumbs { font-size: 0.86rem; color: var(--dim); margin: 0 0 6px; }
.tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800; line-height: 1; vertical-align: 1px; }
.admin-light .tab-badge { background: #dc2626; }

.ftabs { display: flex; gap: 2px; overflow-x: auto; margin: 0 0 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.ftabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.ftabs a:hover { color: var(--text); }
.ftabs a.active { color: var(--text); border-bottom-color: var(--text); }
.ftabs-n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.74rem; font-weight: 700; text-align: center; color: var(--muted); }
.ftabs a.active .ftabs-n { background: var(--text); color: var(--bg); box-shadow: none; }
.admin-light .ftabs a.active .ftabs-n { color: #fff; }

.needs { margin-bottom: 18px; }
.needs-title { font-size: 1rem !important; margin: 0 0 10px; color: var(--muted); }
.needs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .needs-grid { grid-template-columns: repeat(4, 1fr); } }
.needs-item { display: grid; gap: 2px; padding: 16px 16px 14px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); border-left: 4px solid transparent; transition: box-shadow 0.15s, transform 0.15s; }
.needs-item:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), 0 4px 14px -6px rgba(17, 24, 39, 0.2); }
.needs-n { font-size: 1.9rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; height: 2.1rem; display: flex; align-items: center; }
.needs-n svg { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.needs-l { font-weight: 700; font-size: 0.95rem; }
.needs-s { font-size: 0.82rem; color: var(--muted); }
.needs-item.is-todo { border-left-color: var(--pink); }
.needs-item.is-urgent { border-left-color: var(--red); }
.needs-item.is-urgent .needs-n { color: var(--red); }
.needs-item.is-clear .needs-l { color: var(--muted); }
.admin-light .needs-item { background: #fff; }

.table-rows tbody tr:hover td { background: var(--panel-2); }
.table td .chip { vertical-align: middle; }
.row-flags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }

.admin-cols { display: grid; gap: 16px; }
@media (min-width: 980px) { .admin-cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; font-size: 0.92rem; }
.dl dt { color: var(--dim); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 519px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; } }
.buy-box { margin-top: 16px; padding: 14px 16px; border-radius: 8px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); border-left: 4px solid var(--pink); font-size: 0.92rem; }
.buy-box p { margin: 4px 0 0; }
.claim-form .field { margin-bottom: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.9rem; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks-i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; }
.checks .is-ok .checks-i { background: rgba(74, 222, 128, 0.15); color: var(--green); }
.checks .is-bad .checks-i { background: rgba(248, 113, 113, 0.15); color: var(--red); }
.checks .is-info .checks-i { background: var(--panel-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.checks .is-bad { color: var(--red); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 12px; font-size: 0.9rem; }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 2px var(--text); }

.ticket-msg { padding: 12px 14px; border-radius: 8px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.ticket-msg p:first-child:not(:last-child) { margin-bottom: 6px; }
.verdict { display: grid; gap: 2px; margin-top: 12px; padding: 12px 14px; border-radius: 8px; border-left: 4px solid; font-size: 0.92rem; }
.verdict.is-ok { background: rgba(74, 222, 128, 0.1); border-color: var(--green); }
.verdict.is-warn { background: rgba(251, 191, 36, 0.1); border-color: var(--amber); }
.verdict.is-bad { background: rgba(248, 113, 113, 0.1); border-color: var(--red); }
.verdict.is-info { background: var(--panel-2); border-color: var(--line-2); }
.admin-light .verdict.is-ok { background: #ecfbf1; }
.admin-light .verdict.is-warn { background: #fff7e6; }
.admin-light .verdict.is-bad { background: #fdeeed; }
.ctx { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.ctx summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.ctx-grid { display: grid; gap: 16px; margin-top: 12px; }
@media (min-width: 900px) { .ctx-grid { grid-template-columns: 1.2fr 1.2fr 1fr; } }
.ctx h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin: 0 0 6px; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: 0.86rem; }
.mini li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mini li:last-child { border-bottom: 0; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.ticket-close { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.ticket-close .input { flex: 1; }

/* confirm dialog on admin pages */
.admin-light .modal-card { background: #fff; box-shadow: 0 30px 80px -20px rgba(17, 24, 39, 0.45); border-radius: 12px; }
.admin-light .modal-card::before { display: none; }
.admin-light .modal { border-radius: 12px; }
.admin-light .modal::backdrop { background: rgba(17, 24, 39, 0.45); }
.admin-light .modal-head h2 { font-size: 1.2rem; }
.admin-light .modal-x { background: var(--panel-2); color: var(--text); }
.modal-confirm .modal-actions { margin-top: 16px; }
/* overview stat groups */
.stat-groups { display: grid; gap: 18px; margin-bottom: 18px; }
.stat-group-h { font-size: 1rem !important; margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px; }
.stat-group-h span { font-size: 0.8rem; font-weight: 500; color: var(--dim); }
.stat-groups .stats { margin: 0; }
@media (min-width: 900px) { .stat-groups .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .stat-l.strong { color: var(--muted); font-weight: 600; font-size: 0.84rem; }
.stat-sub { font-size: 0.8rem; color: var(--dim); line-height: 1.35; }
.txt-ok { color: var(--green); }
/* risk sections */
.risk-sec > summary, .cluster > summary { cursor: pointer; list-style: none; }
.risk-sec > summary::-webkit-details-marker, .cluster > summary::-webkit-details-marker { display: none; }
.risk-sec > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.risk-sec > summary h2 { margin: 0; }
.risk-sec > summary::after, .cluster > summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(-45deg); transition: transform 0.15s; flex: none; }
.risk-sec > summary::after { margin-left: auto; order: 3; }
.risk-sec[open] > summary::after, .cluster[open] > summary::before { transform: rotate(45deg); }
.risk-sec[open] > summary { margin-bottom: 10px; }
.cluster { border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); padding: 10px 12px; }
.cluster > summary { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.cluster[open] > summary { margin-bottom: 8px; }
.sub-h { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin: 0 0 8px; }
.sec-h { font-size: 1.05rem !important; margin: 0 0 10px; }
details.more summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--pink-2); padding: 8px 0; }
/* settings */
.status-panel { margin-bottom: 16px; }
.status-rows { display: grid; gap: 0; }
@media (min-width: 900px) { .status-rows { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.status-row .chip { margin-left: 6px; }
.status-row .btn { flex: none; min-width: 92px; }
.settings-form fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.settings-form legend { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); font-weight: 700; padding: 0; margin: 4px 0 12px; }
.settings-form fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 16px; }
.settings-form .field .hint { margin-top: -2px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); font-weight: 600; pointer-events: none; }
.input-prefix .input { padding-left: 30px; }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0 2px; background: linear-gradient(transparent, var(--panel) 30%); }
.admin-light .sticky-save { background: linear-gradient(rgba(255, 255, 255, 0), #fff 30%); }
.copy-field { margin-bottom: 12px; }
.copy-field .label { display: block; margin-bottom: 4px; }
.copy-row { display: flex; gap: 8px; align-items: flex-start; }
.copy-row code { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 6px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); word-break: break-all; line-height: 1.45; }
.copy-row .btn { flex: none; }
/* admin chrome */
.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-tag { padding: 3px 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.admin-footer { padding: 18px 0; font-size: 0.84rem; color: var(--muted); }
.admin-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-search { position: relative; flex: none; width: 230px; }
.admin-search svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--dim); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.admin-search input { width: 100%; height: 38px; padding: 0 12px 0 34px; border: 0; border-radius: 8px; font: 500 0.88rem var(--font); color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.admin-search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--pink); }
.admin-light .admin-search input { background: #fff; }
@media (max-width: 1199px) { .admin-bar { flex-wrap: wrap; } .admin-bar .subnav { flex: 1 1 100%; order: 3; } }
@media (max-width: 719px) { .admin-search { width: auto; flex: 1; } .admin-bar { flex-direction: row; flex-wrap: wrap; } .theme-toggle { align-self: center; } }
.admin-brand ~ .nav .nav-link { white-space: nowrap; }
@media (max-width: 519px) { .admin-brand .logo-word { display: none; } .admin-brand ~ .nav { gap: 14px; } }
.sticky-save { margin: 8px -20px -22px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--bg-2); border-radius: 0 0 10px 10px; }
.admin-light .sticky-save { background: #fff; box-shadow: 0 -6px 16px -10px rgba(17, 24, 39, 0.25); }
/* legal pages: use the full content width; a little more line height keeps long lines readable */
.legal .prose { max-width: none; line-height: 1.7; }
.legal .prose h2 { margin-top: 1.6em; }
/* invite friends */
.invite-link { display: flex; gap: 8px; margin: 12px 0 10px; }
.invite-link .input { height: 42px; font-size: 0.82rem; flex: 1; min-width: 0; }
.invite-link .btn { flex: none; height: 42px; }
.invite-share { display: flex; flex-wrap: wrap; gap: 8px; }
.invite-share [hidden] { display: none; }
.invite-kv { grid-template-columns: repeat(2, 1fr); margin-top: 14px; }
.invite-kv dd { font-size: 1.3rem; }
.invite-note { margin: 14px 0 4px; }
