/* =====================================================================
   FC Dinamo Football School — landing page
   Palette lifted from fcdinamo.ge: header #031277, deep #001838,
   electric button #1f03f8, near-black #111827, gold hover #facc15
   ===================================================================== */
:root {
  --dn-royal: #031277;
  --dn-deep: #001838;
  --dn-black: #050a1f;
  --dn-ink: #111827;
  --dn-electric: #1f03f8;
  --dn-electric-2: #3d5cff;
  --dn-gold: #facc15;
  --dn-white: #ffffff;
  --dn-muted: #9fb0d9;
  --dn-line: rgba(255,255,255,.10);
  --font-head: "Montserrat", "Noto Sans Georgian", "Segoe UI", sans-serif;
  --font-body: "Inter", "Noto Sans Georgian", "Segoe UI", sans-serif;
}
html { scroll-behavior: smooth; }
body.landing { background: var(--dn-black); color: #fff; font-family: var(--font-body); overflow-x: hidden; }
body.landing .wrap { max-width: none; padding: 0; }
body.landing > .topbar { display: none; }
body.landing .messages { max-width: 1200px; margin: 1rem auto; padding: 0 1.4rem; }
.ka { font-family: "Noto Sans Georgian", var(--font-body); }
.mtav { text-transform: uppercase; letter-spacing: .12em; }

/* ---------- header (matches fcdinamo.ge) ---------- */
.dn-header { position: sticky; top: 0; z-index: 30; background: var(--dn-royal); border-bottom: 1px solid rgba(255,255,255,.08); }
.dn-header .in { max-width: 1240px; margin: 0 auto; padding: 0 1.2rem; height: 78px; display: flex; align-items: center; gap: 1.4rem; }
.dn-logo { display: flex; align-items: center; gap: .9rem; color: #fff; transition: color .3s; }
.dn-logo:hover { color: var(--dn-gold); text-decoration: none; }
.dn-logo svg { height: 58px; width: auto; fill: currentColor; }
.dn-logo .word { white-space: nowrap; font-family: var(--font-head); font-weight: 800; letter-spacing: .32em; text-transform: uppercase; font-size: .95rem; line-height: 1.1; }
.dn-logo .word small { display: block; letter-spacing: .28em; font-size: .62rem; color: var(--dn-muted); font-weight: 700; }
.dn-nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.dn-nav a { color: #d6def7; font-weight: 600; font-size: .86rem; padding: .5rem .8rem; border-radius: 6px; letter-spacing: .04em; }
.dn-nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.dn-btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .78rem 1.35rem; border-radius: 6px; font-family: var(--font-head); font-weight: 800; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; cursor: pointer; }
.dn-btn:hover { text-decoration: none; transform: translateY(-2px); }
.dn-btn.primary { background: var(--dn-electric); color: #fff; box-shadow: 0 10px 30px rgba(31,3,248,.45); }
.dn-btn.primary:hover { background: #2d1cff; box-shadow: 0 14px 38px rgba(31,3,248,.6); }
.dn-btn.gold { background: var(--dn-gold); color: #1a1400; box-shadow: 0 10px 30px rgba(250,204,21,.35); }
.dn-btn.gold:hover { background: #ffd83d; }
.dn-btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.dn-btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.dn-btn.sm { padding: .5rem .9rem; font-size: .78rem; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100vh - 78px); overflow: hidden; background: radial-gradient(900px 500px at 15% 20%, rgba(31,3,248,.45), transparent 60%), radial-gradient(700px 500px at 90% 90%, rgba(3,18,119,.9), transparent 60%), linear-gradient(180deg, var(--dn-royal) 0%, var(--dn-deep) 55%, var(--dn-black) 100%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .pitch { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .28; }
.hero .pitch path, .hero .pitch circle, .hero .pitch rect { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: draw 5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-in { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 4.5rem 1.2rem 5rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; min-height: calc(100vh - 78px); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 800; font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--dn-gold); margin-bottom: 1.2rem; }
.hero .eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--dn-gold); }
.hero h1 { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 1rem; }
.hero h1 span { display: block; }
.hero h1 .gold { color: var(--dn-gold); }
.hero h1 .l3 { color: #dfe6ff; font-size: .62em; letter-spacing: .06em; font-weight: 800; margin-top: .35rem; }
.hero p.lead { font-size: 1.12rem; line-height: 1.6; color: #c9d4ff; max-width: 540px; margin-bottom: 2rem; }
.hero .cta { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.hero .cta .dn-btn { padding: 1rem 1.7rem; font-size: 1rem; }
.hero .trust { margin-top: 1.6rem; display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: .82rem; color: var(--dn-muted); }
.hero .trust b { color: #fff; font-family: var(--font-head); font-size: 1.15rem; display: block; }

/* big interactive football */
.ball-stage { position: relative; height: 560px; }
.ball-stage canvas.kickball { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.float-badge { position: absolute; z-index: 2; pointer-events: none; background: rgba(5,10,31,.75); border: 1px solid var(--dn-line); backdrop-filter: blur(8px); border-radius: 12px; padding: .6rem .9rem; font-size: .78rem; color: #c9d4ff; animation: floaty 5s ease-in-out infinite; }
.float-badge b { display: block; font-family: var(--font-head); font-size: 1.15rem; color: #fff; }
.float-badge.b1 { top: 30px; left: 0; animation-delay: -1s; }
.float-badge.b2 { top: 110px; right: 0; animation-delay: -2.5s; }
.float-badge.b3 { bottom: 70px; left: 10px; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.kick-hint { position: absolute; z-index: 2; left: 50%; bottom: 10px; transform: translateX(-50%); pointer-events: none; white-space: nowrap; font-family: var(--font-head); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--dn-muted); opacity: .8; }

/* scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--dn-gold); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* ---------- ticker ---------- */
.ticker { background: var(--dn-gold); color: #0b0b0b; overflow: hidden; white-space: nowrap; border-top: 3px solid #0b0b0b; border-bottom: 3px solid #0b0b0b; transform: rotate(-1.2deg) scale(1.03); margin: -8px 0 8px; }
.ticker .track { display: inline-flex; gap: 3rem; padding: .7rem 0; font-family: var(--font-head); font-weight: 900; text-transform: uppercase; letter-spacing: .2em; font-size: .95rem; animation: ticker 30s linear infinite; }
.ticker .track span::before { content: "★"; margin-right: 1.4rem; font-size: .8em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { max-width: 1240px; margin: 0 auto; padding: 5.5rem 1.2rem; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.kicker { font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--dn-gold); margin-bottom: .7rem; display: block; }
.h2 { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1; text-transform: uppercase; letter-spacing: -.01em; margin: 0; }
.lead { color: var(--dn-muted); font-size: 1.05rem; max-width: 560px; line-height: 1.6; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; } .rv.d3 { transition-delay: .3s; } .rv.d4 { transition-delay: .4s; } .rv.d5 { transition-delay: .5s; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--dn-line); border: 1px solid var(--dn-line); border-radius: 18px; overflow: hidden; }
.stat-d { background: var(--dn-deep); padding: 2rem 1.6rem; position: relative; overflow: hidden; }
.stat-d::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(255,255,255,.04); }
.stat-d b { font-family: var(--font-head); font-weight: 900; font-size: 3rem; line-height: 1; color: #fff; display: block; }
.stat-d b i { font-style: normal; color: var(--dn-gold); }
.stat-d span { color: var(--dn-muted); font-size: .88rem; display: block; margin-top: .5rem; }

/* steps — a rolling ball path */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1rem; }
.steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 34px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 10px, transparent 10px 20px); }
.step-d { position: relative; padding-top: 3rem; }
.step-d .dot { position: absolute; top: 14px; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--dn-electric); border: 4px solid var(--dn-black); box-shadow: 0 0 0 2px var(--dn-electric-2), 0 10px 26px rgba(31,3,248,.5); font-family: var(--font-head); font-weight: 900; display: flex; align-items: center; justify-content: center; }
.step-d h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .5rem; }
.step-d p { color: var(--dn-muted); font-size: .95rem; line-height: 1.6; margin: 0; }
.steps .rolling { position: absolute; top: 18px; left: 8%; width: 34px; height: 34px; animation: roll 8s linear infinite; }
.steps .rolling svg { width: 100%; height: 100%; animation: spin 1.2s linear infinite; }
@keyframes roll { 0% { left: 8%; } 45% { left: 50%; } 50% { left: 50%; } 95% { left: calc(92% - 34px); } 100% { left: calc(92% - 34px); } }

/* features */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 960px) { .feats { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.feat-d { position: relative; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--dn-line); border-radius: 18px; padding: 1.8rem 1.6rem; overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.feat-d::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(61,92,255,.25), transparent 60%); opacity: 0; transition: opacity .3s; }
.feat-d:hover { transform: translateY(-6px); border-color: rgba(250,204,21,.5); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.feat-d:hover::before { opacity: 1; }
.feat-d .ico { position: relative; width: 52px; height: 52px; border-radius: 14px; background: var(--dn-electric); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; box-shadow: 0 10px 24px rgba(31,3,248,.45); }
.feat-d .ico svg { width: 26px; height: 26px; stroke: #fff; }
.feat-d h3 { position: relative; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.02rem; margin: 0 0 .45rem; }
.feat-d p { position: relative; color: var(--dn-muted); font-size: .93rem; line-height: 1.6; margin: 0; }

/* score card teaser */
.report { position: relative; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, var(--dn-royal), #000c2e 60%, #000 100%); border: 1px solid var(--dn-line); padding: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.report::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.04); }
.report .pits { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.pit { background: rgba(255,255,255,.05); border: 1px solid var(--dn-line); border-radius: 14px; padding: 1rem 1.1rem; }
.pit b { display: flex; justify-content: space-between; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .88rem; }
.pit b span { color: var(--dn-gold); font-size: 1.15rem; }
.pit small { display: block; color: var(--dn-muted); font-size: .76rem; margin: .25rem 0 .6rem; }
.pit .bar { height: 6px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; }
.pit .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--dn-electric-2), var(--dn-gold)); border-radius: 3px; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.report.in .pit .bar i { width: var(--w); }
.mark-big { font-family: var(--font-head); font-weight: 900; font-size: 5rem; line-height: 1; color: var(--dn-gold); }

/* schools */
.schools-d { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; }
.school-d { position: relative; background: var(--dn-deep); border: 1px solid var(--dn-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, border-color .25s ease; }
.school-d:hover { transform: translateY(-5px); border-color: rgba(61,92,255,.7); }
.school-d .top { position: relative; padding: 1.4rem 1.4rem 1.2rem; background: linear-gradient(135deg, var(--dn-royal), #000c2e); overflow: hidden; }
.school-d .top::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); }
.school-d .top::before { content: ""; position: absolute; right: 30px; top: 30px; width: 0; height: 60px; border-left: 2px solid rgba(255,255,255,.12); }
.school-d .region { font-family: var(--font-head); font-weight: 800; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--dn-gold); }
.school-d h3 { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: 1.15rem; margin: .3rem 0 0; letter-spacing: .02em; }
.school-d .addr { padding: .9rem 1.4rem 0; color: var(--dn-muted); font-size: .84rem; }
.school-d table { margin-top: .6rem; }
.school-d th { background: transparent; color: var(--dn-muted); border-color: var(--dn-line); font-size: .68rem; letter-spacing: .12em; }
.school-d td { border-color: var(--dn-line); color: #e6ecff; padding: .55rem 1.4rem; }
.school-d th { padding: .5rem 1.4rem; }
.school-d tr:hover td { background: rgba(255,255,255,.03); }
.school-d .price { font-family: var(--font-head); font-weight: 900; color: var(--dn-gold); }
.school-d .cta { padding: 1rem 1.4rem 1.4rem; margin-top: auto; }

/* CTA band */
.band { position: relative; overflow: hidden; background: var(--dn-electric); }
.band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-55deg, rgba(255,255,255,.05) 0 30px, transparent 30px 80px); }
.band .in { position: relative; max-width: 1240px; margin: 0 auto; padding: 4rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.band h2 { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: clamp(1.7rem, 3.5vw, 2.8rem); line-height: 1; margin: 0; }
.band p { color: #d6def7; margin: .6rem 0 0; }
.band .mini-ball { position: absolute; width: 90px; height: 90px; right: 6%; top: -30px; opacity: .9; animation: floaty 4s ease-in-out infinite; }
.band .mini-ball svg { width: 100%; height: 100%; animation: spin 12s linear infinite; }

/* footer */
.dn-footer { background: #02061a; border-top: 1px solid var(--dn-line); color: var(--dn-muted); font-size: .84rem; }
.dn-footer .in { max-width: 1240px; margin: 0 auto; padding: 2rem 1.2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.dn-footer a { color: #d6def7; }
.dn-footer .logo-sm svg { height: 34px; fill: #fff; opacity: .8; }
.demo-strip { background: #02061a; color: #6f7fa8; font-size: .78rem; border-top: 1px dashed rgba(255,255,255,.08); }
.demo-strip .in { max-width: 1240px; margin: 0 auto; padding: .7rem 1.2rem; }
.demo-strip code { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: .05rem .35rem; border-radius: 4px; color: #c9d4ff; }

@media (max-width: 960px) {
  .dn-header .in { height: 66px; gap: .8rem; }
  .dn-logo svg { height: 46px; }
  .dn-logo .word { font-size: .8rem; letter-spacing: .2em; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding-top: 3rem; }
  .steps { grid-template-columns: 1fr; } .steps::before, .steps .rolling { display: none; }
  .report { grid-template-columns: 1fr; padding: 2rem; }
  .sec { padding: 3.5rem 1.2rem; }
  .dn-nav a.hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker .track, .steps .rolling, .float-badge { animation: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- language switch ---------- */
.lang-switch { display: inline-flex; margin: 0 .4rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; overflow: hidden; }
.lang-switch button { display: inline-flex; align-items: center; gap: .35rem; background: transparent; border: 0; color: #c9d4ff; font: 700 .72rem var(--font-head); letter-spacing: .12em; padding: .38rem .6rem; cursor: pointer; transition: background .2s, color .2s; }
.lang-switch button svg { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.lang-switch button:hover { background: rgba(255,255,255,.1); color: #fff; }
.lang-switch button.on { background: #fff; color: var(--dn-royal); }

/* ---------- Georgian typography (Mtavruli caps are wide — pull spacing in) ---------- */
body.lang-ka { --font-head: "Noto Sans Georgian", "Montserrat", sans-serif; --font-body: "Noto Sans Georgian", "Inter", sans-serif; }
body.lang-ka .hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); letter-spacing: .02em; line-height: 1.15; }
body.lang-ka .h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: .02em; }
body.lang-ka .dn-btn, body.lang-ka .kicker, body.lang-ka .eyebrow, body.lang-ka .ticker .track, body.lang-ka .step-d h3, body.lang-ka .feat-d h3, body.lang-ka .school-d h3, body.lang-ka .band h2, body.lang-ka .dn-logo .word { letter-spacing: .06em; }
body.lang-ka .dn-logo .word { letter-spacing: .18em; }

/* ---------- auth pages (register / login) ---------- */
body.auth-page { background: radial-gradient(900px 500px at 10% 0%, rgba(31,3,248,.35), transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(3,18,119,.8), transparent 60%), var(--dn-black); }
.auth-wrap { max-width: 1240px; margin: 0 auto; padding: 3.5rem 1.2rem 5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.auth-side { position: sticky; top: 100px; }
.h1-auth { font-family: var(--font-head); font-weight: 900; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; margin: .4rem 0 1rem; }
body.lang-ka .h1-auth { font-size: clamp(1.6rem, 3.2vw, 2.5rem); letter-spacing: .02em; line-height: 1.15; }
.perks { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: .6rem; }
.perks li { position: relative; padding-left: 2rem; color: #dfe6ff; font-size: .95rem; }
.perks li::before { content: ""; position: absolute; left: 0; top: .1rem; width: 20px; height: 20px; border-radius: 50%; background: var(--dn-gold); }
.perks li::after { content: ""; position: absolute; left: 7px; top: .38rem; width: 5px; height: 9px; border: solid #1a1400; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.kick-stage { position: relative; height: 380px; border-radius: 24px; overflow: hidden; border: 1px solid var(--dn-line); background: radial-gradient(600px 300px at 50% 120%, rgba(31,3,248,.5), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); }
.kick-stage::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 60px), repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 60px); pointer-events: none; }
.kick-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.auth-card { position: relative; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid var(--dn-line); border-radius: 26px; padding: 2.4rem; backdrop-filter: blur(12px); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.auth-card::before { content: ""; position: absolute; inset: 0; border-radius: 26px; padding: 1px; background: linear-gradient(135deg, rgba(250,204,21,.5), transparent 40%, transparent 60%, rgba(61,92,255,.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.auth-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.auth-card-head .crest-sm { width: 54px; height: 54px; fill: #fff; flex: none; }
.auth-card-head h2 { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; margin: 0; letter-spacing: .02em; }
.auth-card-head p { margin: .1rem 0 0; color: var(--dn-muted); font-size: .9rem; }
.dn-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.dn-form .form-row { margin-bottom: 1rem; }
.dn-form .form-row.span2 { grid-column: 1 / -1; }
.dn-form label { display: block; color: #c9d4ff; font-family: var(--font-head); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: .4rem; }
.dn-form .form-control { width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: #fff; padding: .85rem 1rem; border-radius: 12px; font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.dn-form .form-control::placeholder { color: rgba(255,255,255,.35); }
.dn-form .form-control:focus { outline: none; border-color: var(--dn-gold); background: rgba(255,255,255,.09); box-shadow: 0 0 0 4px rgba(250,204,21,.18); }
.dn-form select.form-control option { color: #111; }
.dn-form .help { color: var(--dn-muted); font-size: .78rem; margin-top: .35rem; }
.dn-form .help ul { margin: .2rem 0 0; padding-left: 1.1rem; }
.help-details { margin-top: .35rem; font-size: .78rem; color: var(--dn-muted); }
.help-details summary { cursor: pointer; color: #c9d4ff; }
.help-details ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.dn-form .errorlist { color: #ff8a8a; font-size: .8rem; margin: .3rem 0 0; padding-left: 1rem; }
.dn-form .errorlist.nonfield { list-style: none; padding: .7rem .9rem; margin: 0 0 1rem; background: rgba(214,69,69,.15); border: 1px solid rgba(214,69,69,.4); border-radius: 10px; }
.dn-btn.wide { width: 100%; padding: 1rem 1.4rem; font-size: 1rem; margin-top: .4rem; }
.auth-alt { text-align: center; color: var(--dn-muted); margin: 1.2rem 0 0; font-size: .9rem; }
.auth-alt a { color: var(--dn-gold); font-weight: 700; }
body.auth-page .messages { max-width: 1240px; margin: 1.2rem auto 0; padding: 0 1.2rem; }
@media (max-width: 960px) {
  .auth-wrap { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  .auth-side { position: static; }
  .kick-stage { height: 300px; }
  .auth-card { padding: 1.6rem; }
  .dn-form .form-grid { grid-template-columns: 1fr; }
  .ball-stage { height: 380px; }
}

/* ---------- child registration wizard ---------- */
.wiz-wrap { max-width: 1240px; margin: 0 auto; padding: 3rem 1.2rem 5rem; display: grid; grid-template-columns: 380px 1fr; gap: 3rem; align-items: start; }
.wiz-side { position: sticky; top: 100px; }
.wiz-steps { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: .5rem; }
.wiz-steps li { display: flex; align-items: center; gap: .8rem; color: var(--dn-muted); font-size: .9rem; }
.wiz-steps li b { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--dn-line); font-family: var(--font-head); font-size: .8rem; transition: all .25s; }
.wiz-steps li.on { color: #fff; } .wiz-steps li.on b { background: var(--dn-electric); border-color: var(--dn-electric); box-shadow: 0 0 0 4px rgba(31,3,248,.25); }
.wiz-steps li.done { color: #dfe6ff; } .wiz-steps li.done b { background: var(--dn-gold); color: #1a1400; border-color: var(--dn-gold); }
.wiz-summary { background: rgba(255,255,255,.04); border: 1px solid var(--dn-line); border-radius: 18px; padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; }
.wiz-summary .lbl { font-family: var(--font-head); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--dn-gold); margin-bottom: .6rem; }
.wiz-summary dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; font-size: .9rem; }
.wiz-summary dt { color: var(--dn-muted); } .wiz-summary dd { margin: 0; color: #fff; font-weight: 600; }
.kick-stage.small { height: 220px; }
.wiz { display: grid; gap: 1.2rem; }
.wiz-step { display: none; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); border: 1px solid var(--dn-line); border-radius: 22px; padding: 1.8rem 2rem; animation: stepIn .45s cubic-bezier(.2,.7,.2,1); }
.wiz-step.on { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.wiz-step header { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.3rem; }
.wiz-step header .num { width: 36px; height: 36px; border-radius: 50%; background: var(--dn-electric); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 900; box-shadow: 0 8px 20px rgba(31,3,248,.4); }
.wiz-step header h2 { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: 1.25rem; margin: 0; letter-spacing: .02em; }
.wiz-nav { margin-top: .6rem; display: flex; justify-content: flex-end; }
.wiz-nav .dn-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.age-badge { min-height: 50px; display: flex; align-items: center; gap: .7rem; padding: .55rem .9rem; border-radius: 12px; border: 1px dashed rgba(255,255,255,.2); }
.age-badge small { color: var(--dn-muted); font-size: .8rem; }
.pill { display: inline-block; padding: .22rem .7rem; border-radius: 999px; font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .04em; }
.pill.ok { background: rgba(30,158,90,.2); color: #5ee39a; border: 1px solid rgba(94,227,154,.4); }
.pill.bad { background: rgba(214,69,69,.18); color: #ff8a8a; border: 1px solid rgba(255,138,138,.4); }
.pill.gray { background: rgba(255,255,255,.08); color: var(--dn-muted); border: 1px solid var(--dn-line); }
.pill.blue { background: rgba(61,92,255,.25); color: #c9d4ff; border: 1px solid rgba(61,92,255,.5); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.choice-grid.schools { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.choice { text-align: left; background: rgba(255,255,255,.04); border: 1px solid var(--dn-line); border-radius: 16px; padding: 1.1rem 1.1rem; color: #fff; cursor: pointer; font: inherit; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; display: flex; flex-direction: column; gap: .35rem; }
.choice:hover { transform: translateY(-3px); border-color: rgba(250,204,21,.5); background: rgba(255,255,255,.07); }
.choice.on { border-color: var(--dn-gold); background: rgba(250,204,21,.1); box-shadow: 0 0 0 3px rgba(250,204,21,.25), 0 16px 40px rgba(0,0,0,.35); }
.choice .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--dn-electric); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .3rem; }
.choice .ico svg { width: 20px; height: 20px; }
.choice b { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: .95rem; }
.choice small { color: var(--dn-muted); font-size: .8rem; }
.choice.school .top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.choice.school .price { font-family: var(--font-head); font-weight: 900; color: var(--dn-gold); white-space: nowrap; }
.choice.school .price small { color: var(--dn-muted); font-weight: 600; font-size: .68rem; }
.choice.school .row { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .3rem; }
.choice .cap { height: 5px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; margin-top: .5rem; }
.choice .cap i { display: block; height: 100%; background: linear-gradient(90deg, var(--dn-electric-2), var(--dn-gold)); }
.dn-form textarea.form-control { min-height: 90px; resize: vertical; }
.dn-form input[type=date].form-control { color-scheme: dark; }
@media (max-width: 960px) { .wiz-wrap { grid-template-columns: 1fr; gap: 1.6rem; } .wiz-side { position: static; } .wiz-step { padding: 1.3rem; } }

/* year pills */
.year-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.ypill { background: rgba(255,255,255,.05); border: 1px solid var(--dn-line); color: #dfe6ff; border-radius: 999px; padding: .45rem .85rem; font: 700 .9rem var(--font-head); cursor: pointer; transition: all .18s; }
.ypill:hover { border-color: rgba(250,204,21,.5); background: rgba(255,255,255,.09); transform: translateY(-2px); }
.ypill.on { background: var(--dn-gold); color: #1a1400; border-color: var(--dn-gold); box-shadow: 0 0 0 3px rgba(250,204,21,.25); }

/* ---------- parent portal ---------- */
.portal { max-width: 1240px; margin: 0 auto; padding: 3rem 1.2rem 5rem; }
.portal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.portal-head .actions { display: flex; gap: .6rem; align-items: center; }
.portal-head .actions form { margin: 0; }
.portal-card { background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); border: 1px solid var(--dn-line); border-radius: 22px; padding: 1.5rem 1.8rem; margin-bottom: 1.6rem; }
.portal-card.warn { border-color: rgba(250,204,21,.45); }
.portal-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.portal-card-head h2 { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: 1.1rem; margin: 0; letter-spacing: .03em; }
.dn-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dn-table th { text-align: left; font-family: var(--font-head); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dn-muted); padding: .5rem .6rem; border-bottom: 1px solid var(--dn-line); background: transparent; }
.dn-table td { padding: .6rem .6rem; border-bottom: 1px solid var(--dn-line); color: #e6ecff; }
.dn-table td a { color: #fff; font-weight: 600; }
.dn-table .num { text-align: right; font-family: var(--font-head); font-weight: 800; color: var(--dn-gold); }
.dn-table tr:hover td { background: rgba(255,255,255,.03); }
.pill.wait { background: rgba(250,204,21,.15); color: var(--dn-gold); border: 1px solid rgba(250,204,21,.45); }
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.2rem; }
.kid { position: relative; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); border: 1px solid var(--dn-line); border-radius: 22px; padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; transition: transform .2s, border-color .2s; }
.kid:hover { transform: translateY(-4px); border-color: rgba(61,92,255,.7); }
.kid-top { display: flex; align-items: center; gap: .9rem; }
.kid-top .avatar { width: 52px; height: 52px; border-radius: 14px; background: var(--dn-electric); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 900; font-size: 1.1rem; box-shadow: 0 8px 20px rgba(31,3,248,.4); flex: none; }
.kid-top h2 { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: 1.1rem; margin: 0; letter-spacing: .02em; }
.kid-top h2 a { color: #fff; }
.kid-top .sub { color: var(--dn-muted); font-size: .82rem; margin-top: .15rem; }
.kid-top > .pill { margin-left: auto; align-self: flex-start; }
.kid-facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; font-size: .9rem; }
.kid-facts dt { color: var(--dn-muted); } .kid-facts dd { margin: 0; color: #fff; } .kid-facts small { color: var(--dn-muted); }
.kid-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.kid-stats div { background: rgba(0,0,0,.25); border-radius: 12px; padding: .6rem .7rem; }
.kid-stats b { display: block; font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; }
.kid-stats b.gold { color: var(--dn-gold); } .kid-stats b.red { color: #ff8a8a; }
.kid-stats span { font-size: .72rem; color: var(--dn-muted); }
.kid > .dn-btn { align-self: flex-start; }
.portal-empty { grid-column: 1 / -1; text-align: center; padding: 3.5rem 1.5rem; border: 1px dashed rgba(255,255,255,.2); border-radius: 24px; }
.portal-empty svg { width: 110px; height: 110px; margin-bottom: 1rem; animation: floaty 4s ease-in-out infinite; }
.portal-empty h2 { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: 1.4rem; margin: 0 0 .5rem; }
.portal-empty p { color: var(--dn-muted); margin-bottom: 1.4rem; }
body.portal-page .messages { max-width: 1240px; margin: 1.4rem auto 0; padding: 0 1.2rem; }
body.landing .messages li { border-radius: 12px; font-weight: 600; }
body.landing .messages .success { background: rgba(30,158,90,.18); border-color: rgba(94,227,154,.45); color: #7df0b0; }
body.landing .messages .error { background: rgba(214,69,69,.18); border-color: rgba(255,138,138,.45); color: #ff9d9d; }

/* ---------- billing / debt ---------- */
.debt-banner { display: grid; grid-template-columns: 56px 1fr auto; gap: 1.2rem; align-items: center; border-radius: 20px; padding: 1.3rem 1.6rem; margin-bottom: 1.6rem; border: 2px solid; }
.debt-banner .ico { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 900; font-size: 1.8rem; }
.debt-banner b { display: block; font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .03em; margin-bottom: .25rem; }
.debt-banner p { margin: 0; font-size: .95rem; line-height: 1.5; }
.debt-banner .amt { font-family: var(--font-head); font-weight: 900; font-size: 2.2rem; white-space: nowrap; }
.debt-banner.yellow { background: rgba(250,204,21,.12); border-color: var(--dn-gold); color: #fff3b0; }
.debt-banner.yellow .ico { background: var(--dn-gold); color: #1a1400; }
.debt-banner.yellow .amt, .debt-banner.yellow b { color: var(--dn-gold); }
.debt-banner.red { background: rgba(214,69,69,.16); border-color: #ff4d4d; color: #ffd6d6; animation: pulseRed 1.6s ease-in-out infinite; }
.debt-banner.red .ico { background: #ff3b3b; color: #fff; box-shadow: 0 0 24px rgba(255,59,59,.7); }
.debt-banner.red .amt, .debt-banner.red b { color: #ff5c5c; }
@keyframes pulseRed { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,59,.45); } 50% { box-shadow: 0 0 0 10px rgba(255,59,59,0); } }
.balance { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); border: 1px solid var(--dn-line); border-radius: 22px; padding: 1.6rem 1.8rem; margin-bottom: 1.6rem; }
.balance.warning { border-color: rgba(250,204,21,.6); }
.balance.suspended { border-color: #ff4d4d; }
.balance .lbl { font-family: var(--font-head); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--dn-muted); }
.balance .big { font-family: var(--font-head); font-weight: 900; font-size: 3.4rem; line-height: 1.05; margin: .3rem 0; color: #fff; }
.balance .big small { font-size: 1.4rem; color: var(--dn-muted); }
.balance.warning .big { color: var(--dn-gold); }
.balance.suspended .big { color: #ff5c5c; }
.balance .cycles { margin-top: .6rem; }
.balance-rows { display: grid; gap: .5rem; align-content: start; }
.brow { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .6rem .9rem; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid transparent; }
.brow.warning { border-color: rgba(250,204,21,.5); }
.brow.suspended { border-color: rgba(255,77,77,.7); background: rgba(214,69,69,.15); }
.brow .who { font-weight: 700; }
.brow .amt { font-family: var(--font-head); font-weight: 900; }
.brow.warning .amt { color: var(--dn-gold); } .brow.suspended .amt { color: #ff5c5c; }
.unpaid-list summary { cursor: pointer; color: #c9d4ff; font-size: .88rem; padding: .3rem 0; }
.unpaid-list table { margin-top: .4rem; font-size: .86rem; }
.kid.suspended { border-color: #ff4d4d; }
.kid-stop { background: #ff3b3b; color: #fff; font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; text-align: center; padding: .45rem .6rem; border-radius: 10px; margin: -.4rem 0 .2rem; }
.kid-stats b.yellow { color: var(--dn-gold); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.tile { background: rgba(255,255,255,.05); border: 1px solid var(--dn-line); border-radius: 18px; padding: 1rem 1.2rem; }
.tile b { display: block; font-family: var(--font-head); font-weight: 900; font-size: 2rem; line-height: 1.1; }
.tile b.gold { color: var(--dn-gold); } .tile b.green { color: #5ee39a; } .tile b.yellow { color: var(--dn-gold); } .tile b.red { color: #ff5c5c; }
.tile span { color: var(--dn-muted); font-size: .82rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.two-col .portal-card { margin-bottom: 1.6rem; }
.portal-card.danger { border-color: #ff4d4d; }
.score-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1rem; }
.score-head .mark-big { font-size: 3.4rem; }
.score-head b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; }
.score-row { display: grid; grid-template-columns: 110px 1fr 48px; align-items: center; gap: .8rem; margin-bottom: .55rem; }
.score-row .n { font-family: var(--font-head); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.score-row .bar { height: 8px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; }
.score-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--dn-electric-2), var(--dn-gold)); }
.score-row .val { font-family: var(--font-head); font-weight: 900; color: var(--dn-gold); text-align: right; }
.pill.gold { background: rgba(250,204,21,.18); color: var(--dn-gold); border: 1px solid rgba(250,204,21,.45); }
.empty-dark { color: var(--dn-muted); text-align: center; padding: 1.2rem; font-style: italic; }
.dn-table .c { text-align: center; }
.dn-table .actions { display: flex; gap: .4rem; }
.dn-header .who { color: #c9d4ff; font-size: .82rem; margin: 0 .3rem; white-space: nowrap; }
.dn-header .inline-form { display: inline; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } .balance { grid-template-columns: 1fr; } .debt-banner { grid-template-columns: 44px 1fr; } .debt-banner .amt { grid-column: 2; } .dn-header .who { display: none; } }
