/* ==========================================================================
   AntiCash theme v2: dark hero, aurora, gradients, glow, 3D, motion.
   Loaded after styles.css and app.css. Only adds or overrides.
   ========================================================================== */

:root {
  --navy: #070b1a;
  --navy-2: #0c1330;
  --navy-3: #131b40;
  --mint: #2de2a6;
  --lime: #c8ff5a;
  --violet: #7c5cff;
  --cyan: #35c9ff;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-line: rgba(255, 255, 255, 0.12);
  --grad: linear-gradient(110deg, #2de2a6 0%, #35c9ff 45%, #7c5cff 100%);
  --grad-deep: linear-gradient(135deg, #0f6b4f 0%, #1a3d8f 55%, #5a3fd6 100%);
}

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); pointer-events: none; }

/* ---------- Header on dark ---------- */
.site-header.on-dark:not(.scrolled) { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.on-dark:not(.scrolled) .wordmark { color: #fff; }
.site-header.on-dark:not(.scrolled) .wordmark span { color: var(--mint); }
.site-header.on-dark:not(.scrolled) .nav a { color: rgba(255, 255, 255, 0.72); }
.site-header.on-dark:not(.scrolled) .nav a:hover, .site-header.on-dark:not(.scrolled) .nav a[aria-current] { color: #fff; }
.site-header.on-dark:not(.scrolled) .balance-chip, .site-header.on-dark:not(.scrolled) .avatar-btn { background: var(--glass); border-color: var(--glass-line); color: #fff; }
.site-header.on-dark:not(.scrolled) .balance-chip b { color: var(--mint); }
.site-header.on-dark:not(.scrolled) .menu-toggle { background: var(--glass); border-color: var(--glass-line); }
.site-header.on-dark:not(.scrolled) .menu-toggle span, .site-header.on-dark:not(.scrolled) .menu-toggle span::before, .site-header.on-dark:not(.scrolled) .menu-toggle span::after { background: #fff; }
.site-header.on-dark:not(.scrolled) .btn-primary { background: var(--mint); color: #04231a; }
.site-header.on-dark:not(.scrolled) .skel-pill { background: var(--glass); }

/* ---------- Gradient text and buttons ---------- */
.grad-text { background: linear-gradient(100deg, #2de2a6, #35c9ff, #7c5cff, #2de2a6); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: gradShift 7s linear infinite; }
@keyframes gradShift { to { background-position: 250% 0; } }

.btn-glow { position: relative; overflow: hidden; background: var(--grad); color: #04141c; font-weight: 800; box-shadow: 0 10px 40px -10px rgba(45, 226, 166, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4); transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease); }
.btn-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); transform: translateX(-120%); animation: sweep 3.6s var(--ease) infinite; }
@keyframes sweep { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(53, 201, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-outline-light { background: var(--glass); color: #fff; border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Hero ---------- */
.hero-dark { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, #1b2a6b 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #0c4a3d 0%, transparent 60%), var(--navy); color: #fff; padding: calc(var(--header-h) + 72px) 0 96px; isolation: isolate; }
.hero-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%); }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.blob.b1 { width: 520px; height: 520px; background: #2de2a6; top: -140px; right: 8%; opacity: 0.32; animation: drift1 18s ease-in-out infinite alternate; }
.blob.b2 { width: 460px; height: 460px; background: #7c5cff; top: 30%; right: -120px; opacity: 0.4; animation: drift2 22s ease-in-out infinite alternate; }
.blob.b3 { width: 420px; height: 420px; background: #35c9ff; bottom: -200px; left: 12%; opacity: 0.28; animation: drift3 20s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-160px, -60px) scale(0.9); } }
@keyframes drift3 { to { transform: translate(140px, -70px) scale(1.2); } }
.hero-dark .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero-dark .eyebrow { color: var(--mint); }
.hero-dark h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; margin: 20px 0 22px; }
.hero-dark .lead { color: rgba(255, 255, 255, 0.72); font-size: 19px; max-width: 52ch; }
.hero-dark .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-dark .micro { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.5); font-weight: 600; }
.hero-dark .welcome { display: grid; gap: 20px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

/* ---------- Phone mock ---------- */
.stage3d { position: relative; perspective: 1400px; display: grid; place-items: center; min-height: 560px; }
.phone { position: relative; width: 300px; border-radius: 42px; padding: 11px; background: linear-gradient(160deg, #2a3567, #0d1330); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 120px -20px rgba(124, 92, 255, 0.5); transform: rotateY(-14deg) rotateX(6deg) rotateZ(2deg); transform-style: preserve-3d; transition: transform 0.2s ease-out; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
.phone .screen { border-radius: 32px; background: linear-gradient(180deg, #0f1738 0%, #0a1026 100%); padding: 22px 18px 20px; min-height: 520px; position: relative; overflow: hidden; }
.phone .notch { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 84px; height: 22px; border-radius: 99px; background: #05070f; z-index: 2; }
.ph-top { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, 0.6); }
.ph-bal { margin-top: 18px; padding: 18px; border-radius: 20px; background: var(--grad-deep); position: relative; overflow: hidden; }
.ph-bal::after { content: ""; position: absolute; width: 160px; height: 160px; right: -50px; top: -60px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.ph-bal small { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); font-weight: 800; }
.ph-bal .amt { font-family: var(--font-mono); font-size: 34px; font-weight: 500; letter-spacing: -0.03em; margin-top: 6px; }
.ph-bar { height: 6px; background: rgba(255, 255, 255, 0.2); border-radius: 99px; margin-top: 14px; overflow: hidden; }
.ph-bar i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 99px; transition: width 1.2s var(--ease-out); }
.ph-list { margin-top: 18px; display: grid; gap: 10px; }
.ph-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.07); font-size: 13px; font-weight: 700; opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out); }
.ph-row.on { opacity: 1; transform: none; }
.ph-row .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ph-row .ic svg { width: 18px; height: 18px; }
.ph-row .t { flex: 1; min-width: 0; }
.ph-row .t small { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.5); font-weight: 600; }
.ph-row .v { font-family: var(--font-mono); font-weight: 500; color: var(--mint); font-size: 13px; }
.ic.g { background: rgba(45, 226, 166, 0.16); color: var(--mint); }
.ic.v { background: rgba(124, 92, 255, 0.2); color: #a99aff; }
.ic.c { background: rgba(53, 201, 255, 0.16); color: var(--cyan); }
.float-card { position: absolute; z-index: 3; padding: 12px 16px; border-radius: 16px; background: rgba(15, 22, 54, 0.85); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8); display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.float-card small { display: block; color: rgba(255, 255, 255, 0.55); font-weight: 600; font-size: 11.5px; }
.float-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.float-card .ic svg { width: 18px; height: 18px; }
.float-card.f1 { left: -10px; top: 110px; animation: bob 5.5s ease-in-out infinite; }
.float-card.f2 { right: -6px; bottom: 130px; animation: bob 6.5s ease-in-out -2s infinite; }
.float-card.f3 { left: 6px; bottom: 36px; animation: bob 7s ease-in-out -4s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.coin { position: absolute; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; font-size: 20px; color: #3a2a00; background: radial-gradient(circle at 30% 30%, #fff3b0, #f7b731 60%, #c98a00); box-shadow: 0 10px 30px -8px rgba(247, 183, 49, 0.7), inset 0 -3px 6px rgba(0, 0, 0, 0.2); animation: coinFloat var(--t, 8s) ease-in-out var(--dl, 0s) infinite; }
@keyframes coinFloat { 0%, 100% { transform: translate(0, 0) rotateY(0); } 50% { transform: translate(var(--dx, 14px), var(--dy, -26px)) rotateY(180deg); } }

/* ---------- Dark sections ---------- */
.sect-dark { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.sect-dark .h2 { color: #fff; }
.sect-dark .lead, .sect-dark p { color: rgba(255, 255, 255, 0.7); }
.sect-dark .eyebrow { color: var(--mint); }
.marq-dark { background: var(--navy-2); border-block: 1px solid var(--glass-line); padding: 20px 0; overflow: hidden; color: rgba(255, 255, 255, 0.8); }
.marq-dark .marquee-track { display: flex; gap: 48px; width: max-content; animation: marq 36s linear infinite; }
.marq-dark .marquee-item { display: flex; align-items: center; gap: 48px; font-weight: 800; letter-spacing: 0.1em; font-size: 14px; text-transform: uppercase; }
.marq-dark .marquee-item::after { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--mint); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Spotlight cards ---------- */
.spot { position: relative; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease); }
.spot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 226, 166, 0.16), transparent 45%); opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none; }
.spot:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(15, 107, 79, 0.45); }
.spot:hover::before { opacity: 1; }
.sect-dark .spot { background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); border-color: var(--glass-line); }
.sect-dark .spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, 0.28), transparent 45%); }

/* ---------- Product duo ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product { padding: 36px; display: grid; gap: 18px; align-content: start; min-height: 420px; }
.product .tagline { display: inline-flex; width: fit-content; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.product.rew .tagline { background: var(--green-tint); color: var(--green); }
.product.lnk .tagline { background: #ece8ff; color: #4a32c4; }
.product h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.035em; line-height: 1.08; font-weight: 800; }
.product p { color: var(--ink-2); font-size: 16.5px; }
.product ul { display: grid; gap: 10px; margin-top: 4px; }
.product li { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 15px; }
.product li svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.product.lnk li svg { color: var(--violet); }
.product .go { margin-top: 10px; }
.mini-art { height: 150px; border-radius: 14px; position: relative; overflow: hidden; margin-top: 6px; }
.mini-art.a { background: linear-gradient(135deg, #0f6b4f, #1a3d8f); }
.mini-art.b { background: linear-gradient(135deg, #4a32c4, #1a8fc4); }
.mini-art .bar-anim { position: absolute; bottom: 0; width: 12%; border-radius: 8px 8px 0 0; background: rgba(255, 255, 255, 0.5); transform-origin: bottom; animation: grow 3.4s ease-in-out infinite alternate; }
@keyframes grow { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
.url-demo { position: absolute; left: 14px; right: 14px; top: 50%; translate: 0 -50%; display: grid; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; }
.url-demo .long { padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.28); color: rgba(255, 255, 255, 0.65); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.url-demo .short { padding: 10px 12px; border-radius: 10px; background: #fff; color: #2c1f86; font-weight: 500; animation: pulseIn 3s var(--ease) infinite; }
@keyframes pulseIn { 0%, 30% { transform: scale(0.96); opacity: 0.5; } 45%, 100% { transform: none; opacity: 1; } }

/* ---------- Steps with connector ---------- */
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps4::before { content: ""; position: absolute; top: 30px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--mint), var(--cyan), var(--violet)); opacity: 0.5; }
.step { position: relative; padding: 0 6px; text-align: left; }
.step .num { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 20px; font-weight: 500; background: var(--navy-3); border: 1px solid var(--glass-line); color: var(--mint); box-shadow: 0 0 0 6px var(--navy); position: relative; z-index: 1; }
.step h3 { font-size: 19px; margin: 20px 0 8px; color: #fff; }
.step p { font-size: 15px; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.calc .in { padding: 40px; display: grid; gap: 26px; }
.calc .out { padding: 40px; background: var(--grad-deep); color: #fff; display: grid; gap: 8px; align-content: center; position: relative; overflow: hidden; }
.calc .out::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); right: -110px; top: -110px; }
.calc .out .big { font-family: var(--font-mono); font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.04em; font-weight: 500; position: relative; z-index: 1; }
.calc .out small { color: rgba(255, 255, 255, 0.7); font-weight: 600; position: relative; z-index: 1; }
.calc .out .lab { font-size: 12px; letter-spacing: 0.14em; font-weight: 800; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); position: relative; z-index: 1; }
.range { width: 100%; accent-color: var(--green); height: 6px; }
.range-row { display: flex; justify-content: space-between; align-items: baseline; }
.range-row b { font-family: var(--font-mono); font-weight: 500; font-size: 22px; }
.seg { display: inline-flex; padding: 4px; background: var(--bg); border-radius: 12px; border: 1px solid var(--line); }
.seg button { padding: 9px 16px; border-radius: 9px; font-weight: 800; font-size: 14px; color: var(--ink-2); transition: all 0.25s var(--ease); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.3); }

/* ---------- CTA gradient ---------- */
.cta-grad { position: relative; border-radius: 32px; padding: 72px 40px; text-align: center; color: #fff; overflow: hidden; background: var(--grad-deep); isolation: isolate; }
.cta-grad::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, rgba(45, 226, 166, 0.35), transparent 30%, rgba(124, 92, 255, 0.4), transparent 60%, rgba(53, 201, 255, 0.35), transparent 90%); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-grad h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.04; font-weight: 800; max-width: 18ch; margin: 0 auto 16px; }
.cta-grad p { color: rgba(255, 255, 255, 0.8); max-width: 48ch; margin: 0 auto 28px; font-size: 18px; }

/* ---------- Admin tabs and chart ---------- */
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; width: fit-content; max-width: 100%; }
.tab { padding: 10px 18px; border-radius: 10px; font-weight: 800; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: all 0.2s var(--ease); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabpanel[hidden] { display: none !important; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { position: relative; overflow: hidden; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--green)); }
.kpi .v { font-family: var(--font-mono); font-size: 30px; font-weight: 500; letter-spacing: -0.03em; margin-top: 6px; }
.kpi .s { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-top: 4px; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding: 8px 4px 0; }
.chart .col { flex: 1; display: grid; align-items: end; height: 100%; gap: 6px; text-align: center; }
.chart .bar-v { width: 100%; min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--mint), var(--green)); transform-origin: bottom; animation: barUp 0.9s var(--ease-out) both; }
@keyframes barUp { from { transform: scaleY(0); } }
.chart .lab { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.search { max-width: 340px; }

/* ---------- Visitor page (go.html) ---------- */
body.go { background: radial-gradient(900px 500px at 50% -10%, #1b2a6b 0%, transparent 60%), var(--navy); min-height: 100vh; color: #fff; }
.go-wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; display: grid; gap: 20px; }
.go-top { display: flex; justify-content: space-between; align-items: center; }
.go-top .wordmark { color: #fff; } .go-top .wordmark span { color: var(--mint); }
.go-card { padding: 32px; border-radius: 24px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: grid; gap: 18px; text-align: center; justify-items: center; }
.go-card h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -0.03em; font-weight: 800; }
.dest { font-family: var(--font-mono); font-size: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); color: var(--mint); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring { position: relative; width: 120px; height: 120px; }
.ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .bg { stroke: rgba(255, 255, 255, 0.12); }
.ring .fg { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1s linear; }
.ring .n { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 34px; }
.ad-slot { width: 100%; min-height: 110px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, 0.25); display: grid; place-items: center; color: rgba(255, 255, 255, 0.4); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; overflow: hidden; }
.go small.fine { color: rgba(255, 255, 255, 0.5); font-size: 13px; }
.go a.report { color: rgba(255, 255, 255, 0.6); text-decoration: underline; text-underline-offset: 3px; }
.go .btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- Links dashboard ---------- */
.shorten-box { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.link-out { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #ece8ff; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.link-out.on { display: flex; animation: fadeUp 0.6s var(--ease-out); }
.link-out .u { font-family: var(--font-mono); font-size: 16px; color: #2c1f86; font-weight: 500; word-break: break-all; }
.dt .url { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; color: var(--ink-2); }
.badge.active { background: var(--green-tint); color: var(--green); }
.badge.disabled { background: var(--red-tint); color: var(--red); }

@media (max-width: 960px) {
  .hero-dark .hero-grid, .duo, .calc { grid-template-columns: 1fr; }
  .stage3d { min-height: 520px; margin-top: 12px; }
  .steps4 { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .steps4::before { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero-dark { padding-top: calc(var(--header-h) + 36px); padding-bottom: 64px; }
  .phone { width: 272px; }
  .float-card.f1 { left: -4px; } .float-card.f2 { right: -4px; }
  .steps4 { grid-template-columns: 1fr; }
  .product { padding: 24px; min-height: 0; }
  .calc .in, .calc .out { padding: 26px; }
  .cta-grad { padding: 48px 22px; border-radius: 24px; }
  .kpis { grid-template-columns: 1fr; }
  .shorten-box { grid-template-columns: 1fr; }
  .hero-dark .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .phone, .float-card, .coin, .grad-text, .btn-glow::after, .cta-grad::before, .marq-dark .marquee-track, .mini-art .bar-anim, .url-demo .short { animation: none !important; }
  .phone { transform: none; }
}

/* ---------- FAQ ---------- */
.qa-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.qa { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color 0.2s var(--ease), box-shadow 0.3s var(--ease); }
.qa[open] { border-color: var(--green); box-shadow: 0 20px 40px -28px rgba(15, 107, 79, 0.5); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 800; font-size: 17px; letter-spacing: -0.015em; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform 0.3s var(--ease-out); margin-top: -4px; }
.qa[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.qa .a { padding: 0 24px 22px; color: var(--ink-2); font-size: 16px; line-height: 1.7; animation: fadeUp 0.4s var(--ease-out); }
.qa .a a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.reveal { transition-delay: var(--rd, 0s); }

/* Header floats over the dark hero (the hero already reserves room for it) */
.site-header.on-dark { position: fixed; left: 0; right: 0; top: 0; }
.chart .bar-v { max-width: 56px; margin: 0 auto; }

/* ==========================================================================
   ONE DARK THEME FOR EVERY PAGE
   Re-points the design tokens so every page, card, table and form uses the
   same navy, mint and violet palette as the landing page.
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg: #070b1a;
  --surface: #0e1531;
  --surface-2: #131c3d;
  --ink: #eef1ff;
  --ink-2: #aab3d6;
  --ink-3: #7f8ab5;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.2);
  --green: #2de2a6;
  --green-deep: #8ff3d2;
  --green-tint: rgba(45, 226, 166, 0.12);
  --amber: #f6b94d;
  --amber-tint: rgba(246, 185, 77, 0.14);
  --red: #ff7468;
  --red-tint: rgba(255, 116, 104, 0.14);
}
html { background: var(--bg); }
/* ---------- Particle canvas backdrops ---------- */
.hero-particles, .go-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-dark .hero-grid { position: relative; z-index: 1; }

/* ---------- Phone mock enhancements ---------- */
.ph-bar { height: 6px; background: rgba(255, 255, 255, 0.2); border-radius: 99px; margin-top: 14px; overflow: hidden; }
.ph-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--lime)); border-radius: 99px; transition: width 1.2s var(--ease-out); position: relative; overflow: hidden; }
.ph-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent); transform: translateX(-100%); animation: phShimmer 2.4s ease infinite; }
@keyframes phShimmer { 100% { transform: translateX(100%); } }
.ph-row .st-pill { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 4px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; vertical-align: middle; background: rgba(246, 185, 77, 0.16); color: #f6b94d; transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }
.ph-row.confirmed .st-pill { background: rgba(45, 226, 166, 0.16); color: var(--mint); }
.stage-glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 226, 166, 0.22), rgba(124, 92, 255, 0.16) 50%, transparent 72%); filter: blur(40px); z-index: 0; pointer-events: none; transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease); }

