:root, [data-theme="navy"] {
  --bg: #04070e; --bg2: #0a1530; --panel: rgba(13, 22, 46, .72); --panel2: rgba(20, 33, 66, .6);
  --line: rgba(212, 168, 67, .18); --line2: rgba(255,255,255,.08);
  --gold: #d4a843; --gold2: #f1d58a; --acc: #c8202f; --acc-soft: rgba(200,32,47,.18);
  --text: #eef1f8; --muted: #8b96b2; --good: #3fbf7f; --glow: rgba(212,168,67,.35);
  --hero-grad: radial-gradient(1200px 600px at 50% -10%, #13244d 0%, #070d1d 55%, #03050a 100%);
}
[data-theme="scarlet"] {
  --bg: #080203; --bg2: #3a070c; --panel: rgba(52, 8, 12, .62); --panel2: rgba(80, 12, 18, .5);
  --line: rgba(224, 180, 80, .2); --line2: rgba(255,255,255,.09);
  --gold: #e0b450; --gold2: #f5dc96; --acc: #ffffff; --acc-soft: rgba(255,255,255,.12);
  --text: #fff5f1; --muted: #c09a98; --good: #f0c75e; --glow: rgba(224,180,80,.35);
  --hero-grad: radial-gradient(1200px 600px at 50% -10%, #6a0d15 0%, #2a0407 55%, #080203 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; background: var(--bg); }
.bg-crosses { display: none; }
#app { position: relative; z-index: 1; }
h1, h2, h3 { margin: 0; }
.cinzel { font-family: Cinzel, serif; }
.osw { font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
a { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 42px; height: 42px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shine { from { background-position: -200% 0; } to { background-position: 200% 0; } }

/* ---------- Buttons / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1px solid var(--gold); background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #120c02;
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; padding: .8em 1.4em; border-radius: 4px; cursor: pointer; transition: transform .15s, box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--glow); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.danger { background: transparent; border-color: var(--acc); color: var(--acc); }
.btn.sm { padding: .45em .9em; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .lbl { font: 500 11px Oswald, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.input, textarea, select { width: 100%; background: rgba(0,0,0,.35); border: 1px solid var(--line2); border-radius: 4px; padding: .8em .9em; outline: none; transition: border .2s, box-shadow .2s; }
.input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--glow); }
textarea { resize: vertical; min-height: 84px; }
.err { color: #ff6b6b; font-size: 13px; min-height: 1.2em; }

/* ---------- Auth / hero ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.25fr 1fr; }
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 6vw; overflow: hidden; border-right: 1px solid var(--line); }

.eyebrow { font: 600 12px Oswald, sans-serif; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; text-align: center; line-height: 1.5; }
.eyebrow::before, .eyebrow::after { content: ""; flex: 0 0 36px; height: 2px; background: var(--acc); }
.eyebrow { padding-left: .4em; } /* balance trailing letter-spacing */
.mega { font-family: Cinzel, serif; font-weight: 900; line-height: .95; letter-spacing: -.01em; margin: 22px 0; text-transform: uppercase; animation: rise .8s both; }
.mega .l1 { display: block; font-size: clamp(30px, 4.6vw, 64px); color: var(--text); }
.mega .l2 { display: block; font-size: clamp(54px, 9.5vw, 148px); background: linear-gradient(100deg, var(--gold) 20%, var(--gold2) 40%, var(--gold) 60%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; filter: drop-shadow(0 6px 30px var(--glow)); }
.mega .l2 em { font-style: normal; color: var(--acc); -webkit-text-fill-color: var(--acc); }
.hero-sub { max-width: 520px; color: var(--muted); font-size: 16px; }
.hero-sub b { color: var(--text); }
.vs-unused { display: flex; gap: 14px; align-items: center; margin-top: 30px; font: 700 20px Oswald, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.vs span.x { color: var(--acc); font-family: Cinzel, serif; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 6vw 5vw; background: rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.auth-card h2 { font: 700 30px Cinzel, serif; margin-bottom: 4px; }
.tabs { display: flex; gap: 4px; margin: 22px 0; border-bottom: 1px solid var(--line2); }
.tabs button { background: none; border: 0; padding: 10px 14px; cursor: pointer; font: 600 13px Oswald, sans-serif; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--gold); border-color: var(--gold); }
.theme-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-pick label { cursor: pointer; border: 1px solid var(--line2); border-radius: 6px; padding: 12px; display: flex; gap: 10px; align-items: center; font: 600 13px Oswald, sans-serif; letter-spacing: .12em; text-transform: uppercase; transition: border .2s; }
.theme-pick input { display: none; }
.theme-pick label:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 2px var(--glow); }
.swatch { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.swatch.navy { background: conic-gradient(#0a1530 0 50%, #d4a843 0 75%, #c8202f 0); }
.swatch.scarlet { background: conic-gradient(#5a0a10 0 50%, #e0b450 0 75%, #fff 0); }
.demo-tag { display: inline-block; font: 600 10px Oswald, sans-serif; letter-spacing: .2em; padding: 3px 8px; border: 1px solid var(--acc); color: var(--acc); border-radius: 3px; text-transform: uppercase; }

/* ---------- Shell ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 12px 28px; background: rgba(0,0,0,.45); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 900 20px Cinzel, serif; letter-spacing: .14em; text-decoration: none; color: var(--text); }
.brand svg { width: 30px; height: 30px; }
.nav { position: fixed; top: 0; right: 20px; height: 55px; z-index: 25; display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font: 500 13px Oswald, sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-radius: 4px; transition: color .2s, background .2s; display: flex; gap: 7px; align-items: center; }
.nav a svg { width: 16px; height: 16px; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--gold); background: var(--acc-soft); }
main { max-width: 1180px; margin: 0 auto; padding: 28px 22px 120px; animation: rise .45s both; }
.page-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-h h1 { font: 900 clamp(28px, 4vw, 44px) Cinzel, serif; text-transform: uppercase; letter-spacing: .02em; }
.page-h .sub { color: var(--muted); font: 500 12px Oswald, sans-serif; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.split { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
.split.rev { grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { position: relative; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; padding: 20px; backdrop-filter: blur(8px); overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--gold), transparent 70%); opacity: .7; }
.card h3 { font: 600 13px Oswald, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stat .num { font: 700 44px/1 Oswald, sans-serif; color: var(--text); letter-spacing: .01em; }
.stat .num small { font-size: 16px; color: var(--muted); margin-left: 4px; }
.stat .cap { color: var(--muted); font-size: 12px; margin-top: 6px; }
.stat.gold .num { color: var(--gold); }
.flame { color: var(--acc); }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--acc), var(--gold)); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.prow { display: grid; grid-template-columns: 90px 1fr 48px; gap: 12px; align-items: center; margin: 10px 0; font: 500 12px Oswald, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prow b { color: var(--text); text-align: right; font-weight: 600; }
.chart-box { position: relative; height: 260px; }
.chart-box.tall { height: 320px; }

/* ---------- Quote callouts ---------- */
.row-callout { position: relative; text-align: center; padding: 40px 20px 34px; margin-bottom: 18px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(0,0,0,.55), var(--panel2)); }
.row-callout::before, .row-callout::after { content: ""; position: absolute; top: 50%; width: 26%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.row-callout::before { left: 0; } .row-callout::after { right: 0; transform: scaleX(-1); }
.row-callout .t1 { font: 700 clamp(16px, 2.4vw, 26px) Cinzel, serif; letter-spacing: .3em; text-transform: uppercase; color: var(--text); }
.row-callout .t2 { font: 900 clamp(44px, 8.5vw, 112px)/1 Cinzel, serif; text-transform: uppercase; margin-top: 8px;
  background: linear-gradient(100deg, var(--gold) 20%, var(--gold2) 40%, var(--gold) 60%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; filter: drop-shadow(0 4px 24px var(--glow)); }
.row-callout .oars { display: flex; justify-content: center; margin-top: 10px; color: var(--acc); }
.quote { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.quote .mark { font: 900 64px/0.8 Cinzel, serif; color: var(--acc); }
.quote blockquote { margin: 0; font: 600 clamp(17px, 2vw, 22px)/1.4 Inter, sans-serif; letter-spacing: -.01em; }
.quote cite { display: block; margin-top: 10px; font: 600 12px Oswald, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-style: normal; }

/* ---------- Check-in ---------- */
.datebar { display: flex; align-items: center; gap: 8px; }
.datebar .d { font: 600 15px Oswald, sans-serif; letter-spacing: .12em; text-transform: uppercase; min-width: 170px; text-align: center; }
.iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 4px; border: 1px solid var(--line2); background: rgba(0,0,0,.3); cursor: pointer; transition: border .2s; }
.iconbtn:hover:not(:disabled) { border-color: var(--gold); }
.iconbtn:disabled { opacity: .3; cursor: not-allowed; }
.habit-check { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line2); border-radius: 6px; margin-bottom: 10px; cursor: pointer; background: rgba(0,0,0,.25); transition: border .2s, background .25s, transform .12s; user-select: none; }
.habit-check:hover { border-color: var(--line); }
.habit-check:active { transform: scale(.99); }
.habit-check input { display: none; }
.habit-check .box { width: 30px; height: 30px; flex: none; border: 2px solid var(--muted); border-radius: 4px; display: grid; place-items: center; transition: all .2s; }
.habit-check .box svg { width: 18px; height: 18px; opacity: 0; transform: scale(.4); transition: all .2s cubic-bezier(.3,1.6,.5,1); color: #120c02; }
.habit-check.done { border-color: var(--gold); background: linear-gradient(90deg, var(--acc-soft), transparent); }
.habit-check.done .box { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 18px var(--glow); }
.habit-check.done .box svg { opacity: 1; transform: none; }
.habit-check .name { font: 600 17px Oswald, sans-serif; letter-spacing: .06em; text-transform: uppercase; flex: 1; }
.habit-check .hs { font: 500 12px Oswald, sans-serif; color: var(--muted); letter-spacing: .1em; white-space: nowrap; }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255,255,255,.07) 0); transition: --p 1s; }
.ring > div { width: 96px; height: 96px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font: 700 28px Oswald, sans-serif; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.empty b { color: var(--text); font-family: Oswald, sans-serif; letter-spacing: .1em; text-transform: uppercase; display: block; font-size: 18px; margin-bottom: 6px; }

/* ---------- Habits editor ---------- */
.habit-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line2); border-radius: 6px; margin-bottom: 10px; background: rgba(0,0,0,.25); }
.habit-row.archived { opacity: .5; }
.days { display: flex; gap: 4px; flex-wrap: wrap; }
.days label { cursor: pointer; }
.days input { display: none; }
.days span { display: grid; place-items: center; width: 36px; height: 32px; border: 1px solid var(--line2); border-radius: 4px; font: 600 11px Oswald, sans-serif; letter-spacing: .08em; color: var(--muted); transition: all .15s; }
.days input:checked + span { background: var(--gold); border-color: var(--gold); color: #120c02; }
.habit-row .hn { font: 600 16px Oswald, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.pill { font: 600 10px Oswald, sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--gold); }

/* ---------- Heatmap ---------- */
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 14px); grid-auto-columns: 14px; gap: 4px; overflow-x: auto; padding-bottom: 6px; }
.heat i { width: 14px; height: 14px; border-radius: 3px; background: rgba(255,255,255,.05); }
.heat i.l1 { background: color-mix(in srgb, var(--gold) 25%, transparent); }
.heat i.l2 { background: color-mix(in srgb, var(--gold) 50%, transparent); }
.heat i.l3 { background: color-mix(in srgb, var(--gold) 75%, transparent); }
.heat i.l4 { background: var(--gold); box-shadow: 0 0 6px var(--glow); }
.heat i.miss { background: color-mix(in srgb, var(--acc) 45%, transparent); }
.heat i.fut { background: transparent; outline: 1px dashed rgba(255,255,255,.07); }
.heat i.today { outline: 2px solid var(--text); }
.legend { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); margin-top: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- Overview ---------- */
.brother { cursor: pointer; transition: transform .2s, border .2s; }
.brother:hover { transform: translateY(-2px); border-color: var(--line); }
.brother .bn { font: 900 30px Cinzel, serif; text-transform: uppercase; letter-spacing: .06em; }
.brother .lead { color: var(--gold); }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.mini { background: rgba(0,0,0,.25); border: 1px solid var(--line2); border-radius: 6px; padding: 10px; text-align: center; }
.mini .n { font: 700 26px Oswald, sans-serif; }
.mini .c { font: 500 10px Oswald, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crown { color: var(--gold); font: 600 11px Oswald, sans-serif; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.countdown div { min-width: 74px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 6px; background: rgba(0,0,0,.4); }
.countdown b { display: block; font: 700 34px/1 Oswald, sans-serif; color: var(--gold); }
.countdown span { font: 500 10px Oswald, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

table.wt { width: 100%; border-collapse: collapse; font-size: 14px; }
table.wt th { text-align: left; font: 500 11px Oswald, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line2); }
table.wt td { padding: 9px 6px; border-bottom: 1px solid var(--line2); }
.up { color: #ff7b7b; } .down { color: var(--good); }
.row-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row-inline .field { margin: 0; flex: 1; min-width: 130px; }

#toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: var(--gold); color: #120c02; font: 600 13px Oswald, sans-serif; letter-spacing: .12em; text-transform: uppercase; padding: 10px 18px; border-radius: 4px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 50; }
#toast.on { opacity: 1; transform: translateX(-50%); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .hero { border-right: 0; border-bottom: 1px solid var(--line); padding: 56px 24px 36px; min-height: 62vh; }
  .auth-card { padding: 30px 24px 50px; }
  .g3, .split { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
.split.rev { grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); }
.g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g2, .split, .split.rev { grid-template-columns: 1fr; }
  .top { padding: 10px 16px; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; margin: 0; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.82); backdrop-filter: blur(16px); border-top: 1px solid var(--line); z-index: 30; }
  .nav a { flex-direction: column; gap: 3px; font-size: 9.5px; padding: 6px 4px; letter-spacing: .1em; flex: 1; }
  .nav a svg { width: 21px; height: 21px; }
  main { padding: 20px 14px 110px; }
  .stat .num { font-size: 34px; }
  .habit-row { grid-template-columns: 1fr; }
  .datebar .d { min-width: 0; font-size: 13px; }
}
@media (max-width: 420px) { .countdown div { min-width: 62px; } .countdown b { font-size: 26px; } .minis .n { font-size: 22px; } }

/* ---------- Enlistment / oath ---------- */
.auth { position: relative; }
.auth-top { position: absolute; top: 18px; right: 22px; z-index: 5; display: flex; gap: 10px; align-items: center; }
.auth-top .btn:not(.ghost) { box-shadow: 0 6px 28px var(--glow); }
.auth.enlisting { grid-template-columns: 1fr; }
.auth.enlisting .auth-card { justify-content: flex-start; padding: 80px 20px 60px; width: 100%; max-width: 720px; margin: 0 auto; background: none; backdrop-filter: none; }
.oath { position: relative; }
form.oath { border: 1px solid var(--line); border-radius: 8px; padding: 26px; background: linear-gradient(180deg, rgba(0,0,0,.35), var(--panel)); box-shadow: inset 0 0 0 6px rgba(0,0,0,.25), inset 0 0 0 7px var(--line); }
.oath-head { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 2px double var(--line); margin-bottom: 6px; }
.oath-head h2 { font: 900 28px Cinzel, serif; text-transform: uppercase; letter-spacing: .04em; }
.oath-sec { font: 700 13px Cinzel, serif; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 20px 0 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.oath-sec::after { content: ""; flex: 1; height: 1px; background: var(--line); min-width: 30px; }
.grid.tight { gap: 0 12px; }
.unit { position: relative; } .unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font: 500 12px Oswald, sans-serif; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.swear { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 10px; padding: 14px; border: 1px dashed var(--line); border-radius: 6px; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; line-height: 1.5; cursor: pointer; }
.swear input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; margin-top: 2px; }
.swear b { color: var(--gold); }
@media (max-width: 900px) { .auth.enlisting { grid-template-columns: 1fr; } .auth.enlisting .auth-card { padding: 64px 12px 50px; } .auth-top { top: 14px; right: 14px; } form.oath { padding: 18px; } .grid.g2.tight { grid-template-columns: 1fr; } }
.hint { font-size: 12px; color: var(--muted); } .hint.ok { color: var(--gold); }
.input[readonly] { opacity: .65; cursor: not-allowed; }

@media (max-width: 480px) {
  .hero { padding-top: 64px; }
  .auth-top { top: 12px; right: 12px; gap: 8px; }
  .auth-top .btn { height: 34px; padding: 0 14px; font-size: 11px; letter-spacing: .1em; border-radius: 99px; }
  .auth-top .btn:not(.ghost) { box-shadow: 0 2px 10px var(--glow); }
  .auth-top .demo-tag { font-size: 9px; padding: 2px 6px; }
}
@media (max-width: 480px) { .eyebrow { letter-spacing: .25em; gap: 10px; } .eyebrow::before, .eyebrow::after { flex-basis: 22px; } }

/* ---------- Premium background texture (fixed layer, iOS-safe: no background-attachment) ---------- */
[data-theme="navy"] { --tint: rgba(40, 80, 170, .30); --tint2: rgba(212,168,67,.06); }
[data-theme="scarlet"] { --tint: rgba(170, 20, 35, .38); --tint2: rgba(224,180,80,.06); }
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body::before {
  background:
    radial-gradient(120% 70% at 50% -10%, var(--tint) 0%, transparent 60%),
    radial-gradient(60% 50% at 100% 100%, var(--tint2) 0%, transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.022) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.28) 0 1px, transparent 1px 5px),
    radial-gradient(140% 100% at 50% 40%, transparent 55%, rgba(0,0,0,.65) 100%),
    var(--bg);
}
body::after {
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
#app, #toast { position: relative; z-index: 1; }
#toast { position: fixed; z-index: 50; }

/* ---------- Centered hero ---------- */
.hero { align-items: center; text-align: center; }
.hero .eyebrow { margin-left: auto; margin-right: auto; }
.hero .hero-sub { margin-left: auto; margin-right: auto; }
.hero .countdown { justify-content: center; }
.mega { animation: rise .8s ease-out both; opacity: 1; }
.mega .l1 { color: #fff; }
.mega .l2 { background-image: linear-gradient(100deg, var(--gold) 15%, #fff1c4 40%, var(--gold2) 50%, var(--gold) 70%); }
