/* ═══════════════════════════════════════════════════════════════
   GCILLP Student Panel — student.css
   Brand: navy #1A2A4A + gold #F0A500 (same as franchise panel)
   Mobile-first: app bar + bottom tabs · Desktop (≥992px): sidebar
═══════════════════════════════════════════════════════════════ */
:root {
	--navy: #1A2A4A;
	--navy-dk: #0d1a2e;
	--navy-2: #243558;
	--gold: #F0A500;
	--gold-lt: #F5C842;
	--gold-pale: #FEF8E7;
	--bg: #F4F6FB;
	--card: #ffffff;
	--text: #172033;
	--muted: #6B7280;
	--line: #E9EDF5;
	--success: #16a34a;  --success-bg: #E9F8EF;
	--danger:  #dc2626;  --danger-bg:  #FDECEC;
	--warning: #b45309;  --warning-bg: #FEF3DC;
	--info:    #2563eb;  --info-bg:    #EAF1FE;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(26,42,74,.06);
	--shadow-lg: 0 12px 40px rgba(13,26,46,.18);
	--tabbar-h: 64px;
	--appbar-h: 64px;
	--sidebar-w: 264px;
	--safe-b: env(safe-area-inset-bottom, 0px);
	--safe-t: env(safe-area-inset-top, 0px);
	--ease: cubic-bezier(.2,.8,.2,1);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; font-family: 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg);
	-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
	overscroll-behavior-y: none;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .9em; background: var(--gold-pale); padding: 1px 6px; border-radius: 6px; }
[hidden] { display: none !important; }

/* utilities */
.min-w-0 { min-width: 0; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-break { word-break: break-word; }
.text-muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.small { font-size: .82rem; }
.tiny { font-size: .74rem; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .2px; }
.fw-700 { font-weight: 700; }
.mt-2 { margin-top: .6rem; }
.mt-3 { margin-top: 1rem; }
.ms-auto { margin-left: auto; }

/* ── Nav progress bar ── */
.nav-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999; background: linear-gradient(90deg, var(--gold), var(--gold-lt)); box-shadow: 0 0 8px rgba(240,165,0,.6); opacity: 0; }
.nav-progress.run { opacity: 1; width: 75%; transition: width 2.5s var(--ease); }
.nav-progress.done { width: 100%; opacity: 0; transition: width .2s, opacity .3s .15s; }

/* ═════ SHELL ═════ */
.shell { min-height: 100vh; min-height: 100dvh; }
.sidebar { display: none; }
.main { min-width: 0; }

.topbar {
	position: sticky; top: 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: calc(var(--appbar-h) + var(--safe-t));
	padding: var(--safe-t) 16px 0;
	background: var(--navy); color: #fff;
	box-shadow: 0 2px 12px rgba(13,26,46,.25);
}
.topbar-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-title h1 { font-size: 1.06rem; font-weight: 700; }
.topbar-sub { font-size: .74rem; color: rgba(255,255,255,.6); }
.topbar-logo { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; flex: none; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.topbar-avatar .avatar { box-shadow: 0 0 0 2px var(--gold); }
.icon-btn {
	width: 38px; height: 38px; display: inline-grid; place-items: center; flex: none;
	border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-size: 1.1rem; border: 0; cursor: pointer;
	transition: background .2s, transform .1s;
}
.icon-btn:hover { background: rgba(255,255,255,.18); }
.icon-btn:active { transform: scale(.94); }

.content {
	padding: 16px 16px calc(var(--tabbar-h) + var(--safe-b) + 24px);
	max-width: 1120px; margin: 0 auto;
	display: flex; flex-direction: column; gap: 14px;
}
.is-locked .content { padding-bottom: calc(24px + var(--safe-b)); }
.page-enter { animation: pageIn .32s var(--ease) backwards; }   /* backwards: no transform left behind (keeps position:fixed overlays working) */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Bottom tab bar ── */
.tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: grid; grid-template-columns: repeat(5, 1fr);
	height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
	background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
	border-top: 1px solid var(--line);
}
.tab {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	background: none; border: 0; cursor: pointer; color: #8a93a6; font-size: .68rem; font-weight: 600; letter-spacing: .1px;
	transition: color .2s;
}
.tab i { font-size: 1.28rem; line-height: 1; transition: transform .2s var(--ease); }
.tab::before {
	content: ''; position: absolute; top: 8px; left: 50%; width: 52px; height: 30px; border-radius: 16px;
	background: var(--gold-pale); transform: translateX(-50%) scale(.4); opacity: 0; transition: .25s var(--ease); z-index: -1;
}
.tab.active { color: var(--navy); }
.tab.active::before { opacity: 1; transform: translateX(-50%) scale(1); }
.tab:active i { transform: scale(.88); }

/* ── Bottom sheet ── */
.sheet { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(13,26,46,.45); opacity: 0; transition: opacity .25s; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-panel {
	position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto;
	background: #fff; border-radius: 24px 24px 0 0; padding: 10px 16px calc(20px + var(--safe-b));
	transform: translateY(100%); transition: transform .32s var(--ease); box-shadow: var(--shadow-lg);
}
.sheet.open .sheet-panel { transform: none; }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: #d8dde8; margin: 0 auto 14px; }
.sheet-user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.sheet-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; text-align: center; color: var(--text); }
.sheet-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: var(--bg); font-size: 1.35rem; color: var(--navy); transition: transform .15s; }
.sheet-item:active .sheet-icon { transform: scale(.92); }
.sheet-item.active .sheet-icon { background: var(--navy); color: var(--gold); }
.sheet-item-danger .sheet-icon { background: var(--danger-bg); color: var(--danger); }

