/* Language Junction - route map theme (white + U-Bahn blue) */
:root {
  --blue: #1e3fd8;
  --blue-d: #1631b3;
  --sky: #e4e9ff;
  --mist: #f4f6fb;
  --ink: #0e1a4f;
  --text: #253054;
  --muted: #646d8c;
  --line: #e1e5f0;
  --line-2: #c9d0e6;
  --signal: #ffc93c;
  --green: #0f8a4b;
  --green-l: #e3f5ea;
  --red: #d63a3f;
  --red-l: #fdeaea;
  --amber: #b86e00;
  --amber-l: #fff1d6;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --lift: 0 1px 2px rgba(14, 26, 79, .05);
  --float: 0 18px 50px rgba(14, 26, 79, .14);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--text); background: var(--mist); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .45em; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hide { display: none !important; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; padding: 9px 15px; border-radius: var(--r-sm); cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn-soft { background: var(--sky); border-color: var(--sky); color: var(--blue); }
.btn-soft:hover { border-color: var(--blue); }
.btn-danger { color: var(--red); }
.btn-danger:hover { border-color: var(--red); }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 7px; }
.btn-lg { padding: 13px 22px; font-size: 16px; border-radius: 10px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--sky); color: var(--blue); text-transform: capitalize; white-space: nowrap; }
.b-green { background: var(--green-l); color: var(--green); }
.b-red { background: var(--red-l); color: var(--red); }
.b-amber { background: var(--amber-l); color: var(--amber); }
.b-gray { background: #eceef4; color: var(--muted); }
.b-blue { background: var(--sky); color: var(--blue); }

/* Panels */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--lift); }
.card h3 { font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card h3 a { font-family: var(--body); font-size: 13px; font-weight: 600; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }

/* Numbers: a row of stats sits in one joined panel, like a timetable row */
.grid:has(> .stat) { gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift); overflow: hidden; }
.stat { position: relative; border: 0; border-radius: 0; box-shadow: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; padding: 18px 20px; }
.stat .ico { display: none; }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat .value { font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--ink); margin: 2px 0 0; letter-spacing: -.02em; line-height: 1.15; }
.stat .value .small { font-family: var(--body); font-weight: 500; letter-spacing: 0; }
.stat .sub { font-size: 12.5px; color: var(--muted); }
.stat.blue { background: var(--blue); }
.stat.blue .label, .stat.blue .sub { color: #cdd6ff; }
.stat.blue .value { color: #fff; }

/* Tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 9px 12px; background: var(--mist); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child { border-top-left-radius: 8px; }
.tbl th:last-child { border-top-right-radius: 8px; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafbfe; }
.tbl .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 10px; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; }
.av svg { width: 17px; height: 17px; }
.who b { display: block; color: var(--ink); font-weight: 600; }
.who span { font-size: 12.5px; color: var(--muted); }
a .who b { color: var(--blue); }
.empty { text-align: center; padding: 30px 12px; color: var(--muted); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
input, select, textarea { font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 11px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 63, 216, .15); }
textarea { min-height: 90px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 7px; padding: 5px 10px; font-weight: 500; cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--blue); background: var(--sky); color: var(--blue); }
.checks input { width: auto; accent-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.toolbar input, .toolbar select { width: auto; min-width: 150px; }
.search { position: relative; }
.search input { padding-left: 34px; min-width: 240px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; color: var(--muted); }

/* Modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(14, 26, 79, .42); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: 16px; width: min(620px, 100%); max-height: 92vh; overflow: auto; box-shadow: var(--float); animation: rise .18s ease-out; }
.modal.wide { width: min(900px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-h h3 { margin: 0; font-size: 19px; }
.modal-b { padding: 20px 22px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; }
.x { border: 0; background: var(--mist); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; color: var(--ink); }
.x:hover { background: var(--sky); }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--float); font-weight: 500; animation: rise .2s; }
.toast.err { background: var(--red); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Panels: shell ---------- */
.app { display: flex; min-height: 100vh; }
.side { width: 250px; flex: none; background: #fff; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; display: flex; flex-direction: column; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 16px; text-decoration: none !important; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand b { display: block; font-family: var(--display); color: var(--ink); font-size: 16px; line-height: 1.15; white-space: nowrap; }
.brand span { font-size: 12.5px; color: var(--muted); }
/* Sidebar is drawn as a route line with stations */
.nav { display: flex; flex-direction: column; padding-bottom: 12px; }
.nav .sec { font-size: 12px; color: var(--muted); font-weight: 600; padding: 16px 12px 6px 36px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 36px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 14px; text-decoration: none; }
.nav a svg { display: none; }
.nav a::after { content: ''; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.nav a::before { content: ''; position: absolute; left: 15px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); z-index: 1; transition: border-color .15s; }
.nav a:hover { background: var(--mist); color: var(--ink); text-decoration: none; }
.nav a:hover::before { border-color: var(--blue); }
.nav a.on { background: var(--sky); color: var(--blue); font-weight: 700; }
.nav a.on::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue); }
.nav .count { margin-left: auto; background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; font-weight: 700; line-height: 18px; }
.side .me { margin-top: auto; padding: 10px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.side .me b { font-size: 14px; color: var(--ink); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .me span { font-size: 12px; color: var(--muted); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; padding: 16px 28px; position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 24px; margin: 0; }
.top .sub { color: var(--muted); font-size: 13px; }
.top .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); position: relative; flex: none; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.icon-btn .num { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.menu-btn { display: none; }
.content { padding: 24px 28px 48px; }

/* Panel parts */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: inherit; }
a.li:hover { text-decoration: none; color: var(--blue); }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li b { color: var(--ink); font-weight: 600; }
.bar { height: 6px; background: var(--sky); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.bar.green i { background: var(--green); }
.bar.red i { background: var(--red); }
.chart { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding-top: 20px; border-bottom: 1px solid var(--line); }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .col i { width: 100%; max-width: 34px; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 3px; }
.chart .col:last-child i { background: var(--signal); }
.chart .col span { font-size: 11.5px; color: var(--muted); margin-bottom: -22px; height: 16px; }
.chart .col em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.chart + * { margin-top: 26px; }
.card .chart { margin-bottom: 22px; }
.att-btns { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.att-btns button { border: 0; border-right: 1px solid var(--line-2); background: #fff; font: inherit; font-weight: 600; font-size: 13px; padding: 6px 13px; cursor: pointer; color: var(--muted); }
.att-btns button:last-child { border-right: 0; }
.att-btns button.on[data-s=present] { background: var(--green); color: #fff; }
.att-btns button.on[data-s=absent] { background: var(--red); color: #fff; }
.att-btns button.on[data-s=late] { background: var(--amber); color: #fff; }
.tabs { display: inline-flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; font: inherit; font-weight: 600; padding: 9px 14px; margin-bottom: -1px; cursor: pointer; color: var(--muted); }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }
.feed .item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.feed .item:last-child { border-bottom: 0; }
.feed .item b { color: var(--ink); }
.feed .item.unread { background: var(--sky); margin: 0 -20px; padding: 14px 20px; box-shadow: inset 3px 0 0 var(--blue); }
.hero-card { background: var(--blue); color: #fff; border: 0; padding: 26px 28px; }
.hero-card h2 { color: #fff; font-size: 30px; }
.hero-card .muted { color: #cdd6ff; }
.hero-card .btn { border-color: #fff; }
.chat { display: grid; grid-template-columns: 290px 1fr; height: calc(100vh - 150px); min-height: 460px; padding: 0; overflow: hidden; }
.chat .people { border-right: 1px solid var(--line); overflow-y: auto; }
.chat .person { display: flex; gap: 10px; align-items: center; padding: 13px 16px; cursor: pointer; border-bottom: 1px solid var(--line); }
.chat .person.on { background: var(--sky); box-shadow: inset 3px 0 0 var(--blue); }
.chat .person:hover { background: var(--mist); }
.chat .thread { display: flex; flex-direction: column; min-width: 0; }
.chat .thread-h { padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; color: var(--ink); }
.chat .msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--mist); }
.msg { max-width: 70%; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.msg.me { align-self: flex-end; background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 12px 12px 4px 12px; }
.msg small { display: block; font-size: 10.5px; opacity: .7; margin-top: 2px; }
.chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.skill { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; margin: 7px 0; }
.skill b { text-align: right; }
.q-card { margin-bottom: 14px; }
.q-card > b { font-family: var(--display); font-size: 17px; color: var(--ink); }
.q-card .opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; margin-top: 8px; cursor: pointer; transition: border-color .12s; }
.q-card .opt:hover { border-color: var(--blue); }
.q-card .opt.sel { border-color: var(--blue); background: var(--sky); }
.q-card .opt.right { border-color: var(--green); background: var(--green-l); }
.q-card .opt.wrong { border-color: var(--red); background: var(--red-l); }
.q-card .opt input { width: auto; accent-color: var(--blue); }

/* Route (levels as stations) - used on the website and the student dashboard */
.route { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.route::before { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 6px; background: var(--blue); border-radius: 3px; }
.route .stop { position: relative; padding-right: 22px; }
.route .dot { position: relative; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--ink); }
.route .stop h3 { margin: 16px 0 6px; font-size: 21px; }
.route .stop p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 250px; }
.route.on-blue::before { background: rgba(255, 255, 255, .35); }
.route.on-blue .dot { border-color: rgba(255, 255, 255, .55); background: var(--blue); color: #fff; width: 40px; height: 40px; border-width: 4px; font-size: 13px; }
.route.on-blue::before { top: 17px; height: 4px; }
.route.on-blue .stop.done .dot { background: #fff; color: var(--blue); border-color: #fff; }
.route.on-blue .stop.now .dot { background: var(--signal); border-color: #fff; color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 201, 60, .35); }
.route.on-blue .stop span { display: block; margin-top: 8px; font-size: 13px; color: #cdd6ff; }
.route.on-blue .stop.now span { color: #fff; font-weight: 700; }

/* Notifications pop-up */
#notifs { position: fixed; top: 80px; right: 22px; z-index: 45; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100% - 32px)); }
.notif { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--float), inset 4px 0 0 var(--blue); padding: 14px 12px 12px 16px; animation: slidein .25s ease-out; }
.notif.t-fee { box-shadow: var(--float), inset 4px 0 0 var(--signal); }
.notif.t-class, .notif.t-holiday { box-shadow: var(--float), inset 4px 0 0 var(--red); }
.notif .ni { width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: var(--blue); display: grid; place-items: center; flex: none; }
.notif .ni svg { width: 17px; height: 17px; }
.notif .grow { flex: 1; min-width: 0; }
.notif b { color: var(--ink); font-size: 14.5px; display: block; }
.notif p { margin: 2px 0 8px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.notif .nf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notif .read { border: 1px solid var(--blue); background: #fff; color: var(--blue); font: inherit; font-weight: 600; font-size: 12.5px; padding: 4px 10px; border-radius: 7px; cursor: pointer; }
.notif .read:hover { background: var(--blue); color: #fff; }
.notif .nx { border: 0; background: var(--mist); width: 28px; height: 28px; border-radius: 7px; cursor: pointer; font-size: 17px; line-height: 1; color: var(--ink); flex: none; }
.notif .nx:hover { background: var(--red-l); color: var(--red); }
.notif-bar { display: flex; justify-content: flex-end; gap: 8px; }
.notif-bar .btn { box-shadow: var(--float); }
.notif.out { animation: slideout .2s ease-in forwards; }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } }
@keyframes slideout { to { opacity: 0; transform: translateX(24px); } }

/* ---------- Public website ---------- */
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.site { background: #fff; }
.pnav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pnav .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.pnav .links { display: flex; gap: 26px; margin-left: auto; }
.pnav .links a { color: var(--text); font-weight: 500; }
.pnav .links a:hover { color: var(--blue); }
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(44px, 7.2vw, 96px); font-weight: 800; letter-spacing: -.035em; line-height: .98; margin: 0 0 22px; max-width: 12ch; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 54ch; }
.hero .cta { display: flex; gap: 12px; margin: 28px 0 0; flex-wrap: wrap; }
.hero-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.next-up { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; width: 300px; background: #fff; }
.next-up .k { font-size: 13px; color: var(--muted); }
.next-up b { display: block; font-family: var(--display); font-size: 22px; color: var(--ink); margin: 2px 0 4px; }
.next-up .when { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.next-up .when::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(255, 201, 60, .3); }
.route-wrap { margin-top: 64px; padding-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 64px; }
.facts div { padding: 22px 20px 22px 0; border-right: 1px solid var(--line); }
.facts div + div { padding-left: 20px; }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font-family: var(--display); font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.facts span { font-size: 14px; color: var(--muted); }
.section { padding: 84px 0; }
.section.alt { background: var(--mist); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(32px, 4vw, 48px); margin: 0; letter-spacing: -.025em; }
.sec-head p { color: var(--muted); margin: 8px 0 0; max-width: 52ch; }
/* Batches as a departure board */
.board { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.board .row { display: grid; grid-template-columns: 76px 1.4fr 1fr 1.3fr 1fr 110px 120px; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.board .row:last-child { border-bottom: 0; }
.board .head { background: var(--ink); color: #b9c3ea; font-size: 13px; font-weight: 600; padding-top: 12px; padding-bottom: 12px; }
.board .lv { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--blue); display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--ink); }
.board .name { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); }
.board .name small { display: block; font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--muted); }
.board .live { color: var(--green); font-weight: 600; }
.board .fee { font-weight: 700; color: var(--ink); }
.board .empty { padding: 40px; }
.reels { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.reels > * { scroll-snap-align: start; flex: 0 0 290px; }
.reel { border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); color: inherit; }
.reel:hover { text-decoration: none; border-color: var(--line-2); }
.reel .frame { aspect-ratio: 16 / 10; background: var(--ink); display: grid; place-items: center; color: #fff; }
.reel .frame svg { width: 40px; height: 40px; }
.reel iframe { width: 100%; height: 100%; border: 0; display: block; }
.reel .cap { padding: 13px 15px; }
.reel .cap b { display: block; color: var(--ink); }
.reel .cap span { font-size: 13px; color: var(--muted); }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.note { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: inherit; }
.note:hover { text-decoration: none; border-color: var(--blue); }
.note b { color: var(--ink); display: block; }
.note span { font-size: 13px; color: var(--muted); }
.tests { border-top: 1px solid var(--line); }
.test-row { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.test-row .lv { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--blue); }
.test-row b { font-family: var(--display); font-size: 19px; color: var(--ink); display: block; }
.test-row span { color: var(--muted); font-size: 14px; }
.contact { background: var(--blue); color: #fff; border-radius: var(--r-lg); padding: 52px; display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
.contact h2 { color: #fff; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.025em; }
.contact p { color: #d6ddff; font-size: 17px; max-width: 44ch; }
.contact .reach a { color: #fff; font-family: var(--display); font-size: 24px; font-weight: 700; display: block; }
.contact .reach span { color: #d6ddff; font-size: 15px; }
.contact form { background: #fff; color: var(--text); border-radius: var(--r); padding: 24px; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; display: grid !important; place-items: center; margin: 0; }
.social svg { width: 18px; height: 18px; }
.contact .social a { color: #fff; border-color: rgba(255, 255, 255, .5); }
.contact .social a:hover { background: #fff; color: var(--blue); }
footer.pfoot { padding: 56px 0 26px; border-top: 1px solid var(--line); margin-top: 84px; }
footer.pfoot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
footer.pfoot h4 { font-size: 15px; margin-bottom: 10px; }
footer.pfoot a { display: block; color: var(--muted); margin: 6px 0; }
footer.pfoot a:hover { color: var(--blue); }
footer.pfoot .social a { color: var(--ink); border-color: var(--line-2); }
.copy { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Login */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth-left { background: var(--blue); color: #fff; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-left .brand b { color: #fff; }
.auth-left .brand span { color: #cdd6ff; }
.auth-left .brand img { background: #fff; border-radius: 50%; padding: 4px; }
.auth-left h1 { color: #fff; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -.03em; max-width: 14ch; }
.auth-left p { color: #d6ddff; }
.auth-right { display: grid; place-items: center; padding: 30px; }
.auth-box { width: min(380px, 100%); }
.auth-box h2 { font-size: 32px; }

.doc { max-width: 820px; }
.doc h1 { font-size: 40px; }
.doc h2 { margin-top: 34px; font-size: 24px; }
.doc li { margin-bottom: 6px; }
.doc .fill { background: var(--amber-l); color: #7a4a00; padding: 0 4px; border-radius: 4px; }

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-top, .contact { grid-template-columns: 1fr; }
  .next-up { width: auto; }
  .board .row { grid-template-columns: 60px 1.4fr 1fr 1fr 100px; }
  .board .row > :nth-child(5), .board .row > :nth-child(6) { display: none; }
}
@media (max-width: 860px) {
  .side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--float); }
  .side.open { transform: none; }
  .menu-btn { display: grid; }
  .content, .top { padding-left: 16px; padding-right: 16px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .chat { grid-template-columns: 1fr; }
  .chat .people { max-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pnav .links { display: none; }
  footer.pfoot .cols { grid-template-columns: 1fr 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .route { grid-template-columns: 1fr; gap: 26px; }
  .route::before { left: 23px; right: auto; top: 10px; bottom: 10px; width: 6px; height: auto; }
  .route .stop { display: grid; grid-template-columns: 52px 1fr; gap: 0 18px; padding: 0; }
  .route .stop h3 { margin: 4px 0 4px; }
  .route .stop p { grid-column: 2; }
  .route.on-blue { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .route.on-blue::before { left: 0; right: 0; top: 17px; bottom: auto; width: auto; height: 4px; }
  .route.on-blue .stop { display: block; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { border-bottom: 1px solid var(--line); padding-left: 0 !important; }
  .facts div:nth-child(2n) { border-right: 0; padding-left: 16px !important; }
  .notes { grid-template-columns: 1fr; }
  .board .head { display: none; }
  .board .row { grid-template-columns: 52px 1fr auto; gap: 4px 14px; }
  .board .row > :nth-child(3), .board .row > :nth-child(4) { grid-column: 2; font-size: 14px; color: var(--muted); }
  .board .row > :nth-child(7) { grid-column: 3; grid-row: 1; }
  .test-row { grid-template-columns: 50px 1fr; }
  .test-row > :nth-child(3) { display: none; }
  .test-row > :nth-child(4) { grid-column: 2; justify-self: start; }
  .contact { padding: 28px; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: 1fr 1fr; }
  .stat .value { font-size: 24px; }
  .top h1 { font-size: 20px; }
  .search input { min-width: 0; }
  #notifs { top: 74px; right: 16px; }
}
@media print {
  body { background: #fff; }
  .side, .top, .toolbar, .no-print, #notifs { display: none !important; }
  .content { padding: 0; }
  .card { box-shadow: none; }
}

/* ---------- Front page v3 (patterns from Indian coaching sites) ---------- */
.topstrip { background: var(--ink); color: #c7cff0; font-size: 13px; }
.topstrip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 36px; }
.topstrip a { color: #fff; font-weight: 600; }
.topstrip .ts-right { display: flex; gap: 18px; }
.nav-cta { display: flex; gap: 8px; margin-left: 8px; }
.pnav .links { gap: 22px; }
.hero2 { padding: 56px 0 72px; background: #fff; border-bottom: 1px solid var(--line); }
footer.pfoot a.brand { display: flex; margin: 0; }
.hero2-grid { display: grid; grid-template-columns: 1fr 430px; gap: 56px; align-items: start; }
.hero2 h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: 8px 0 20px; max-width: 13ch; }
.hero2 .lead { font-size: 18.5px; color: var(--muted); max-width: 52ch; }
.hero2 .cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; max-width: 620px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 500; color: var(--ink); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.btn-wa { background: #fff; border-color: #25a85a; color: #137a3f; }
.btn-wa:hover { background: #e9f8ef; border-color: #137a3f; }
.btn-wa svg { width: 18px; height: 18px; }
.statrow { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.statrow b { display: block; font-family: var(--display); font-size: 30px; color: var(--ink); line-height: 1.1; }
.statrow span { font-size: 13.5px; color: var(--muted); }
.demo-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--float); position: relative; scroll-margin-top: 100px; }
.demo-card::before { content: ''; position: absolute; left: 26px; right: 26px; top: -1px; height: 4px; background: var(--blue); border-radius: 0 0 4px 4px; }
.demo-card h2 { font-size: 26px; margin-bottom: 4px; }
.demo-card .field { margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.phone-in { display: flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.phone-in:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 63, 216, .15); }
.phone-in span { padding: 9px 10px; background: var(--mist); border-right: 1px solid var(--line-2); font-weight: 600; color: var(--ink); }
.phone-in input { border: 0; box-shadow: none !important; border-radius: 0; }
.demo-card .done { text-align: center; padding: 30px 6px; }
.demo-card .tick { width: 58px; height: 58px; border-radius: 50%; background: var(--green-l); color: var(--green); display: grid; place-items: center; font-size: 28px; font-weight: 800; margin: 0 auto 14px; }
.route .join { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.who-card { padding: 24px 22px; border-right: 1px solid var(--line); }
.who-card:last-child { border-right: 0; }
.who-card b { display: block; font-family: var(--display); font-size: 19px; color: var(--ink); margin-bottom: 8px; line-height: 1.2; }
.who-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; position: relative; }
.steps .n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.steps b { display: block; font-family: var(--display); font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.steps a { font-weight: 600; font-size: 14px; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.025em; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.panel-grid .ticks { grid-template-columns: 1fr; }
.panel-mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--float); overflow: hidden; }
.pm-head { background: var(--blue); color: #fff; padding: 22px 24px; }
.pm-head b { display: block; font-family: var(--display); font-size: 24px; }
.pm-head > span { color: #cdd6ff; font-size: 14px; }
.pm-body { padding: 18px 24px 24px; }
.pm-row { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.pm-row b { font-family: var(--display); font-size: 20px; color: var(--ink); }
.pm-join { margin-top: 16px; background: var(--blue); color: #fff; text-align: center; padding: 11px; border-radius: 10px; font-weight: 600; }
.pm-note { text-align: center; margin: 0; padding: 0 0 12px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.quote blockquote { margin: 0; font-size: 16px; color: var(--ink); }
.quote figcaption { display: flex; gap: 10px; align-items: center; }
.quote figcaption b { display: block; color: var(--ink); }
.quote figcaption span { font-size: 13px; color: var(--muted); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--body); font-size: 18px; color: var(--blue); }
.faq details[open] summary::after { content: '−'; background: var(--blue); color: #fff; border-color: var(--blue); }
.faq details p { color: var(--muted); margin: -4px 0 18px; max-width: 64ch; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; align-self: center; }
.contact .btn:not(.btn-wa) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.contact .btn:not(.btn-wa):hover { background: #fff; color: var(--blue); }
.contact { grid-template-columns: 1fr 340px; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 35; width: 56px; height: 56px; border-radius: 50%; background: #25a85a; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(19, 122, 63, .35); }
.wa-float svg { width: 26px; height: 26px; }
.mbar { display: none; }
#batches, #levels, #tests, #faq { scroll-margin-top: 80px; }

@media (max-width: 1100px) {
  .hero2-grid, .panel-grid, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .demo-card { max-width: 560px; }
  .who-grid { grid-template-columns: 1fr 1fr; }
  .who-card:nth-child(2) { border-right: 0; }
  .who-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .nav-demo { display: none; }
}
@media (max-width: 860px) {
  .route .stop .join { grid-column: 2; margin-top: 8px; }
  .topstrip .wrap > span:first-child { display: none; }
  .topstrip .wrap { justify-content: center; }
  .hero2 { padding-top: 34px; background: #fff; }
  .ticks { grid-template-columns: 1fr; }
  .steps, .quotes { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(14, 26, 79, .08); }
  .mbar a { padding: 14px 8px; text-align: center; font-weight: 700; color: var(--ink); border-right: 1px solid var(--line); }
  .mbar a.mb-main { background: var(--blue); color: #fff; border-right: 0; }
  .site footer.pfoot { padding-bottom: 80px; }
}
@media (max-width: 560px) {
  .who-grid { grid-template-columns: 1fr; }
  .who-card { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .who-card:last-child { border-bottom: 0; }
  .field-row { grid-template-columns: 1fr; }
  .nav-cta .btn { padding: 7px 11px; }
  .demo-card { padding: 20px; }
}

/* ---------- Login page v3 ---------- */
.login2 { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.login2-side { background: var(--blue); color: #fff; padding: 40px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.login2-side::after { content: ''; position: absolute; right: -140px; bottom: -140px; width: 380px; height: 380px; border-radius: 50%; border: 56px solid rgba(255, 255, 255, .07); }
.login2-side > * { position: relative; z-index: 1; }
.login2-side .brand b { color: #fff; }
.login2-side .brand span { color: #cdd6ff; }
.login2-side .brand img { background: #fff; border-radius: 50%; padding: 4px; }
.login2-side h1 { color: #fff; font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.03em; max-width: 15ch; margin-bottom: 30px; }
.login2-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 440px; }
.login2-list li { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; background: rgba(255, 255, 255, .06); }
.login2-list b { display: block; color: #fff; }
.login2-list span { color: #d6ddff; font-size: 14px; }
.login2-main { display: flex; flex-direction: column; padding: 28px 40px; }
.login2-top { display: flex; justify-content: flex-end; align-items: center; font-size: 14px; font-weight: 600; }
.m-brand { display: none; align-items: center; gap: 8px; margin-right: auto; color: var(--ink); text-decoration: none !important; }
.m-brand img { width: 34px; }
.m-brand b { font-family: var(--display); }
.login2-box { width: min(400px, 100%); margin: auto; padding: 30px 0; }
.login2-box h2 { font-size: 32px; letter-spacing: -.02em; }
.pw { position: relative; }
.pw input { padding-right: 64px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--mist); color: var(--blue); font: inherit; font-weight: 600; font-size: 13px; padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.login2-row { display: flex; justify-content: space-between; margin: -4px 0 16px; font-size: 14px; font-weight: 600; }
.login2-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--muted); font-size: 13.5px; }
.login2-or::before, .login2-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.login2-help { text-align: center; margin-top: 20px; }
@media (max-width: 900px) {
  .login2 { grid-template-columns: 1fr; }
  .login2-side { display: none; }
  .m-brand { display: flex; }
  .login2-main { padding: 18px 20px; }
}

.g-wrap { margin: 18px 0 4px; }
.g-wrap #gBtn { display: flex; justify-content: center; min-height: 44px; }
.g-wrap .login2-or { margin: 18px 0 4px; }

/* Login v4: mode tabs, Google first */
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--mist); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 26px; }
.mode-tabs button { border: 0; background: transparent; font: inherit; font-weight: 600; padding: 9px; border-radius: 7px; cursor: pointer; color: var(--muted); }
.mode-tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--lift); }
.g-btn { display: flex; justify-content: center; min-height: 46px; margin: 18px 0 6px; }

/* Website v4: sign-in card, no-login contact */
.join-steps { list-style: none; counter-reset: j; padding: 0; margin: 16px 0 20px; display: grid; gap: 12px; }
.join-steps li { counter-increment: j; position: relative; padding-left: 40px; }
.join-steps li::before { content: counter(j); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--sky); color: var(--blue); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.join-steps b { display: block; color: var(--ink); }
.join-steps span { font-size: 13.5px; color: var(--muted); }
.mini-enq { display: grid; gap: 8px; }
.mini-enq input { background: rgba(255, 255, 255, .95); border-color: transparent; }

/* Student courses list */
.course-list { display: flex; flex-direction: column; }
.course { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.course:last-child { border-bottom: 0; }
.course .lv { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--blue); display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--ink); }
.course b { color: var(--ink); font-family: var(--display); font-size: 17px; }
.course .fee { font-weight: 700; color: var(--ink); }
@media (max-width: 640px) { .course { grid-template-columns: 44px 1fr; } .course .fee, .course > div:last-child { grid-column: 2; } }
