:root {
    --app-ink: #243449;
    --app-muted: #78869a;
    --app-blue: #3659d9;
    --app-navy: #111b32;
    --app-border: #e7edf5;
    --app-surface: #fff;
    --app-background: #f4f6fa;
}

* { box-sizing: border-box; }

body.app-shell {
    min-height: 100vh;
    color: var(--app-ink);
    background: var(--app-background);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 72px;
    background: linear-gradient(115deg, #0f172a 0%, #172554 55%, #1e3a8a 100%);
    box-shadow: 0 4px 20px rgb(15 23 42 / 18%);
}

.app-navbar-inner {
    width: 100%;
    max-width: 1720px;
    min-height: 72px;
    padding: 8px 30px;
    margin: 0 auto;
}

.app-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.app-brand:hover { color: #fff; }

.app-brand-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 12px;
    background: rgb(255 255 255 / 12%);
    box-shadow: 0 5px 15px rgb(0 0 0 / 15%);
    color: #dbeafe;
    font-size: 20px;
}
.app-brand-icon img { width: 32px; height: 32px; object-fit: contain; }

.app-brand-copy, .app-profile-copy { display: grid; line-height: 1.12; }
.app-brand-title { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.app-brand-subtitle { margin-top: 4px; color: rgb(255 255 255 / 55%); font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.app-nav-links { gap: 4px; margin-left: 22px; }

.app-navbar .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgb(255 255 255 / 72%);
    font-size: 12px;
    font-weight: 650;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.app-navbar .nav-link:hover { transform: translateY(-1px); background: rgb(255 255 255 / 10%); color: #fff; }
.app-navbar .nav-link.active { background: rgb(255 255 255 / 14%); color: #fff; }
.app-navbar .nav-link.active::after { position: absolute; right: 12px; bottom: 3px; left: 12px; height: 2px; border-radius: 3px; background: #60a5fa; content: ""; }
.app-navbar .quiz-link { background: rgb(139 92 246 / 10%); color: rgb(255 255 255 / 85%); }
.app-navbar .quiz-link i { color: #a78bfa; }
.app-navbar .quiz-link.active { background: linear-gradient(135deg, rgb(124 58 237 / 35%), rgb(79 70 229 / 30%)); }

.app-account { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.app-profile {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 5px 10px 5px 5px;
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 14px;
    background: rgb(255 255 255 / 8%);
    color: #fff;
    text-decoration: none;
}
.app-profile:hover, .app-profile.active { background: rgb(255 255 255 / 14%); color: #fff; }
.app-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 11px; background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 4px 12px rgb(0 0 0 / 15%); color: white; font-size: 15px; font-weight: 800; }
.app-profile-role { color: rgb(255 255 255 / 52%); font-size: 9px; letter-spacing: .45px; text-transform: uppercase; }
.app-profile-name { max-width: 140px; overflow: hidden; color: white; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.app-logout { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 10px; background: rgb(255 255 255 / 6%); color: #fff; font-size: 12px; font-weight: 700; transition: .2s; }
.app-logout:hover { border-color: #dc3545; background: #dc3545; }
.app-navbar .navbar-toggler { border-color: rgb(255 255 255 / 18%); }
.app-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgb(96 165 250 / 20%); }

.app-main {
    width: 100%;
    max-width: 1600px;
    min-height: calc(100vh - 144px);
    padding: 30px 32px 42px;
    margin: 0 auto;
}

.app-main > .row:first-child, .app-main > h1:first-child { margin-top: 0; }
.app-main h1 { color: #26364c; font-weight: 780; letter-spacing: -.45px; }
.app-main h2, .app-main h3 { color: #2e4059; font-weight: 720; }

.app-main .card {
    overflow: hidden;
    border: 1px solid var(--app-border) !important;
    border-radius: 15px;
    background: var(--app-surface);
    box-shadow: 0 5px 18px rgb(23 43 77 / 4%) !important;
}
.app-main .card-header { padding: 16px 20px; border-bottom-color: #edf1f6; color: #33445c; }
.app-main .card-body { padding: 20px; }
.app-main .table { color: #3b4a60; }
.app-main .table > :not(caption) > * > * { padding: 13px 14px; border-bottom-color: #eef1f5; }
.app-main .table thead th { background: #f8faff; color: #718096; font-size: 10px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; white-space: nowrap; }
.app-main .table tbody tr:last-child > * { border-bottom: 0; }
.app-main .table-hover tbody tr:hover, .app-main .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-bg-type: #fafbfe; }
.app-main .form-control, .app-main .form-select { min-height: 42px; border-color: #dfe5ee; border-radius: 9px; color: #334155; font-size: 13px; }
.app-main textarea.form-control { min-height: 100px; }
.app-main .form-control:focus, .app-main .form-select:focus { border-color: #8ba2ff; box-shadow: 0 0 0 .2rem rgb(54 89 217 / 12%); }
.app-main .form-label { margin-bottom: 7px; color: #53647b; font-size: 12px; font-weight: 700; }
.app-main .btn { border-radius: 9px; font-size: 12px; font-weight: 700; }
.app-main .btn-primary { border-color: #3659d9; background: #3659d9; box-shadow: 0 3px 9px rgb(54 89 217 / 15%); }
.app-main .btn-primary:hover { border-color: #2949c4; background: #2949c4; }
.app-main .btn-success { border-color: #16804a; background: #16804a; }
.app-main .pagination { gap: 4px; }
.app-main .page-link { border-color: #e5eaf1; border-radius: 8px !important; color: #43536b; font-size: 12px; }
.app-main .page-item.active .page-link { border-color: #3659d9; background: #3659d9; }
.app-main .progress { height: 10px; border-radius: 8px; background: #edf1f7; }
.app-main .progress-bar { border-radius: 8px; background: linear-gradient(90deg, #3659d9, #6582f0); font-size: 9px; }
.app-main .alert { border: 0; border-radius: 12px; font-size: 13px; }
.app-alert { display: flex; align-items: flex-start; gap: 10px; box-shadow: 0 3px 12px rgb(20 30 50 / 4%); }
.app-alert ul { padding-left: 18px; }
.app-alert-centered { position: fixed; z-index: 1080; inset: 0; display: grid; padding: 20px; place-items: center; background: rgb(15 23 42 / 42%); backdrop-filter: blur(4px); animation: token-alert-fade-in .18s ease-out; }
.app-token-alert-card { display: flex; width: min(460px, 100%); align-items: center; gap: 18px; padding: 26px 30px; border: 1px solid #e6eaf0; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgb(15 23 42 / 30%); animation: token-alert-rise-in .22s ease-out; }
.app-token-alert-icon { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; border: 1px solid #fecaca; border-radius: 16px; background: #fef2f2; color: #dc2626; font-size: 30px; }
.app-token-alert-copy { display: grid; gap: 5px; }
.app-token-alert-copy strong { color: #172033; font-size: 24px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; }
.app-token-alert-copy span { color: #536176; font-size: 16px; font-weight: 600; line-height: 1.4; }
.app-token-alert-ok { min-width: 76px; margin-left: auto; padding: 10px 18px; border: 0; border-radius: 10px; background: #3659d9; color: #fff; font-size: 14px; font-weight: 750; }
.app-token-alert-ok:hover, .app-token-alert-ok:focus-visible { background: #2949c4; color: #fff; box-shadow: 0 0 0 4px rgb(54 89 217 / 18%); }
@keyframes token-alert-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes token-alert-rise-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 480px) { .app-token-alert-card { flex-wrap: wrap; gap: 14px; padding: 22px 20px; } .app-token-alert-copy strong { font-size: 21px; } .app-token-alert-copy span { font-size: 15px; } .app-token-alert-ok { width: 100%; margin-left: 0; } }
.app-footer { display: flex; justify-content: space-between; gap: 12px; max-width: 1600px; padding: 0 32px 20px; margin: 0 auto; color: #98a3b3; font-size: 11px; }

.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dashboard-eyebrow { display: inline-block; margin-bottom: 6px; color: #7383ad; font-size: 9px; font-weight: 800; letter-spacing: 1.15px; }
.dashboard-heading-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid #dce5ff; border-radius: 15px; background: #edf2ff; color: #3659d9; font-size: 20px; }
.dashboard-stat { position: relative; min-height: 130px; }
.app-main .dashboard-stat .card-body { padding: 17px 18px 14px; }
.dashboard-stat::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--stat-accent, #3659d9); content: ""; }
.dashboard-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.dashboard-stat-label { color: #7b8899; font-size: 10px; font-weight: 700; }
.dashboard-stat-icon { display: grid; width: 33px; height: 33px; flex: 0 0 33px; place-items: center; border-radius: 11px; background: var(--stat-soft, #edf2ff); color: var(--stat-accent, #3659d9); font-size: 15px; }
.dashboard-stat-value { margin-top: 5px; color: #25364d; font-size: 27px; font-weight: 800; line-height: 1; }
.dashboard-stat-caption { margin-top: 7px; color: #a0aaba; font-size: 9px; }
.dashboard-stat-blue { --stat-accent: #3659d9; --stat-soft: #edf2ff; }
.dashboard-stat-violet { --stat-accent: #7656d6; --stat-soft: #f2edff; }
.dashboard-stat-cyan { --stat-accent: #168aaa; --stat-soft: #e9f8fc; }
.dashboard-stat-orange { --stat-accent: #d47a19; --stat-soft: #fff5e8; }
.dashboard-stat-purple { --stat-accent: #8a4fc4; --stat-soft: #f7edff; }
.dashboard-stat-green { --stat-accent: #16804a; --stat-soft: #eaf8f0; }
.dashboard-section-title, .dashboard-section-heading { display: flex; align-items: center; gap: 11px; }
.dashboard-section-title strong { display: block; color: #34455d; font-size: 13px; }
.dashboard-section-title small, .dashboard-section-heading small { display: block; margin-top: 3px; color: #97a2b1; font-size: 10px; }
.dashboard-section-icon { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border-radius: 11px; background: #edf2ff; color: #4966ce; font-size: 15px; }
.dashboard-section-heading { margin: 24px 0 14px; }
.dashboard-section-heading h2 { color: #26364c; }
.quiz-preview-label { margin-bottom: 12px; color: #7383ad; font-size: 9px; font-weight: 800; letter-spacing: .8px; }
.quiz-preview-label i { color: #8a66e5; }
.app-main .quiz-preview-card { border-left: 3px solid #7b68df !important; }
.app-main .quiz-preview-card .card-body { padding: 21px; }
.app-main .task-preview-card, .app-main .quiz-admin-card { border-radius: 18px; transition: transform .18s ease, box-shadow .18s ease; }
.app-main .task-preview-card:hover, .app-main .quiz-admin-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgb(23 43 77 / 9%) !important; }
.app-main .task-preview-active { border-top: 3px solid #198754 !important; }
.app-main .task-preview-inactive { border-top: 3px solid #adb5bd !important; }
.task-preview-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.task-preview-meta, .quiz-admin-meta { display: grid; gap: 8px; color: #78869a; font-size: 12px; }
.student-task-preview { padding: 18px; border: 1px solid #e7edf5; border-radius: 14px; background: linear-gradient(145deg, #fff, #fbfcff); }
.student-task-preview-details { display: grid; gap: 7px; color: #78869a; font-size: 12px; }
.student-task-preview-details i { color: #4966ce; }
.quiz-admin-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 13px; background: #eef2ff; color: #4f46e5; font-size: 22px; }
.quiz-import-form { padding-top: 13px; border-top: 1px solid #edf1f6; }
.empty-state { display: grid; justify-items: center; padding: 38px 20px; text-align: center; }
.empty-state > i { margin-bottom: 12px; color: #7890ca; font-size: 32px; }
.student-task-header { padding: 24px 24px 21px; background: linear-gradient(135deg, #0d6efd, #6610f2); color: #fff; }
.student-task-header h1 { color: #fff; }

.quiz-play-stage { min-height: calc(100vh - 144px); padding: 34px clamp(18px, 4vw, 64px) 28px; margin: -30px -32px -42px; background: radial-gradient(ellipse at 50% 40%, rgb(18 75 153 / 26%), transparent 58%), linear-gradient(145deg, #04152d, #071c3b 60%, #04142c); color: #fff; }
.quiz-play-content { width: min(1120px, 100%); margin: 0 auto; }
.quiz-play-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.quiz-play-heading { display: flex; min-width: 0; align-items: center; gap: 14px; }
.quiz-play-mark { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid rgb(147 197 253 / 20%); border-radius: 15px; background: linear-gradient(145deg, rgb(59 130 246 / 22%), rgb(20 184 166 / 10%)); color: #a9ccff; font-size: 21px; }
.quiz-play-eyebrow { display: block; margin-bottom: 3px; color: #76cfc6; font-size: 10px; font-weight: 750; letter-spacing: 1.25px; text-transform: uppercase; }
.quiz-play-heading h1 { overflow: hidden; max-width: 620px; margin: 0; color: #f8fbff; font-size: clamp(18px, 2.4vw, 25px); font-weight: 750; letter-spacing: -.35px; text-overflow: ellipsis; white-space: nowrap; }
.quiz-play-status { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.quiz-play-timer, .quiz-play-answered { display: grid; min-width: 105px; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 9px 13px; border: 1px solid rgb(148 163 184 / 17%); border-radius: 13px; background: rgb(255 255 255 / 5%); }
.quiz-play-timer > i { grid-row: span 2; color: #7dd3fc; font-size: 19px; }
.quiz-play-timer > span, .quiz-play-answered > span { color: #9fb2ca; font-size: 9px; font-weight: 650; letter-spacing: .3px; }
.quiz-play-timer strong { color: #fff; font-size: 17px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.quiz-play-answered { min-width: 95px; grid-template-columns: 1fr; justify-items: center; }
.quiz-play-answered strong { color: #fff; font-size: 17px; line-height: 1.15; }
.quiz-play-count-total { color: #a9bad1; font-size: 12px; }
.quiz-play-progress { height: 5px; overflow: hidden; margin-bottom: 18px; border-radius: 99px; background: rgb(255 255 255 / 10%); }
.quiz-play-progress > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #2dd4bf); box-shadow: 0 0 14px rgb(45 212 191 / 35%); transition: width .25s ease; }
.app-main .quiz-play-stage .quiz-play-question.card { position: relative; overflow: hidden; min-height: 430px; padding: clamp(22px, 4vw, 42px); border: 1px solid rgb(96 165 250 / 28%) !important; border-radius: 20px; background: radial-gradient(ellipse at 95% 0%, rgb(14 165 233 / 32%), transparent 37%), linear-gradient(135deg, #0758b8, #063e94 55%, #092f79) !important; box-shadow: 0 18px 45px rgb(0 0 0 / 24%), inset 0 1px 0 rgb(255 255 255 / 9%) !important; color: #fff; }
.app-main .quiz-play-stage .quiz-play-question[hidden] { display: none; }
.quiz-question-art { position: absolute; top: -190px; right: -95px; width: 440px; height: 440px; border: 1px solid rgb(191 219 254 / 13%); border-radius: 50%; background: rgb(56 189 248 / 8%); box-shadow: 0 0 0 30px rgb(191 219 254 / 3%), 0 0 0 70px rgb(191 219 254 / 2%); pointer-events: none; }
.quiz-question-meta, .quiz-play-question h2, .quiz-answer-grid { position: relative; z-index: 1; }
.quiz-question-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: #d3e6ff; font-size: 12px; }
.quiz-question-meta > span:first-child { display: flex; align-items: center; gap: 7px; }
.quiz-question-type { padding: 5px 10px; border: 1px solid rgb(219 234 254 / 17%); border-radius: 99px; background: rgb(3 23 62 / 28%); color: #e0efff; font-size: 10px; font-weight: 650; text-transform: capitalize; }
.app-main .quiz-play-question h2 { max-width: 880px; min-height: 72px; margin: 0 auto 28px; color: #fff; font-size: clamp(21px, 3.2vw, 34px); font-weight: 750; letter-spacing: -.5px; line-height: 1.3; text-align: center; text-wrap: balance; }
.quiz-answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: auto; }
.quiz-answer-grid:has(.answer-option:only-child) { grid-template-columns: minmax(0, 1fr); }
.answer-option { position: relative; display: flex; min-height: 76px; align-items: center; gap: 13px; overflow: hidden; padding: 15px 19px; border: 2px solid rgb(255 255 255 / 12%); border-radius: 12px; color: #fff; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, filter .16s ease; }
.answer-option:hover { z-index: 2; transform: translateY(-2px); filter: brightness(1.08); }
.answer-option:focus-within { outline: 3px solid rgb(255 255 255 / 65%); outline-offset: 2px; }
.answer-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.answer-option-a { background: linear-gradient(120deg, #dc2444, #c9153d); }
.answer-option-b { background: linear-gradient(120deg, #176bce, #155bb2); }
.answer-option-c { background: linear-gradient(120deg, #d69a04, #bd8100); }
.answer-option-d { background: linear-gradient(120deg, #23841d, #176e18); }
.answer-option-e { background: linear-gradient(120deg, #7548c8, #5c36a8); }
.answer-option-shape { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; color: #fff; }
.answer-option-a .answer-option-shape::before { width: 0; height: 0; border-right: 11px solid transparent; border-bottom: 19px solid currentColor; border-left: 11px solid transparent; content: ""; }
.answer-option-b .answer-option-shape::before { width: 17px; height: 17px; background: currentColor; content: ""; transform: rotate(45deg) scale(.82); }
.answer-option-c .answer-option-shape::before { width: 19px; height: 19px; border-radius: 50%; background: currentColor; content: ""; }
.answer-option-d .answer-option-shape::before { width: 18px; height: 18px; background: currentColor; content: ""; }
.answer-option-e .answer-option-shape::before { width: 17px; height: 17px; border: 3px solid currentColor; border-radius: 50%; content: ""; }
.answer-option-copy { display: flex; min-width: 0; align-items: baseline; gap: 8px; color: #fff; font-size: 16px; font-weight: 650; line-height: 1.35; }
.answer-option-copy > strong { flex: 0 0 auto; font-size: 13px; opacity: .8; }
.answer-option:has(input:checked), .answer-option.is-selected { z-index: 2; border: 2px solid #fff; outline: 3px solid rgb(191 219 254 / 85%); outline-offset: 2px; box-shadow: 0 9px 22px rgb(0 0 0 / 22%); transform: translateY(-2px); }
.quiz-play-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 18px; }
.quiz-nav-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border: 1px solid rgb(191 219 254 / 20%); border-radius: 11px; color: #e7f0ff; font-size: 12px; font-weight: 700; }
.quiz-nav-button:hover:not(:disabled) { border-color: rgb(147 197 253 / 55%); background: rgb(255 255 255 / 9%); color: #fff; }
.quiz-nav-button:disabled { opacity: .4; }
.quiz-nav-previous { justify-self: start; background: rgb(255 255 255 / 4%); }
.quiz-play-page-count { display: flex; align-items: baseline; gap: 4px; color: #9fb2ca; font-size: 12px; }
.quiz-play-page-count strong { color: #fff; font-size: 16px; }
.quiz-play-next-actions { display: flex; justify-self: end; gap: 8px; }
.quiz-nav-next { border-color: #1677dc; background: linear-gradient(120deg, #1682e8, #155fc5); color: #fff; }
.quiz-nav-finish { border-color: #079b80; background: linear-gradient(120deg, #0c9b82, #087962); color: #fff; }
.quiz-play-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 16px 0 0; color: #8299b6; font-size: 10px; }
.quiz-play-footnote i { color: #5ccbbd; }

.auth-shell { background: radial-gradient(ellipse at 15% 10%, #e6edff 0, transparent 38%), #f4f6fa; }
.auth-shell .app-main { display: grid; min-height: calc(100vh - 58px); place-items: center; padding-top: 40px; padding-bottom: 40px; }
.auth-shell .app-footer { display: none; }

.login-card { display: grid; width: min(1050px, 100%); grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid rgb(255 255 255 / 55%); border-radius: 28px; background: rgb(255 255 255 / 96%); box-shadow: 0 30px 80px rgb(0 0 0 / 18%); }
.login-intro { position: relative; display: flex; min-height: 520px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 48px; background: radial-gradient(ellipse at 92% 18%, rgb(59 130 246 / 23%), transparent 34%), radial-gradient(ellipse at 82% 100%, rgb(20 184 166 / 13%), transparent 40%), linear-gradient(145deg, #091323 0%, #10213c 58%, #182b46 100%); color: white; isolation: isolate; }
.login-intro::before, .login-intro::after { position: absolute; z-index: -1; border-radius: 50%; content: ""; pointer-events: none; }
.login-intro::before { top: -175px; right: -165px; width: 430px; height: 430px; border: 1px solid rgb(191 219 254 / 10%); box-shadow: 0 0 0 24px rgb(191 219 254 / 2%), 0 0 0 62px rgb(191 219 254 / 2%); }
.login-intro::after { right: -130px; bottom: -235px; width: 420px; height: 420px; border: 1px solid rgb(45 212 191 / 15%); box-shadow: inset 0 0 80px rgb(20 184 166 / 6%), 0 0 80px rgb(20 184 166 / 5%); }
.login-mark { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.login-mark-icon { position: relative; z-index: 1; display: grid; width: 78px; height: 78px; flex: 0 0 78px; place-items: center; border: 1px solid rgb(255 255 255 / 88%); border-radius: 20px; background: linear-gradient(145deg, #fff, #f1f5f9); box-shadow: 0 12px 28px rgb(0 0 0 / 24%), inset 0 1px 0 #fff; }
.login-mark-icon::after { position: absolute; inset: 5px; border: 1px solid #e8edf4; border-radius: 15px; content: ""; pointer-events: none; }
.login-mark-icon img { width: 62px; height: 68px; border-radius: 7px; object-fit: contain; }
.login-mark-title { font-size: 16px; font-weight: 760; letter-spacing: .1px; }
.login-mark-subtitle { margin-top: 5px; color: #a9bad1; font-size: 9px; font-weight: 650; letter-spacing: 1.45px; }
.login-welcome { position: relative; z-index: 1; max-width: 360px; }
.login-panel-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; color: #8de0d4; font-size: 16px; font-weight: 800; letter-spacing: 1.2px; }
.login-panel-kicker::before { width: 24px; height: 2px; border-radius: 2px; background: #53c9bb; content: ""; }
.login-panel-kicker span { color: #72839a; }
.login-welcome h2 { max-width: 340px; margin: 0 0 13px; color: #fff; font-size: 30px; font-weight: 740; letter-spacing: -.7px; line-height: 1.2; text-wrap: balance; }
.login-welcome p { max-width: 330px; margin: 0; color: #b7c5d6; font-size: 13px; line-height: 1.8; }
.login-features { display: grid; gap: 13px; padding: 0; margin: 26px 0 0; list-style: none; }
.login-features li { display: flex; align-items: center; gap: 11px; color: #e4ebf3; font-size: 12px; }
.login-features i { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 1px solid rgb(141 224 212 / 18%); border-radius: 9px; background: rgb(45 212 191 / 8%); color: #8de0d4; font-size: 14px; }
.login-footer-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: #8497ae; font-size: 10px; letter-spacing: .15px; }
.login-footer-note::before { width: 6px; height: 6px; border-radius: 50%; background: #53c9bb; box-shadow: 0 0 12px rgb(83 201 187 / 65%); content: ""; }
.login-form-panel { display: flex; align-items: center; padding: 48px 55px; }
.login-form-panel h1 { margin: 0; color: #212529; font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.login-form-panel .lead-copy { margin: 8px 0 30px; color: #6c757d; font-size: 14px; }
.login-form-panel .form-label { color: #53647b; font-size: 12px; font-weight: 750; }
.login-input-wrap { position: relative; }
.login-input-wrap .form-control { min-height: 55px; padding: 11px 48px; border-color: #dee2e6; border-radius: 14px; font-size: 14px; }
.login-input-wrap .form-control:focus { border-color: #0d6efd; box-shadow: 0 0 0 4px rgb(13 110 253 / 10%); }
.login-input-wrap .input-icon { position: absolute; top: 50%; left: 16px; z-index: 2; color: #6c757d; font-size: 18px; transform: translateY(-50%); }
.login-input-wrap .password-toggle { position: absolute; top: 50%; right: 14px; z-index: 2; border: 0; background: transparent; color: #6c757d; transform: translateY(-50%); }
.login-form-panel .btn { min-height: 55px; margin-top: 6px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #0d6efd, #6610f2); box-shadow: 0 8px 20px rgb(13 110 253 / 25%); font-size: 15px; font-weight: 750; }
.login-form-panel .btn:hover { background: linear-gradient(135deg, #0b5ed7, #520dc2); transform: translateY(-1px); }

@media (min-width: 1200px) {
    .app-navbar-inner { padding-right: 42px; padding-left: 42px; }
}
@media (max-width: 1199.98px) {
    .app-navbar-inner { padding-right: 20px; padding-left: 20px; }
    .app-nav-links { gap: 1px; margin-left: 12px; }
    .app-navbar .nav-link { gap: 6px; padding: 9px 9px; font-size: 11px; }
    .app-profile-name { max-width: 95px; }
}
@media (max-width: 991.98px) {
    .app-navbar-inner { padding: 10px 16px; }
    .app-navbar .navbar-collapse { padding: 12px 0 8px; }
    .app-nav-links { gap: 3px; margin: 0; }
    .app-navbar .nav-link { display: flex; padding: 11px 13px; font-size: 13px; }
    .app-navbar .nav-link.active::after { display: none; }
    .app-account { align-items: stretch; flex-direction: column; margin: 12px 0 0; }
    .app-profile-name { max-width: unset; }
    .app-logout { justify-content: center; width: 100%; padding: 10px; }
    .app-main { min-height: calc(100vh - 130px); padding: 24px 18px 32px; }
    .app-footer { padding-right: 18px; padding-left: 18px; }
    .quiz-play-stage { min-height: calc(100vh - 130px); padding: 28px 20px 30px; margin: -24px -18px -32px; }
}
@media (max-width: 800px) {
    .login-card { max-width: 520px; grid-template-columns: 1fr; }
    .login-intro { min-height: 300px; padding: 30px; }
    .login-welcome { margin-top: 30px; }
    .login-welcome h2 { font-size: 25px; }
    .login-footer-note { display: none; }
}
@media (max-width: 767.98px) {
    .app-main { padding: 20px 13px 28px; }
    .app-main .card-body { padding: 16px; }
    .app-main .table > :not(caption) > * > * { padding: 10px 11px; }
    .app-footer { flex-direction: column; padding-right: 13px; padding-left: 13px; }
    .quiz-play-stage { min-height: calc(100vh - 130px); padding: 20px 13px 26px; margin: -20px -13px -28px; }
    .quiz-play-header { align-items: flex-start; flex-direction: column; gap: 14px; }
    .quiz-play-status { width: 100%; justify-content: flex-end; }
    .app-main .quiz-play-stage .quiz-play-question.card { min-height: 0; padding: 20px 15px; }
    .app-main .quiz-play-question h2 { min-height: 0; margin-bottom: 22px; font-size: 22px; }
    .quiz-answer-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .answer-option { min-height: 62px; padding: 12px 14px; }
    .answer-option-copy { font-size: 14px; }
    .quiz-play-controls { grid-template-columns: 1fr auto 1fr; gap: 6px; }
    .quiz-nav-button { min-height: 42px; gap: 6px; padding: 9px 10px; }
    .quiz-nav-button span { font-size: 11px; }
    .login-card { max-width: 480px; grid-template-columns: 1fr; border-radius: 20px; }
    .login-intro { min-height: 225px; padding: 26px; }
    .login-welcome { margin-top: 30px; }
    .login-welcome h2 { font-size: 24px; }
    .login-footer-note { display: none; }
    .login-form-panel { padding: 30px 26px; }
    .login-mark-icon { width: 60px; height: 60px; }
    .login-mark-icon img { width: 46px; height: 46px; }
}
@media print {
    .app-navbar, .app-footer, .no-print { display: none !important; }
    body.app-shell, .app-main { background: #fff !important; }
    .app-main { max-width: none; min-height: auto; padding: 0; }
    .app-main .card { box-shadow: none !important; }
}
