/* =========================================================
   Stethoscope by Rezwan: members area
   (login, reset password, classroom, admin)
   ---------------------------------------------------------
   Same dark cosmic glass look as the public site.
   These 4 pages load ONLY this file (not styles.css), so
   nothing here changes the public pages.

   1. THEME (colors, glass, fonts)  <- change the look here
   2. Background
   3. Base, type, labels
   4. Buttons
   5. Header (glass pill)
   6. Forms & alerts
   7. Login / reset pages
   8. Classroom
   9. Admin panel
   ========================================================= */

/* ---------- 1. THEME ---------- */
:root {
  color-scheme: dark;

  --space-0: #04070F;
  --space-1: #060B18;
  --space-2: #0A1022;
  --cobalt:  #1B3FA0;
  --steel:   #6F8FD6;

  --accent:    #2F6BFF;   /* electric blue: arrows, active lesson, progress */
  --accent-hi: #9CC0FF;   /* light blue: labels, highlight words */

  --ink:      #FFFFFF;
  --ink-soft: rgba(255,255,255,.74);
  --muted:    rgba(255,255,255,.48);
  --btn-ink:  #0B1220;

  --ok:     #7FE3B4;      /* completed / active student */
  --warn:   #FFD27A;      /* warnings */
  --danger: #FF8C8C;      /* errors, delete */
  --wa:     #25D366;      /* WhatsApp */

  --glass-bg:     rgba(255,255,255,.055);
  --glass-bg-hi:  rgba(255,255,255,.09);
  --glass-border: rgba(255,255,255,.12);
  --glass-edge:   rgba(255,255,255,.22);
  --field-bg:     rgba(4,7,15,.45);
  --rule:         rgba(255,255,255,.10);

  --r-xl: 32px;   /* big panels */
  --r-lg: 24px;   /* cards */
  --r-md: 16px;   /* rows, inputs */
  --pill: 999px;

  --font-display: "Inter Tight", "Hind Siliguri", system-ui, sans-serif;
  --font-body:    "Inter", "Hind Siliguri", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-bangla:  "Hind Siliguri", "Inter", sans-serif;

  --max-width: 1180px;
  --gutter: 16px;
}

/* ---------- 2. Background (starry navy + soft blue glow) ---------- */
html { background: var(--space-1); }
.cosmos { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #12286B 0%, transparent 55%),
    linear-gradient(180deg, var(--space-1) 0%, var(--space-2) 45%, var(--space-0) 100%);
}
.cosmos__stars { position: absolute; inset: -50%; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 200px 160px, rgba(190,215,255,.6), transparent 60%),
    radial-gradient(1px 1px at 60px 210px, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 260px 40px, rgba(255,255,255,.4), transparent 60%);
  background-size: 300px 260px;
}
.cosmos__glow { position: absolute; left: 50%; top: 10%; width: 1100px; height: 800px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(45,91,216,.32), rgba(27,63,160,.12) 55%, transparent 100%);
  filter: blur(20px);
}

/* ---------- 3. Base, type, labels ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--space-1); color: var(--ink-soft);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6; font-weight: 300;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-hi); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.container {
  max-width: var(--max-width); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
main { position: relative; z-index: 1; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1.12; }
h1 { font-size: clamp(28px, 4.2vw, 40px); }
h2 { font-size: 20px; letter-spacing: -.02em; }
h3 { font-size: 17px; letter-spacing: -.015em; }
strong { color: var(--ink); font-weight: 600; }
.bn { font-family: var(--font-bangla); }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent-hi), #fff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Glass surface used by every card */
.glass, .auth-card, .classroom-card, .player-card, .curriculum-column,
.course-progress-box, .admin-panel-card, .chapter-card {
  background: linear-gradient(180deg, var(--glass-bg-hi), var(--glass-bg));
  border: 1px solid var(--glass-border); border-top-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px -24px rgba(0,0,0,.7);
}

/* Mono uppercase label, e.g. PRIVATE CLASSROOM */
.section-label, .label {
  display: inline-block; margin: 0 0 12px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .22em; color: var(--accent-hi);
}
.classroom-muted { color: var(--muted); margin: 6px 0 0; font-size: 15px; }

/* Small status pills (set by the JS) */
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: var(--pill);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,.06); color: var(--ink);
}
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-enrolled { color: var(--ok); border-color: rgba(127,227,180,.3); background: rgba(127,227,180,.08); }
.badge-admin    { color: var(--accent-hi); border-color: rgba(156,192,255,.35); background: rgba(47,107,255,.14); }
.badge-locked   { color: var(--danger); border-color: rgba(255,140,140,.3); background: rgba(255,140,140,.08); }

