/* ============================================================
   Mentorsy Student Portal — theme
   Matched to learn.mentorsy.in: cream ground, plum ink,
   gold CTA, Playfair display + Nunito Sans body.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;0,6..12,800;1,6..12,400&display=swap');

:root{
  /* ---- brand ---- */
  --cream:        #FAF5EC;
  --cream-2:      #F3EBDC;
  --surface:      #FFFFFF;
  --surface-2:    #FBF8F2;

  --plum:         #2E0A33;   /* headings / ink */
  --plum-2:       #4A1259;   /* rail, strong borders */
  --plum-3:       #6B1E7A;   /* accent text */
  --plum-soft:    #F0E4F5;   /* pill backgrounds */

  --ink:          #2E0A33;
  --ink-2:        #6B5E70;
  --ink-3:        #9A8FA0;
  --line:         #E8DFD2;
  --line-2:       #D8CCBB;

  --gold:         #F5C542;
  --gold-2:       #E9A825;
  --gold-deep:    #C98A0E;
  --gold-soft:    #FCF2D8;

  --green:        #0F7A4A;
  --green-soft:   #E2F2E9;
  --crimson:      #C41E4E;
  --crimson-soft: #FBE6EC;
  --amber:        #B4611A;
  --amber-soft:   #FBEEDF;

  --radius:       16px;
  --radius-sm:    10px;
  --radius-pill:  999px;

  --shadow-sm:  0 1px 2px rgba(46,10,51,.06), 0 2px 8px -4px rgba(46,10,51,.12);
  --shadow:     0 2px 4px rgba(46,10,51,.05), 0 12px 32px -16px rgba(46,10,51,.28);
  --shadow-gold: 0 4px 14px -4px rgba(233,168,37,.55);

  --rail-w: 76px;

  --font-display: "Playfair Display", "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --cream:      #1A0620;
    --cream-2:    #21092A;
    --surface:    #250C2E;
    --surface-2:  #2C0F36;

    --plum:       #F6ECF8;
    --plum-2:     #3A0E46;
    --plum-3:     #D9A6E6;
    --plum-soft:  #3D1149;

    --ink:        #F6ECF8;
    --ink-2:      #BCA8C4;
    --ink-3:      #8A7593;
    --line:       #3C1848;
    --line-2:     #4E2059;

    --gold:       #F7CE5C;
    --gold-2:     #E9A825;
    --gold-deep:  #F7CE5C;
    --gold-soft:  #3A2A0E;

    --green:      #5FCB96;
    --green-soft: #10331F;
    --crimson:    #F286A3;
    --crimson-soft:#3B1220;
    --amber:      #E5A868;
    --amber-soft: #3A250F;

    --shadow-sm:  0 1px 2px rgba(0,0,0,.4), 0 2px 8px -4px rgba(0,0,0,.6);
    --shadow:     0 2px 4px rgba(0,0,0,.35), 0 12px 32px -16px rgba(0,0,0,.8);
    --shadow-gold: 0 4px 14px -4px rgba(233,168,37,.35);
  }
}

:root[data-theme="dark"]{
  --cream:      #1A0620;
  --cream-2:    #21092A;
  --surface:    #250C2E;
  --surface-2:  #2C0F36;
  --plum:       #F6ECF8;
  --plum-2:     #3A0E46;
  --plum-3:     #D9A6E6;
  --plum-soft:  #3D1149;
  --ink:        #F6ECF8;
  --ink-2:      #BCA8C4;
  --ink-3:      #8A7593;
  --line:       #3C1848;
  --line-2:     #4E2059;
  --gold:       #F7CE5C;
  --gold-2:     #E9A825;
  --gold-deep:  #F7CE5C;
  --gold-soft:  #3A2A0E;
  --green:      #5FCB96;
  --green-soft: #10331F;
  --crimson:    #F286A3;
  --crimson-soft:#3B1220;
  --amber:      #E5A868;
  --amber-soft: #3A250F;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.4), 0 2px 8px -4px rgba(0,0,0,.6);
  --shadow:     0 2px 4px rgba(0,0,0,.35), 0 12px 32px -16px rgba(0,0,0,.8);
  --shadow-gold: 0 4px 14px -4px rgba(233,168,37,.35);
}

