:root {
  --bg: #08111f;
  --panel: rgba(255,255,255,.085);
  --panel-strong: rgba(255,255,255,.13);
  --border: rgba(255,255,255,.16);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --gold: #f6c945;
  --gold-2: #ffe589;
  --teal: #18d0b2;
  --red: #fb7185;
  --green: #34d399;
  --shadow: 0 24px 80px rgba(0,0,0,.36);
  --radius: 28px;
  font-family: Arial, Calibri, system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(5,9,21,.84), rgba(5,9,21,.92)),
    url("/assets/powerbi-hero-banner.png") center top / min(100%, 1920px) auto no-repeat,
    radial-gradient(circle at top left, #10243c 0, #08111f 45%, #050915 100%);
  overflow-x: hidden;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.ambient { position: fixed; width: 520px; height: 520px; border-radius: 999px; filter: blur(30px); opacity: .25; pointer-events: none; }
.ambient-one { background: #f6c945; top: -190px; right: -150px; }
.ambient-two { background: #00c2ff; bottom: -230px; left: -180px; }
.glass-card {
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
}
.app-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0; }
.login-layout { min-height: calc(100vh - 56px); display: grid; grid-template-columns: 1.25fr .85fr; gap: 28px; align-items: center; }
.brand-panel { padding: 48px; position: relative; overflow: hidden; background-image: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.055)), url("/assets/powerbi-hero-banner.png"); background-size: cover; background-position: center; }
.brand-panel > * { position: relative; z-index: 1; }
.brand-panel:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,17,31,.96), rgba(8,17,31,.72)); }
.brand-panel:after { content: ""; position: absolute; inset: auto -60px -90px auto; width: 260px; height: 260px; border-radius: 999px; background: rgba(246,201,69,.20); }
.brand-mark { width: 92px; height: 92px; padding: 14px; border-radius: 26px; background: rgba(255,255,255,.09); border: 1px solid var(--border); margin-bottom: 24px; }
.brand-mark img, .side-brand img { width: 100%; height: 100%; display: block; }
.eyebrow { margin: 0 0 8px; color: var(--gold-2); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(40px, 6vw, 74px); line-height: .95; letter-spacing: -0.05em; margin-bottom: 20px; }
h1 span { color: var(--gold); }
.lead { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 660px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.feature-grid div { padding: 18px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); }
.feature-grid strong { display: block; color: var(--gold); font-size: 30px; }
.feature-grid span { color: var(--muted); font-size: 13px; }
.login-card { padding: 32px; }
.form-head p { color: var(--muted); line-height: 1.5; }
label { display: block; margin: 20px 0; }
label span { display: block; margin-bottom: 8px; color: #d9e3f3; font-weight: 700; }
input { width: 100%; border: 1px solid rgba(255,255,255,.18); background: rgba(4, 10, 22, .65); color: var(--text); border-radius: 16px; padding: 14px 16px; outline: none; transition: border .2s, box-shadow .2s; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(246,201,69,.12); }
.password-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.primary, .secondary, .ghost { border: 0; border-radius: 16px; padding: 14px 18px; font-weight: 800; transition: transform .18s, filter .18s, background .18s; }
.primary { background: linear-gradient(135deg, var(--gold), #f59e0b); color: #121212; }
.secondary { background: rgba(255,255,255,.10); color: var(--text); border: 1px solid var(--border); }
.link-button { display: inline-flex; align-items: center; justify-content: center; }
.ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--border); }
.success { background: linear-gradient(135deg, var(--green), #10b981); color: #042014; }
.primary:hover, .secondary:hover, .ghost:hover { transform: translateY(-1px); filter: brightness(1.06); }
.full { width: 100%; }
.small { padding: 0 14px; }
.hint-box { margin-top: 18px; padding: 14px; border-radius: 18px; color: #d9e3f3; background: rgba(246,201,69,.08); border: 1px solid rgba(246,201,69,.18); font-size: 14px; line-height: 1.45; }
.status { padding: 12px 14px; border-radius: 16px; font-weight: 700; }
.error { color: #fecdd3; background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.26); }
.info { color: #dbeafe; background: rgba(96,165,250,.12); border: 1px solid rgba(96,165,250,.24); }
.dashboard { display: grid; grid-template-columns: 245px 1fr; gap: 24px; align-items: start; }
.side-nav { position: sticky; top: 24px; min-height: calc(100vh - 48px); padding: 20px; display: flex; flex-direction: column; }
.side-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.side-brand img { width: 46px; height: 46px; }
.side-brand span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.side-nav nav { display: grid; gap: 8px; margin-bottom: auto; }
.side-nav a { color: var(--muted); text-decoration: none; padding: 12px 14px; border-radius: 16px; font-weight: 700; }
.side-nav a.active, .side-nav a:hover { color: var(--text); background: rgba(255,255,255,.09); }
.main-panel { display: grid; gap: 20px; }
.topbar { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.topbar h2 { margin-bottom: 0; }
.session-pill { color: #d9fbe7; background: rgba(52,211,153,.10); border: 1px solid rgba(52,211,153,.22); padding: 10px 14px; border-radius: 999px; font-weight: 800; }
.session-pill span { display: inline-block; width: 9px; height: 9px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(52,211,153,.15); margin-right: 8px; }
.hero-card { padding: 34px; display: grid; grid-template-columns: 1fr 310px; gap: 24px; align-items: center; }
.hero-card h1 { font-size: clamp(34px, 4vw, 56px); }
.hero-card p { color: var(--muted); line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.course-card { min-height: 260px; border-radius: 26px; padding: 24px; background: linear-gradient(150deg, rgba(246,201,69,.22), rgba(24,208,178,.10)); border: 1px solid rgba(246,201,69,.24); position: relative; overflow: hidden; }
.course-card > * { position: relative; z-index: 1; }
.course-card:after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 180px; height: 180px; border-radius: 999px; background: rgba(255,255,255,.12); }
.course-emblem { position: absolute; right: 18px; top: 18px; width: 74px; height: 74px; border-radius: 18px; opacity: .82; border: 1px solid rgba(255,255,255,.18); }
.course-badge { display: inline-flex; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.20); padding: 8px 12px; border-radius: 999px; font-weight: 900; color: var(--gold-2); }
.course-card h3 { margin-top: 22px; font-size: 26px; }
.course-card li { margin: 10px 0; color: #edf2fb; }
.quiz-card { padding: 28px; }
.quiz-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.quiz-head h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.22; }
.progress-badge { min-width: 72px; text-align: center; border-radius: 999px; padding: 12px 14px; background: rgba(246,201,69,.15); border: 1px solid rgba(246,201,69,.25); color: var(--gold-2); font-weight: 900; }
.progress-track { height: 12px; border-radius: 999px; background: rgba(255,255,255,.10); overflow: hidden; margin: 18px 0 24px; }
#progressFill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--teal)); border-radius: inherit; transition: width .25s; }
.options-box { display: grid; gap: 12px; }
.option-btn { width: 100%; text-align: left; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.075); color: var(--text); border-radius: 18px; padding: 16px 18px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; transition: transform .18s, border .18s, background .18s; }
.option-btn:hover { transform: translateX(4px); border-color: rgba(246,201,69,.42); }
.option-btn.selected { background: rgba(246,201,69,.17); border-color: var(--gold); }
.option-letter { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.11); font-weight: 900; color: var(--gold-2); }
.quiz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.summary-card { padding: 30px; display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; }
.score-ring { width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) 0deg, rgba(255,255,255,.12) 0deg); box-shadow: inset 0 0 0 14px rgba(4,10,22,.75); }
.score-ring span { font-size: 34px; font-weight: 900; color: var(--gold-2); }
.summary-copy p { color: var(--muted); line-height: 1.6; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.review-list { display: grid; gap: 14px; }
.review-card { padding: 22px; border-radius: 24px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.12); }
.review-card.correct { border-color: rgba(52,211,153,.35); }
.review-card.wrong { border-color: rgba(251,113,133,.35); }
.review-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.review-card h3 { line-height: 1.35; }
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 8px 10px; font-weight: 900; font-size: 12px; }
.tag.correct { background: rgba(52,211,153,.14); color: #bbf7d0; }
.tag.wrong { background: rgba(251,113,133,.14); color: #fecdd3; }
.answer-line { color: var(--muted); margin: 8px 0; }
.answer-line strong { color: var(--text); }
.explanation { margin-top: 12px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); color: #dbeafe; line-height: 1.55; }
.toast { position: fixed; right: 22px; bottom: 22px; background: #101827; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); max-width: 320px; font-weight: 700; z-index: 20; }
.results-shell { max-width: 1180px; }
.admin-login { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; margin-bottom: 18px; }
.results-table-wrap { overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.results-table th, .results-table td { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.12); text-align: left; }
.results-table th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.results-table td { color: var(--text); }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .login-layout, .dashboard, .hero-card, .summary-card { grid-template-columns: 1fr; }
  .side-nav { position: relative; min-height: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .app-shell { width: min(100% - 20px, 1180px); padding: 10px 0; }
  .brand-panel, .login-card, .hero-card, .quiz-card, .summary-card { padding: 22px; border-radius: 22px; }
  .quiz-actions, .hero-actions, .result-actions { flex-direction: column; }
  .quiz-actions button, .hero-actions button, .result-actions button { width: 100%; }
  .admin-login { grid-template-columns: 1fr; }
  h1 { font-size: 38px; }
}