/* ---------- 4. Buttons (pills, mono uppercase, like the site) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: var(--pill);
  border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* White pill = main action */
.btn-primary { background: #fff; color: var(--btn-ink); box-shadow: 0 10px 28px -10px rgba(47,107,255,.7); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(47,107,255,.9); }
/* Glass pill = secondary */
.btn-secondary { background: rgba(255,255,255,.08); color: var(--ink); border-color: var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-secondary:hover { background: rgba(255,255,255,.14); }
/* Outline = quiet */
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(255,255,255,.22); }
.btn-outline:hover { background: rgba(255,255,255,.06); }
.btn-danger { background: rgba(255,140,140,.06); color: var(--danger); border-color: rgba(255,140,140,.32); }
.btn-danger:hover { background: rgba(255,140,140,.14); }
.btn-whatsapp { background: var(--wa); color: #05210F; box-shadow: 0 10px 28px -12px rgba(37,211,102,.7); }

.btn-lg { min-height: 54px; font-size: 13px; padding: 0 26px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 11px; letter-spacing: .12em; }
.btn-xs { min-height: 30px; padding: 0 11px; font-size: 10px; letter-spacing: .1em; }
.btn-block { width: 100%; }

/* Big white buttons get the blue arrow circle (drawn in CSS, so the JS
   can change the button text without losing it) */
.btn-primary.btn-lg { justify-content: space-between; padding: 0 6px 0 26px; }
.btn-primary.btn-lg::after {
  content: "→"; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--font-body); font-size: 18px; letter-spacing: 0;
}
.btn-primary.btn-lg:disabled::after { content: "…"; }

/* Plain text button (Forgot password?) */
.text-link-btn {
  background: none; border: 0; padding: 6px 2px; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; color: var(--accent-hi);
  text-decoration: underline; text-decoration-color: rgba(156,192,255,.35); text-underline-offset: 4px;
}
.text-link-btn:hover { color: #fff; }

/* ---------- 5. Header (floating glass pill, same as the site) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 64px; padding: 0 8px 0 20px; border-radius: var(--pill);
  max-width: calc(var(--max-width) - 2 * var(--gutter));
  background: rgba(10,16,34,.62);
  border: 1px solid var(--glass-border); border-top-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.03em; color: var(--ink); }
.brand-icon { height: 30px; width: auto; flex: none; }
.brand-text { white-space: nowrap; }
.brand-text span { color: var(--muted); }
.brand-tag {   /* small "ADMIN" / "CLASSROOM" tag next to the name */
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-hi); padding: 4px 9px; border-radius: var(--pill); border: 1px solid rgba(156,192,255,.3);
}
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

@media (max-width: 760px) {
  .header-inner { height: 58px; padding: 0 7px 0 16px; }
  .brand-text { display: none; }          /* phone: logo icon only, like the site */
  .brand-icon { height: 32px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { min-height: 38px; padding: 0 13px; font-size: 10.5px; }
  .hide-sm { display: none !important; }  /* e.g. "Home": the logo already goes home */
}

/* ---------- 6. Forms & alerts ---------- */
.auth-form { display: grid; gap: 18px; }
.form-group { display: grid; gap: 8px; }
.form-group label, .mini-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
input[type="text"], input[type="email"], input[type="password"], input[type="search"], select {
  width: 100%; min-height: 50px; padding: 0 16px;
  border-radius: var(--r-md); border: 1px solid var(--glass-border);
  background: var(--field-bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; font-weight: 400;   /* 16px stops phone zoom */
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239CC0FF' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
select option { background: var(--space-2); color: var(--ink); }
input::placeholder { color: rgba(255,255,255,.32); }
input:focus, select:focus { outline: none; border-color: rgba(156,192,255,.6); background: rgba(4,7,15,.6);
  box-shadow: 0 0 0 4px rgba(47,107,255,.18); }

/* Password field with Show / Hide inside it */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 84px; }
.toggle-pw-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 36px; padding: 0 12px; border-radius: 10px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.07); color: var(--accent-hi);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
}
.toggle-pw-btn:hover { background: rgba(255,255,255,.13); color: #fff; }

.checkbox-label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-soft); cursor: pointer; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Alerts (JS sets: alert alert-error | alert-success | alert-warning) */
.alert {
  margin: 0 0 18px; padding: 13px 16px 13px 44px; position: relative;
  border-radius: var(--r-md); border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.05); color: var(--ink); font-size: 15px; line-height: 1.5;
}
.alert::before {
  position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font: 600 12px/1 var(--font-body); content: "i";
  background: rgba(156,192,255,.18); color: var(--accent-hi);
}
.alert-error   { border-color: rgba(255,140,140,.35); background: rgba(255,140,140,.08); }
.alert-error::before   { content: "!"; background: rgba(255,140,140,.2); color: var(--danger); }
.alert-success { border-color: rgba(127,227,180,.35); background: rgba(127,227,180,.08); }
.alert-success::before { content: "✓"; background: rgba(127,227,180,.2); color: var(--ok); }
.alert-warning { border-color: rgba(255,210,122,.35); background: rgba(255,210,122,.08); }
.alert-warning::before { content: "!"; background: rgba(255,210,122,.2); color: var(--warn); }

