/* ============================================================
   VEDHAI STUDENT PORTAL — LUX DESIGN SYSTEM
   Matches www.vedhai.in : deep navy · teal/cyan · gold · Orbitron
   ============================================================ */

@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root{
  --bg-0:#05080F;
  --bg-1:#0A0E1B;
  --bg-2:#0D1424;
  --panel:rgba(17,23,39,.62);
  --panel-solid:#101627;
  --hairline:rgba(148,184,220,.10);
  --hairline-strong:rgba(148,184,220,.18);

  --teal:#00C9A7;
  --teal-bright:#00E5CF;
  --cyan:#00FFFF;
  --gold:#D4AF37;
  --gold-bright:#F0D57A;

  --text:#EDF6F3;
  --text-dim:#9AA7BC;
  --text-faint:#5E6B84;

  --grad-main:linear-gradient(135deg,#00C9A7 0%,#00E5CF 45%,#00FFFF 100%);
  --grad-gold:linear-gradient(135deg,#D4AF37,#F5E27A);
  --danger:#FF6B6B;
  --success:#3FB950;

  --r-lg:22px; --r-md:16px; --r-sm:12px;
  --shadow-deep:0 30px 60px -18px rgba(0,0,0,.65);
  --glow-teal:0 10px 40px -12px rgba(0,201,167,.45);
  --font-display:'Orbitron',sans-serif;
  --font-body:'Inter',sans-serif;
  --ease:cubic-bezier(.22,.61,.21,1);
  --sb-w:264px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font-body);
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(0,201,167,.07), transparent 60%),
    radial-gradient(1000px 700px at -10% 110%, rgba(212,175,55,.05), transparent 55%),
    var(--bg-0);
  color:var(--text);
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input,select,textarea{ font-family:inherit; }
::selection{ background:rgba(0,201,167,.32); color:#fff; }

::-webkit-scrollbar{ width:9px; height:9px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:rgba(0,201,167,.22); border-radius:99px; border:2px solid rgba(5,8,15,.8); }
::-webkit-scrollbar-thumb:hover{ background:rgba(0,201,167,.42); }
*{ scrollbar-width:thin; scrollbar-color:rgba(0,201,167,.25) transparent; }

:focus-visible{ outline:2px solid rgba(0,201,167,.7); outline-offset:2px; border-radius:6px; }

.ic{ width:1.15em; height:1.15em; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }

/* ---------- Ambient chrome ---------- */
.bg-aurora{ position:fixed; inset:0; z-index:-3; overflow:hidden; pointer-events:none; }
.bg-aurora .au{ position:absolute; border-radius:50%; filter:blur(90px); opacity:.55; will-change:transform; }
.au-1{ width:52vw; height:52vw; left:-14vw; top:-18vw; background:radial-gradient(circle, rgba(0,201,167,.16), transparent 65%); animation:auDrift1 26s ease-in-out infinite alternate; }
.au-2{ width:44vw; height:44vw; right:-12vw; top:22vh; background:radial-gradient(circle, rgba(0,229,207,.10), transparent 65%); animation:auDrift2 32s ease-in-out infinite alternate; }
.au-3{ width:38vw; height:38vw; left:28vw; bottom:-20vw; background:radial-gradient(circle, rgba(212,175,55,.08), transparent 65%); animation:auDrift3 38s ease-in-out infinite alternate; }
@keyframes auDrift1{ to{ transform:translate(9vw,7vh) scale(1.15);} }
@keyframes auDrift2{ to{ transform:translate(-7vw,-9vh) scale(.92);} }
@keyframes auDrift3{ to{ transform:translate(-6vw,-6vh) scale(1.1);} }

.bg-grid{
  position:fixed; inset:0; z-index:-2; pointer-events:none;
  background-image:
    linear-gradient(rgba(148,184,220,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,184,220,.045) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image:radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 78%);
}
.bg-grain{
  position:fixed; inset:-100px; z-index:100; pointer-events:none; opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#progressBar{
  position:fixed; top:0; left:0; height:2.5px; width:0%;
  background:linear-gradient(90deg,var(--teal),var(--cyan),var(--gold));
  z-index:1200; transition:width .12s linear; box-shadow:0 0 12px rgba(0,201,167,.6);
}

/* Custom cursor */
.cursor-dot,.cursor-ring{ position:fixed; top:0; left:0; z-index:1300; pointer-events:none; border-radius:50%; display:none; }
.cursor-dot{ width:6px; height:6px; background:var(--teal-bright); box-shadow:0 0 10px rgba(0,229,207,.9); }
.cursor-ring{ width:34px; height:34px; border:1.4px solid rgba(0,229,207,.5); transition:width .28s var(--ease),height .28s var(--ease),border-color .28s,opacity .3s; }
.cursor-ring.hovering{ width:54px; height:54px; border-color:rgba(212,175,55,.75); }
@media (hover:hover) and (pointer:fine){
  body.has-cursor{ cursor:none; }
  body.has-cursor a,body.has-cursor button,body.has-cursor input,body.has-cursor select,body.has-cursor textarea,body.has-cursor label{ cursor:none; }
  body.has-cursor .cursor-dot,body.has-cursor .cursor-ring{ display:block; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
#loading-screen{
  position:fixed; inset:0; z-index:2000; background:var(--bg-0);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:26px;
  transition:opacity .6s var(--ease), visibility .6s;
}
#loading-screen.done{ opacity:0; visibility:hidden; pointer-events:none; }
.pre-logo-wrap{ position:relative; display:flex; flex-direction:column; align-items:center; gap:14px; }
.pre-logo-img{ width:84px; filter:drop-shadow(0 6px 24px rgba(0,201,167,.35)); animation:logoFloat 3s ease-in-out infinite; }
.pre-logo{
  font-family:var(--font-display); font-weight:800; font-size:26px; letter-spacing:.5em; padding-left:.5em;
  background:linear-gradient(135deg,#EAFFFB 10%,#00E5CF 55%,#D4AF37 110%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.pre-bar{ width:min(240px,60vw); height:2px; border-radius:99px; background:rgba(148,184,220,.14); overflow:hidden; }
#preFill{ height:100%; width:0%; background:var(--grad-main); box-shadow:0 0 14px rgba(0,229,207,.8); transition:width .18s ease; }
#preCount{ font-family:var(--font-display); font-size:11px; letter-spacing:.3em; color:var(--text-faint); }
@keyframes logoFloat{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }

/* ============================================================
   LOGIN — SPLIT SCREEN LUX
   ============================================================ */
.login-shell{
  position:relative; min-height:100vh; display:flex; overflow:hidden;
  background:transparent;
}

/* floating particles (login only) */
.lx-particles{ position:absolute; inset:0; pointer-events:none; z-index:1; }
.lx-particles i{
  position:absolute; bottom:-12px; width:5px; height:5px; border-radius:50%;
  background:rgba(0,229,207,.5); box-shadow:0 0 8px rgba(0,229,207,.6);
  animation:pFloat linear infinite;
}
.lx-particles i:nth-child(1){left:4%;animation-duration:15s;animation-delay:0s;}
.lx-particles i:nth-child(2){left:11%;animation-duration:19s;animation-delay:2s;width:3px;height:3px;}
.lx-particles i:nth-child(3){left:19%;animation-duration:13s;animation-delay:4s;background:rgba(212,175,55,.55);box-shadow:0 0 8px rgba(212,175,55,.6);}
.lx-particles i:nth-child(4){left:27%;animation-duration:22s;animation-delay:1s;}
.lx-particles i:nth-child(5){left:36%;animation-duration:17s;animation-delay:6s;width:3px;height:3px;}
.lx-particles i:nth-child(6){left:44%;animation-duration:24s;animation-delay:3s;}
.lx-particles i:nth-child(7){left:53%;animation-duration:15s;animation-delay:7s;background:rgba(212,175,55,.5);box-shadow:0 0 8px rgba(212,175,55,.55);}
.lx-particles i:nth-child(8){left:63%;animation-duration:20s;animation-delay:0s;width:3px;height:3px;}
.lx-particles i:nth-child(9){left:72%;animation-duration:14s;animation-delay:5s;}
.lx-particles i:nth-child(10){left:81%;animation-duration:23s;animation-delay:2s;}
.lx-particles i:nth-child(11){left:89%;animation-duration:18s;animation-delay:8s;width:3px;height:3px;background:rgba(212,175,55,.5);}
.lx-particles i:nth-child(12){left:96%;animation-duration:16s;animation-delay:4s;}
@keyframes pFloat{
  0%{ transform:translateY(0) translateX(0); opacity:0; }
  8%{ opacity:.9; }
  90%{ opacity:.5; }
  100%{ transform:translateY(-108vh) translateX(4vw); opacity:0; }
}

/* ---- Brand showcase (left) ---- */
.lx-brand{
  position:relative; z-index:2; flex:1.15; min-width:0;
  display:flex; flex-direction:column; justify-content:space-between; gap:34px;
  padding:clamp(26px,4vw,58px) clamp(26px,4.5vw,64px);
}
.lx-brand-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; animation:fadeDown .9s var(--ease) both .15s; }
.wordmark{
  font-family:var(--font-display); font-weight:800; font-size:19px; letter-spacing:.44em;
  background:linear-gradient(135deg,#EAFFFB 5%,#00E5CF 60%,#00C9A7 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  white-space:nowrap;
}
.chip{
  display:inline-flex; align-items:center; gap:8px; white-space:nowrap;
  font-size:10px; font-weight:600; letter-spacing:.3em; text-transform:uppercase; color:var(--text-dim);
  border:1px solid var(--hairline-strong); border-radius:99px; padding:9px 16px;
  background:rgba(13,20,36,.5); backdrop-filter:blur(8px);
}
.chip .dot{ width:6px; height:6px; border-radius:50%; background:var(--teal); box-shadow:0 0 10px var(--teal); animation:pulseDot 2s ease infinite; }
@keyframes pulseDot{ 0%,100%{opacity:1} 50%{opacity:.35} }

.lx-clock-zone{ position:relative; display:flex; align-items:center; justify-content:center; padding:12px 0; animation:fadeUp 1.1s var(--ease) both .3s; }
.orbit{ position:absolute; border:1px dashed rgba(0,201,167,.22); border-radius:50%; pointer-events:none; }
.orbit.o1{ width:min(480px,88%); aspect-ratio:1; animation:orbSpin 40s linear infinite; }
.orbit.o2{ width:min(580px,104%); aspect-ratio:1; border-color:rgba(212,175,55,.14); animation:orbSpin 64s linear infinite reverse; }
.orbit .sat{ position:absolute; top:-4px; left:50%; width:8px; height:8px; border-radius:50%; background:var(--teal-bright); box-shadow:0 0 12px var(--teal-bright); }
.orbit.o2 .sat{ background:var(--gold-bright); box-shadow:0 0 12px var(--gold-bright); }
@keyframes orbSpin{ to{ transform:rotate(360deg); } }

.clock-stage{ position:relative; width:min(400px,74%); aspect-ratio:1; z-index:2; animation:clockFloat 7s ease-in-out infinite; }
.clock-stage svg{
  width:100%; height:auto;
  filter:drop-shadow(0 26px 52px rgba(0,201,167,.20)) drop-shadow(0 0 30px rgba(212,175,55,.12));
}
@keyframes clockFloat{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-18px); }
}
.vh-spin-slow,.vh-spin-med,.vh-spin-fast,.vh-spin-esc,.vh-osc-balance{ transform-box:fill-box; transform-origin:center; }
.vh-spin-slow{ animation:vhSpin 46s linear infinite; }
.vh-spin-med{ animation:vhSpin 18s linear infinite reverse; }
.vh-spin-fast{ animation:vhSpin 7s linear infinite; }
.vh-spin-esc{ animation:vhSpin 2.6s linear infinite reverse; }
.vh-osc-balance{ animation:vhOsc 1.05s ease-in-out infinite; }
@keyframes vhSpin{ to{ transform:rotate(360deg); } }
@keyframes vhOsc{ 0%,100%{transform:rotate(-30deg)} 50%{transform:rotate(30deg)} }

.lx-copy{ text-align:left; animation:fadeUp 1s var(--ease) both .45s; }
.lx-kicker{
  display:flex; align-items:center; gap:12px; font-size:11px; letter-spacing:.34em; text-transform:uppercase;
  color:var(--teal); margin-bottom:16px; font-weight:600;
}
.lx-kicker::before{ content:""; width:30px; height:1px; background:var(--grad-main); }
.lx-copy h1{
  font-family:var(--font-display); font-size:clamp(24px,2.6vw,38px); line-height:1.22; font-weight:700; letter-spacing:.02em; margin-bottom:14px;
}
.grad-text{
  background:var(--grad-main); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.gold-text{ background:var(--grad-gold); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.lx-sub{ color:var(--text-dim); font-size:15px; line-height:1.75; max-width:46ch; }

.lx-stats{ display:flex; gap:clamp(18px,2.6vw,42px); animation:fadeUp 1s var(--ease) both .6s; }
.lx-stat b{
  display:block; font-family:var(--font-display); font-size:clamp(20px,2vw,27px); font-weight:700;
  background:var(--grad-main); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.lx-stat span{ display:block; margin-top:6px; font-size:10.5px; letter-spacing:.22em; text-transform:uppercase; color:var(--text-faint); }
.lx-stat{ position:relative; padding-left:16px; }
.lx-stat::before{ content:""; position:absolute; left:0; top:4px; bottom:4px; width:2px; border-radius:2px; background:var(--grad-main); opacity:.7; }

.lx-marquee{
  position:relative; overflow:hidden; border-block:1px solid var(--hairline); padding:13px 0;
  mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
  animation:fadeIn 1.2s var(--ease) both .8s;
}
.tm-track{ display:flex; width:max-content; animation:tmMove 30s linear infinite; }
.tm-group{ display:flex; align-items:center; gap:34px; padding-right:34px; }
.tm-group span{ font-size:11px; letter-spacing:.26em; text-transform:uppercase; color:var(--text-faint); white-space:nowrap; }
.tm-group b{ color:var(--gold); font-size:8px; }
@keyframes tmMove{ to{ transform:translateX(-50%); } }

/* ---- Auth panel (right) ---- */
.lx-auth{
  position:relative; z-index:3; width:min(600px,46%); flex:none;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px;
  padding:clamp(24px,4vw,56px);
  background:linear-gradient(160deg, rgba(13,20,36,.72), rgba(7,11,21,.86));
  backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px);
  border-left:1px solid var(--hairline);
}
.lx-back{
  position:absolute; top:26px; left:30px; display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; color:var(--text-dim); text-decoration:none; letter-spacing:.06em;
  padding:9px 15px; border:1px solid transparent; border-radius:99px; transition:.3s var(--ease);
}
.lx-back:hover{ color:var(--teal-bright); border-color:var(--hairline-strong); background:rgba(0,201,167,.06); transform:translateX(-3px); }

.lx-mobile-mark{ display:none; }

.lx-tilt{ perspective:1300px; width:100%; max-width:472px; }
.lx-card{
  position:relative; border-radius:26px; padding:clamp(28px,3vw,42px);
  background:linear-gradient(165deg, rgba(20,28,48,.82), rgba(10,15,29,.9));
  border:1px solid var(--hairline-strong);
  box-shadow:var(--shadow-deep);
  transform-style:preserve-3d;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
  animation:cardIn 1s var(--ease) both .25s;
}
@keyframes cardIn{ from{ opacity:0; transform:translateY(34px) scale(.97); } to{ opacity:1; transform:none; } }
.lx-card::before{
  content:""; position:absolute; inset:-1px; border-radius:inherit; padding:1px; pointer-events:none;
  background:conic-gradient(from var(--ang), transparent 0 68%, rgba(0,201,167,.85) 80%, rgba(212,175,55,.9) 87%, transparent 95%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  animation:borderSpin 6.5s linear infinite;
}
@keyframes borderSpin{ to{ --ang:360deg; } }
.lx-card::after{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:radial-gradient(520px circle at var(--mx,50%) var(--my,20%), rgba(0,201,167,.09), transparent 42%);
  transition:opacity .4s;
}
.lx-card.shake{ animation:shake .55s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake{
  10%,90%{transform:translateX(-2px)} 20%,80%{transform:translateX(3px)}
  30%,50%,70%{transform:translateX(-6px)} 40%,60%{transform:translateX(6px)}
}

.lx-head{ text-align:center; margin-bottom:26px; }
.lx-head .lx-logo{ width:118px; margin:0 auto 6px; filter:drop-shadow(0 6px 20px rgba(0,201,167,.3)); animation:logoFloat 4s ease-in-out infinite; }
.lx-head h2{ font-family:var(--font-display); font-size:23px; font-weight:700; letter-spacing:.03em; }
.lx-head h2 .grad-text{ }
.lx-head p{ margin-top:8px; color:var(--text-dim); font-size:13.5px; }

.lx-tabs{
  position:relative; display:grid; grid-template-columns:1fr 1fr; gap:4px; margin-bottom:26px;
  background:rgba(5,8,15,.55); border:1px solid var(--hairline); border-radius:14px; padding:4px;
}
.lx-tab-ind{
  position:absolute; top:4px; bottom:4px; left:4px; width:calc(50% - 6px);
  background:linear-gradient(135deg, rgba(0,201,167,.16), rgba(0,255,255,.08));
  border:1px solid rgba(0,201,167,.35); border-radius:11px;
  box-shadow:inset 0 0 18px rgba(0,201,167,.12), 0 4px 18px -6px rgba(0,201,167,.4);
  transition:transform .45s var(--ease);
}
.lx-tabs.mode-signup .lx-tab-ind{ transform:translateX(calc(100% + 4px)); }
.lx-tab{
  position:relative; z-index:1; padding:12px 8px; font-size:13px; font-weight:600; letter-spacing:.04em;
  color:var(--text-dim); border-radius:11px; transition:color .3s;
}
.lx-tab.active{ color:#fff; }

.lx-pane{ display:none; animation:paneIn .5s var(--ease); }
.lx-pane.active{ display:block; }
@keyframes paneIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }

.lx-field{ position:relative; margin-bottom:16px; }
.lx-field > svg.f-ic{
  position:absolute; left:17px; top:19px; width:17px; height:17px; color:var(--text-faint);
  transition:color .3s; pointer-events:none;
}
.lx-field input{
  width:100%; padding:24px 48px 10px 46px; font-size:14.5px; color:var(--text);
  background:rgba(5,8,15,.55); border:1px solid rgba(148,184,220,.14); border-radius:14px;
  transition:border-color .3s, box-shadow .3s, background .3s;
}
.lx-field input:focus{
  outline:none; border-color:rgba(0,201,167,.65); background:rgba(5,8,15,.78);
  box-shadow:0 0 0 4px rgba(0,201,167,.10), 0 10px 28px -14px rgba(0,201,167,.4);
}
.lx-field input:focus ~ svg.f-ic, .lx-field input:not(:placeholder-shown) ~ svg.f-ic{ color:var(--teal-bright); }
.lx-field label{
  position:absolute; left:47px; top:19px; font-size:14px; color:var(--text-dim);
  pointer-events:none; transition:.25s var(--ease);
}
.lx-field input:focus ~ label,
.lx-field input:not(:placeholder-shown) ~ label{
  top:8px; font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--teal);
}
.eye-btn{
  position:absolute; right:12px; top:50%; transform:translateY(-50%); padding:8px; border-radius:9px;
  color:var(--text-faint); transition:.25s; line-height:0;
}
.eye-btn:hover{ color:var(--teal-bright); background:rgba(0,201,167,.08); }
.field-error-msg{ display:none; margin-top:7px; font-size:11.5px; color:var(--danger); letter-spacing:.03em; }
.lx-field.invalid input{ border-color:rgba(255,107,107,.65); box-shadow:0 0 0 4px rgba(255,107,107,.08); }
.lx-field.invalid .field-error-msg{ display:block; }

.pw-meter{ height:3px; border-radius:99px; background:rgba(148,184,220,.12); margin:-6px 2px 14px; overflow:hidden; }
.pw-meter i{ display:block; height:100%; width:0%; border-radius:inherit; transition:width .35s var(--ease), background .35s; }

.lx-row{ display:flex; align-items:center; justify-content:space-between; margin:2px 2px 20px; }
.remember{ display:flex; align-items:center; gap:9px; font-size:12.5px; color:var(--text-dim); cursor:pointer; user-select:none; }
.remember input{ display:none; }
.remember .box{
  width:17px; height:17px; border-radius:5px; border:1.4px solid var(--hairline-strong);
  display:grid; place-items:center; transition:.25s; color:transparent;
}
.remember input:checked + .box{ background:var(--grad-main); border-color:transparent; color:#04121000; color:#04241f; }
.remember .box svg{ width:11px; height:11px; stroke-width:3; }
.lx-forgot{ font-size:12.5px; color:var(--text-dim); text-decoration:none; transition:.25s; }
.lx-forgot:hover{ color:var(--gold-bright); }

.btn-hero{
  position:relative; overflow:hidden; width:100%; padding:16px 20px; border-radius:14px;
  font-size:15px; font-weight:700; letter-spacing:.04em; color:#04231d;
  background:linear-gradient(135deg,#00C9A7 0%,#00E5CF 55%,#33F6FF 100%);
  box-shadow:0 12px 34px -10px rgba(0,201,167,.55), inset 0 1px 0 rgba(255,255,255,.35);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
  display:flex; align-items:center; justify-content:center; gap:10px;
}
.btn-hero:hover{ transform:translateY(-2px); filter:saturate(1.12); box-shadow:0 18px 44px -12px rgba(0,229,207,.65), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-hero:active{ transform:translateY(0) scale(.985); }
.btn-hero::before{
  content:""; position:absolute; top:0; bottom:0; width:44%; left:-60%;
  background:linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  transform:skewX(-20deg); transition:left .7s var(--ease);
}
.btn-hero:hover::before{ left:130%; }
.btn-hero .btn-spinner{
  width:17px; height:17px; border-radius:50%; flex:none; display:none;
  border:2.2px solid rgba(4,35,29,.25); border-top-color:#04231d; animation:spin .7s linear infinite;
}
.btn-hero.is-loading{ pointer-events:none; }
.btn-hero.is-loading .btn-spinner{ display:block; }
.btn-hero.is-loading > .btn-label,.btn-hero.is-loading > svg{ opacity:.35; }
@keyframes spin{ to{ transform:rotate(360deg); } }

.divider{
  display:flex; align-items:center; gap:14px; margin:22px 0; color:var(--text-faint);
  font-size:11px; letter-spacing:.28em; text-transform:uppercase;
}
.divider::before,.divider::after{ content:""; height:1px; flex:1; background:linear-gradient(90deg,transparent,rgba(148,184,220,.22)); }
.divider::after{ background:linear-gradient(90deg,rgba(148,184,220,.22),transparent); }

.btn-google{
  position:relative; overflow:hidden; width:100%; padding:15px 18px; border-radius:14px;
  background:rgba(245,248,252,.96); color:#17202B; font-size:14.5px; font-weight:650; letter-spacing:.01em;
  display:flex; align-items:center; justify-content:center; gap:12px;
  border:1px solid rgba(255,255,255,.14);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow:0 10px 30px -12px rgba(240,246,255,.25);
}
.btn-google:hover{ transform:translateY(-2px); box-shadow:0 16px 40px -12px rgba(240,246,255,.35); }
.btn-google:active{ transform:scale(.985); }
.btn-google .g-mark{ width:19px; height:19px; flex:none; }

.lx-foot{
  margin-top:24px; padding-top:20px; border-top:1px solid var(--hairline);
  display:flex; align-items:center; justify-content:center; gap:8px;
  font-size:11.5px; color:var(--text-faint); letter-spacing:.05em;
}
.lx-foot svg{ width:13px; height:13px; color:var(--teal); }
.lx-terms{ font-size:11.5px; color:var(--text-faint); text-align:center; max-width:420px; line-height:1.7; animation:fadeIn 1s both .7s; }
.lx-terms a{ color:var(--text-dim); text-decoration:none; border-bottom:1px dotted var(--text-faint); }
.lx-terms a:hover{ color:var(--teal-bright); }

@keyframes fadeUp{ from{ opacity:0; transform:translateY(26px);} to{ opacity:1; transform:none;} }
@keyframes fadeDown{ from{ opacity:0; transform:translateY(-20px);} to{ opacity:1; transform:none;} }
@keyframes fadeIn{ from{ opacity:0;} to{ opacity:1;} }

/* ============================================================
   APP SHELL
   ============================================================ */
.app-shell{ display:flex; min-height:100vh; position:relative; }
.sidebar-overlay{
  position:fixed; inset:0; z-index:900; background:rgba(3,5,10,.66); backdrop-filter:blur(4px);
  opacity:0; visibility:hidden; transition:.35s var(--ease);
}
.sidebar-overlay.active{ opacity:1; visibility:visible; }

/* ---- Sidebar ---- */
.app-sidebar{
  position:fixed; left:0; top:0; bottom:0; width:var(--sb-w); z-index:1000;
  display:flex; flex-direction:column;
  background:linear-gradient(180deg, rgba(14,20,36,.92), rgba(8,12,22,.94));
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  border-right:1px solid var(--hairline);
  transition:transform .45s var(--ease);
}
.sb-logo{
  display:flex; align-items:center; gap:14px; padding:24px 24px 22px;
  border-bottom:1px solid var(--hairline); position:relative; overflow:hidden;
}
.sb-logo img{ width:52px; filter:drop-shadow(0 4px 14px rgba(0,201,167,.35)); transition:transform .4s var(--ease); }
.sb-logo:hover img{ transform:scale(1.08) rotate(-3deg); }
.sb-logo .t{ line-height:1.15; }
.sb-logo .t b{
  display:block; font-family:var(--font-display); font-size:17px; letter-spacing:.3em; font-weight:800;
  background:var(--grad-main); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.sb-logo .t span{ font-size:9px; letter-spacing:.34em; text-transform:uppercase; color:var(--text-faint); }

.sb-nav{ position:relative; flex:1; padding:18px 14px; display:flex; flex-direction:column; gap:4px; overflow-y:auto; }
.sb-nav::-webkit-scrollbar{ width:0; }
.nav-ind{
  position:absolute; left:14px; width:calc(100% - 28px); border-radius:12px; z-index:0;
  background:linear-gradient(90deg, rgba(0,201,167,.14), rgba(0,255,255,.04) 70%);
  border:1px solid rgba(0,201,167,.28);
  box-shadow:inset 0 0 22px rgba(0,201,167,.07), 0 6px 22px -8px rgba(0,201,167,.35);
  transition:top .45s var(--ease), height .45s var(--ease);
  pointer-events:none;
}
.nav-ind::before{
  content:""; position:absolute; left:-14px; top:22%; bottom:22%; width:3px; border-radius:0 3px 3px 0;
  background:var(--grad-main); box-shadow:0 0 12px rgba(0,229,207,.8);
}
.nav-item{
  position:relative; z-index:1; display:flex; align-items:center; gap:13px; width:100%;
  padding:13px 16px; border-radius:12px; color:var(--text-dim);
  font-size:13.5px; font-weight:550; letter-spacing:.02em; text-align:left;
  transition:color .3s, transform .3s var(--ease); overflow:hidden;
}
.nav-item .nv-ic{
  display:grid; place-items:center; width:34px; height:34px; border-radius:10px; flex:none;
  background:rgba(148,184,220,.06); border:1px solid transparent; transition:.3s var(--ease);
}
.nav-item .nv-ic svg{ width:17px; height:17px; transition:transform .35s var(--ease); }
.nav-item:hover{ color:#fff; transform:translateX(3px); }
.nav-item:hover .nv-ic{ background:rgba(0,201,167,.1); border-color:rgba(0,201,167,.22); }
.nav-item:hover .nv-ic svg{ transform:scale(1.12) rotate(-4deg); }
.nav-item.active{ color:#fff; }
.nav-item.active .nv-ic{ background:rgba(0,201,167,.16); border-color:rgba(0,201,167,.4); color:var(--teal-bright); }
.nv-badge{
  margin-left:auto; font-size:9.5px; font-weight:700; letter-spacing:.08em; color:var(--gold-bright);
  background:rgba(212,175,55,.12); border:1px solid rgba(212,175,55,.3); padding:3px 8px; border-radius:99px;
}

.sb-foot{ padding:16px 14px 20px; border-top:1px solid var(--hairline); }
.pro-card{
  position:relative; border-radius:16px; padding:16px; overflow:hidden;
  background:linear-gradient(150deg, rgba(212,175,55,.10), rgba(0,201,167,.07));
  border:1px solid rgba(212,175,55,.25);
}
.pro-card::before{
  content:""; position:absolute; top:-40%; right:-30%; width:120px; height:120px; border-radius:50%;
  background:radial-gradient(circle, rgba(212,175,55,.25), transparent 70%); animation:pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow{ 0%,100%{opacity:.5; transform:scale(1)} 50%{opacity:1; transform:scale(1.25)} }
.pro-card h4{ font-family:var(--font-display); font-size:12.5px; letter-spacing:.14em; color:var(--gold-bright); margin-bottom:5px; }
.pro-card p{ font-size:11px; color:var(--text-dim); line-height:1.55; margin-bottom:11px; }
.pro-card button{
  width:100%; padding:9px; border-radius:9px; font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:#241c04; background:var(--grad-gold); transition:transform .3s var(--ease), box-shadow .3s;
}
.pro-card button:hover{ transform:translateY(-1px); box-shadow:0 8px 22px -8px rgba(212,175,55,.6); }
.sb-version{ margin-top:14px; text-align:center; font-size:9.5px; letter-spacing:.3em; text-transform:uppercase; color:var(--text-faint); opacity:.6; }

/* ---- Main column ---- */
.app-main{ flex:1; min-width:0; margin-left:var(--sb-w); display:flex; flex-direction:column; }

.app-header{
  position:sticky; top:0; z-index:500; height:72px;
  display:flex; align-items:center; gap:18px; padding:0 clamp(18px,3vw,38px);
  background:rgba(7,11,21,.72); backdrop-filter:blur(20px) saturate(1.3); -webkit-backdrop-filter:blur(20px) saturate(1.3);
  border-bottom:1px solid var(--hairline);
}
.mobile-nav-toggle{
  display:none; width:40px; height:40px; border-radius:11px; place-items:center;
  border:1px solid var(--hairline-strong); background:rgba(13,20,36,.6); color:var(--text-dim); transition:.3s;
}
.mobile-nav-toggle:hover{ color:var(--teal-bright); border-color:rgba(0,201,167,.4); }

.crumb{ display:flex; align-items:center; gap:9px; font-size:12px; letter-spacing:.24em; text-transform:uppercase; color:var(--text-faint); white-space:nowrap; }
.crumb b{ color:var(--teal-bright); font-weight:600; }
.crumb .sep{ width:14px; height:1px; background:var(--hairline-strong); }

.header-search{ position:relative; flex:1; max-width:430px; margin-left:auto; }
.header-search > svg{ position:absolute; left:15px; top:50%; transform:translateY(-50%); width:15px; height:15px; color:var(--text-faint); pointer-events:none; }
.header-search input{
  width:100%; padding:11px 58px 11px 42px; font-size:13.5px; color:var(--text);
  background:rgba(5,8,15,.5); border:1px solid var(--hairline); border-radius:12px;
  transition:.3s var(--ease);
}
.header-search input::placeholder{ color:var(--text-faint); }
.header-search input:focus{
  outline:none; border-color:rgba(0,201,167,.5); box-shadow:0 0 0 4px rgba(0,201,167,.09);
  background:rgba(5,8,15,.75);
}
.header-search kbd{
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  font-family:var(--font-body); font-size:10px; letter-spacing:.1em; color:var(--text-faint);
  border:1px solid var(--hairline-strong); border-bottom-width:2px; border-radius:6px; padding:3px 7px;
  background:rgba(13,20,36,.7);
}

.header-user{ display:flex; align-items:center; gap:13px; }
.live-clock{
  display:flex; align-items:center; gap:9px; padding:9px 14px; border-radius:11px;
  border:1px solid var(--hairline); background:rgba(13,20,36,.55);
}
.live-clock svg{ width:14px; height:14px; color:var(--teal); }
.live-clock b{ font-family:var(--font-display); font-size:12px; font-weight:600; letter-spacing:.14em; color:var(--text); font-variant-numeric:tabular-nums; }
.icon-btn{
  position:relative; width:40px; height:40px; border-radius:11px; display:grid; place-items:center;
  border:1px solid var(--hairline); background:rgba(13,20,36,.55); color:var(--text-dim); transition:.3s var(--ease);
}
.icon-btn:hover{ color:var(--teal-bright); border-color:rgba(0,201,167,.4); transform:translateY(-1px); }
.icon-btn svg{ width:17px; height:17px; }
.icon-btn .ping{
  position:absolute; top:9px; right:10px; width:7px; height:7px; border-radius:50%;
  background:var(--gold-bright); box-shadow:0 0 0 0 rgba(212,175,55,.6); animation:ping 2.2s var(--ease) infinite;
}
@keyframes ping{ 0%{box-shadow:0 0 0 0 rgba(212,175,55,.55)} 70%{box-shadow:0 0 0 8px rgba(212,175,55,0)} 100%{box-shadow:0 0 0 0 rgba(212,175,55,0)} }

.hu-profile{ display:flex; align-items:center; gap:11px; padding:6px 14px 6px 7px; border-radius:99px; border:1px solid var(--hairline); background:rgba(13,20,36,.55); }
.hu-avatar-wrap{ position:relative; line-height:0; }
.hu-profile img{ width:34px; height:34px; border-radius:50%; object-fit:cover; border:1.6px solid rgba(0,201,167,.6); }
.hu-status{ position:absolute; right:-1px; bottom:-1px; width:10px; height:10px; border-radius:50%; background:var(--success); border:2px solid #0a0e1b; }
.hu-meta{ line-height:1.2; }
.hu-meta b{ display:block; font-size:12.5px; font-weight:650; max-width:130px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hu-meta span{ font-size:9.5px; letter-spacing:.22em; text-transform:uppercase; color:var(--teal); }

.logout-btn{
  display:flex; align-items:center; gap:8px; padding:10px 15px; border-radius:11px;
  font-size:12.5px; font-weight:600; color:#ff8a84;
  border:1px solid rgba(255,107,107,.28); background:rgba(255,107,107,.07);
  transition:.3s var(--ease);
}
.logout-btn:hover{ background:rgba(255,107,107,.14); border-color:rgba(255,107,107,.5); box-shadow:0 8px 24px -10px rgba(255,107,107,.5); transform:translateY(-1px); }
.logout-btn svg{ width:15px; height:15px; }

.app-content{ flex:1; padding:clamp(22px,3vw,38px); display:flex; flex-direction:column; gap:34px; max-width:1460px; width:100%; margin:0 auto; }

.app-footer{ padding:26px clamp(18px,3vw,38px) 30px; border-top:1px solid var(--hairline); display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.app-footer p{ font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--text-faint); }
.app-footer .grad-text{ font-weight:700; }

/* ---- Section common ---- */
.content-section{ display:none; }
.content-section.active{ display:block; animation:secIn .6s var(--ease); }
@keyframes secIn{ from{ opacity:0; transform:translateY(18px);} to{ opacity:1; transform:none;} }

.sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:26px; flex-wrap:wrap; }
.sec-kicker{ display:flex; align-items:center; gap:12px; font-size:10.5px; font-weight:650; letter-spacing:.34em; text-transform:uppercase; color:var(--teal); margin-bottom:11px; }
.sec-kicker::before{ content:""; width:28px; height:1px; background:var(--grad-main); }
.sec-title{ font-family:var(--font-display); font-size:clamp(20px,2.2vw,27px); font-weight:700; letter-spacing:.02em; }
.sec-sub{ margin-top:8px; color:var(--text-dim); font-size:13.5px; max-width:62ch; line-height:1.65; }
.date-chip{ display:inline-flex; align-items:center; gap:9px; font-size:11.5px; letter-spacing:.1em; color:var(--text-dim); border:1px solid var(--hairline); border-radius:99px; padding:9px 16px; background:rgba(13,20,36,.5); }
.date-chip svg{ width:13px; height:13px; color:var(--gold-bright); }

.rv{ opacity:0; transform:translateY(26px); }
.rv.in{ opacity:1; transform:none; transition:opacity .8s var(--ease) var(--rvd,0s), transform .8s var(--ease) var(--rvd,0s); }

/* ---- Dashboard hero ---- */
.dash-hero{
  position:relative; overflow:hidden; border-radius:26px; padding:clamp(26px,3.4vw,44px);
  border:1px solid var(--hairline-strong);
  background:linear-gradient(120deg, rgba(14,22,40,.85), rgba(8,12,24,.9));
  box-shadow:var(--shadow-deep);
  display:flex; align-items:center; justify-content:space-between; gap:34px;
}
.dash-hero::before,.dash-hero::after{ content:""; position:absolute; border-radius:50%; filter:blur(70px); pointer-events:none; }
.dash-hero::before{ width:340px; height:340px; top:-160px; right:-60px; background:rgba(0,201,167,.16); animation:heroBlob 12s ease-in-out infinite alternate; }
.dash-hero::after{ width:280px; height:280px; bottom:-170px; left:18%; background:rgba(212,175,55,.10); animation:heroBlob 16s ease-in-out infinite alternate-reverse; }
@keyframes heroBlob{ to{ transform:translate(-40px,30px) scale(1.2); } }
.dh-left{ position:relative; z-index:1; max-width:640px; }
.dh-hi{ font-size:11px; letter-spacing:.34em; text-transform:uppercase; color:var(--teal); display:flex; align-items:center; gap:11px; margin-bottom:13px; }
.dh-hi::before{ content:""; width:26px; height:1px; background:var(--grad-main); }
.dash-hero h2{
  font-family:var(--font-display); font-size:clamp(21px,2.5vw,31px); font-weight:750; line-height:1.28; letter-spacing:.01em; margin-bottom:11px;
}
.dash-hero .dh-sub{ color:var(--text-dim); font-size:14px; line-height:1.7; margin-bottom:24px; }
.dh-actions{ display:flex; gap:13px; flex-wrap:wrap; }
.btn-primary-lux{
  position:relative; overflow:hidden; display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px; border-radius:13px; font-size:13.5px; font-weight:700; letter-spacing:.03em; color:#04231d;
  background:var(--grad-main);
  box-shadow:0 14px 36px -12px rgba(0,201,167,.6), inset 0 1px 0 rgba(255,255,255,.35);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
}
.btn-primary-lux:hover{ transform:translateY(-2px); filter:saturate(1.1); box-shadow:0 20px 46px -14px rgba(0,229,207,.65); }
.btn-primary-lux:active{ transform:scale(.98); }
.btn-primary-lux svg{ width:15px; height:15px; }
.btn-outline-lux{
  display:inline-flex; align-items:center; gap:10px; padding:14px 24px; border-radius:13px;
  font-size:13.5px; font-weight:600; letter-spacing:.03em; color:var(--text);
  border:1px solid var(--hairline-strong); background:rgba(13,20,36,.5);
  transition:.3s var(--ease);
}
.btn-outline-lux:hover{ border-color:rgba(212,175,55,.5); color:var(--gold-bright); background:rgba(212,175,55,.06); transform:translateY(-2px); }
.btn-outline-lux svg{ width:15px; height:15px; }

.dh-right{ position:relative; z-index:1; flex:none; text-align:center; }
.goal-ring{ position:relative; width:148px; height:148px; margin-inline:auto; }
.goal-ring svg{ width:100%; height:100%; transform:rotate(-90deg); }
.goal-ring .track{ fill:none; stroke:rgba(148,184,220,.12); stroke-width:9; }
.goal-ring .bar{
  fill:none; stroke:url(#goalGrad); stroke-width:9; stroke-linecap:round;
  stroke-dasharray:402; stroke-dashoffset:402;
  transition:stroke-dashoffset 1.8s var(--ease) .4s;
  filter:drop-shadow(0 0 8px rgba(0,201,167,.6));
}
.goal-ring .center{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
}
.goal-ring .center b{ font-family:var(--font-display); font-size:27px; font-weight:750; background:var(--grad-main); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.goal-ring .center span{ font-size:9px; letter-spacing:.26em; text-transform:uppercase; color:var(--text-faint); }
.dh-right figcaption{ margin-top:12px; font-size:10.5px; letter-spacing:.24em; text-transform:uppercase; color:var(--text-faint); }

/* ---- Stat cards ---- */
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.stat-card{
  position:relative; overflow:hidden; border-radius:20px; padding:24px;
  background:linear-gradient(155deg, rgba(18,26,46,.75), rgba(9,13,25,.85));
  border:1px solid var(--hairline);
  transition:transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.stat-card::before{
  content:""; position:absolute; inset:0; border-radius:inherit; opacity:0; transition:opacity .45s;
  background:radial-gradient(420px circle at 85% -20%, rgba(0,201,167,.13), transparent 55%);
}
.stat-card::after{
  content:""; position:absolute; top:0; left:-80%; width:55%; height:100%; transform:skewX(-22deg);
  background:linear-gradient(105deg, transparent, rgba(255,255,255,.05), transparent);
  transition:left .8s var(--ease);
}
.stat-card:hover{ transform:translateY(-6px); border-color:rgba(0,201,167,.35); box-shadow:0 24px 50px -20px rgba(0,0,0,.7), 0 0 40px -14px rgba(0,201,167,.35); }
.stat-card:hover::before{ opacity:1; }
.stat-card:hover::after{ left:130%; }
.sc-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.sc-orb{
  width:46px; height:46px; border-radius:14px; display:grid; place-items:center; color:var(--teal-bright);
  background:linear-gradient(145deg, rgba(0,201,167,.16), rgba(0,255,255,.05));
  border:1px solid rgba(0,201,167,.3);
  box-shadow:inset 0 0 18px rgba(0,201,167,.12), 0 8px 20px -8px rgba(0,201,167,.4);
}
.sc-orb svg{ width:20px; height:20px; }
.sc-orb.gold{ color:var(--gold-bright); background:linear-gradient(145deg, rgba(212,175,55,.15), rgba(212,175,55,.04)); border-color:rgba(212,175,55,.35); box-shadow:inset 0 0 18px rgba(212,175,55,.1), 0 8px 20px -8px rgba(212,175,55,.35); }
.stat-number{ font-family:var(--font-display); font-size:31px; font-weight:750; letter-spacing:.02em; background:var(--grad-main); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; font-variant-numeric:tabular-nums; }
.stat-label{ margin-top:7px; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-dim); }
.stat-change{
  display:inline-flex; align-items:center; gap:6px; margin-top:15px; padding:5px 11px; border-radius:99px;
  font-size:10.5px; font-weight:650; letter-spacing:.06em;
}
.stat-change.positive{ color:#5eead4; background:rgba(0,201,167,.09); border:1px solid rgba(0,201,167,.25); }
.stat-change svg{ width:11px; height:11px; }

/* ---- Chart cards ---- */
.charts-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.chart-card{
  border-radius:20px; padding:24px; min-height:330px;
  background:linear-gradient(160deg, rgba(16,23,42,.72), rgba(8,12,24,.85));
  border:1px solid var(--hairline);
  transition:border-color .4s, transform .4s var(--ease);
}
.chart-card:hover{ border-color:rgba(0,201,167,.25); transform:translateY(-3px); }
.cc-head{ display:flex; align-items:center; gap:11px; margin-bottom:20px; }
.cc-head svg{ width:16px; height:16px; color:var(--teal-bright); }
.cc-head h3{ font-size:14.5px; font-weight:650; letter-spacing:.04em; }
.chart-card canvas{ max-height:264px !important; }

/* Achievements timeline */
.ach-list{ display:flex; flex-direction:column; gap:0; margin-top:4px; }
.ach-item{ position:relative; display:flex; gap:15px; padding:13px 0 13px 6px; }
.ach-item:not(:last-child)::before{
  content:""; position:absolute; left:24px; top:52px; bottom:-6px; width:1.5px;
  background:linear-gradient(180deg, rgba(0,201,167,.35), rgba(0,201,167,.05));
}
.ach-node{
  flex:none; width:37px; height:37px; border-radius:12px; display:grid; place-items:center; font-size:16px;
  background:rgba(0,201,167,.09); border:1px solid rgba(0,201,167,.3);
  box-shadow:0 0 18px -4px rgba(0,201,167,.4);
}
.ach-body b{ display:block; font-size:13.5px; font-weight:620; margin-bottom:4px; }
.ach-body span{ font-size:11px; color:var(--text-faint); letter-spacing:.08em; }

/* ---- Courses ---- */
.courses-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(292px,1fr)); gap:20px; }
.course-card{
  position:relative; display:flex; flex-direction:column; border-radius:20px; overflow:hidden;
  background:linear-gradient(165deg, rgba(17,25,45,.78), rgba(8,12,24,.88));
  border:1px solid var(--hairline);
  transition:transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.course-card::before{
  content:""; position:absolute; top:0; left:12%; right:12%; height:1.5px;
  background:linear-gradient(90deg, transparent, var(--teal-bright), transparent);
  opacity:0; transition:opacity .45s;
}
.course-card:hover{ transform:translateY(-7px); border-color:rgba(0,201,167,.3); box-shadow:0 30px 60px -24px rgba(0,0,0,.75), 0 0 44px -16px rgba(0,201,167,.4); }
.course-card:hover::before{ opacity:1; }
.course-header{ display:flex; align-items:center; justify-content:space-between; padding:20px 20px 0; }
.course-icon{
  width:48px; height:48px; border-radius:14px; display:grid; place-items:center; color:var(--teal-bright);
  background:linear-gradient(145deg, rgba(0,201,167,.15), rgba(0,255,255,.04));
  border:1px solid rgba(0,201,167,.3); box-shadow:inset 0 0 18px rgba(0,201,167,.1);
  transition:transform .4s var(--ease);
}
.course-icon svg{ width:21px; height:21px; }
.course-card:hover .course-icon{ transform:rotate(-6deg) scale(1.08); }
.course-card.lvl-int .course-icon{ color:#7DF3FF; background:linear-gradient(145deg, rgba(0,229,255,.13), rgba(0,229,255,.03)); border-color:rgba(0,229,255,.3); }
.course-card.lvl-adv .course-icon{ color:var(--gold-bright); background:linear-gradient(145deg, rgba(212,175,55,.14), rgba(212,175,55,.03)); border-color:rgba(212,175,55,.32); }
.course-level{
  font-size:9.5px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; padding:6px 11px; border-radius:99px; color:var(--teal-bright);
  background:rgba(0,201,167,.08); border:1px solid rgba(0,201,167,.25);
}
.course-card.lvl-int .course-level{ color:#7DF3FF; background:rgba(0,229,255,.07); border-color:rgba(0,229,255,.25); }
.course-card.lvl-adv .course-level{ color:var(--gold-bright); background:rgba(212,175,55,.08); border-color:rgba(212,175,55,.28); }
.course-body{ padding:17px 20px 0; flex:1; }
.course-body h3{ font-size:17px; font-weight:700; letter-spacing:.01em; margin-bottom:9px; }
.course-description{ font-size:13px; color:var(--text-dim); line-height:1.65; margin-bottom:15px; }
.course-info{ display:flex; gap:16px; margin-bottom:14px; }
.course-info span{ display:inline-flex; align-items:center; gap:7px; font-size:11.5px; color:var(--text-faint); letter-spacing:.04em; }
.course-info svg{ width:12.5px; height:12.5px; color:var(--teal); }
.course-features{ list-style:none; display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.course-features li{ display:flex; align-items:center; gap:9px; font-size:12.5px; color:var(--text-dim); }
.course-features li svg{ width:13px; height:13px; color:var(--gold-bright); flex:none; }
.btn-learn-now{
  margin:0 20px 20px; display:flex; align-items:center; justify-content:center; gap:9px;
  padding:13px; border-radius:12px; text-decoration:none; font-size:13px; font-weight:700; letter-spacing:.05em;
  color:var(--teal-bright); border:1px solid rgba(0,201,167,.35); background:rgba(0,201,167,.07);
  transition:.35s var(--ease); position:relative; overflow:hidden;
}
.btn-learn-now svg{ width:14px; height:14px; transition:transform .35s var(--ease); }
.btn-learn-now:hover{ background:var(--grad-main); color:#04231d; border-color:transparent; box-shadow:0 12px 30px -10px rgba(0,201,167,.6); }
.btn-learn-now:hover svg{ transform:translateX(4px); }

/* ---- Projects ---- */
.projects-header{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:22px; }
.chip-group{ display:flex; gap:8px; flex-wrap:wrap; }
.filter-chip{
  padding:9px 17px; border-radius:99px; font-size:12px; font-weight:600; letter-spacing:.05em; color:var(--text-dim);
  border:1px solid var(--hairline); background:rgba(13,20,36,.5); transition:.3s var(--ease);
}
.filter-chip:hover{ color:var(--text); border-color:var(--hairline-strong); }
.filter-chip.active{ color:#04231d; background:var(--grad-main); border-color:transparent; box-shadow:0 8px 22px -8px rgba(0,201,167,.55); }
.projects-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(330px,1fr)); gap:20px; }
.project-card{
  position:relative; border-radius:20px; padding:22px; overflow:hidden;
  background:linear-gradient(165deg, rgba(17,25,45,.75), rgba(8,12,24,.85));
  border:1px solid var(--hairline); transition:transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.project-card:hover{ transform:translateY(-5px); border-color:rgba(0,201,167,.3); box-shadow:0 26px 54px -22px rgba(0,0,0,.7); }
.project-header{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:11px; }
.project-header h3{ font-size:15.5px; font-weight:700; line-height:1.4; }
.project-status{ flex:none; font-size:9.5px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; padding:6px 11px; border-radius:99px; }
.project-status.completed{ color:#5eead4; background:rgba(0,201,167,.09); border:1px solid rgba(0,201,167,.3); }
.project-status.review{ color:var(--gold-bright); background:rgba(212,175,55,.09); border:1px solid rgba(212,175,55,.3); }
.project-description{ font-size:13px; color:var(--text-dim); line-height:1.65; margin-bottom:16px; }
.project-tech{ display:flex; gap:7px; flex-wrap:wrap; margin-bottom:17px; }
.tech-tag{ font-size:10.5px; font-weight:600; letter-spacing:.06em; color:var(--cyan); background:rgba(0,255,255,.05); border:1px solid rgba(0,255,255,.18); padding:5px 10px; border-radius:7px; }
.project-meta{ display:flex; align-items:center; justify-content:space-between; padding-top:15px; border-top:1px solid var(--hairline); margin-bottom:15px; }
.score-value{ font-family:var(--font-display); font-size:15px; font-weight:700; color:var(--teal-bright); margin-left:7px; }
.grade{
  display:inline-grid; place-items:center; margin-left:9px; width:30px; height:30px; border-radius:9px;
  font-size:12px; font-weight:800; color:#04231d; background:var(--grad-main);
}
.project-date{ font-size:11px; color:var(--text-faint); letter-spacing:.06em; }
.project-actions{ display:flex; gap:9px; }
.btn-icon{
  width:36px; height:36px; border-radius:10px; display:grid; place-items:center; color:var(--text-dim);
  border:1px solid var(--hairline); background:rgba(13,20,36,.5); transition:.3s var(--ease);
}
.btn-icon svg{ width:15px; height:15px; }
.btn-icon:hover{ color:var(--teal-bright); border-color:rgba(0,201,167,.4); background:rgba(0,201,167,.08); transform:translateY(-2px); }
.btn-icon.danger:hover{ color:#ff8a84; border-color:rgba(255,107,107,.45); background:rgba(255,107,107,.08); }

/* ---- Certificates ---- */
.certificates-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(380px,1fr)); gap:22px; }
.certificate-card{
  border-radius:20px; overflow:hidden; border:1px solid var(--hairline);
  background:linear-gradient(165deg, rgba(17,25,45,.75), rgba(8,12,24,.85));
  transition:transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.certificate-card:hover{ transform:translateY(-6px); border-color:rgba(212,175,55,.35); box-shadow:0 30px 60px -24px rgba(0,0,0,.75), 0 0 44px -14px rgba(212,175,55,.3); }
.certificate-preview{ padding:22px 22px 0; }
.certificate-design{
  position:relative; border-radius:14px; padding:26px 22px 20px; text-align:center; overflow:hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(212,175,55,.09), transparent 34%),
    radial-gradient(circle at 85% 90%, rgba(0,201,167,.08), transparent 40%),
    linear-gradient(160deg, #101a30, #0a1122);
  border:1px solid rgba(212,175,55,.4);
  outline:1px solid rgba(212,175,55,.14); outline-offset:-7px;
}
.cert-header img{ width:64px; margin:0 auto 9px; filter:drop-shadow(0 3px 10px rgba(0,201,167,.35)); }
.cert-header h3{ font-family:var(--font-display); font-size:11.5px; letter-spacing:.3em; color:var(--gold-bright); margin-bottom:16px; }
.cert-title{ font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-dim); }
.cert-name{
  font-family:var(--font-display); font-size:20px; font-weight:700; margin:9px 0 7px;
  background:var(--grad-main); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.cert-date{ font-size:11px; color:var(--text-faint); letter-spacing:.1em; }
.cert-footer{ display:flex; align-items:center; justify-content:space-between; margin-top:20px; padding-top:13px; border-top:1px dashed rgba(212,175,55,.25); }
.cert-id{ font-size:9.5px; letter-spacing:.14em; color:var(--text-faint); }
.cert-qr{ line-height:0; opacity:.85; }
.cert-qr svg{ width:30px; height:30px; }
.certificate-actions{ display:flex; gap:10px; padding:16px 22px 4px; }
.btn-cert-action{
  flex:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:11px 8px; border-radius:11px;
  font-size:12px; font-weight:650; letter-spacing:.04em; color:var(--text-dim);
  border:1px solid var(--hairline); background:rgba(13,20,36,.55); transition:.3s var(--ease);
}
.btn-cert-action svg{ width:13.5px; height:13.5px; }
.btn-cert-action:hover{ color:var(--gold-bright); border-color:rgba(212,175,55,.45); background:rgba(212,175,55,.07); transform:translateY(-2px); }
.certificate-info{ padding:14px 22px 20px; display:flex; flex-direction:column; gap:6px; }
.certificate-info p{ font-size:12px; color:var(--text-faint); }
.certificate-info strong{ color:var(--text-dim); font-weight:600; }

/* ---- Analytics ---- */
.analytics-overview{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:22px; }
.heatmap-container{ display:grid; grid-template-columns:repeat(26,1fr); gap:4px; padding:6px 0 4px; }
.hm-cell{ aspect-ratio:1; border-radius:3.5px; background:rgba(148,184,220,.07); transition:transform .2s var(--ease); }
.hm-cell:hover{ transform:scale(1.35); }
.hm-legend{ display:flex; align-items:center; gap:7px; justify-content:flex-end; margin-top:12px; font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); }
.hm-legend i{ width:11px; height:11px; border-radius:3px; }

/* ---- Leaderboard ---- */
.podium{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:end; max-width:760px; margin:6px auto 34px; }
.podium-place{
  position:relative; text-align:center; padding:26px 18px 22px; border-radius:20px;
  background:linear-gradient(170deg, rgba(17,25,45,.8), rgba(8,12,24,.9));
  border:1px solid var(--hairline);
  transition:transform .4s var(--ease), box-shadow .4s;
}
.podium-place:hover{ transform:translateY(-6px); }
.podium-place.first{ padding-top:38px; border-color:rgba(212,175,55,.4); box-shadow:0 0 54px -18px rgba(212,175,55,.45); }
.podium-place.first::before{
  content:""; position:absolute; inset:-1px; border-radius:inherit; padding:1px;
  background:linear-gradient(160deg, rgba(212,175,55,.7), transparent 45%, rgba(212,175,55,.35));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none;
}
.podium-avatar{
  width:64px; height:64px; margin:0 auto 13px; border-radius:50%; display:grid; place-items:center; font-size:26px;
  background:rgba(13,20,36,.8); border:1px solid var(--hairline-strong);
}
.podium-place.first .podium-avatar{ width:76px; height:76px; font-size:32px; border-color:rgba(212,175,55,.5); box-shadow:0 0 30px -6px rgba(212,175,55,.55); }
.podium-place h3{ font-size:15px; font-weight:700; }
.podium-place p{ margin:6px 0 11px; font-size:12px; color:var(--text-dim); }
.podium-place.first p{ color:var(--gold-bright); font-weight:650; }
.level-badge{ display:inline-block; font-size:9.5px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--teal-bright); background:rgba(0,201,167,.08); border:1px solid rgba(0,201,167,.28); padding:5px 11px; border-radius:99px; }
.leaderboard-table{ border-radius:20px; overflow:hidden; border:1px solid var(--hairline); background:rgba(10,15,29,.6); }
.leaderboard-row{
  display:grid; grid-template-columns:70px 1fr 110px 110px; align-items:center; gap:12px;
  padding:15px 22px; border-bottom:1px solid var(--hairline); font-size:13.5px; transition:background .3s;
}
.leaderboard-row:last-child{ border-bottom:none; }
.leaderboard-row:not(.header):hover{ background:rgba(0,201,167,.04); }
.leaderboard-row.header{ font-size:10px; letter-spacing:.26em; text-transform:uppercase; color:var(--text-faint); background:rgba(13,20,36,.55); }
.rank{ font-family:var(--font-display); font-weight:700; color:var(--text-dim); }
.student-info{ display:flex; align-items:center; gap:12px; font-weight:600; }
.student-info img{ width:34px; height:34px; border-radius:50%; object-fit:cover; border:1.4px solid rgba(0,201,167,.4); }
.points{ font-family:var(--font-display); font-weight:650; color:var(--teal-bright); font-variant-numeric:tabular-nums; text-align:right; }
.leaderboard-row.current-user{
  background:linear-gradient(90deg, rgba(0,201,167,.12), rgba(0,201,167,.02));
  border-left:3px solid var(--teal); 
}
.leaderboard-gap{ text-align:center; color:var(--text-faint); letter-spacing:.4em; padding:8px 0; font-size:12px; }

/* ---- Career ---- */
.career-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:20px; }
.career-card{
  position:relative; border-radius:20px; padding:24px; overflow:hidden;
  background:linear-gradient(165deg, rgba(17,25,45,.76), rgba(8,12,24,.86));
  border:1px solid var(--hairline); transition:transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.career-card:hover{ transform:translateY(-6px); border-color:rgba(0,201,167,.3); box-shadow:0 28px 56px -22px rgba(0,0,0,.72); }
.career-top{ display:flex; align-items:center; gap:15px; margin-bottom:15px; }
.career-icon{
  width:50px; height:50px; border-radius:15px; display:grid; place-items:center; font-size:22px;
  background:linear-gradient(145deg, rgba(0,201,167,.14), rgba(0,255,255,.04));
  border:1px solid rgba(0,201,167,.3); box-shadow:inset 0 0 18px rgba(0,201,167,.1);
}
.career-card h3{ font-size:17px; font-weight:700; }
.salary-range{ display:flex; align-items:center; gap:10px; margin-bottom:12px; flex-wrap:wrap; }
.salary-range > span:first-child{ font-family:var(--font-display); font-size:13.5px; font-weight:700; color:var(--gold-bright); }
.salary-badge{ font-size:9.5px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:#5eead4; background:rgba(0,201,167,.09); border:1px solid rgba(0,201,167,.28); padding:5px 11px; border-radius:99px; }
.career-description{ font-size:13px; color:var(--text-dim); line-height:1.68; margin-bottom:18px; }
.career-details h4{ font-size:10px; letter-spacing:.26em; text-transform:uppercase; color:var(--text-faint); margin:15px 0 9px; }
.skills-list{ display:flex; gap:7px; flex-wrap:wrap; }
.skill-badge{ font-size:10.5px; font-weight:600; letter-spacing:.05em; color:var(--cyan); background:rgba(0,255,255,.05); border:1px solid rgba(0,255,255,.18); padding:5px 11px; border-radius:7px; }
.career-details p{ font-size:13px; color:var(--text-dim); }
.job-count{ color:var(--teal-bright) !important; font-weight:650; }
.growth-indicator{ display:flex; align-items:center; gap:12px; }
.growth-bar-wrap{ flex:1; height:7px; border-radius:99px; background:rgba(148,184,220,.1); overflow:hidden; }
.growth-bar{ height:100%; width:0; border-radius:inherit; background:var(--grad-main); box-shadow:0 0 12px rgba(0,201,167,.6); transition:width 1.4s var(--ease) .3s; }
.growth-indicator > span{ font-size:11px; font-weight:650; color:var(--teal-bright); white-space:nowrap; }
.btn-career{
  margin-top:20px; width:100%; padding:13px; border-radius:12px; font-size:13px; font-weight:700; letter-spacing:.05em;
  color:var(--gold-bright); border:1px solid rgba(212,175,55,.35); background:rgba(212,175,55,.06);
  transition:.35s var(--ease);
}
.btn-career:hover{ background:var(--grad-gold); color:#241c04; border-color:transparent; box-shadow:0 12px 30px -10px rgba(212,175,55,.55); }

/* ---- Profile ---- */
.profile-status-message{ min-height:20px; font-size:12.5px; letter-spacing:.04em; color:var(--teal-bright); margin-top:8px; }
.profile-cover-container{ position:relative; border-radius:22px; overflow:hidden; height:230px; border:1px solid var(--hairline-strong); box-shadow:var(--shadow-deep); }
.profile-cover-img{ width:100%; height:100%; object-fit:cover; filter:saturate(1.05); }
.change-cover-btn{
  position:absolute; top:16px; right:16px; display:flex; align-items:center; gap:8px;
  padding:10px 16px; border-radius:11px; font-size:12px; font-weight:600; letter-spacing:.05em; color:#fff;
  background:rgba(5,8,15,.55); border:1px solid rgba(255,255,255,.18); backdrop-filter:blur(10px);
  transition:.3s var(--ease);
}
.change-cover-btn:hover{ background:rgba(0,201,167,.25); border-color:rgba(0,201,167,.5); transform:translateY(-2px); }
.change-cover-btn svg{ width:14px; height:14px; }
.profile-card{
  position:relative; margin:-74px 22px 0; display:flex; align-items:flex-end; gap:24px; flex-wrap:wrap;
  border-radius:22px; padding:24px 28px;
  background:linear-gradient(150deg, rgba(17,25,45,.92), rgba(10,15,29,.94));
  border:1px solid var(--hairline-strong); box-shadow:var(--shadow-deep);
}
.profile-avatar-container{ position:relative; margin-top:-58px; flex:none; }
.profile-avatar-img{
  width:132px; height:132px; border-radius:50%; object-fit:cover;
  border:4px solid rgba(0,201,167,.55); box-shadow:0 0 0 6px rgba(5,8,15,.9), 0 18px 40px -14px rgba(0,201,167,.45);
}
.change-avatar-btn{
  position:absolute; bottom:6px; right:6px; width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  color:#04231d; background:var(--grad-main); border:3px solid #0a0e1b; transition:.3s var(--ease);
}
.change-avatar-btn:hover{ transform:scale(1.12) rotate(6deg); }
.change-avatar-btn svg{ width:15px; height:15px; }
.profile-info{ flex:1; min-width:250px; padding-bottom:4px; }
.profile-name{ font-family:var(--font-display); font-size:23px; font-weight:750; letter-spacing:.01em; }
.profile-email{ margin-top:6px; font-size:13px; color:var(--text-dim); letter-spacing:.03em; }
.profile-stats-trio{ display:flex; gap:30px; margin-top:17px; flex-wrap:wrap; }
.trio-item b{ display:block; font-family:var(--font-display); font-size:19px; font-weight:750; background:var(--grad-main); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.trio-item span{ font-size:9.5px; letter-spacing:.24em; text-transform:uppercase; color:var(--text-faint); }
.profile-form{ display:flex; flex-direction:column; gap:20px; margin-top:24px; }
.form-lux-card{
  border-radius:20px; padding:26px;
  background:linear-gradient(160deg, rgba(16,23,42,.72), rgba(8,12,24,.85));
  border:1px solid var(--hairline);
}
.form-lux-card > h3{ display:flex; align-items:center; gap:11px; font-size:14px; font-weight:650; letter-spacing:.05em; margin-bottom:20px; }
.form-lux-card > h3 svg{ width:16px; height:16px; color:var(--teal-bright); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.lux-input,.lux-select,.lux-textarea{
  width:100%; padding:13px 16px; font-size:13.5px; color:var(--text);
  background:rgba(5,8,15,.5); border:1px solid rgba(148,184,220,.13); border-radius:12px;
  transition:.3s var(--ease);
}
.lux-textarea{ resize:vertical; min-height:104px; line-height:1.7; }
.lux-input:focus,.lux-select:focus,.lux-textarea:focus{
  outline:none; border-color:rgba(0,201,167,.6); box-shadow:0 0 0 4px rgba(0,201,167,.09); background:rgba(5,8,15,.75);
}
.lux-select{ appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239AA7BC' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 15px center; }
.fl-label{ display:block; font-size:10.5px; font-weight:650; letter-spacing:.22em; text-transform:uppercase; color:var(--text-faint); margin-bottom:8px; }
.char-count{ display:block; text-align:right; font-size:10.5px; color:var(--text-faint); margin-top:7px; letter-spacing:.08em; }
.form-actions-lux{ display:flex; gap:13px; justify-content:flex-end; }
.skill-tags{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:15px; }
.skill-pill{
  display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:99px;
  font-size:12px; font-weight:600; color:var(--teal-bright);
  background:rgba(0,201,167,.07); border:1px solid rgba(0,201,167,.28);
}
.skill-pill button{ display:grid; place-items:center; color:inherit; opacity:.55; transition:.25s; line-height:0; }
.skill-pill button:hover{ opacity:1; transform:rotate(90deg); }
.skill-pill svg{ width:11px; height:11px; }
.add-skill-row{ display:flex; gap:11px; }
.add-skill-row .lux-input{ flex:1; }

/* ---- Toasts ---- */
#toast-container{ position:fixed; top:22px; right:22px; z-index:3000; display:flex; flex-direction:column; gap:11px; pointer-events:none; }
.toast{
  pointer-events:auto; position:relative; overflow:hidden; min-width:290px; max-width:380px;
  display:flex; align-items:center; gap:12px; padding:15px 18px; border-radius:15px;
  background:linear-gradient(150deg, rgba(19,27,47,.95), rgba(10,15,29,.97));
  border:1px solid var(--hairline-strong);
  box-shadow:0 24px 50px -18px rgba(0,0,0,.8);
  font-size:13.5px; font-weight:550;
  opacity:0; transform:translateX(60px); transition:.45s var(--ease);
}
.toast.show{ opacity:1; transform:none; }
.toast::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--teal); }
.toast-error::before{ background:var(--danger); }
.toast-success::before{ background:var(--success); }
.toast svg{ width:18px; height:18px; flex:none; color:var(--teal-bright); }
.toast-error svg{ color:#ff8a84; }
.toast-success svg{ color:#7ee2a8; }

/* ---- Mobile bottom nav + sheet ---- */
.mobile-bottom-nav{
  position:fixed; left:14px; right:14px; bottom:14px; z-index:950; display:none;
  grid-template-columns:repeat(5,1fr); gap:4px; padding:9px;
  background:rgba(9,13,25,.88); backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px);
  border:1px solid var(--hairline-strong); border-radius:22px;
  box-shadow:0 22px 50px -14px rgba(0,0,0,.8);
}
.mobile-nav-item{
  display:flex; flex-direction:column; align-items:center; gap:4px; padding:9px 4px; border-radius:14px;
  color:var(--text-faint); font-size:9.5px; font-weight:650; letter-spacing:.06em; text-decoration:none;
  transition:.3s var(--ease); position:relative;
}
.mobile-nav-item svg{ width:18px; height:18px; }
.mobile-nav-item.active{ color:var(--teal-bright); background:rgba(0,201,167,.1); }
.mobile-nav-item.active::before{ content:""; position:absolute; top:-9px; width:22px; height:2.5px; border-radius:99px; background:var(--grad-main); box-shadow:0 0 10px var(--teal); }

.mobile-sheet-overlay{ position:fixed; inset:0; z-index:1100; background:rgba(3,5,10,.7); backdrop-filter:blur(5px); opacity:0; visibility:hidden; transition:.35s var(--ease); }
.mobile-sheet-overlay.active{ opacity:1; visibility:visible; }
.mobile-menu-sheet{
  position:fixed; left:14px; right:14px; bottom:14px; z-index:1150;
  border-radius:26px; padding:14px 18px 22px;
  background:linear-gradient(165deg, rgba(19,27,47,.97), rgba(10,15,29,.98));
  border:1px solid var(--hairline-strong); box-shadow:0 -20px 70px -20px rgba(0,0,0,.85);
  transform:translateY(120%); transition:transform .5s var(--ease);
}
.mobile-menu-sheet.active{ transform:none; }
.mobile-sheet-header{ display:flex; align-items:center; justify-content:space-between; padding:6px 4px 14px; }
.mobile-sheet-title{ font-family:var(--font-display); font-size:13px; letter-spacing:.2em; text-transform:uppercase; color:var(--text-dim); }
.mobile-sheet-close{ width:34px; height:34px; border-radius:10px; display:grid; place-items:center; color:var(--text-dim); border:1px solid var(--hairline); transition:.3s; }
.mobile-sheet-close:hover{ color:#fff; border-color:var(--hairline-strong); }
.mobile-sheet-close svg{ width:15px; height:15px; }
.mobile-sheet-menu{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.mobile-sheet-item{
  display:flex; align-items:center; gap:12px; padding:14px 15px; border-radius:14px; text-decoration:none;
  color:var(--text-dim); font-size:13px; font-weight:600; border:1px solid var(--hairline);
  background:rgba(13,20,36,.5); transition:.3s var(--ease);
}
.mobile-sheet-item svg{ width:16px; height:16px; color:var(--teal); }
.mobile-sheet-item:hover{ color:#fff; border-color:rgba(0,201,167,.35); background:rgba(0,201,167,.07); transform:translateY(-2px); }

/* ---- Responsive ---- */
@media (max-width:1240px){
  .stats-grid{ grid-template-columns:repeat(2,1fr); }
  .analytics-overview{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:1080px){
  .login-shell{ flex-direction:column; overflow-y:auto; }
  .lx-brand{ flex:none; padding-bottom:12px; gap:18px; }
  .lx-brand-head,.lx-copy,.lx-stats,.lx-marquee{ display:none; }
  .lx-clock-zone{ padding:30px 0 4px; }
  .clock-stage{ width:min(225px,52vw); }
  .orbit.o1{ width:min(280px,64vw); }
  .orbit.o2{ width:min(335px,76vw); }
  .lx-auth{ width:100%; border-left:none; }
}
@media (max-width:1024px){
  .app-sidebar{ transform:translateX(-105%); box-shadow:none; }
  .app-sidebar.mobile-active{ transform:none; box-shadow:30px 0 80px -20px rgba(0,0,0,.7); }
  .app-main{ margin-left:0; }
  .mobile-nav-toggle{ display:grid; }
  .charts-row{ grid-template-columns:1fr; }
}
@media (max-width:900px){
  .dash-hero{ flex-direction:column; text-align:center; }
  .dh-hi{ justify-content:center; }
  .dh-actions{ justify-content:center; }
  .live-clock{ display:none; }
}
@media (max-width:768px){
  .mobile-bottom-nav{ display:grid; }
  .app-content{ padding-bottom:110px; }
  .header-search kbd{ display:none; }
  .hu-meta{ display:none; }
  .logout-btn span{ display:none; }
  .logout-btn{ padding:10px 12px; }
  .crumb{ display:none; }
  .podium{ grid-template-columns:1fr; max-width:340px; }
  .podium-place.second{ order:2; } .podium-place.first{ order:1; } .podium-place.third{ order:3; }
}
@media (max-width:640px){
  .form-row{ grid-template-columns:1fr; }
  .profile-card{ margin:-64px 12px 0; padding:20px; }
  .profile-cover-container{ height:170px; }
  .profile-avatar-img{ width:106px; height:106px; }
  .leaderboard-row{ grid-template-columns:52px 1fr 84px; padding:14px 14px; }
  .leaderboard-row .level-badge{ display:none; }
  .certificates-grid{ grid-template-columns:1fr; }
  .mobile-sheet-menu{ grid-template-columns:1fr; }
  .lx-back span{ display:none; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  .rv{ opacity:1; transform:none; }
  .goal-ring .bar{ stroke-dashoffset:137; }
}