/* ============================ base ============================ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:var(--font-display); color:var(--plum); margin:0; text-wrap:balance; letter-spacing:-.005em;}
h1{font-size:clamp(28px,4vw,40px); font-weight:700; line-height:1.15;}
h2{font-size:clamp(22px,2.6vw,28px); font-weight:700;}
h3{font-size:19px; font-weight:700;}
p{margin:0 0 12px}
p:last-child{margin-bottom:0}
a{color:var(--plum-3)}
:focus-visible{outline:3px solid var(--gold-2); outline-offset:2px; border-radius:4px}
img{max-width:100%; display:block}

.em{color:var(--plum-3); font-style:italic}
.muted{color:var(--ink-2)}
.tabular{font-variant-numeric:tabular-nums}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ============================ buttons ============================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-size:15px; font-weight:800;
  padding:13px 22px; border-radius:var(--radius-sm);
  border:2px solid transparent; cursor:pointer; text-decoration:none;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
  line-height:1.2;
}
.btn:active{transform:translateY(1px)}
.btn[disabled],.btn[aria-disabled="true"]{opacity:.45; cursor:not-allowed; transform:none}

.btn-gold{
  background:linear-gradient(180deg,var(--gold) 0%,var(--gold-2) 100%);
  color:#2E0A33; box-shadow:var(--shadow-gold);
}
.btn-gold:hover:not([disabled]){box-shadow:0 6px 20px -4px rgba(233,168,37,.7)}

.btn-outline{
  background:var(--surface); color:var(--plum-3);
  border-color:var(--plum-3);
}
.btn-outline:hover:not([disabled]){background:var(--plum-soft)}

.btn-ghost{
  background:transparent; color:var(--ink-2); border-color:var(--line-2);
}
.btn-ghost:hover:not([disabled]){background:var(--surface-2); color:var(--ink)}

.btn-danger{
  background:var(--surface); color:var(--crimson); border-color:var(--crimson);
}
.btn-danger:hover:not([disabled]){background:var(--crimson-soft)}

.btn-sm{padding:8px 14px; font-size:13.5px; border-radius:8px}
.btn-block{width:100%}
.btn-link{
  background:none;border:none;padding:0;font:inherit;font-size:14px;font-weight:600;
  color:var(--ink-2); text-decoration:underline; text-underline-offset:3px; cursor:pointer;
}
.btn-link:hover{color:var(--plum-3)}

/* ============================ pills ============================ */
.pill{
  display:inline-flex; align-items:center; gap:6px;
  font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase;
  padding:5px 12px; border-radius:var(--radius-pill);
  background:var(--plum-soft); color:var(--plum-3);
}
.pill-gold{background:var(--gold-soft); color:var(--gold-deep)}
.pill-green{background:var(--green-soft); color:var(--green)}
.pill-crimson{background:var(--crimson-soft); color:var(--crimson)}
.pill-amber{background:var(--amber-soft); color:var(--amber)}
.pill-quiet{background:var(--cream-2); color:var(--ink-2)}

/* ============================ cards ============================ */
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
.card-topline{border-top:4px solid var(--gold-2)}
.card-topline-green{border-top:4px solid var(--green)}
.card-topline-crimson{border-top:4px solid var(--crimson)}
.card-pad{padding:22px}

/* ============================ forms ============================ */
label.field{display:block; margin-bottom:16px}
label.field > span{
  display:block; font-size:12.5px; font-weight:800; letter-spacing:.05em;
  text-transform:uppercase; color:var(--ink-2); margin-bottom:6px;
}
input[type=text],input[type=email],input[type=password],input[type=tel],input[type=number],
input[type=date],input[type=time],select,textarea{
  width:100%; font-family:var(--font-body); font-size:16px;
  padding:12px 14px; border-radius:var(--radius-sm);
  border:1.5px solid var(--line-2); background:var(--surface); color:var(--ink);
}
input:focus,select:focus,textarea:focus{border-color:var(--plum-3); outline:none; box-shadow:0 0 0 3px var(--plum-soft)}
textarea{resize:vertical; min-height:96px}
::placeholder{color:var(--ink-3)}

.hint{font-size:13.5px; color:var(--ink-2); margin-top:-8px; margin-bottom:16px}

.alert{
  border-radius:var(--radius-sm); padding:12px 16px; font-size:14.5px;
  margin-bottom:16px; border:1px solid transparent;
}
.alert-error{background:var(--crimson-soft); color:var(--crimson); border-color:var(--crimson)}
.alert-ok{background:var(--green-soft); color:var(--green); border-color:var(--green)}
.alert-warn{background:var(--amber-soft); color:var(--amber); border-color:var(--amber)}

/* ============================ layout ============================ */
.shell{display:block; min-height:100vh}

/* ---------- the icon rail ----------
   Always in view on a wide screen so the sections are one click
   away. It widens on hover to show the labels. Below 900px it
   steps aside and the hamburger is the only way in. */