/* ---------- 7. Login / reset pages ---------- */
.auth-main { padding: 22px 0 48px; }
.auth-container {
  display: grid; gap: 18px; align-items: stretch;
  min-height: calc(100dvh - 120px);
  grid-template-columns: 1fr; align-content: start;
}

/* Brand side: photo on the blue circle + name + motto */
.auth-brand {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background:
    radial-gradient(60% 80% at 20% 60%, rgba(156,192,255,.22), transparent 70%),
    linear-gradient(160deg, #0B1636 0%, var(--cobalt) 70%, var(--steel) 140%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 30px 60px -30px rgba(27,63,160,.6);
}
.auth-portrait { position: relative; flex: none; width: 74px; aspect-ratio: 1; }
.auth-portrait .blob { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,.35), transparent 45%),
              radial-gradient(circle at 50% 50%, #3D6FE8 0%, #1B3FA0 60%, #0B1A45 100%);
  box-shadow: 0 0 40px rgba(47,107,255,.5); }
.auth-portrait img { position: absolute; left: 6%; right: 6%; bottom: 0; width: 88%; height: auto;
  -webkit-mask: radial-gradient(circle at 50% 38%, #000 60%, transparent 61%); mask: radial-gradient(circle at 50% 38%, #000 60%, transparent 61%); }
.auth-brand-text { min-width: 0; }
.auth-brand .section-label { margin-bottom: 4px; font-size: 10px; }
.auth-brand-title { margin: 0; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 21px; letter-spacing: -.03em; line-height: 1.15; }
.auth-brand-title span { color: rgba(255,255,255,.6); }
.auth-motto { margin: 2px 0 0; font-family: var(--font-bangla); font-weight: 600; color: #fff; font-size: 17px; }
.auth-points { display: none; }

.auth-card { border-radius: var(--r-xl); padding: 26px 20px 22px; }
.auth-head { margin-bottom: 24px; }
.auth-head h1 { margin-bottom: 8px; }
.auth-sub { margin: 0; color: var(--ink-soft); font-size: 16px; }
.auth-links { margin-top: 16px; text-align: center; }
.auth-footer-note {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--muted); text-align: center;
}
.auth-footer-note p { margin: 0; }
.auth-footer-note strong { color: var(--ink-soft); font-weight: 500; }
.auth-footer-note a { color: var(--ok); white-space: nowrap; }

@media (min-width: 900px) {
  .auth-main { padding: 28px 0 56px; }
  .auth-container { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 24px; align-content: stretch; min-height: calc(100dvh - 140px); }
  .auth-brand { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 26px; padding: 48px 48px 44px; }
  .auth-portrait { position: absolute; right: 7%; top: 10%; width: min(300px, 46%); }
  .auth-portrait .blob { box-shadow: 0 0 80px rgba(47,107,255,.55), inset 0 -20px 40px rgba(4,7,15,.4); }
  .auth-portrait::after { content: ""; position: absolute; inset: -12%; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
  .auth-brand-text { position: relative; z-index: 1; }
  .auth-brand .section-label { margin-bottom: 14px; font-size: 11.5px; }
  .auth-brand-title { font-size: clamp(40px, 4.6vw, 60px); line-height: .95; letter-spacing: -.045em; }
  .auth-brand-title span { display: block; font-size: .72em; margin-top: .08em; }
  .auth-motto { margin-top: 16px; font-size: 30px; }
  .auth-points { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; position: relative; z-index: 1; width: 100%; max-width: 420px; }
  .auth-points li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.85); font-size: 15px; }
  .auth-points .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.55); }
  .auth-card { align-self: center; padding: 40px 36px 30px; }
}