/* ---------- Quick-glance trust strip ---------- */
.pillars-band { padding: 48px 0 0; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.pillar { padding: 24px; display: grid; gap: 6px; align-content: start; transition: background-color 0.25s var(--ease); }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar:hover { background: rgba(255, 255, 255, 0.03); }
.pillar .pv { font-family: var(--font-mono); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 500; color: var(--mint); letter-spacing: -0.025em; }
.pillar .pt { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.pillar .pd { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Product card meta & richer mini-art ---------- */
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.p-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--ink-2); }
.scan-beam { position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent); transform: translateX(-120%); animation: beamPass 3s ease-in-out infinite; pointer-events: none; }
@keyframes beamPass { 0%, 35% { transform: translateX(-120%); } 75%, 100% { transform: translateX(300%); } }
.url-earn-tag { position: absolute; right: 10px; top: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(45, 226, 166, 0.2); border: 1px solid rgba(45, 226, 166, 0.45); color: #bff7e4; font-family: var(--font-mono); font-size: 11px; font-weight: 500; animation: floatTag 3s ease-in-out infinite; }
@keyframes floatTag { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.live-task-pill { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: rgba(7, 11, 26, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 12px; font-weight: 700; color: #fff; }
.live-task-pill span { color: var(--mint); font-family: var(--font-mono); }

/* ---------- Animated SVG path + Pending-to-Available flow ---------- */
.steps-beam { position: absolute; top: 29px; left: 8%; right: 8%; height: 4px; pointer-events: none; overflow: hidden; border-radius: 4px; z-index: 0; }
.steps-beam::after { content: ""; position: absolute; top: 0; left: 0; width: 22%; height: 100%; background: linear-gradient(90deg, transparent, #fff, var(--mint), transparent); box-shadow: 0 0 12px var(--mint); animation: packetMove 4.8s linear infinite; }
@keyframes packetMove { 0% { transform: translateX(-120%); } 100% { transform: translateX(520%); } }
.step.is-lit .num { border-color: var(--mint); box-shadow: 0 0 0 6px var(--navy), 0 0 24px -2px rgba(45, 226, 166, 0.55); transform: scale(1.06); }
.step .num { transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }

.lifecycle-box { margin-top: 48px; padding: 28px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-line); display: grid; gap: 20px; }
.lifecycle-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.lifecycle-head h3 { font-size: 18px; color: #fff; font-weight: 800; }
.lifecycle-head span { font-size: 13.5px; color: rgba(255, 255, 255, 0.65); }
.lifecycle-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; }
.lc-card { padding: 16px 18px; border-radius: 14px; background: rgba(7, 11, 26, 0.6); border: 1px solid var(--glass-line); display: grid; gap: 6px; }
.lc-card b { font-size: 15px; color: #fff; }
.lc-card p { font-size: 13.5px; color: rgba(255, 255, 255, 0.68); line-height: 1.5; }
.lc-arrow { width: 32px; height: 2px; background: rgba(255, 255, 255, 0.22); position: relative; overflow: hidden; }
.lc-arrow::after { content: ""; position: absolute; inset: 0; background: var(--mint); transform: translateX(-100%); animation: lcFlow 2.2s var(--ease) infinite; }
@keyframes lcFlow { 100% { transform: translateX(100%); } }

/* ---------- Rules summary grid ---------- */
.rules-table { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.rules-row { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 20px 26px; align-items: baseline; transition: background-color 0.2s var(--ease); }
.rules-row + .rules-row { border-top: 1px solid var(--line); }
.rules-row:hover { background: rgba(255, 255, 255, 0.03); }
.rules-row dt { font-weight: 800; font-size: 15px; color: var(--ink); }
.rules-row dd { font-size: 15px; color: var(--ink-2); line-height: 1.6; }

/* ---------- FAQ filters ---------- */
.faq-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.faq-pill { padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); transition: all 0.2s var(--ease); }
.faq-pill:hover { border-color: var(--line-strong); color: var(--ink); }
.faq-pill[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: #04231a; }

/* ---------- Tooltip & Flow banner helpers for app pages ---------- */
.tip-wrap { position: relative; display: inline-flex; align-items: center; margin-left: 6px; vertical-align: middle; }
.tip-btn { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 11px; font-weight: 800; display: grid; place-items: center; transition: border-color 0.2s, color 0.2s; }
.tip-btn:hover, .tip-btn:focus-visible { border-color: var(--mint); color: var(--mint); outline: none; }
.tip-pop { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 230px; padding: 10px 12px; border-radius: 10px; background: #18224a; border: 1px solid var(--glass-line); color: var(--ink); font-size: 12.5px; font-weight: 500; line-height: 1.45; box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.7); opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease); z-index: 30; text-transform: none; letter-spacing: 0; }
.tip-wrap:hover .tip-pop, .tip-wrap:focus-within .tip-pop { opacity: 1; pointer-events: auto; }
.flow-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.flow-3-step { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.flow-3-step .n { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--mint); background: var(--green-tint); padding: 4px 8px; border-radius: 6px; flex: none; }
.flow-3-step b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 2px; }
.flow-3-step span { font-size: 13px; color: var(--ink-2); display: block; }

/* ---------- Countdown page progress steps & glow ---------- */
.go-steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, 0.55); }
.go-steps span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.3s var(--ease); }
.go-steps span.on { color: var(--mint); border-color: rgba(45, 226, 166, 0.45); background: rgba(45, 226, 166, 0.12); }

/* ---------- Calculator track fill ---------- */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--mint) var(--p, 2%), rgba(255, 255, 255, 0.14) var(--p, 2%)); cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); border: 3px solid #070b1a; box-shadow: 0 0 0 2px var(--mint); transition: transform 0.15s var(--ease); }
.range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--mint); border: 3px solid #070b1a; }