/* ═════ DESKTOP ═════ */
@media (min-width: 992px) {
	.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; background: linear-gradient(90deg, var(--navy) var(--sidebar-w), var(--bg) var(--sidebar-w)); }
	.tabbar, #moreSheet { display: none; }
	.sidebar {
		display: flex; flex-direction: column; position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
		background: linear-gradient(180deg, var(--navy-dk) 0%, var(--navy) 100%); color: #fff; padding: 20px 14px;
	}
	.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
	.brand img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
	.brand strong { display: block; font-size: .98rem; }
	.brand small { display: block; font-size: .7rem; color: var(--gold); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
	.side-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.06); margin-bottom: 14px; }
	.side-user-name { font-weight: 700; font-size: .88rem; }
	.side-user-code { font-size: .72rem; color: var(--gold); font-family: ui-monospace, Menlo, monospace; }
	.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
	.side-group { font-size: .66rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.4); font-weight: 700; padding: 14px 12px 6px; }
	.side-link {
		position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
		color: rgba(255,255,255,.75); font-size: .88rem; font-weight: 500; transition: background .2s, color .2s;
	}
	.side-link i { font-size: 1.08rem; width: 20px; text-align: center; }
	.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
	.side-link.active { background: rgba(240,165,0,.14); color: #fff; font-weight: 600; }
	.side-link.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); }
	.side-link.active i { color: var(--gold); }
	.side-logout { margin-top: 12px; color: #fca5a5; }
	.side-logout:hover { background: rgba(220,38,38,.15); color: #fecaca; }
	.side-locked { flex: 1; font-size: .82rem; color: rgba(255,255,255,.6); padding: 12px; display: flex; gap: 8px; }

	.topbar { background: rgba(244,246,251,.85); color: var(--text); box-shadow: none; border-bottom: 1px solid var(--line); padding: 0 32px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
	.topbar-title h1 { font-size: 1.3rem; font-weight: 800; }
	.topbar-sub { color: var(--muted); font-size: .8rem; }
	.topbar-logo { display: none; }
	.icon-btn { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
	.icon-btn:hover { background: #fff; color: var(--gold); }
	.content { padding: 28px 32px 48px; gap: 18px; }
}

/* ═════ AVATARS ═════ */
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; background: #e8edf8; }
.avatar-initials { display: inline-grid; place-items: center; font-weight: 700; color: var(--navy); background: linear-gradient(135deg, var(--gold-lt), var(--gold)); }
.avatar-sm { width: 36px; height: 36px; font-size: .8rem; }
.avatar-md { width: 44px; height: 44px; font-size: .95rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.5rem; border: 3px solid rgba(255,255,255,.9); }
.avatar-xxl { width: 104px; height: 104px; font-size: 2.1rem; border: 4px solid #fff; box-shadow: var(--shadow); }

/* ═════ CARDS & LAYOUT ═════ */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border: 1px solid rgba(233,237,245,.7); }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2 { font-size: .98rem; font-weight: 700; display: flex; align-items: center; gap: 8px; min-width: 0; }
.card-head h2 i { color: var(--gold); font-size: 1.05rem; }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 18px; } .card { padding: 20px; } }
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; margin: 6px 2px -4px; }
.hint { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; padding: 0 4px; }
.hint i { color: var(--gold); margin-top: 1px; }

/* key/value list */
.kv { margin: 0; display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: .84rem; }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-size: .88rem; word-break: break-word; }
.kv-compact > div { padding: 7px 0; }

/* icon list */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li > div { flex: 1; }
.list small { display: block; font-size: .74rem; color: var(--muted); }
.list span { font-weight: 600; font-size: .92rem; }
.li-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--bg); color: var(--navy); font-size: 1.05rem; flex: none; }
.li-action { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-pale); color: var(--navy); flex: none; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: .7rem; font-weight: 700; white-space: nowrap; line-height: 1.5; }
.chip-success { background: var(--success-bg); color: var(--success); }
.chip-danger  { background: var(--danger-bg);  color: var(--danger); }
.chip-warning { background: var(--warning-bg); color: var(--warning); }
.chip-muted   { background: #EEF1F6; color: #5b6476; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 16px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 600; font-size: .88rem;
	transition: transform .1s, box-shadow .2s, background .2s; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(26,42,74,.25); }
.btn-primary:hover { background: var(--navy-2); }
.btn-primary i { color: var(--gold); }
.btn-soft { background: var(--bg); color: var(--navy); }
.btn-soft:hover { background: #e8ecf5; }
.btn-wa i { color: #16a34a; }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-lg { padding: 14px 18px; font-size: .95rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn-row .btn { flex: 1 1 auto; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy::after { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-busy > i { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* banners */
.banner { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 14px; font-size: .84rem; }
.banner > i:first-child { font-size: 1.35rem; flex: none; }
.banner strong { display: block; font-size: .9rem; }
.banner span { display: block; opacity: .9; }
.banner-danger  { background: var(--danger-bg);  color: #991b1b; }
.banner-info    { background: var(--info-bg);    color: #1e3a8a; }
.banner-success { background: var(--success-bg); color: #166534; }
.banner-warning { background: var(--warning-bg); color: #92400e; }

/* empty state */
.empty { text-align: center; padding: 48px 20px; }
.empty-icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); font-size: 2rem; color: var(--gold); }
.empty h3 { font-size: 1.05rem; margin-bottom: 4px; }
.empty p { color: var(--muted); font-size: .88rem; }

/* ═════ HOME / DETAILS ═════ */
.hero-card {
	position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 20px;
	background: radial-gradient(120% 140% at 100% 0%, #2d4374 0%, var(--navy) 45%, var(--navy-dk) 100%);
	box-shadow: 0 14px 30px rgba(13,26,46,.25);
}
.hero-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 28px solid rgba(240,165,0,.12); }
.hero-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.hero-label { font-size: .66rem; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,.55); font-weight: 700; }
.hero-code { font-family: ui-monospace, Menlo, monospace; color: var(--gold); font-weight: 800; font-size: 1.05rem; }
.hero-name { font-size: 1.15rem; font-weight: 700; }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.hero-stats > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 10px; }
.hero-stats span { display: block; font-weight: 800; font-size: 1.02rem; }
.hero-stats small { font-size: .68rem; color: rgba(255,255,255,.6); }
.hero-stats .is-due span { color: #fecaca; }

.centre-name { font-weight: 700; font-size: 1.02rem; }
.centre-code { color: var(--gold); font-size: .8rem; font-weight: 700; margin-bottom: 8px; }
.centre-addr { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-top: 4px; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.tile { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s; border: 1px solid rgba(233,237,245,.7); }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,42,74,.1); }
.tile:active { transform: scale(.98); }
.tile-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--gold-pale); color: var(--navy); font-size: 1.2rem; }
.tile-text { min-width: 0; }
.tile-text strong { display: block; font-size: .88rem; }
.tile-text small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.3; }