.rail{
  position:fixed; top:0; left:0; bottom:0; z-index:40;
  width:var(--rail-w);
  background:linear-gradient(180deg,#3B0A47 0%,#5A1170 100%);
  display:none; flex-direction:column; align-items:stretch;
  padding:14px 10px; gap:6px; overflow-y:auto;
  box-shadow:2px 0 14px rgba(46,10,51,.18);
}

.rail-brand{
  height:48px; min-height:48px; border-radius:12px; text-decoration:none;
  background:linear-gradient(160deg,#7B2D8E,#4A1259);
  color:var(--gold); font-family:var(--font-display); font-weight:800; font-size:18px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(245,197,66,.35); margin-bottom:10px;
}
.rail-links{display:flex; flex-direction:column; gap:4px; flex:1; min-height:0}

.rail a[data-route], .rail-out{
  display:flex; align-items:center; justify-content:center;
  height:46px; min-height:46px; border-radius:12px;
  text-decoration:none; color:#EBD9F2; border:1px solid transparent;
  position:relative;
}
.rail a em{
  font-style:normal; font-size:20px; line-height:1;
  width:24px; flex:0 0 24px; text-align:center;
}
/* the label lives in the tooltip and in the drawer, not here */
.rail .rail-label{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;
}
.rail a[data-route]:hover, .rail-out:hover{background:rgba(255,255,255,.10)}
.rail a[aria-current="page"]{
  background:rgba(255,255,255,.16); border-color:rgba(245,197,66,.4); color:#fff;
}
.rail .dot{
  width:9px; height:9px; border-radius:50%; background:var(--gold);
  position:absolute; top:9px; right:11px;
  border:2px solid #4A1259;
}
.rail-out{margin-top:6px; border-top:1px solid rgba(255,255,255,.14); border-radius:0 0 12px 12px}

@media (min-width:900px){
  .rail{display:flex}
  .main{padding-left:var(--rail-w)}
}

/* ---------- the drawer ----------
   Closed on every screen size. The hamburger opens it over the page and
   it shuts again the moment you pick something. */
/* On a mouse-driven screen the rail is there and hovering opens the
   menu, so the button in the page is clutter. Touch screens have no
   hover and no rail, so it stays — it is the only way in. */
@media (hover: hover) and (pointer: fine) and (min-width:900px){
  .topbar > .menu-btn{display:none}
}

.menu-btn{
  width:44px;height:44px;border-radius:12px; flex:0 0 44px;
  display:flex;align-items:center;justify-content:center; gap:4px; flex-direction:column;
  background:var(--plum-soft); border:1px solid var(--line); cursor:pointer; padding:0;
}
.menu-btn i{display:block; width:18px; height:2px; border-radius:2px; background:var(--plum-3)}
.menu-btn:hover{background:#fff}

.scrim{
  position:fixed; inset:0; z-index:60; background:rgba(30,8,40,.45);
  opacity:0; pointer-events:none; transition:opacity .66s ease; /* was .42s */
}
.scrim[data-open]{opacity:1; pointer-events:auto}

.drawer{
  position:fixed; top:0; left:0; bottom:0; z-index:70; width:min(304px, 84vw);
  background:linear-gradient(180deg,#3B0A47 0%,#5A1170 100%);
  display:flex; flex-direction:column; padding:18px 14px;
  transform:translateX(-102%);
  /* OLD — .42s read as a snap on a wide screen
  transition:transform .42s cubic-bezier(.22,.61,.36,1); */
  /* NEW — a long, decelerating glide, the way a good drawer runs on its
     rails: quick to leave, slow to settle. The shadow deepens with it. */
  transition:transform .66s cubic-bezier(.19,.86,.24,1),
             box-shadow .66s ease;
  will-change:transform;
  box-shadow:6px 0 30px rgba(46,10,51,.35); overflow-y:auto;
}
.drawer[data-open]{transform:translateX(0); box-shadow:14px 0 48px rgba(46,10,51,.42)}

/* the contents drift in just behind the panel, so it feels like one movement
   rather than a block of finished UI arriving all at once */
.drawer > *{opacity:0; transform:translateX(-10px); transition:opacity .34s ease, transform .34s ease}
.drawer[data-open] > *{opacity:1; transform:none; transition-delay:.16s}
@media (prefers-reduced-motion:reduce){
  .drawer > *{opacity:1; transform:none}
}

/* the same three lines, sitting inside the open drawer */
.menu-btn-in{
  background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.20);
  margin-bottom:12px;
}
.menu-btn-in i{background:var(--gold)}
.menu-btn-in:hover{background:rgba(255,255,255,.18)}

.drawer .brand{
  display:flex; align-items:center; gap:12px; text-decoration:none; margin-bottom:16px;
}
.drawer .brand .logo{
  width:44px;height:44px;border-radius:12px; flex:0 0 44px;
  background:linear-gradient(160deg,#7B2D8E,#4A1259);
  color:var(--gold); font-family:var(--font-display); font-weight:800; font-size:19px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(245,197,66,.35);
}
.drawer .brand b{color:#fff; font-size:17px; font-family:var(--font-display)}
.drawer .brand span{display:block; color:#D9BFE6; font-size:12px; font-weight:600}

/* who the portal belongs to */
.drawer-profile{
  display:flex; align-items:center; gap:12px;
  background:rgba(255,255,255,.09); border:1px solid rgba(245,197,66,.28);
  border-radius:14px; padding:12px; margin-bottom:16px;
}
.drawer-profile .pic{
  width:42px;height:42px;border-radius:50%; flex:0 0 42px; overflow:hidden;
  background:var(--gold); color:#4A1259; font-weight:800; font-size:15px;
  display:flex;align-items:center;justify-content:center;
}
.drawer-profile .pic img{width:100%;height:100%;object-fit:cover}
.drawer-profile .who{min-width:0}
.drawer-profile .who b{display:block; color:#fff; font-size:15px; line-height:1.25;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.drawer-profile .who span{display:block; color:#D9BFE6; font-size:12.5px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

.drawer a.nav{
  display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:12px;
  text-decoration:none; color:#EBD9F2; font-size:15px; font-weight:600;
  border:1px solid transparent; position:relative;
}
.drawer a.nav em{font-style:normal; font-size:19px; width:24px; text-align:center; flex:0 0 24px}
.drawer a.nav:hover{background:rgba(255,255,255,.09)}
.drawer a.nav[aria-current="page"]{background:rgba(255,255,255,.16); border-color:rgba(245,197,66,.4); color:#fff}
.drawer a.nav .dot{
  width:8px;height:8px;border-radius:50%; background:var(--gold); margin-left:auto;
}
.drawer .spacer{flex:1; min-height:12px}
.drawer .signout{border-top:1px solid rgba(255,255,255,.14); margin-top:8px; padding-top:10px}

.main{min-width:0}
.wrap{max-width:1080px; margin:0 auto; padding:28px 24px 64px}

.topbar{
  display:flex; align-items:center; gap:16px;
  flex-wrap:wrap; margin-bottom:26px;
}
.topbar .greeting{flex:1; min-width:0}
.greeting .eyebrow{
  font-size:11.5px; font-weight:800; letter-spacing:.12em; text-transform:uppercase;
  color:var(--plum-3); margin-bottom:4px;
}

/* a slim line of credits, for the top of the student's home */
.credit-strip{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  background:linear-gradient(120deg,#4A1259,#7B2D8E);
  border-radius:var(--radius-sm); padding:12px 16px; margin:28px 0 0;
  color:#F3E6F8; font-size:14.5px;
}
.credit-strip b{color:#fff; font-size:19px; font-family:var(--font-display)}
.credit-strip .low{color:var(--gold); font-weight:700}
.credit-strip a{color:var(--gold); font-weight:700; text-decoration:none; margin-left:auto}
.credit-strip a:hover{text-decoration:underline}

@media (max-width:820px){
  .wrap{padding:20px 16px 56px}
}

.mentor-panel .mentor-pic{
  width:52px;height:52px;flex:0 0 52px;border-radius:14px;overflow:hidden;
  background:var(--plum-soft); color:var(--plum-3);
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:17px;
}
.mentor-panel .mentor-pic img{width:100%;height:100%;object-fit:cover}
.mini-head{
  font-size:12px; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
  color:var(--ink-2); margin-bottom:4px;
}
.mini-row{
  display:flex; align-items:center; gap:4px; flex-wrap:wrap;
  padding:8px 0; border-top:1px solid var(--line); font-size:14.5px;
}

.stepper{
  display:flex; align-items:center; justify-content:center; gap:14px;
  margin-top:14px;
}
.step-btn{
  width:40px; height:40px; border-radius:50%; cursor:pointer;
  border:2px solid var(--plum-3); background:var(--surface); color:var(--plum-3);
  font-size:22px; line-height:1; display:flex; align-items:center; justify-content:center;
  padding:0 0 3px;
}
.step-btn:hover:not([disabled]){background:var(--plum-soft)}
.step-btn[disabled]{opacity:.3; cursor:not-allowed}

.recording-row{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  margin-top:14px; padding:12px 14px; border-radius:var(--radius-sm);
  background:var(--plum-soft); border:1px solid var(--line);
}
a.recording-row{text-decoration:none; color:inherit; transition:background .15s ease}
a.recording-row:hover{background:#EADAF0}
.recording-row.is-empty{background:var(--surface-2); opacity:.75}
.recording-row.is-empty .rec-mark{background:var(--ink-3)}
.recording-row .rec-mark{
  width:34px; height:34px; flex:0 0 34px; border-radius:50%;
  background:var(--plum-3); color:#fff; font-size:14px;
  display:flex; align-items:center; justify-content:center; padding-left:2px;
}

.pager{
  display:flex; align-items:center; justify-content:center; gap:16px;
  margin-top:18px; padding-top:16px; border-top:1px solid var(--line);
}

.week-row{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding:10px 0; border-bottom:1px solid var(--line); font-size:15px;
}
.week-row:last-child{border-bottom:none}

/* ============================ report ============================ */
.report-hero{
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  background:linear-gradient(120deg,#4A1259 0%,#7B2D8E 55%,#A23FA8 100%);
  border-radius:var(--radius); padding:24px; color:#F6ECF8;
}
.report-hero h2{color:#fff; margin:4px 0 6px}
.report-hero p{color:#E4CDEE; margin:0; font-size:14.5px}
.eyebrow-light{
  font-size:11.5px; font-weight:800; letter-spacing:.12em; text-transform:uppercase;
  color:var(--gold);
}
.report-ring{
  width:116px; height:116px; flex:0 0 116px; border-radius:50%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:conic-gradient(var(--gold) calc(var(--pct,0) * 1%), rgba(255,255,255,.16) 0);
  position:relative;
}
.report-ring::before{
  content:''; position:absolute; inset:9px; border-radius:50%;
  background:linear-gradient(140deg,#4A1259,#7B2D8E);
}
.report-ring b{position:relative; color:#fff; font-family:var(--font-display); font-size:26px}
.report-ring span{position:relative; color:#E4CDEE; font-size:11.5px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase}

.metric{
  border-radius:var(--radius); padding:18px 20px; border:1px solid var(--line);
  background:var(--surface); display:flex; flex-direction:column; gap:2px;
  border-left:5px solid var(--plum-3);
}
.metric-label{font-size:12px; font-weight:800; letter-spacing:.07em;
  text-transform:uppercase; color:var(--ink-2)}
.metric b{font-family:var(--font-display); font-size:32px; color:var(--plum); line-height:1.1}
.metric-sub{font-size:13.5px; color:var(--ink-2)}
.metric-green{border-left-color:var(--green); background:var(--green-soft)}
.metric-green b{color:var(--green)}
.metric-gold{border-left-color:var(--gold-2); background:var(--gold-soft)}
.metric-gold b{color:var(--gold-deep)}
.metric-crimson{border-left-color:var(--crimson); background:var(--crimson-soft)}
.metric-crimson b{color:var(--crimson)}
.metric-plum{border-left-color:var(--plum-3); background:var(--plum-soft)}
.metric-plum b{color:var(--plum-3)}

.bar-row{display:flex; align-items:center; gap:14px; padding:9px 0}
.bar-name{width:130px; flex:0 0 130px; font-weight:700; font-size:14.5px}
.bar-track{flex:1; height:12px; border-radius:99px; background:var(--cream-2); overflow:hidden}
.bar-fill{display:block; height:100%; border-radius:99px}
.report-ai{border-top:4px solid var(--gold-2)}
@media (max-width:560px){
  .bar-name{width:96px; flex:0 0 96px; font-size:13.5px}
}

/* ============================ grids ============================ */
.grid{display:grid; gap:18px}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.stack{display:flex; flex-direction:column; gap:16px}
.row{display:flex; gap:12px; align-items:center; flex-wrap:wrap}
.row-end{margin-left:auto}

.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:12px; margin:34px 0 16px; flex-wrap:wrap;
}
.section-head h2{margin:0}

/* ============================ credits card ============================ */
.credits{
  background:linear-gradient(150deg,#4A1259 0%,#7B2D8E 100%);
  color:#fff; border-radius:var(--radius); padding:24px;
  position:relative; overflow:hidden; border:1px solid rgba(245,197,66,.25);
}
.credits::after{
  content:""; position:absolute; right:-40px; top:-40px;
  width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle,rgba(245,197,66,.28),transparent 70%);
}
.credits .label{font-size:11.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#E7CFEF}
.credits .big{
  font-family:var(--font-display); font-size:60px; font-weight:800; line-height:1;
  color:var(--gold); margin:6px 0 2px;
}
.credits .sub{color:#EBD9F2; font-size:14.5px}
.credits .bar{height:8px;border-radius:999px;background:rgba(255,255,255,.18); margin-top:16px; overflow:hidden}
.credits .bar i{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--gold-2));border-radius:999px}
.credits .warn{
  margin-top:14px; background:rgba(245,197,66,.16); border:1px solid rgba(245,197,66,.45);
  color:#FBEEC4; border-radius:var(--radius-sm); padding:10px 14px; font-size:13.5px; font-weight:600;
}

/* ============================ class card ============================ */
.klass{
  display:flex; gap:18px; padding:20px; align-items:flex-start; flex-wrap:wrap;
}
.klass .avatar{
  width:52px;height:52px;border-radius:14px;flex:0 0 52px;
  background:var(--plum-soft); color:var(--plum-3);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:20px;
  overflow:hidden;
}
.klass .avatar img{width:100%;height:100%;object-fit:cover}
.klass .body{flex:1; min-width:200px}
.klass .subject{font-family:var(--font-display);font-size:20px;font-weight:700;color:var(--plum);line-height:1.2}
.klass .who{font-size:14.5px;color:var(--ink-2); margin-top:2px}
.klass .when{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;
  margin-top:10px; font-size:14.5px; color:var(--ink); font-weight:600;
}
.klass .deadline{font-size:13px;color:var(--ink-2); margin-top:8px}
.klass .actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap; margin-top:14px}
.countdown{
  font-variant-numeric:tabular-nums; font-weight:800; font-size:13px;
  padding:4px 10px;border-radius:var(--radius-pill);
  background:var(--cream-2); color:var(--ink-2);
}
.countdown.soon{background:var(--amber-soft); color:var(--amber)}
.countdown.live{background:var(--green-soft); color:var(--green)}

/* ============================ empty ============================ */
.empty{
  text-align:center; padding:48px 24px; color:var(--ink-2);
  border:1.5px dashed var(--line-2); border-radius:var(--radius); background:var(--surface-2);
}
.empty .mark{font-size:34px; margin-bottom:10px}
.empty h3{margin-bottom:6px}

/* ============================ tables ============================ */
.tablewrap{overflow-x:auto; border-radius:var(--radius); border:1px solid var(--line); background:var(--surface)}
table{border-collapse:collapse;width:100%;min-width:560px;font-size:14.5px}
thead th{
  text-align:left;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink-2); padding:12px 18px; border-bottom:1px solid var(--line); background:var(--surface-2);
}
tbody td{padding:13px 18px;border-bottom:1px solid var(--line); color:var(--ink-2); vertical-align:middle}
tbody tr:last-child td{border-bottom:none}
tbody td strong{color:var(--ink)}

/* ============================ tabs ============================ */
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px;border-bottom:1px solid var(--line);padding-bottom:2px}
.tabs button{
  font-family:var(--font-body);font-size:14.5px;font-weight:700;
  background:none;border:none;border-bottom:3px solid transparent;
  padding:10px 14px;cursor:pointer;color:var(--ink-2);
}
.tabs button[aria-selected="true"]{color:var(--plum);border-bottom-color:var(--gold-2)}
.tabs button:hover{color:var(--plum)}

/* ============================ modal ============================ */
dialog{
  border:none; padding:0; border-radius:var(--radius); background:var(--surface);
  color:var(--ink); box-shadow:var(--shadow); max-width:min(540px,92vw); width:100%;
  /* a long form must never push its own buttons off the screen */
  max-height:88vh; display:flex; flex-direction:column;
}
dialog:not([open]){display:none}
dialog::backdrop{background:rgba(46,10,51,.55); backdrop-filter:blur(3px)}
.modal-head{padding:22px 24px 0; flex:0 0 auto}
.modal-body{padding:14px 24px; overflow-y:auto; flex:1 1 auto; -webkit-overflow-scrolling:touch}
.modal-foot{padding:18px 24px 22px; display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;
  flex:0 0 auto; border-top:1px solid var(--line); background:var(--surface);
  border-radius:0 0 var(--radius) var(--radius)}

/* ============================ chat ============================ */
.chat-fab{
  position:fixed; right:20px; bottom:20px; z-index:50;
  width:60px;height:60px;border-radius:50%;border:2px solid rgba(245,197,66,.5);
  background:linear-gradient(160deg,#7B2D8E,#4A1259); color:var(--gold);
  font-size:26px; cursor:pointer; box-shadow:var(--shadow);
  display:flex;align-items:center;justify-content:center;
}
@media (max-width:820px){.chat-fab{bottom:86px}}
.chat-panel{
  position:fixed; right:20px; bottom:92px; z-index:51;
  width:min(400px,calc(100vw - 32px)); height:min(560px,70vh);
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); display:none; flex-direction:column; overflow:hidden;
}
@media (max-width:820px){.chat-panel{bottom:158px}}
.chat-panel[open]{display:flex}
.chat-head{
  background:linear-gradient(150deg,#4A1259,#7B2D8E); color:#fff;
  padding:14px 18px; display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.chat-head strong{font-family:var(--font-display);font-size:17px;font-weight:700}
.chat-head button{background:none;border:none;color:#EBD9F2;font-size:20px;cursor:pointer;line-height:1}
.chat-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px}
.bubble{max-width:85%;padding:11px 15px;border-radius:14px;font-size:14.5px;line-height:1.5}
.bubble.bot{background:var(--cream-2);color:var(--ink);align-self:flex-start;border-bottom-left-radius:4px}
.bubble.me{background:var(--plum-2);color:#F6ECF8;align-self:flex-end;border-bottom-right-radius:4px}
.bubble .route{margin-top:8px;display:block}
.chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line);background:var(--surface-2)}
.chat-form input{flex:1}
.typing{display:inline-flex;gap:4px;align-items:center}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--ink-3);animation:blink 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s}
.typing i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,60%,100%{opacity:.25}30%{opacity:1}}

/* ============================ auth page ============================ */
.auth-page{
  min-height:100vh; display:grid; grid-template-columns:1.05fr 1fr;
  background:var(--cream);
}
@media (max-width:900px){.auth-page{grid-template-columns:1fr}}
.auth-aside{
  background:linear-gradient(165deg,#3B0A47 0%,#5A1170 55%,#7B2D8E 100%);
  color:#fff; padding:56px 48px; display:flex; flex-direction:column; justify-content:center;
  position:relative; overflow:hidden;
}
@media (max-width:900px){.auth-aside{padding:36px 24px}}
.auth-aside::after{
  content:"";position:absolute;left:-80px;bottom:-80px;width:320px;height:320px;border-radius:50%;
  background:radial-gradient(circle,rgba(245,197,66,.22),transparent 68%);
}
.auth-aside h1{color:#fff;font-size:clamp(30px,3.6vw,44px)}
.auth-aside h1 em{color:var(--gold);font-style:italic}
.auth-aside p{color:#E7CFEF;font-size:17px;max-width:44ch;margin-top:14px}
.auth-aside .marks{display:flex;gap:22px;flex-wrap:wrap;margin-top:32px;font-size:14px;color:#EBD9F2}
.auth-aside .marks b{color:#fff}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:34px}
.auth-brand .logo{
  width:46px;height:46px;border-radius:12px;background:rgba(255,255,255,.12);
  border:1px solid rgba(245,197,66,.4); color:var(--gold);
  font-family:var(--font-display);font-weight:800;font-size:20px;
  display:flex;align-items:center;justify-content:center;
}
.auth-brand span{font-family:var(--font-display);font-size:22px;font-weight:700;color:#fff}
.auth-main{display:flex;align-items:center;justify-content:center;padding:48px 24px}
.auth-card{width:100%;max-width:410px}
.auth-card h2{margin-bottom:6px}
.auth-switch{
  display:flex;background:var(--cream-2);border-radius:var(--radius-pill);padding:4px;margin:22px 0 24px;
}
.auth-switch button{
  flex:1;font-family:var(--font-body);font-size:14px;font-weight:800;
  border:none;background:none;padding:9px 12px;border-radius:var(--radius-pill);cursor:pointer;color:var(--ink-2);
}
.auth-switch button[aria-selected="true"]{background:var(--surface);color:var(--plum);box-shadow:var(--shadow-sm)}
.otp-boxes{display:flex;gap:8px;justify-content:space-between;margin-bottom:16px}
.otp-boxes input{
  width:100%;text-align:center;font-size:22px;font-weight:800;padding:12px 0;
  font-variant-numeric:tabular-nums;
}
.auth-foot{margin-top:22px;text-align:center;font-size:14px;color:var(--ink-2)}

/* ============================ misc ============================ */
.skeleton{background:linear-gradient(90deg,var(--cream-2) 25%,var(--surface-2) 50%,var(--cream-2) 75%);
  background-size:200% 100%;animation:sk 1.4s infinite;border-radius:var(--radius-sm);height:96px}
@keyframes sk{0%{background-position:200% 0}100%{background-position:-200% 0}}

.banner-impersonate{
  background:var(--amber-soft); color:var(--amber); border-bottom:2px solid var(--amber);
  padding:10px 18px; font-size:14px; font-weight:700;
  display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;
}

/* OLD — this also flattened the drawer, so the menu snapped open instead of
   gliding. Windows with "animation effects" off reports reduced motion, which
   made the drawer look broken rather than calm.
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}
*/
/* NEW — decorative motion still stops, but the drawer keeps its slide. A panel
   that appears out of nowhere is more disorienting than one that eases in, so
   it is kept (a little quicker) even here. */
@media (prefers-reduced-motion:reduce){
  *:not(.drawer):not(.scrim){
    animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  .drawer{transition-duration:.32s !important}
  .scrim {transition-duration:.32s !important}
}

/* ============================================================
   3 SEP — the upcoming-class scroller, the in-portal request
   and the free demo
   ============================================================ */

/* ---------- the scroller, inside the card ----------
   It used to sit under the card as two big circles in the middle of the
   page, which read as a slideshow control on a cheap site. Now it lives in
   the top-right corner of the very card it is paging, small and quiet. */
.next-slot{position:relative}
.next-slot .stepper-in{
  position:absolute; top:14px; right:16px; z-index:2;
  display:flex; align-items:center; gap:7px;
  background:var(--surface);
  border:1px solid var(--line); border-radius:999px;
  padding:3px 5px; box-shadow:0 1px 4px rgba(46,10,51,.06);
}
.next-slot .stepper-in .count{
  font-size:11.5px; font-weight:700; letter-spacing:.05em;
  color:var(--ink-2); min-width:38px; text-align:center; font-variant-numeric:tabular-nums;
}
.step-btn-sm{
  width:25px; height:25px; border-radius:50%; cursor:pointer; padding:0 0 2px;
  border:1px solid var(--line); background:transparent; color:var(--plum-3);
  font-size:15px; line-height:1; display:flex; align-items:center; justify-content:center;
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}
.step-btn-sm:hover:not([disabled]){background:var(--plum-soft); border-color:var(--plum-3)}
.step-btn-sm:active:not([disabled]){transform:scale(.92)}
.step-btn-sm[disabled]{opacity:.28; cursor:default}
/* keep the card's own text clear of the pill */
.next-slot[data-paged] .klass{padding-right:112px}
/* on a narrow screen the corner is busy — drop it under the heading instead */
@media (max-width:560px){
  .next-slot .stepper-in{position:static; margin:0 0 10px auto; width:max-content}
  .next-slot[data-paged] .klass{padding-right:20px}
}

/* ---------- a quiet "show the rest" line ---------- */
.more-line{
  display:flex; justify-content:center; margin-top:16px;
}
.more-line .btn{min-width:190px}

/* ---------- the free demo ---------- */
.demo-card{
  background:linear-gradient(125deg,#4A1259 0%,#7B2D8E 60%,#A23FA8 100%);
  color:#F6ECF8; border-radius:var(--radius); padding:24px;
}
.demo-card h3{color:#fff; margin:0 0 6px; font-size:20px}
.demo-card p{color:#EBD9F2; font-size:14.5px; margin:0}
.demo-card .demo-state{
  display:inline-flex; align-items:center; gap:8px; margin-bottom:12px;
  background:rgba(255,255,255,.14); border:1px solid rgba(245,197,66,.45);
  color:var(--gold); border-radius:999px; padding:5px 13px;
  font-size:12px; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
}
.demo-card label.field > span{color:#EBD9F2}
.demo-card input, .demo-card select, .demo-card textarea{
  background:rgba(255,255,255,.94); border-color:rgba(255,255,255,.5);
}
.demo-free{
  display:inline-block; margin-top:12px; padding:8px 14px; border-radius:12px;
  background:rgba(255,255,255,.12); border:1px dashed rgba(245,197,66,.5);
  color:#fff; font-size:13.5px;
}

/* ---------- ask the office (replaces the WhatsApp jump) ---------- */
.ask-grid{display:grid; grid-template-columns:1fr 1fr; gap:14px}
@media (max-width:640px){.ask-grid{grid-template-columns:1fr}}
.zone-note{
  font-size:12.5px; color:var(--ink-2); margin-top:6px; display:block;
}