/* ---------- Performance & scroll optimizations ---------- */
.section, .marq-dark, .footer { contain: layout style; }
#links, #safety, #faq, #rules, .footer { content-visibility: auto; contain-intrinsic-size: auto 520px; }

body { background: var(--bg); position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2;
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(800px 480px at -5% 8%, rgba(45, 226, 166, 0.11), transparent 60%),
    var(--bg);
  transform: translateZ(0);
}

@media (max-width: 960px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .lifecycle-grid { grid-template-columns: 1fr; }
  .lc-arrow { width: 2px; height: 20px; margin: 0 auto; }
  .steps-beam { display: none; }
  .flow-3 { grid-template-columns: 1fr; }
  .rules-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .pillar:nth-child(3) { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-particles, .go-particles { display: none !important; }
  .steps-beam::after, .lc-arrow::after, .scan-beam, .url-earn-tag, .ph-bar i::after { animation: none !important; }
}
::selection { background: rgba(45, 226, 166, 0.3); color: #fff; }

/* Header: same glass bar everywhere */
.site-header { background: rgba(7, 11, 26, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8); }
.site-header .wordmark { color: #fff; }
.site-header .wordmark span { color: var(--mint); }
.site-header .nav a { color: rgba(255, 255, 255, 0.72); }
.site-header .nav a:hover, .site-header .nav a[aria-current] { color: #fff; }
.site-header .balance-chip, .site-header .avatar-btn { background: var(--glass); border-color: var(--glass-line); color: #fff; }
.site-header .balance-chip b { color: var(--mint); }
.site-header .menu-toggle { background: var(--glass); border-color: var(--glass-line); }
.site-header .menu-toggle span, .site-header .menu-toggle span::before, .site-header .menu-toggle span::after { background: #fff; }
.site-header .skel-pill { background: var(--glass); }

/* Buttons */
.btn-primary { background: var(--mint); color: #04231a; }
.btn-primary:hover { background: #5af0bd; }
.btn-success { background: var(--mint); color: #04231a; }
.btn-light { background: #fff; color: #0b1230; }
.btn-ghost { background: var(--glass); border-color: var(--glass-line); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); }
.btn-danger { background: var(--red-tint); color: var(--red); border-color: rgba(255, 116, 104, 0.3); }
.btn-danger:hover { background: rgba(255, 116, 104, 0.24); }
.avatar { background: var(--mint); color: #04231a; }

/* Cards, tables, forms */
.panel, .stats, .metric, .kpi, .gate, .card, .offer-frame, .tabs, .qa, .dropdown, .menu {
  background: var(--surface); border-color: var(--line);
}
.panel, .stats, .kpi, .metric, .gate { box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.9); }
.dt th { background: rgba(255, 255, 255, 0.03); color: var(--ink-3); }
.dt tbody tr:hover, .row:hover, .fact:hover { background: rgba(255, 255, 255, 0.035); }
.input, .select, textarea { background: #0a1029; color: var(--ink); border-color: var(--line-strong); }
.input::placeholder, textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(45, 226, 166, 0.2); outline: none; }
.check input, .q .cb, .step-row .d { background: #0a1029; border-color: var(--line-strong); }
.check input:checked { background: var(--mint); border-color: var(--mint); }
.check input::after { border-color: #04231a; }
.tab[aria-selected="true"] { background: var(--mint); color: #04231a; }
.skeleton { background: rgba(255, 255, 255, 0.06); }
.skeleton::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent); }
.link-out { background: rgba(124, 92, 255, 0.16); border: 1px solid rgba(124, 92, 255, 0.35); }
.link-out .u { color: #d9d0ff; }

/* Badges and alerts keep readable contrast on dark */
.badge.active, .badge.paid, .badge.confirmed { background: rgba(45, 226, 166, 0.14); color: var(--mint); }
.badge.pending { background: var(--amber-tint); color: var(--amber); }
.badge.rejected, .badge.reversed, .badge.disabled { background: var(--red-tint); color: var(--red); }
.badge.neutral, .badge.paused { background: rgba(255, 255, 255, 0.08); color: var(--ink-2); }
.alert.is-error { background: var(--red-tint); color: #ffb3ab; border-color: rgba(255, 116, 104, 0.35); }
.alert.is-success { background: var(--green-tint); color: var(--green-deep); border-color: rgba(45, 226, 166, 0.35); }

/* Toasts, banners, dark sections */
.toast, .app-toast { background: #1b2550; color: #fff; border: 1px solid var(--glass-line); }
.banner { background: #c4281c; }
.dark { background: #050816; color: #fff; }
.offer-frame { background: var(--surface); }
.marquee-item { color: var(--ink-3); }
.pos { color: var(--mint); }
.muted { color: var(--ink-3); }
.pos, .neg { font-weight: 700; }
.neg { color: var(--red); }
a.text-link, .prose a { color: var(--mint); }
.badge.requested { background: rgba(53, 201, 255, 0.14); color: var(--cyan); }

/* Leftovers: segmented control, toast variants */
.seg { background: #0a1029; }
.seg button[aria-pressed="true"] { background: var(--mint); color: #04231a; box-shadow: none; }
.app-toast.success { background: #0f3d33; color: #bff7e4; border-color: rgba(45, 226, 166, 0.45); }
.app-toast.error { background: #4a1a17; color: #ffd2cc; border-color: rgba(255, 116, 104, 0.45); }
.app-toast.info { background: #1b2550; color: #fff; }

/* Tables never push the page wider than its container */
.tabpanel, .panel, .table-wrap { min-width: 0; max-width: 100%; }
.table-wrap { overflow-x: auto; }
.dt .url { display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.panel-head { flex-wrap: wrap; gap: 12px; }
.duo.trio { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .duo.trio { grid-template-columns: 1fr; } }
