/* Teacher platform demo — design tokens + components. Mobile first, RTL. */
:root {
  --bg: #F5F5FA; --surface: #FFFFFF; --surface-2: #EEEEF6; --ink: #14152B; --ink-2: #3B3D5C; --muted: #686B86; --line: #E5E5F0;
  --brand: #4F46E5; --brand-d: #3730A3; --brand-soft: #EEF0FF; --amber: #F59E0B; --amber-soft: #FEF3C7; --amber-ink: #92400E;
  --ok: #15803D; --ok-soft: #E7F6EC; --bad: #DC2626; --bad-soft: #FDECEC;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 26px;
  --sh-1: 0 1px 2px rgba(20,21,43,.05), 0 1px 0 rgba(20,21,43,.04); --sh-2: 0 12px 32px rgba(20,21,43,.12);
  --ease: cubic-bezier(.2, 0, 0, 1); --t-fast: 140ms; --t-med: 260ms; --t-slow: 420ms;
  --nav-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-tap-highlight-color: transparent; }
body { font-family: 'Cairo', system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.65; min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-decoration: none; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.ic { width: 22px; height: 22px; flex: none; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: 980px; margin: 0 auto; padding: 12px 14px calc(var(--nav-h) + var(--safe-b) + 18px); }
.view { animation: viewIn var(--t-slow) var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- top + tab bar ---------- */
.top { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: rgba(245,245,250,.88); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .title { flex: 1; font-weight: 800; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; line-height: 1.3; min-width: 0; }
.brand small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.avatar { width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(135deg, var(--brand), #7C3AED); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; box-shadow: 0 6px 14px rgba(79,70,229,.3); }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; transition: background var(--t-fast), transform var(--t-fast) var(--ease); position: relative; flex: none; }
.icon-btn:active { transform: scale(.92); background: var(--surface-2); }
.icon-btn .dot { position: absolute; top: 10px; left: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--bg); }
.pill-btn { height: 40px; padding: 0 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.95); backdrop-filter: blur(14px); border-top: 1px solid var(--line); transition: transform var(--t-med) var(--ease); }
.tabbar.hide { transform: translateY(110%); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; font-weight: 700; color: var(--muted); position: relative; }
.tab.on { color: var(--brand); }
.tab.on::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }

/* ---------- buttons + fields ---------- */
.btn { width: 100%; height: 54px; border-radius: 16px; background: var(--brand); color: #fff; font-weight: 800; font-size: 16.5px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform var(--t-fast) var(--ease), opacity var(--t-med); box-shadow: 0 8px 18px rgba(79,70,229,.25); }
.btn:active { transform: scale(.98); }
.btn.amber { background: var(--amber); color: #1F1300; box-shadow: 0 8px 18px rgba(245,158,11,.28); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.dark { background: var(--ink); box-shadow: none; }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn .ic { width: 20px; height: 20px; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.card { background: var(--surface); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--sh-1); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; color: var(--ink-2); }
.field input { width: 100%; height: 52px; border-radius: var(--r-md); border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--bg); padding: 0 14px; font-size: 16px; outline: none; transition: box-shadow var(--t-fast), background var(--t-fast); }
.field input:focus { box-shadow: inset 0 0 0 2px var(--brand); background: #fff; }
.otp { display: flex; gap: 10px; justify-content: center; direction: ltr; margin: 8px 0 16px; }
.otp input { width: 58px; height: 64px; text-align: center; font-size: 26px; font-weight: 800; border-radius: var(--r-md); border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--bg); outline: none; transition: box-shadow var(--t-fast); }
.otp input:focus { box-shadow: inset 0 0 0 2px var(--brand); background: #fff; }
.otp input.filled { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); }
.hint { color: var(--muted); font-size: 13.5px; text-align: center; }
.hint b { color: var(--ink); }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 22px 18px 20px; color: #fff; background: radial-gradient(120% 90% at 90% 0%, #6D5CF6 0%, #4338CA 45%, #1E1B4B 100%); }
.hero::before { content: 'V = I R'; position: absolute; left: -6px; bottom: -16px; font-size: 80px; font-weight: 800; opacity: .07; direction: ltr; white-space: nowrap; }
.hero .t { display: flex; gap: 12px; align-items: center; }
.hero .avatar { width: 60px; height: 60px; font-size: 24px; background: #fff; color: var(--brand); border-radius: 18px; box-shadow: none; }
.hero h1 { font-size: 25px; line-height: 1.3; font-weight: 800; }
.hero p { opacity: .85; font-size: 15px; margin: 12px 0 0; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.nums div { background: rgba(255,255,255,.1); border-radius: 14px; padding: 8px 4px; text-align: center; }
.nums b { display: block; font-size: 20px; font-weight: 800; }
.nums span { font-size: 12px; opacity: .8; }
.feats { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 720px) { .feats { grid-template-columns: repeat(2, 1fr); } }
.feat { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--sh-1); animation: rise var(--t-slow) var(--ease) both; }
.feat .fi { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.feat b { display: block; font-size: 15px; }
.feat span { color: var(--muted); font-size: 13px; }

/* ---------- dashboard ---------- */
.hello { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.hello .me-av { width: 50px; height: 50px; border-radius: 16px; background: var(--amber-soft); color: var(--amber-ink); display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.hello h2 { font-size: 21px; font-weight: 800; line-height: 1.3; }
.hello p { color: var(--muted); font-size: 13.5px; }
.streak { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; background: var(--surface); box-shadow: var(--sh-1); padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #EA580C; flex: none; }
.streak .ic { width: 16px; height: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--surface); border-radius: var(--r-lg); padding: 12px 10px; box-shadow: var(--sh-1); text-align: center; }
.stat b { display: block; font-size: 21px; font-weight: 800; line-height: 1.3; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 700; }
.continue { display: flex; gap: 12px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 14px; margin-bottom: 12px; width: 100%; text-align: right; position: relative; overflow: hidden; }
.continue::after { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,.5), transparent 70%); left: -40px; top: -50px; }
.continue .pl { width: 52px; height: 52px; border-radius: 16px; background: var(--amber); color: #1F1300; display: grid; place-items: center; flex: none; z-index: 1; }
.continue .pl .ic { width: 22px; height: 22px; margin-right: -3px; }
.continue div { flex: 1; z-index: 1; min-width: 0; }
.continue small { display: block; opacity: .7; font-size: 12px; }
.continue b { display: block; font-size: 16px; }
.continue .mini { height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); margin-top: 8px; overflow: hidden; }
.continue .mini i { display: block; height: 100%; width: 38%; background: var(--amber); border-radius: 3px; }
.live-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--r-lg); padding: 12px 14px; box-shadow: var(--sh-1); margin-bottom: 12px; }
.live-card .li { width: 44px; height: 44px; border-radius: 14px; background: var(--bad-soft); color: var(--bad); display: grid; place-items: center; flex: none; }
.live-card div { flex: 1; }
.live-card b { display: block; font-size: 14.5px; }
.live-card small { color: var(--muted); font-size: 12.5px; }
.live-card button { height: 38px; padding: 0 12px; border-radius: 11px; background: var(--surface-2); font-weight: 800; font-size: 13px; }
.sec-title { font-weight: 800; font-size: 17px; margin: 18px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.sec-title a, .sec-title small { color: var(--brand); font-weight: 700; font-size: 13px; }
.courses { display: grid; gap: 12px; }
@media (min-width: 720px) { .courses { grid-template-columns: repeat(3, 1fr); } }
.course { display: block; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; text-align: right; width: 100%; animation: rise var(--t-slow) var(--ease) both; transition: transform var(--t-fast) var(--ease); }
.course:active { transform: scale(.985); }
.cover { height: 92px; position: relative; display: flex; align-items: flex-end; padding: 12px 14px; color: #fff; overflow: hidden; }
.cover .big { position: absolute; left: -10px; top: -14px; width: 120px; height: 120px; opacity: .18; }
.cover .chip { position: relative; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); padding: 3px 10px; border-radius: 999px; }
.course .cb { padding: 12px 14px 14px; display: grid; gap: 8px; }
.course .cb b { font-size: 15.5px; line-height: 1.4; }
.bar { height: 7px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; width: 0; transition: width 1s var(--ease); }
.course .row { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.course.locked .cover { filter: grayscale(.6); }
.lock-chip { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 800; background: rgba(0,0,0,.35); padding: 3px 9px; border-radius: 999px; }
.lock-chip .ic { width: 13px; height: 13px; }

/* ---------- course page ---------- */
.c-head { border-radius: var(--r-xl); padding: 18px; color: #fff; position: relative; overflow: hidden; }
.c-head .big { position: absolute; left: -16px; bottom: -20px; width: 150px; height: 150px; opacity: .15; }
.c-head h1 { font-size: 22px; font-weight: 800; line-height: 1.35; position: relative; }
.c-head .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; position: relative; }
.c-head .meta span { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.16); padding: 4px 10px; border-radius: 999px; }
.c-head .meta .ic { width: 14px; height: 14px; }
.c-head .bar { background: rgba(255,255,255,.2); margin-top: 14px; }
.c-head .bar i { background: #fff; }
.seg { display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; margin: 14px 0 10px; }
.seg button { flex: 1; height: 40px; border-radius: 11px; font-weight: 800; font-size: 14px; color: var(--muted); transition: all var(--t-med) var(--ease); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.lessons { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.lesson { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); width: 100%; text-align: right; transition: background var(--t-fast); }
.lesson:active { background: var(--bg); }
.lesson:last-child { border-bottom: 0; }
.lesson .n { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; flex: none; }
.lesson.watched .n { background: var(--ok-soft); color: var(--ok); }
.lesson.next .n { background: var(--brand); color: #fff; }
.lesson .n .ic { width: 18px; height: 18px; }
.lesson .t { flex: 1; min-width: 0; }
.lesson .t b { display: block; font-size: 14.5px; font-weight: 700; }
.lesson .t small { color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.lesson .t small .ic { width: 13px; height: 13px; }
.lesson .go { color: var(--muted); transform: scaleX(-1); width: 18px; height: 18px; }
.tag-next { font-size: 11px; font-weight: 800; color: var(--brand); background: var(--brand-soft); padding: 1px 8px; border-radius: 999px; }

/* ---------- player ---------- */
.player { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: #0F2A1F; box-shadow: var(--sh-2); }
.board { position: absolute; inset: 0; padding: 18px 22px; color: #F1F5EE; display: flex; flex-direction: column; justify-content: center; gap: 4px; font-size: clamp(14px, 4.2vw, 26px); font-weight: 700; background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.07), transparent 60%), #123528; }
.board div { opacity: 0; transform: translateY(6px); transition: all .5s var(--ease); }
.board div.on { opacity: 1; transform: none; }
.board div:first-child { color: #FCD34D; font-size: 1.15em; }
.board .f { direction: ltr; text-align: right; }
.wm { position: absolute; font-size: 12px; color: rgba(255,255,255,.38); font-weight: 700; pointer-events: none; transition: all 1.2s var(--ease); white-space: nowrap; }
.big-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.28); transition: opacity var(--t-med); }
.big-play span { width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.96); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.big-play .ic { width: 28px; height: 28px; margin-right: -4px; }
.player.playing .big-play { opacity: 0; pointer-events: none; }
.controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; display: flex; align-items: center; gap: 10px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: 12px; direction: ltr; }
.controls button { color: #fff; width: 28px; height: 28px; display: grid; place-items: center; }
.controls .ic { width: 18px; height: 18px; }
.track { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: var(--amber); }
.speed { font-weight: 800; font-size: 11px; background: rgba(255,255,255,.18); border-radius: 6px; padding: 1px 6px; }
.l-title { margin: 14px 0 2px; font-size: 21px; font-weight: 800; line-height: 1.35; }
.l-meta { color: var(--muted); font-size: 13.5px; }
.notes { background: var(--surface); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--sh-1); margin-top: 12px; }
.notes h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.notes li { margin: 4px 18px 0 0; font-size: 14px; color: var(--ink-2); }
.files { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.file { background: var(--surface); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--sh-1); display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 14px; text-align: right; }
.file .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bad-soft); color: var(--bad); flex: none; }
.file .fi.hw { background: var(--brand-soft); color: var(--brand); }
.file small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.actions2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.actions2 .btn { height: 50px; font-size: 15px; }

/* ---------- exam ---------- */
.ex-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ex-head small { color: var(--muted); font-weight: 700; }
.timer { display: flex; align-items: center; gap: 6px; font-weight: 800; background: var(--surface); box-shadow: var(--sh-1); border-radius: 12px; padding: 6px 12px; font-variant-numeric: tabular-nums; }
.timer .ic { width: 17px; height: 17px; color: var(--brand); }
.timer.low { color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.timer.low .ic { color: var(--bad); }
.qprog { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-bottom: 14px; }
.qprog i { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width var(--t-slow) var(--ease); }
.qcard { background: var(--surface); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--sh-1); animation: rise var(--t-med) var(--ease) both; }
.q { font-size: 18.5px; font-weight: 800; margin: 4px 0 14px; line-height: 1.55; }
.opts { display: grid; gap: 10px; }
.opt { min-height: 58px; padding: 10px 14px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); font-weight: 700; text-align: right; display: flex; align-items: center; gap: 12px; transition: all var(--t-fast) var(--ease); width: 100%; }
.opt .k { width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 14px; flex: none; transition: all var(--t-fast); }
.opt.on { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); }
.opt.on .k { background: var(--brand); color: #fff; }
.opt:active { transform: scale(.99); }
.qnav { display: flex; gap: 8px; justify-content: center; margin: 16px 0 10px; }
.qnav button { width: 40px; height: 40px; border-radius: 12px; font-weight: 800; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.qnav button.ans { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.qnav button.cur { background: var(--brand); color: #fff; box-shadow: none; }
.ex-btns { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }

.modal { position: fixed; inset: 0; background: rgba(20,21,43,.5); display: grid; place-items: end center; z-index: 60; opacity: 0; pointer-events: none; transition: opacity var(--t-med); padding: 12px; }
@media (min-width: 600px) { .modal { place-items: center; } }
.modal.on { opacity: 1; pointer-events: auto; }
.modal .card { width: 100%; max-width: 420px; transform: translateY(24px); transition: transform var(--t-slow) var(--ease); text-align: center; }
.modal.on .card { transform: none; }
.modal h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.modal p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.modal .btns { display: grid; gap: 8px; }

/* ---------- result ---------- */
.res { text-align: center; padding-top: 6px; }
.score { width: 156px; height: 156px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: conic-gradient(var(--ok) calc(var(--p, 0) * 1%), var(--surface-2) 0); }
.score div { width: 128px; height: 128px; border-radius: 50%; background: var(--bg); display: grid; place-content: center; }
.score b { font-size: 36px; font-weight: 800; line-height: 1; direction: ltr; }
.score span { color: var(--muted); font-size: 13px; font-weight: 700; }
.res h1 { font-size: 23px; font-weight: 800; }
.res-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.res-stats div { background: var(--surface); border-radius: var(--r-md); padding: 10px; box-shadow: var(--sh-1); }
.res-stats b { display: block; font-size: 19px; font-weight: 800; }
.res-stats span { font-size: 12px; color: var(--muted); font-weight: 700; }
.review { text-align: right; display: grid; gap: 8px; }
.rv { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: var(--r-md); padding: 11px 12px; font-size: 14px; box-shadow: var(--sh-1); }
.rv .m { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.rv .m .ic { width: 16px; height: 16px; }
.rv .m.y { background: var(--ok-soft); color: var(--ok); }
.rv .m.n { background: var(--bad-soft); color: var(--bad); }
.rv small { display: block; color: var(--muted); font-weight: 600; }
.wa { text-align: right; margin: 16px auto 0; background: #E7F6EC; border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-size: 14px; box-shadow: var(--sh-1); opacity: 0; transform: translateY(10px); transition: all var(--t-slow) var(--ease); }
.wa.on { opacity: 1; transform: none; }
.wa .from { font-weight: 800; color: #128C3E; font-size: 13px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall 2.4s cubic-bezier(.3,.6,.4,1) forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .9; } }

/* ---------- lists (exams / profile) ---------- */
.list { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.li-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); width: 100%; text-align: right; }
.li-row:last-child { border: 0; }
.li-row .lic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.li-row div { flex: 1; min-width: 0; }
.li-row b { display: block; font-size: 14.5px; }
.li-row small { color: var(--muted); font-size: 12.5px; }
.badge { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.go { background: var(--brand-soft); color: var(--brand); } .badge.lk { background: var(--surface-2); color: var(--muted); }
.profile { display: flex; gap: 14px; align-items: center; }
.profile .me-av { width: 64px; height: 64px; border-radius: 20px; background: var(--amber-soft); color: var(--amber-ink); display: grid; place-items: center; font-weight: 800; font-size: 26px; }

.toast { position: fixed; top: 70px; left: 50%; transform: translate(-50%, -12px); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: all var(--t-med) var(--ease); z-index: 90; width: max-content; max-width: 92vw; display: flex; gap: 8px; align-items: center; box-shadow: var(--sh-2); }
.toast .ic { width: 18px; height: 18px; color: #4ADE80; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.made { text-align: center; font-size: 12px; color: var(--muted); padding: 20px 0 4px; }
.made b { color: #0B4374; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