/* ═════ PROFILE ═════ */
.profile-head { text-align: center; padding: 26px 16px 20px; background: linear-gradient(180deg, var(--gold-pale) 0, #fff 60%); }
.profile-head h2 { font-size: 1.2rem; margin-top: 12px; }
.profile-head p { margin: 2px 0 12px; font-size: .85rem; }
.profile-head .chip-row { justify-content: center; }
.rich { font-size: .9rem; color: #374151; }
.rich p { margin: 0 0 .5em; }

/* ═════ COURSES ═════ */
.course-list { display: grid; gap: 14px; }
@media (min-width: 1100px) { .course-list { grid-template-columns: 1fr 1fr; } }
.course.is-muted { opacity: .7; }
.course-top { display: flex; gap: 12px; align-items: flex-start; }
.course-icon { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-size: 1.25rem; }
.course-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.course-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding: 12px; background: var(--bg); border-radius: 12px; }
.course-meta small { display: block; color: var(--muted); font-size: .7rem; }
.course-meta strong { font-size: .86rem; }
.progress-wrap { margin-top: 14px; }
.progress-label, .progress-foot { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); }
.progress-label span:last-child { font-weight: 700; color: var(--navy); }
.progress { height: 8px; background: #EEF1F6; border-radius: 8px; margin: 6px 0; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--gold), var(--gold-lt)); transition: width .6s var(--ease); }

/* ═════ FEES ═════ */
.segmented { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: #E7EBF3; border-radius: 14px; }
.segmented::-webkit-scrollbar { display: none; }
.seg { flex: 1 0 auto; border: 0; background: transparent; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .8rem; color: var(--muted); cursor: pointer; white-space: nowrap; transition: .2s; }
.seg.active { background: #fff; color: var(--navy); box-shadow: 0 2px 6px rgba(26,42,74,.1); }
.tab-pane { display: none; flex-direction: column; gap: 14px; }
.tab-pane.active { display: flex; animation: pageIn .25s var(--ease) backwards; }

.fee-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .85rem; }
.fee-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 11px 12px; border-bottom: 1px solid var(--line); align-items: center; }
.fee-row:last-child { border-bottom: 0; }
.fee-row > :nth-child(2), .fee-row > :nth-child(3) { text-align: right; }
.fee-row > :nth-child(2) { color: var(--muted); }
.fee-row small { display: block; color: var(--muted); font-size: .7rem; }
.fee-row-head { background: var(--bg); font-size: .7rem; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: var(--muted); }
.fee-row-head > :nth-child(3) { color: var(--navy); }
.fee-row-total { background: var(--gold-pale); font-weight: 700; }
.fee-row-total strong { color: var(--navy); font-size: .95rem; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat-strip > div { background: var(--bg); border-radius: 12px; padding: 10px; text-align: center; }
.stat-strip small { display: block; font-size: .7rem; color: var(--muted); }
.stat-strip strong { font-size: .9rem; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -20px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; border: 2px solid #c7cedb; }
.timeline li.is-paid::before { background: var(--success); border-color: var(--success); }
.timeline li.is-overdue::before { background: var(--danger); border-color: var(--danger); }
.timeline li.is-current::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(240,165,0,.2); }
.tl-main strong { display: block; font-size: .88rem; }
.tl-main small { color: var(--muted); font-size: .74rem; }
.tl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.amt { font-weight: 700; font-size: .88rem; }

/* ═════ DUES ═════ */
.due-hero { border-radius: 22px; padding: 22px 20px; color: #fff; text-align: center; box-shadow: 0 14px 30px rgba(13,26,46,.2); }
.due-hero.has-due { background: radial-gradient(130% 130% at 0% 0%, #ef4444 0%, #b91c1c 55%, #7f1d1d 100%); }
.due-hero.no-due  { background: radial-gradient(130% 130% at 0% 0%, #22c55e 0%, #15803d 55%, #14532d 100%); }
.due-hero > small { font-size: .74rem; opacity: .8; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.due-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; margin: 4px 0; }
.due-hero p { font-size: .88rem; opacity: .95; margin-bottom: 12px; }
.due-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.due-sub > div { background: rgba(255,255,255,.14); border-radius: 12px; padding: 9px; }
.due-sub small { display: block; font-size: .7rem; opacity: .8; }
.due-list { list-style: none; margin: 0; padding: 0; }
.due-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.due-list li:last-child { border-bottom: 0; }
.due-list li > div:nth-child(2) { flex: 1; min-width: 0; }
.due-list strong { display: block; font-size: .88rem; }
.due-list small { color: var(--muted); font-size: .74rem; }
.due-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-danger { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); }
.dot-warning { background: var(--gold); box-shadow: 0 0 0 4px var(--warning-bg); }
.dot-muted { background: #c7cedb; }
.ok-line { color: var(--success); font-weight: 600; font-size: .88rem; display: flex; gap: 8px; align-items: center; }
.upcoming { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.upcoming summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--muted); padding: 6px 0; list-style: none; display: flex; align-items: center; gap: 6px; }
.upcoming summary::-webkit-details-marker { display: none; }
.upcoming summary::before { content: '\F282'; font-family: 'bootstrap-icons'; transition: transform .2s; }
.upcoming[open] summary::before { transform: rotate(180deg); }

/* ═════ PAYMENTS ═════ */
.summary-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.sc small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.sc strong { font-size: 1.05rem; }
.sc-primary { grid-column: 1 / -1; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.sc-primary small { color: rgba(255,255,255,.6); }
.sc-primary strong { font-size: 1.6rem; display: block; color: var(--gold-lt); }
.sc-primary > span { font-size: .78rem; color: rgba(255,255,255,.7); }
@media (min-width: 768px) { .summary-cards { grid-template-columns: 2fr 1fr 1fr; } .sc-primary { grid-column: auto; } }

.filter-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -16px; padding: 0 16px; }
.filter-chips::-webkit-scrollbar { display: none; }
.fchip { flex: none; border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 20px; font-size: .8rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: .2s; }
.fchip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pay-groups { display: flex; flex-direction: column; gap: 14px; }
.group-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; margin: 0 4px 8px; }
.pay-item { border-bottom: 1px solid var(--line); }
.pay-item:last-child { border-bottom: 0; }
.pay-item summary { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; transition: background .15s; }
.pay-item summary::-webkit-details-marker { display: none; }
.pay-item summary:hover, .pay-item[open] summary { background: #FAFBFD; }
.pay-icon { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--success-bg); color: var(--success); font-size: 1.15rem; }
.pay-icon.is-online { background: var(--info-bg); color: var(--info); }
.pay-main { flex: 1; min-width: 0; }
.pay-main strong, .pay-main small { display: block; }
.pay-main small { color: var(--muted); font-size: .74rem; }
.pay-right { text-align: right; flex: none; }
.pay-right strong { display: block; color: var(--success); font-size: .92rem; }
.pay-right small { color: var(--muted); font-size: .72rem; }
.pay-item .kv { padding: 2px 16px 12px 70px; }

/* ═════ FORMS ═════ */
.form-card { max-width: 520px; width: 100%; }
@media (min-width: 992px) { .form-card { padding: 28px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 6px; color: #374151; }
.input-wrap { position: relative; display: flex; align-items: center; background: #F7F9FC; border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.input-wrap:focus-within { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(240,165,0,.15); }
.input-wrap.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(220,38,38,.1); }
.input-wrap > i { position: absolute; left: 14px; color: #9aa3b5; font-size: 1.05rem; pointer-events: none; }
.input-wrap input { flex: 1; width: 100%; border: 0; background: transparent; padding: 14px 14px 14px 42px; font: inherit; font-size: 16px; color: var(--text); outline: none; border-radius: 14px; }
.pwd-toggle { border: 0; background: none; padding: 0 14px; height: 48px; color: #9aa3b5; cursor: pointer; font-size: 1.05rem; }
.pwd-toggle:hover { color: var(--navy); }
.form-alert { padding: 11px 14px; border-radius: 12px; font-size: .84rem; font-weight: 500; margin-bottom: 14px; }
.form-alert-error { background: var(--danger-bg); color: #991b1b; }
.form-alert-success { background: var(--success-bg); color: #166534; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.strength span { height: 4px; border-radius: 4px; background: #E7EBF3; transition: background .25s; }
.strength .on.s1 { background: #ef4444; } .strength .on.s2 { background: #f59e0b; }
.strength .on.s3 { background: #84cc16; } .strength .on.s4 { background: #16a34a; }
.rules { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .76rem; color: var(--muted); }
.rules li { display: flex; align-items: center; gap: 5px; transition: color .2s; }
.rules li.ok { color: var(--success); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ═════ TOASTS ═════ */
.toast-stack { position: fixed; left: 50%; transform: translateX(-50%); top: calc(12px + var(--safe-t)); z-index: 10000; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--navy); color: #fff; font-size: .86rem; font-weight: 500; box-shadow: var(--shadow-lg); transform: translateY(-16px); opacity: 0; transition: .3s var(--ease); }
.toast.show { transform: none; opacity: 1; }
.toast-success i { color: #4ade80; }
.toast-error i { color: #f87171; }

/* ═════ LOGIN ═════ */
.login-page { background: var(--navy-dk); }
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(120% 60% at 50% 0%, #2d4374 0%, var(--navy) 40%, var(--navy-dk) 100%); }
.login-hero { text-align: center; color: #fff; padding: calc(44px + var(--safe-t)) 24px 34px; animation: pageIn .5s var(--ease) both; }
.login-logo { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 24px; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.login-hero h1 { font-size: 1.6rem; font-weight: 800; margin-top: 16px; }
.login-hero p { color: rgba(255,255,255,.6); font-size: .84rem; margin-top: 4px; }
.login-card { flex: 1; background: #fff; border-radius: 28px 28px 0 0; padding: 28px 22px calc(24px + var(--safe-b)); animation: sheetUp .5s .08s var(--ease) both; }
.login-card h2 { font-size: 1.3rem; font-weight: 800; }
.login-card > p { font-size: .86rem; margin: 4px 0 22px; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.login-help { margin-top: 20px; font-size: .82rem; color: var(--muted); background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.login-help summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.login-help p { margin-top: 8px; }
.login-foot { display: none; }
@media (min-width: 640px) {
	.login { align-items: center; justify-content: center; padding: 32px 16px; }
	.login-hero { padding: 0 0 26px; }
	.login-card { flex: none; width: 100%; max-width: 420px; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 32px; }
	.login-foot { display: block; color: rgba(255,255,255,.4); font-size: .74rem; margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ═════════════════════════════════════════════════════════════
   v1.1 — Learning Hub, accents, forgot password
═════════════════════════════════════════════════════════════ */

/* ── Learning Hub (home) ── */
.hub { display: flex; flex-direction: column; gap: 10px; }
.hub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 4px 2px 0; }
.hub-head .section-title { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--navy); }
.hub-head .section-title i { color: var(--gold); }
.hub-sub { font-size: .74rem; color: var(--muted); }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .hub-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

.gloss {
	--a1: #1A2A4A; --a2: #243558;
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
	min-height: 128px; padding: 14px; border-radius: 20px; color: #fff;
	background: linear-gradient(145deg, var(--a1) 0%, var(--a2) 100%);
	box-shadow: 0 10px 22px -8px var(--a2), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.12);
	transition: transform .2s var(--ease), box-shadow .25s;
}
/* glossy top highlight */
.gloss::before {
	content: ''; position: absolute; inset: 0 0 52% 0; z-index: -1;
	background: linear-gradient(180deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,.06) 100%);
	border-radius: 20px 20px 50% 50% / 20px 20px 18px 18px;
}
/* decorative ring */
.gloss::after {
	content: ''; position: absolute; right: -34px; bottom: -34px; width: 110px; height: 110px; z-index: -1;
	border-radius: 50%; border: 18px solid rgba(255,255,255,.12);
}
.gloss:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -10px var(--a2), inset 0 1px 0 rgba(255,255,255,.4); }
.gloss:active { transform: scale(.97); }
.gloss-icon {
	width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; font-size: 1.35rem;
	background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 10px rgba(0,0,0,.12);
}
.gloss-text strong { display: block; font-size: .92rem; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.gloss-text small { display: block; font-size: .72rem; opacity: .85; margin-top: 2px; }
.gloss-go { position: absolute; top: 14px; right: 14px; font-size: .9rem; opacity: .75; transition: transform .2s var(--ease); }
.gloss:hover .gloss-go { transform: translate(2px, -2px); opacity: 1; }
.gloss-badge {
	position: absolute; top: 14px; right: 38px; display: inline-flex; align-items: center; gap: 5px;
	padding: 3px 9px; border-radius: 20px; font-size: .62rem; font-weight: 800; letter-spacing: 1px;
	background: #fff; color: var(--a2); box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; }
.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

/* shine sweep on hover (desktop) */
@media (hover: hover) {
	.gloss:hover::before { background: linear-gradient(180deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.08) 100%); }
}

/* wide (Join Live Class) */
.gloss-wide { grid-column: span 2; flex-direction: row; align-items: center; justify-content: flex-start; min-height: 96px; gap: 14px; }
.gloss-wide .gloss-icon { width: 56px; height: 56px; font-size: 1.6rem; flex: none; }
.gloss-wide .gloss-text strong { font-size: 1.05rem; }
@media (min-width: 768px) { .gloss-wide { min-height: 128px; padding: 18px 22px; } .gloss-wide .gloss-text strong { font-size: 1.2rem; } }

/* ── Accent icons in sidebar / More sheet ── */
.side-link.has-accent i { color: color-mix(in srgb, var(--a1) 70%, #fff); }
.side-link.has-accent.active i { color: var(--gold); }
.sheet-group { font-size: .66rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; margin: 4px 4px 10px; }
.sheet-grid + .sheet-group { margin-top: 18px; }
.sheet-item.has-accent .sheet-icon {
	color: #fff; background: linear-gradient(145deg, var(--a1), var(--a2));
	box-shadow: 0 6px 14px -6px var(--a2), inset 0 1px 0 rgba(255,255,255,.35);
}
.sheet-item.has-accent.active .sheet-icon { outline: 3px solid var(--gold); outline-offset: 2px; }
.sheet-logout { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 12px; border-radius: 14px; background: var(--danger-bg); color: var(--danger); font-weight: 700; font-size: .86rem; }

/* ── Coming-soon page ── */
.soon {
	--a1: #1A2A4A; --a2: #243558;
	position: relative; overflow: hidden; text-align: center; color: #fff;
	padding: 44px 22px 34px; border-radius: 24px;
	background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--a1) 80%, #fff) 0%, var(--a1) 40%, var(--a2) 100%);
	box-shadow: 0 18px 40px -16px var(--a2);
}
.soon::before { content: ''; position: absolute; inset: 0 0 60% 0; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent); pointer-events: none; }
.soon-orb {
	width: 92px; height: 92px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 30px; font-size: 2.6rem;
	background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 24px rgba(0,0,0,.18);
	animation: float 3.5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px); } }
.soon-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; background: rgba(255,255,255,.2); font-size: .72rem; font-weight: 700; letter-spacing: .5px; }
.soon h2 { font-size: 1.45rem; font-weight: 800; margin: 12px 0 6px; }
.soon p { font-size: .88rem; opacity: .9; max-width: 420px; margin: 0 auto 20px; }
.soon .btn-light { color: var(--a2); }

/* ── Login / forgot ── */
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.label-row label { margin-bottom: 6px; }
.forgot-link { font-size: .78rem; font-weight: 600; color: var(--warning); }
.forgot-link:hover { text-decoration: underline; }
.login-help a { color: var(--navy); }
.back-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.back-link:hover { color: var(--navy); }
.steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 18px; }
.steps i { width: 40px; height: 2px; background: var(--line); }
.step { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; background: var(--bg); color: var(--muted); transition: .25s; }
.step.active { background: var(--navy); color: var(--gold); }
.login-card form > h2 { font-size: 1.3rem; font-weight: 800; }
.login-card form > p { font-size: .86rem; margin: 4px 0 20px; }
.otp-input { letter-spacing: .6em; font-weight: 800; font-size: 1.2rem !important; font-family: ui-monospace, Menlo, monospace; }
.form-alert i { margin-right: 4px; }

/* ═════════════════════════════════════════════════════════════
   v1.2 — Learning pages (live class, videos, files, faculty,
   connect teacher, notices, mock tests, exam screen)
═════════════════════════════════════════════════════════════ */
.chip-live { background: #fee2e2; color: #dc2626; }
.chip-live .pulse { width: 6px; height: 6px; }
.btn-live { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; box-shadow: 0 8px 18px -8px #b91c1c; }
.btn-live:hover { filter: brightness(1.05); }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 800; box-shadow: 0 6px 16px -6px rgba(240,165,0,.8); }
.btn-gold:hover { background: var(--gold-lt); }
.btn-sm { padding: 7px 12px; font-size: .78rem; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.back-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.back-inline:hover { color: var(--navy); }
.icon-btn-light { background: rgba(255,255,255,.12); color: #fff; }
.link-more { font-size: .78rem; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 2px; }
.text-muted .text-muted, .group-title .text-muted { font-weight: 500; }

/* ── Live class ── */
.lc-list { display: flex; flex-direction: column; gap: 12px; }
.lc-card { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); border: 1px solid rgba(233,237,245,.7); }
.lc-card.is-live { border-color: #fecaca; box-shadow: 0 10px 26px -12px rgba(220,38,38,.45); background: linear-gradient(135deg, #fff 60%, #fff5f5); }
.lc-card.is-over { opacity: .65; }
.lc-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: linear-gradient(145deg, #ef4444, #b91c1c); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.lc-body { flex: 1; min-width: 0; }
.lc-title { font-size: .98rem; font-weight: 700; }
.lc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.lc-meta i { margin-right: 4px; color: var(--gold); }
.lc-desc { font-size: .8rem; color: #4b5563; margin-top: 6px; }
.lc-action { flex: none; }
@media (max-width: 520px) { .lc-card { flex-wrap: wrap; } .lc-left { order: 0; } .lc-action { width: 100%; } .lc-action .btn { width: 100%; } }

/* ── Videos ── */
.vid-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .vid-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .vid-grid { grid-template-columns: repeat(3, 1fr); } }
.vid-card { display: flex; gap: 12px; align-items: stretch; text-align: left; background: #fff; border: 1px solid rgba(233,237,245,.7); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .2s; font: inherit; color: inherit; }
.vid-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(109,40,217,.45); }
.vid-thumb { position: relative; flex: none; width: 112px; aspect-ratio: 16/10; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 2rem; background: linear-gradient(145deg, #8b5cf6, #6d28d9); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.vid-thumb i { filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.vid-tag { position: absolute; left: 6px; bottom: 6px; font-size: .6rem; font-weight: 800; background: rgba(0,0,0,.35); padding: 2px 6px; border-radius: 6px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 2px 0; }
.vid-info strong { font-size: .88rem; line-height: 1.3; }
.vid-info small { font-size: .74rem; color: var(--muted); }
.vid-date { margin-top: auto; }
.player .player-panel { position: absolute; left: 50%; top: 50%; width: min(960px, 96vw); transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: .25s var(--ease); background: #0b1220; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.player.open .player-panel { transform: translate(-50%, -50%); opacity: 1; }
.player-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #fff; }
.player-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.player-frame { position: relative; aspect-ratio: 16/9; background: #000; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-note { font-size: .74rem; color: rgba(255,255,255,.55); padding: 8px 12px 10px; }

/* ── Files (practice / study) ── */
.doc-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-icon { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; }
.doc-icon.is-pdf { background: #fee2e2; color: #dc2626; }
.doc-icon.is-doc { background: #dbeafe; color: #2563eb; }
.doc-main { flex: 1; min-width: 0; }
.doc-main strong { display: block; font-size: .9rem; }
.doc-main small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.doc-main p { font-size: .78rem; color: #4b5563; margin-top: 4px; }
.doc-actions { display: flex; gap: 6px; flex: none; }
@media (max-width: 520px) { .doc-row { flex-wrap: wrap; } .doc-actions { width: 100%; padding-left: 56px; } .doc-actions .btn { flex: 1; } }

/* ── Faculty ── */
.fac-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .fac-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .fac-grid { grid-template-columns: repeat(3, 1fr); } }
.fac-card { display: flex; flex-direction: column; }
.fac-top { display: flex; gap: 14px; align-items: center; }
.fac-photo { width: 72px; height: 72px; flex: none; border-radius: 22px; object-fit: cover; box-shadow: 0 8px 18px -8px rgba(14,116,144,.6); }
.fac-initials { display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: #fff; background: linear-gradient(145deg, #06b6d4, #0e7490); }
.fac-top h3 { font-size: 1rem; }
.fac-desig { font-size: .8rem; color: #0e7490; font-weight: 600; }
.fac-qual { font-size: .76rem; color: var(--muted); display: flex; gap: 5px; margin-top: 2px; }
.fac-row { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; padding-top: 12px; margin-top: 12px; border-top: 1px dashed var(--line); }
.fac-row span { color: var(--muted); }
.fac-bio { font-size: .82rem; color: #4b5563; margin-top: 10px; }
.fac-card .btn-block { margin-top: auto !important; }

/* ── Connect with teacher ── */
.ct-card { max-width: 640px; }
.select-wrap select { flex: 1; width: 100%; border: 0; background: transparent; padding: 14px 14px 14px 42px; font: inherit; font-size: 16px; color: var(--text); outline: none; appearance: none; -webkit-appearance: none; border-radius: 14px; }
.select-wrap::after { content: '\F282'; font-family: 'bootstrap-icons'; position: absolute; right: 14px; color: #9aa3b5; pointer-events: none; }
.textarea { width: 100%; border: 1.5px solid var(--line); background: #F7F9FC; border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text); resize: vertical; min-height: 140px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.textarea:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(240,165,0,.15); }
.textarea.invalid { border-color: var(--danger); }
label.label-row { display: flex; }
.msg-body { padding: 4px 16px 14px 70px; font-size: .86rem; color: #374151; white-space: pre-wrap; }

/* ── Notices ── */
.notice-list { display: flex; flex-direction: column; gap: 10px; }
.notice { padding: 0; overflow: hidden; }
.notice summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.notice summary::-webkit-details-marker { display: none; }
.notice.is-important { border-left: 4px solid var(--danger); }
.notice-date, .ns-date { flex: none; width: 48px; text-align: center; border-radius: 12px; background: var(--gold-pale); color: var(--warning); font-size: .66rem; font-weight: 700; text-transform: uppercase; padding: 6px 0; line-height: 1.1; }
.notice-date b, .ns-date b { display: block; font-size: 1.15rem; color: var(--navy); }
.notice-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.notice-head strong { font-size: .94rem; }
.notice-caret { color: var(--muted); transition: transform .2s; }
.notice[open] .notice-caret { transform: rotate(180deg); }
.notice-body { padding: 0 16px 16px 76px; }
@media (max-width: 520px) { .notice-body { padding-left: 16px; } }
.notice-strip .ns-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--line); }
.notice-strip .ns-row:first-of-type { border-top: 0; }
.ns-date { width: 42px; padding: 4px 0; }
.ns-date b { font-size: 1rem; }
.ns-title { flex: 1; min-width: 0; font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-row.is-important .ns-title { color: #991b1b; }
.ns-row.is-important .ns-title i { color: var(--danger); margin-right: 4px; }
.ns-row > .bi-chevron-right { color: var(--muted); font-size: .8rem; }

/* ── Mock tests ── */
.mt-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .mt-grid { grid-template-columns: repeat(2, 1fr); } }
.mt-card { display: flex; flex-direction: column; gap: 12px; }
.mt-card.mt-live { border-color: #fde68a; box-shadow: 0 12px 28px -14px rgba(217,119,6,.55); }
.mt-top { display: flex; gap: 12px; align-items: flex-start; }
.mt-icon { width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 1.25rem; color: #fff; background: linear-gradient(145deg, #f59e0b, #d97706); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.mt-icon.big { width: 64px; height: 64px; font-size: 1.8rem; border-radius: 20px; margin: 0 auto 10px; }
.mt-title { font-size: 1rem; font-weight: 700; }
.mt-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mt-meta > div { background: var(--bg); border-radius: 12px; padding: 8px 10px; text-align: center; }
.mt-meta small { display: block; font-size: .68rem; color: var(--muted); }
.mt-meta strong { font-size: .92rem; }
.mt-window { font-size: .78rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.mt-window i { color: var(--gold); }
.mt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }
.mt-score { font-size: .9rem; color: var(--muted); }
.mt-score b { font-size: 1.3rem; color: var(--navy); }
.mt-countdown { font-size: .82rem; font-weight: 600; color: var(--info); }
.mt-ended { opacity: .85; }

/* result */
.result-hero { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 22px; color: #fff; box-shadow: 0 16px 34px -16px rgba(13,26,46,.6); }
.result-hero.is-pass { background: radial-gradient(120% 140% at 0 0, #22c55e, #15803d 60%, #14532d); }
.result-hero.is-fail { background: radial-gradient(120% 140% at 0 0, #f97316, #c2410c 60%, #7c2d12); }
.result-hero.is-neutral { background: radial-gradient(120% 140% at 0 0, #2d4374, var(--navy) 60%, var(--navy-dk)); }
.result-hero.is-pending { flex-direction: column; text-align: center; background: radial-gradient(120% 140% at 50% 0, #2d4374, var(--navy) 60%, var(--navy-dk)); }
.result-big-icon { font-size: 2.6rem; color: var(--gold); }
.result-note { font-size: .86rem; opacity: .9; }
.result-hero h2 { font-size: 1.15rem; font-weight: 800; margin: 6px 0 2px; }
.result-hero p { font-size: .8rem; opacity: .85; }
.result-hero .chip { background: rgba(255,255,255,.95); }
.ring { --p: 0; flex: none; width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center;
	background: conic-gradient(var(--gold-lt) calc(var(--p) * 1%), rgba(255,255,255,.18) 0); }
.ring > div { width: 84px; height: 84px; border-radius: 50%; background: rgba(13,26,46,.35); display: flex; flex-direction: column; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.ring b { font-size: 1.5rem; line-height: 1; }
.ring small { font-size: .68rem; opacity: .8; }
.result-strip { margin-top: 0; }
.result-strip > div { background: #fff; box-shadow: var(--shadow); }
.review-list { display: flex; flex-direction: column; gap: 10px; }
.review { border-left: 4px solid #c7cedb; }
.review.is-right { border-left-color: var(--success); }
.review.is-wrong { border-left-color: var(--danger); }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.q-no { font-weight: 800; color: var(--navy); background: var(--gold-pale); padding: 2px 10px; border-radius: 8px; font-size: .8rem; }
.q-text { font-size: .98rem; line-height: 1.6; white-space: pre-wrap; font-weight: 500; }
.review-opts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.review-opts li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: .86rem; }
.review-opts li.is-correct { background: var(--success-bg); color: #166534; font-weight: 600; }
.review-opts li.is-mine-wrong { background: var(--danger-bg); color: #991b1b; }
.opt-key { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .78rem; background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.review-exp { margin-top: 10px; font-size: .82rem; color: #92400e; background: var(--gold-pale); border-radius: 10px; padding: 8px 10px; display: flex; gap: 6px; }

/* ── Exam screen ── */
.exam-page { background: var(--bg); }
.exam-intro { max-width: 620px; margin: 0 auto; padding: calc(16px + var(--safe-t)) 16px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.intro-card { text-align: center; padding: 24px 20px; }
.intro-card h1 { font-size: 1.3rem; font-weight: 800; margin: 10px 0 16px; }
.intro-rules { list-style: none; text-align: left; margin: 18px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .86rem; }
.intro-rules li { display: flex; gap: 10px; }
.intro-rules i { color: var(--gold); font-size: 1.05rem; flex: none; }
.intro-note { text-align: left; background: var(--gold-pale); border-radius: 12px; padding: 12px 14px; font-size: .86rem; margin-bottom: 16px; }
.exam { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.exam-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 10px; background: var(--navy); color: #fff; box-shadow: 0 2px 12px rgba(13,26,46,.25); }
.exam-title { flex: 1; display: flex; flex-direction: column; }
.exam-title strong { font-size: .92rem; }
.exam-title small { font-size: .7rem; color: rgba(255,255,255,.6); }
.exam-timer { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: rgba(255,255,255,.12); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1rem; }
.exam-timer.is-low { background: #f59e0b; color: #1f2937; }
.exam-timer.is-critical { background: #dc2626; color: #fff; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .75; } }
.exam-bar .btn-gold span { display: none; }
@media (min-width: 640px) { .exam-bar .btn-gold span { display: inline; } }
.exam-body { flex: 1; display: grid; gap: 16px; width: 100%; max-width: 1180px; margin: 0 auto; padding: 14px 14px calc(90px + var(--safe-b)); }
.exam-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.q-progress { height: 5px; border-radius: 5px; background: #e5e9f2; overflow: hidden; }
.q-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-lt)); transition: width .3s var(--ease); }
.q-card { padding: 18px; }
.q-card.q-anim { animation: pageIn .25s var(--ease); }
.q-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.save-state { margin-left: auto; font-size: .7rem; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; color: var(--muted); }
.save-state.is-saved { color: var(--success); }
.save-state.is-offline { color: var(--danger); }
.save-state.is-saving i { animation: spin 1s linear infinite; }
.q-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: .95rem; color: var(--text); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.opt:hover { border-color: #c7d2fe; background: #fafbff; }
.opt:active { transform: scale(.99); }
.opt .opt-key { width: 32px; height: 32px; background: var(--bg); box-shadow: none; }
.opt-text { flex: 1; line-height: 1.45; }
.opt.is-picked { border-color: var(--navy); background: #eef2fb; box-shadow: 0 0 0 3px rgba(26,42,74,.08); }
.opt.is-picked .opt-key { background: var(--navy); color: var(--gold); }
.q-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto auto 1fr; gap: 8px; padding: 10px 14px calc(10px + var(--safe-b)); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.q-nav .btn span { display: none; }
@media (min-width: 420px) { .q-nav .btn span { display: inline; } }
.q-grid-btn span { display: inline !important; font-variant-numeric: tabular-nums; }
.palette-panel h3 { font-size: .95rem; margin-bottom: 12px; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 8px; }
.pal { aspect-ratio: 1; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: .84rem; color: var(--muted); cursor: pointer; }
.pal.is-done { background: var(--success); border-color: var(--success); color: #fff; }
.pal.is-cur { outline: 3px solid var(--gold); outline-offset: 1px; color: var(--navy); }
.pal.is-done.is-cur { color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: .72rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line); background: #fff; display: inline-block; }
.lg-done { background: var(--success); border-color: var(--success); }
.lg-cur { outline: 2px solid var(--gold); }
.confirm-panel h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.confirm-panel p { font-size: .9rem; color: #4b5563; line-height: 1.6; }
@media (min-width: 992px) {
	.exam-body { grid-template-columns: 1fr 300px; padding-bottom: 32px; }
	.q-nav { position: static; background: none; border: 0; padding: 0; backdrop-filter: none; }
	.q-grid-btn { display: none; }
	.exam-side.sheet { position: static; visibility: visible; display: block; z-index: auto; }
	.exam-side .sheet-backdrop, .exam-side .sheet-handle { display: none; }
	.exam-side .sheet-panel { position: sticky; top: 84px; transform: none; border-radius: var(--radius); box-shadow: var(--shadow); max-height: calc(100vh - 110px); padding: 18px; }
}
@media (max-width: 991px) {
	.player.open .player-panel { width: 100vw; border-radius: 0; }
}

/* v1.3 — live class copy link, locked materials */
.lc-action { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.lc-copy { font-size: .72rem; padding: 4px 8px; color: var(--muted); }
@media (max-width: 520px) { .lc-action { flex-direction: row; } .lc-action .btn { flex: 1 1 auto; width: auto; min-width: 0; } .lc-action .lc-copy { flex: 0 0 auto; } }
.doc-icon { position: relative; }
.doc-lock { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; background: #f59e0b; color: #fff; border: 2px solid #fff; }
.doc-row.is-locked .doc-icon { filter: grayscale(.85); opacity: .7; }
.doc-row.is-locked .doc-main strong { color: #6b7280; }
.doc-locked-note { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--warning); background: var(--warning-bg); padding: 6px 10px; border-radius: 10px; }

/* v1.3.1 — view-only materials + document viewer */
.view-only { display: inline-flex; align-items: center; gap: 3px; color: var(--warning); font-weight: 600; }
.viewer-page { background: #e9edf4; }
.viewer { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.viewer-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 12px 8px; background: var(--navy); color: #fff; box-shadow: 0 2px 12px rgba(13,26,46,.25); }
.viewer-title { flex: 1; display: flex; flex-direction: column; }
.viewer-title strong { font-size: .92rem; }
.viewer-title small { font-size: .7rem; color: rgba(255,255,255,.6); }
.viewer-zoom { display: flex; gap: 4px; }
.viewer-body { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 12px calc(28px + var(--safe-b)); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overflow-x: auto; }
.viewer-sheet { position: relative; background: #fff; box-shadow: 0 4px 18px rgba(13,26,46,.12); border-radius: 6px; max-width: 100%; }
.viewer-sheet::after { content: ''; position: absolute; inset: 0; background-image: var(--wm); background-repeat: repeat; pointer-events: none; border-radius: 6px; }
.pdf-sheet { display: grid; place-items: center; min-width: 200px; }
.pdf-sheet canvas { display: block; max-width: none; border-radius: 6px; }
.doc-sheet { width: min(860px, 100%); padding: clamp(18px, 5vw, 48px); font-size: .95rem; line-height: 1.65; color: #1f2937; }
.doc-sheet h1, .doc-sheet h2, .doc-sheet h3 { margin: 1em 0 .5em; line-height: 1.3; }
.doc-sheet p { margin: 0 0 .8em; }
.doc-sheet table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.doc-sheet td, .doc-sheet th { border: 1px solid #d1d5db; padding: 6px 8px; }
.doc-sheet img { max-width: 100%; height: auto; }
.viewer-status { margin: 18vh auto 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.viewer-status.is-error { color: var(--danger); }
.spinner { width: 20px; height: 20px; border: 2.5px solid #cbd5e1; border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.pdf-sheet > .spinner { margin: 40px; }
.viewer-page-no { position: fixed; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); background: rgba(13,26,46,.75); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; z-index: 20; }
@media (max-width: 420px) { .hide-xs { display: none; } }
@media print { body.viewer-page * { display: none !important; } body.viewer-page::after { content: 'Printing is disabled for this document.'; display: block; padding: 40px; font: 16px sans-serif; } }