/* ---------- 8. Classroom ---------- */
.classroom-main { padding: 22px 0 60px; }
.classroom-card { border-radius: var(--r-lg); padding: 28px 22px; }
.classroom-card > .classroom-muted:only-child { margin: 0; display: flex; align-items: center; gap: 12px; }
.classroom-card > .classroom-muted:only-child::before {   /* loading spinner */
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid rgba(156,192,255,.25); border-top-color: var(--accent-hi); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.locked-card { max-width: 640px; margin: 24px auto; text-align: center; padding: 40px 24px; }
.locked-card h1 { margin: 18px 0 12px; }
.locked-card p { margin: 0 auto 10px; max-width: 46ch; }
.locked-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* Welcome row + progress */
.classroom-welcome { display: grid; gap: 18px; margin: 8px 0 22px; align-items: end; }
.welcome-info h1, .classroom-welcome h1 { margin-top: 12px; overflow-wrap: anywhere; }
.course-progress-box { border-radius: var(--r-lg); padding: 18px 20px; }
.course-progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.progress-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-hi); }
.progress-text { font-size: 14px; color: var(--ink-soft); }
.progress-track { height: 10px; border-radius: var(--pill); background: rgba(255,255,255,.08); overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); box-shadow: 0 0 18px rgba(47,107,255,.7); transition: width .5s ease; }

/* Player + lessons */
.classroom-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.player-card { border-radius: var(--r-lg); padding: 14px; }
.player-head { padding: 6px 6px 14px; }
.player-head h2 { margin-top: 10px; font-size: clamp(20px, 2.6vw, 26px); overflow-wrap: anywhere; }
.player-head .classroom-muted:empty { display: none; }
.chapter-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi);
}
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: radial-gradient(70% 90% at 50% 40%, rgba(47,107,255,.25), transparent 70%), #03060D;
  border: 1px solid rgba(255,255,255,.08); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; }
.video-placeholder p { margin: 0; max-width: 40ch; color: var(--ink-soft); font-size: 15px; }
.video-placeholder::before { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -78px 0 0 -32px; border-radius: 50%;
  background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/22px no-repeat;
  border: 1px solid var(--glass-border); }

.player-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 4px 2px; }
.lesson-nav-group { display: flex; flex-wrap: wrap; gap: 8px; }
.complete-btn.is-completed { background: rgba(127,227,180,.12); color: var(--ok); border-color: rgba(127,227,180,.4); }
.video-security-note { margin: 12px 4px 2px; font-size: 12.5px; color: var(--muted); font-family: var(--font-body); }
.video-security-note::before { content: "🔒 "; }

.curriculum-column { border-radius: var(--r-lg); padding: 18px 14px 14px; align-self: start; }
.curriculum-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 6px 12px; }
.chapter-count { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.chapters-list { display: grid; gap: 12px; }

/* Chapter blocks inside the lessons panel are flat (the panel is already glass) */
.curriculum-column .chapter-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.chapter-card { border-radius: 18px; padding: 6px; }
.chapter-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 10px 8px; }
.chapter-header h3 { margin-top: 4px; }
.lesson-items { display: grid; gap: 2px; }
.lesson-item { padding: 12px; border-radius: 12px; }
.lesson-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lesson-num {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft);
  border: 1px solid rgba(255,255,255,.16);
}
.lesson-num.is-done { background: var(--ok); border-color: var(--ok); color: #06261A; font-family: var(--font-body); font-weight: 700; font-size: 13px; }

.lesson-select-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer;
  text-align: left; color: var(--ink-soft); font: inherit;
  transition: background .15s ease, border-color .15s ease;
}
.lesson-select-btn:hover { background: rgba(255,255,255,.05); }
.lesson-select-name { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.lesson-select-btn.is-active { background: rgba(47,107,255,.16); border-color: rgba(156,192,255,.35); }
.lesson-select-btn.is-active .lesson-select-name { color: #fff; font-weight: 500; }
.lesson-select-btn.is-active .lesson-num:not(.is-done) { background: var(--accent); border-color: var(--accent); color: #fff; }
.lesson-playing-pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi);
}
.lesson-playing-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 0 0 rgba(156,192,255,.6); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 8px rgba(156,192,255,0); } }

@media (min-width: 900px) {
  .classroom-main { padding-top: 30px; }
  .classroom-welcome { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 28px; }
  .classroom-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; }
  .player-card { padding: 18px; }
  .curriculum-column { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; scrollbar-width: thin; }
}
@media (max-width: 520px) {
  .player-card { padding: 10px; border-radius: 20px; }
  .video-frame { border-radius: 14px; }
  .player-toolbar { flex-direction: column; align-items: stretch; }
  .player-toolbar > .btn { width: 100%; min-height: 50px; }
  .lesson-nav-group { display: grid; grid-template-columns: 1fr 1fr; }
  .lesson-nav-group #reload-video-btn { grid-column: 1 / -1; }
}

/* ---------- 9. Admin panel ---------- */
.admin-tabs {
  display: inline-flex; padding: 5px; gap: 4px; border-radius: var(--pill); justify-self: start;
  background: rgba(4,7,15,.5); border: 1px solid var(--glass-border);
}
.tab-btn {
  min-height: 42px; padding: 0 18px; border-radius: var(--pill); border: 0; cursor: pointer;
  background: transparent; color: var(--ink-soft);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.tab-btn:hover { color: #fff; }
.tab-btn.is-active { background: #fff; color: var(--btn-ink); box-shadow: 0 8px 22px -10px rgba(47,107,255,.8); }

.admin-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.admin-panel-card { border-radius: var(--r-lg); padding: 22px 18px; }
.admin-panel-card h2 { margin-bottom: 2px; }
.admin-form { margin-top: 20px; }
.panel-header-row { display: grid; gap: 14px; margin-bottom: 16px; }
.search-input { min-height: 46px; border-radius: var(--pill); padding-left: 44px !important;
  background: var(--field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239CC0FF' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='M11 11l4 4'/%3E%3C/svg%3E") 18px center no-repeat !important; }

.admin-list { display: grid; gap: 8px; }
.student-row {
  display: grid; gap: 12px; padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08);
}
.student-row:hover { border-color: rgba(255,255,255,.16); }
.student-info { min-width: 0; }
.student-top-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.student-top-line strong { font-family: var(--font-display); font-size: 17px; letter-spacing: -.015em; }
.student-meta { margin: 3px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.student-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.add-chapter-card { margin-bottom: 18px; }
.inline-add-form { display: grid; gap: 14px; margin-top: 16px; }

/* Chapters & lessons editor */
#admin-chapters-list .chapter-card { padding: 8px; }
.admin-chapter-header { align-items: center; flex-wrap: wrap; padding: 12px 12px 10px; }
.admin-row-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-lesson-wrap { border-top: 1px solid rgba(255,255,255,.07); }
.admin-lesson-wrap:first-child { border-top: 0; }
.admin-lesson-row { display: grid; gap: 10px; align-items: center; }
.lesson-info { min-width: 0; }
.lesson-info .lesson-title span:last-child { color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.lesson-video-note { margin: 6px 0 0 42px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--warn); overflow-wrap: anywhere; }
.lesson-video-note.video-ok { color: var(--ok); }

.inline-edit-box {
  display: grid; gap: 10px; margin: 6px; padding: 16px; border-radius: var(--r-md);
  background: rgba(4,7,15,.45); border: 1px dashed rgba(156,192,255,.3);
}
.inline-edit-box > strong { font-family: var(--font-display); font-size: 16px; }
.inline-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

@media (min-width: 760px) {
  .panel-header-row { grid-template-columns: 1fr minmax(220px, 300px); align-items: end; }
  .student-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .inline-add-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .admin-lesson-row { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 1000px) {
  .admin-grid { grid-template-columns: 380px minmax(0, 1fr); gap: 22px; }
  .admin-grid > .admin-panel-card:first-child { position: sticky; top: 96px; }
  .admin-panel-card { padding: 26px 24px; }
}

/* Small helpers */
.loading-line { padding: 8px 0; }
.loading-line .classroom-muted { margin: 0; display: flex; align-items: center; gap: 12px; }
.loading-line .classroom-muted::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid rgba(156,192,255,.25); border-top-color: var(--accent-hi); animation: spin 1s linear infinite;
}
.auth-head .status-badge + h1 { margin-top: 16px; }
@media (min-width: 900px) { #admin-app .admin-tabs { justify-self: end; } }

/* Login / reset (desktop): both boxes the same height, tops and bottoms lined up,
   with an even gap between them and space around the edges */
@media (min-width: 900px) {
  .auth-main { padding: 36px 0 64px; }
  .auth-container { gap: 32px; align-items: stretch; min-height: min(760px, calc(100dvh - 160px)); }
  .auth-card { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 48px 44px 40px; }
  .auth-brand { padding: 48px 52px 48px; }
  /* keep the photo and the title apart */
  .auth-portrait { right: 6%; top: 7%; width: min(250px, 38%); }
  .auth-brand-title { font-size: clamp(38px, 3.6vw, 54px); }
  .auth-motto { font-size: 26px; }
}

/* ---------- 10. Student home (dashboard.html) ---------- */
.dash-hello { margin: 18px 0 34px; }
.dash-hello__word {
  margin: 0; font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--accent-hi);
}
.dash-hello__name {
  margin-top: 8px; font-size: clamp(36px, 7vw, 68px); line-height: 1; letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dash-head h2 { font-size: clamp(22px, 3vw, 28px); }

.mycourse-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px)  { .mycourse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mycourse-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.mycourse {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--glass-bg-hi), var(--glass-bg));
  border: 1px solid var(--glass-border); border-top-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px -24px rgba(0,0,0,.7);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.mycourse:hover { transform: translateY(-3px); border-color: rgba(156,192,255,.4); box-shadow: 0 26px 60px -24px rgba(47,107,255,.55); }
.mycourse__cover {
  position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center;
  background:
    radial-gradient(60% 90% at 30% 40%, rgba(156,192,255,.35), transparent 70%),
    linear-gradient(150deg, #0B1636 0%, var(--cobalt) 70%, var(--steel) 140%);
  background-size: cover; background-position: center;
}
.mycourse__cover.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4,7,15,.55)); }
.mycourse__mark { font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: -.04em; color: rgba(255,255,255,.9); }
.mycourse__body { display: grid; gap: 10px; padding: 18px 20px 20px; }
.mycourse__body h3 { font-size: 19px; line-height: 1.2; color: var(--ink); }
.mycourse__body .progress-track { height: 6px; margin-top: 4px; }
.mycourse__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.mycourse__go { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); white-space: nowrap; }

.dash-explore {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 30px;
  min-height: 50px; padding: 0 24px; border-radius: var(--pill);
  border: 1px solid var(--glass-border); background: rgba(255,255,255,.06); color: var(--ink);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .15s ease;
}
.dash-explore:hover { background: rgba(255,255,255,.12); }
.dash-explore span { color: var(--accent-hi); font-size: 16px; }

/* Classroom: "← My courses" link above the course title */
.back-link { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi); text-decoration: none; }
.back-link:hover { color: #fff; }
@media (max-width: 699px) { .mycourse__cover { aspect-ratio: 16 / 6; } .mycourse__mark { font-size: 36px; } }

/* Video page: "Protected video link expires…" note is not shown to students
   (the element stays in classroom.html because classroom.js uses it) */
#video-expiry-note { display: none !important; }

/* Phone: bigger finger-tap areas (at least 44x44px) without changing how anything looks.
   An invisible layer around each small link/button catches taps that land just outside it. */
@media (max-width: 760px) {
  .brand, .header-actions .btn, .header-inner > .btn, .text-link-btn { position: relative; }
  .brand::after, .header-actions .btn::after, .header-inner > .btn::after, .text-link-btn::after, .toggle-pw-btn::after {
    content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%; min-width: 44px; min-height: 44px;
  }
}

/* =========================================================
   10. Admin course manager (Phase 2, Step 7) — phone first
   ========================================================= */
/* More field types used by the course form */
input[type="number"], input[type="date"], textarea {
  width: 100%; min-height: 50px; padding: 0 16px;
  border-radius: var(--r-md); border: 1px solid var(--glass-border);
  background: var(--field-bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; font-weight: 400;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
textarea { padding: 12px 16px; line-height: 1.5; resize: vertical; min-height: 110px; }
input[type="date"] { color-scheme: dark; }
input[type="date"]:disabled { opacity: .45; }
input[type="number"]:focus, input[type="date"]:focus, textarea:focus {
  outline: none; border-color: rgba(156,192,255,.6); background: rgba(4,7,15,.6);
  box-shadow: 0 0 0 4px rgba(47,107,255,.18);
}
input[readonly] { opacity: .6; }
.field-hint { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.field-hint.is-error { color: var(--danger); }
.badge-hidden { color: var(--warn); border-color: rgba(255,210,122,.3); background: rgba(255,210,122,.08); }
.btn-icon { min-width: 40px; padding: 0 10px; font-size: 15px; letter-spacing: 0; }

/* Tabs: full width on phones */
@media (max-width: 759px) {
  #admin-app .admin-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  #admin-app .tab-btn { min-height: 46px; }
}

/* Course tick boxes (add-student form + a student's "Courses" panel) */
.course-picker { display: grid; gap: 8px; }
.course-tick {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; cursor: pointer;
  border-radius: var(--r-md); border: 1px solid var(--glass-border); background: rgba(255,255,255,.03);
}
.form-group .course-tick {   /* undo the small uppercase field-label style */
  font-family: var(--font-body); font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink);
}
.form-group .file-btn { color: var(--ink); }
.course-tick:has(input:checked) { border-color: rgba(156,192,255,.5); background: rgba(47,107,255,.12); }
.course-tick input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.course-tick__text { display: grid; gap: 2px; min-width: 0; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.course-tick__text small { font-size: 12.5px; color: var(--muted); }

/* A student's courses, shown under their email */
.course-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.course-chip {
  display: inline-block; padding: 5px 11px; border-radius: var(--pill); font-size: 12.5px; line-height: 1.3;
  color: var(--accent-hi); background: rgba(47,107,255,.12); border: 1px solid rgba(156,192,255,.28);
  overflow-wrap: anywhere;
}
.course-chip.is-ended { color: var(--danger); background: rgba(255,140,140,.08); border-color: rgba(255,140,140,.3); }
.course-chip.is-none { color: var(--warn); background: rgba(255,210,122,.06); border-color: rgba(255,210,122,.28); }
.student-courses-panel { grid-column: 1 / -1; margin: 4px 0 0; }
.enroll-row { display: grid; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.enroll-row:last-of-type { border-bottom: 0; }
.enroll-date { display: grid; gap: 6px; }
@media (min-width: 640px) {
  .enroll-row { grid-template-columns: minmax(0, 1fr) 190px; align-items: end; }
}

/* Course list */
.courses-header-row { align-items: end; }
.courses-header-row .btn { justify-self: start; }
.course-row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 14px; align-items: start;
  padding: 12px; border-radius: var(--r-md);
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08);
}
.course-row:hover { border-color: rgba(255,255,255,.16); }
.course-thumb {
  width: 72px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; flex: none;
  background: linear-gradient(135deg, #12286B, var(--cobalt));
  display: grid; place-items: center;
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-thumb span { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; }
.course-thumb--lg { width: 112px; border-radius: 16px; }
.course-thumb--lg span { font-size: 28px; }
.course-row__body { min-width: 0; }
.course-row__title {
  padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.015em; color: var(--ink);
  overflow-wrap: anywhere;
}
.course-row__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.course-row__stats { color: var(--ink-soft); }
.course-row__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; }
@media (min-width: 760px) {
  .course-row { grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; }
  .course-row .course-thumb { width: 88px; }
  .course-row__actions { grid-column: auto; display: flex; }
}

/* One course: header card */
.back-btn {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 10px; padding: 0 4px;
  border: 0; background: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi);
}
.back-btn:hover { color: #fff; }
#course-detail-head { margin-bottom: 18px; }
.course-detail-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.course-detail-title { margin-top: 8px; font-size: clamp(22px, 3vw, 28px); overflow-wrap: anywhere; }
.course-detail-actions { margin-top: 16px; }
@media (max-width: 520px) {
  .course-detail-top .course-thumb--lg { width: 84px; }
  .course-detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-detail-actions .btn { min-width: 0; padding: 0 10px; white-space: normal; text-align: center; line-height: 1.25; }
  .course-detail-actions .btn-danger { grid-column: 1 / -1; }
}
/* Long words (course names, emails, link names) never push the page sideways */
.course-row__body, .course-detail-top .course-row__body, .student-info { overflow-wrap: anywhere; }
.course-row__actions .btn, .student-actions .btn { min-width: 0; }

/* Add / edit course form */
.course-form { margin: 16px 0 0; gap: 14px; }
.form-row-2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.cover-preview {
  display: grid; place-items: center; aspect-ratio: 16 / 9; max-width: 420px; border-radius: 14px; overflow: hidden;
  background: rgba(4,7,15,.45); border: 1px dashed rgba(156,192,255,.3); color: var(--muted); font-size: 13px; text-align: center;
}
.cover-preview span { padding: 12px; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file-btn:focus-within { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

/* Lesson "Test play" */
.test-player { display: grid; gap: 10px; margin: 0 6px 10px; padding: 12px; border-radius: var(--r-md); background: rgba(4,7,15,.45); }
.test-player .classroom-muted, .test-player .field-hint { margin: 0; }

/* Chapters that belong to no course */
.orphan-card { margin-top: 18px; border-color: rgba(255,210,122,.3); }
.orphan-row { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
@media (min-width: 640px) { .orphan-row { grid-template-columns: minmax(0, 1fr) 220px auto; align-items: center; } }

/* Phone: bigger tap targets for the small editor buttons */
@media (max-width: 760px) {
  .admin-row-controls .btn-xs { min-height: 40px; padding: 0 12px; font-size: 10.5px; }
  .student-actions .btn-sm, .course-row__actions .btn-sm { min-height: 44px; }
  .student-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =========================================================
   11. "My courses" filter bar (Step 8b) — same look as the
       Courses page bar (css/courses.css), scoped to the dashboard
   ========================================================= */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dash-filters {
  display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px;
  padding: 10px; border-radius: var(--r-lg);
  background: rgba(6,11,24,.35); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.dash-filters .search {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  height: 58px; padding: 0 20px; border-radius: var(--pill);
  background: #FFFFFF; color: var(--btn-ink); cursor: text;
}
.dash-filters .search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #5B6780; stroke-width: 1.5; stroke-linecap: round; }
/* reset the general input style from section 6 for the white search pill */
.dash-filters .search input,
.dash-filters .search input:focus {
  flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; outline: 0;
  background: transparent; box-shadow: none; color: var(--btn-ink);
  font: 400 16px var(--font-body);
}
.dash-filters .search input::placeholder { color: #8892A6; }
.dash-filters .search:focus-within { box-shadow: 0 0 0 3px rgba(156,192,255,.6); }

.dash-filters .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-filters .select {
  position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0;
  height: 58px; padding: 0 40px 0 18px; border-radius: var(--pill); cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid var(--glass-border);
}
.dash-filters .select::after {   /* chevron */
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg);
  pointer-events: none;
}
.dash-filters .select__label { font: 500 10px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi); }
/* reset the general dropdown style from section 6 */
.dash-filters .select select,
.dash-filters .select select:focus {
  appearance: none; -webkit-appearance: none; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; outline: 0;
  background: transparent; background-image: none; box-shadow: none; color: var(--ink); cursor: pointer;
  font: 500 15px var(--font-body);
}
.dash-filters .select select option { background: var(--space-2); color: var(--ink); }
.dash-filters .select:focus-within { border-color: var(--accent-hi); }
@media (min-width: 760px) {
  .dash-filters { grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr); }
}

/* Phone: one "Filter" button opens a bottom sheet (like the Courses page) */
.dash-filters .select-btn { display: none; }
@media (max-width: 759px) {
  .dash-filters .filters { display: none; }
  .dash-filters .select-btn {
    position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    width: 100%; height: 58px; padding: 0 44px 0 20px; border-radius: var(--pill); cursor: pointer; text-align: left;
    background: rgba(255,255,255,.08); border: 1px solid var(--glass-border); color: var(--ink);
  }
  .dash-filters .select-btn::after {   /* chevron pointing up: the sheet comes from below */
    content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -2px;
    border-left: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink); transform: rotate(45deg);
  }
  .dash-filters .select-btn__value { font: 500 15px var(--font-body); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dash-filters .select-btn.is-set { border-color: var(--accent-hi); }
}
body.locked { overflow: hidden; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 44; background: rgba(4,7,15,.6); opacity: 0; transition: opacity .25s ease; }
.sheet-backdrop.is-open { opacity: 1; }
.sheet {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  max-height: 80vh; overflow-y: auto;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  border-radius: 28px 28px 0 0; background: rgba(10,16,34,.96); border-top: 1px solid var(--glass-border);
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
}
.sheet.is-open { transform: translateY(0); }
.sheet__grip { display: block; width: 44px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: rgba(255,255,255,.25); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.drawer__title { margin: 0; font: 700 24px var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.sheet .circle-btn {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,.06);
}
.sheet .circle-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.sheet__group { margin: 18px 0 10px; font: 500 14.3px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi); }
.sheet__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sheet__opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sheet-opt {
  min-height: 48px; padding: 10px 14px; border-radius: 16px; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); color: var(--ink);
  font: 500 15px var(--font-body); overflow-wrap: anywhere;
}
.sheet-opt--all { width: 100%; }
.sheet-opt.is-active { background: #FFFFFF; color: var(--btn-ink); border-color: transparent; }

/* "No courses match" */
.dash-empty { text-align: center; padding: 32px 20px; }
.dash-empty__title { margin: 0 0 14px; font: 700 20px var(--font-display); letter-spacing: -.02em; color: var(--ink); }
