/* =============================================================================
   Orivex-quality UI layer — Success Space LMS
   Light shell · blue brand only · dense, premium product chrome
   Loaded after style.css
   ============================================================================= */

html {
    color-scheme: light;
}

body {
    background:
        radial-gradient(1100px 520px at 8% -8%, rgba(37, 99, 235, 0.07), transparent 55%),
        radial-gradient(900px 480px at 100% 0%, rgba(37, 99, 235, 0.04), transparent 48%),
        var(--bg);
    color: var(--text);
    letter-spacing: -0.01em;
}

body.auth-page,
body.login-auth-page {
    background: #fff;
}

/* Typography */
h1, h2, h3,
.dashboard-head h2,
.login-panel-shell h2,
.erp-command-banner h3,
.page-title h1 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--ink);
}

.page-eyebrow,
.module-label,
.erp-banner-kicker,
.student-kicker,
.nav-title {
    color: var(--muted-2) !important;
    letter-spacing: 0.08em !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

/* ─── App shell ─── */
.app-shell {
    background: transparent;
}

.app-sidebar {
    background: var(--surface) !important;
    border-right: 1px solid var(--line) !important;
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.02);
}

.app-logo {
    border-bottom-color: var(--line) !important;
}

.app-logo .brand-mark,
.brand-mark {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-deep)) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28) !important;
    font-weight: 800;
    border-radius: 12px !important;
}

.app-logo-text strong {
    color: var(--ink) !important;
    font-weight: 800;
}

.app-logo-text small {
    color: var(--muted) !important;
    text-transform: none;
    letter-spacing: 0;
}

.sidebar-search {
    position: relative;
}

.sidebar-search input {
    background: var(--field) !important;
    border: 1.5px solid var(--line) !important;
    color: var(--ink) !important;
    border-radius: 10px !important;
    height: 40px;
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}

.sidebar-search input:focus {
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px var(--primary-ring) !important;
}

.sidebar-search-kbd {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff !important;
    border: 1px solid var(--line) !important;
    color: var(--muted-2) !important;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    pointer-events: none;
}

.side-link {
    color: var(--muted) !important;
    border-radius: 10px !important;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.side-link:hover {
    background: var(--field) !important;
    color: var(--ink-soft) !important;
}

.side-link.is-active {
    background: var(--primary-soft) !important;
    color: var(--primary-deep) !important;
    box-shadow: none !important;
}

.side-link.is-active::before {
    display: none;
}

.side-link-copy small {
    color: var(--muted-2) !important;
}

.side-link:hover .side-link-copy small,
.side-link.is-active .side-link-copy small {
    color: var(--muted) !important;
}

.nav-icon {
    background: var(--field) !important;
    border: 1px solid var(--line) !important;
    color: var(--muted) !important;
    border-radius: 9px !important;
}

.side-link.is-active .nav-icon {
    background: rgba(37, 99, 235, 0.14) !important;
    border-color: rgba(37, 99, 235, 0.22) !important;
    color: var(--primary-deep) !important;
}

.sidebar-footer,
.sidebar-account-link,
.sidebar-student-card {
    background: var(--field) !important;
    border-color: var(--line) !important;
}

.sidebar-account-link {
    border-radius: 12px !important;
}

.sidebar-account-link strong,
.sidebar-student-head strong,
.sidebar-stat-row strong {
    color: var(--ink) !important;
}

.sidebar-stat-row span {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px;
}

.side-link-logout {
    color: var(--danger) !important;
}

.side-link-logout:hover {
    background: var(--danger-soft) !important;
}

.app-area,
.app-main {
    background: transparent;
}

.app-main {
    padding: 22px 24px 40px;
}

.app-topbar {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid var(--line) !important;
    backdrop-filter: blur(16px) saturate(1.15);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.app-topbar.is-elevated {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    border-bottom-color: var(--line-strong) !important;
}

.breadcrumb-wrap {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.breadcrumb-wrap strong,
.breadcrumb-wrap a:hover {
    color: var(--ink);
}

.breadcrumb-wrap a {
    color: var(--muted);
}

.topbar-chip,
.topbar-user,
.notification-trigger,
.sidebar-toggle,
.topbar-search-btn {
    background: #fff !important;
    border: 1.5px solid var(--line) !important;
    color: var(--ink-soft) !important;
    border-radius: 10px !important;
    transition: background 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.topbar-search-btn:hover,
.topbar-user:hover,
.notification-trigger:hover,
.notification-menu.is-open .notification-trigger,
.sidebar-toggle:hover {
    background: var(--field) !important;
    border-color: var(--line-strong) !important;
    color: var(--ink) !important;
}

.topbar-search-btn kbd,
.cmdk-esc,
.cmdk-foot kbd,
.sidebar-search-kbd {
    background: var(--field) !important;
    border-color: var(--line) !important;
    color: var(--muted-2) !important;
}

.user-avatar {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-deep)) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.notification-dropdown,
.account-dropdown,
.cmdk {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-hard) !important;
    color: var(--ink);
    border-radius: 14px !important;
}

.notification-dropdown-title,
.cmdk-head,
.cmdk-foot,
.account-dropdown-head {
    background: var(--field) !important;
    border-color: var(--line) !important;
}

.notification-item:hover,
.account-dropdown > a:hover,
.cmdk-item:hover,
.cmdk-item.is-active {
    background: var(--primary-soft) !important;
}

.notification-item-icon,
.account-dropdown > a > .material-symbols-rounded,
.cmdk-item-icon {
    background: var(--field) !important;
    color: var(--primary-deep) !important;
    border-radius: 10px;
}

.notification-count {
    background: var(--primary) !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

/* ─── Buttons ─── */
.btn {
    border-radius: 11px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    min-height: 42px;
    transition:
        transform 0.15s var(--ease),
        box-shadow 0.15s var(--ease),
        background 0.15s var(--ease),
        border-color 0.15s var(--ease) !important;
}

.btn-primary,
.login-submit {
    background: linear-gradient(180deg, #3b82f6, #2563eb) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
    box-shadow: var(--shadow-btn) !important;
    filter: none !important;
}

.btn-primary:hover,
.login-submit:hover {
    background: linear-gradient(180deg, #60a5fa, #1d4ed8) !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28) !important;
}

.btn-primary:active,
.login-submit:active {
    transform: translateY(0);
}

.btn-outline {
    background: #fff !important;
    color: var(--ink) !important;
    border: 1.5px solid var(--line-strong) !important;
}

.btn-outline:hover {
    border-color: rgba(37, 99, 235, 0.4) !important;
    background: var(--primary-soft) !important;
    color: var(--primary-deep) !important;
}

.btn-danger,
.btn-danger-soft {
    border-radius: 11px !important;
}

/* ─── Cards, metrics, tables ─── */
.metric-card,
.action-card,
.feature-card,
.info-card,
.form-card,
.table-card,
.chart-card,
.stat-card,
.panel,
.panel-card,
.erp-panel,
.exam-card,
.result-card,
.attempt-card {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-soft) !important;
    border-radius: var(--radius-lg) !important;
}

.metric-card:hover,
.action-card:hover,
.stat-card:hover,
.exam-card:hover {
    border-color: rgba(37, 99, 235, 0.22) !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-2px);
}

.metric-card h3,
.analytics-number-box {
    border-color: #dbe4f0 !important;
    background: var(--field) !important;
    color: var(--ink) !important;
}

.analytics-number-box.is-attempt {
    border-color: #bfdbfe !important;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
    color: #1e40af !important;
}

.dashboard-head h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
    color: var(--ink) !important;
}

.dashboard-head p {
    color: var(--muted) !important;
}

.title-with-icon .material-symbols-rounded {
    background: linear-gradient(140deg, #3b82f6, #1d4ed8) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28) !important;
}

/* Tables */
.table-wrap,
.table-card .table-wrap {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

table.data-table,
.table-card table,
.app-main table {
    width: 100%;
    border-collapse: collapse;
}

table.data-table th,
.table-card th,
.app-main table thead th {
    background: var(--field) !important;
    color: var(--muted) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line) !important;
    padding: 12px 14px !important;
}

table.data-table td,
.table-card td,
.app-main table tbody td {
    border-bottom: 1px solid var(--line) !important;
    color: var(--ink) !important;
    padding: 12px 14px !important;
    font-size: 0.9rem;
    background: #fff;
}

table.data-table tbody tr:hover td,
.table-card tbody tr:hover td,
.app-main table tbody tr:hover td {
    background: #f8fbff !important;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
input[type="datetime-local"],
select,
textarea,
.form-control,
.login-input-group input,
.login-input-group select {
    background: var(--field) !important;
    border: 1.5px solid var(--line) !important;
    color: var(--ink) !important;
    border-radius: 10px !important;
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.login-input-group input:focus {
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px var(--primary-ring) !important;
    outline: none;
}

label,
.login-input-group label,
.form-label {
    color: var(--ink-soft) !important;
    font-weight: 700 !important;
    font-size: 0.84rem;
}

/* Alerts / badges */
.alert {
    border-radius: 12px !important;
    border-width: 1px !important;
}

.alert-success {
    background: var(--success-soft) !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
}

.alert-error,
.alert-danger {
    background: var(--danger-soft) !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

.alert-info {
    background: var(--info-soft) !important;
    border-color: #bfdbfe !important;
    color: #1e40af !important;
}

.badge,
.pill,
.status-pill,
.chip {
    border-radius: 999px !important;
    font-weight: 700 !important;
}

.badge-primary,
.pill-primary,
.status-active {
    background: var(--primary-soft) !important;
    color: var(--primary-deep) !important;
}

/* ─── Auth / login ─── */
.auth-wrap,
.auth-grid.split-login,
.login-reference-card {
    min-height: 100vh;
    min-height: 100dvh;
}

.login-showcase {
    position: relative;
    overflow: hidden;
}

.login-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(15, 23, 42, 0.72), rgba(37, 99, 235, 0.55)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.35), transparent 40%);
    z-index: 0;
}

.login-showcase-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.login-kicker-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e7ff !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.login-showcase-content h1 {
    color: #fff !important;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.1;
}

.login-showcase-content p {
    color: rgba(255, 255, 255, 0.88) !important;
}

.login-feature-list li {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #fff !important;
}

.login-feature-list .material-symbols-rounded {
    color: #93c5fd;
}

.auth-panel,
.login-form-panel,
.auth-panel-shell,
.login-panel-shell {
    background: #fff !important;
    color: var(--ink);
}

.login-panel-shell h2 {
    color: var(--ink) !important;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem) !important;
}

.login-panel-shell > p {
    color: var(--muted) !important;
}

.login-trust-pill {
    background: var(--field) !important;
    border: 1px solid var(--line) !important;
    color: var(--ink-soft) !important;
    border-radius: 999px !important;
    font-weight: 700;
}

.login-trust-pill .material-symbols-rounded {
    color: var(--primary) !important;
}

.login-brand-lockup img {
    max-height: 44px;
    width: auto;
}

.login-submit {
    min-height: 48px !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
}

/* Public site header */
.site-header {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid var(--line) !important;
    backdrop-filter: blur(12px);
}

.brand {
    color: var(--ink) !important;
}

.main-nav a {
    color: var(--ink-soft) !important;
    font-weight: 700;
}

.main-nav a:hover {
    background: var(--primary-soft);
    color: var(--primary-deep) !important;
}

.site-footer {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

/* ─── ERP / admin command surfaces ─── */
.erp-command-banner,
.command-banner,
.hero-panel {
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.14), transparent 42%),
        linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-soft) !important;
    border-radius: var(--radius-lg) !important;
    color: var(--ink) !important;
}

/* Keep student banner neon multi-colour (do not flatten) */
.student-command-banner {
    background:
        radial-gradient(circle at 95% 8%, rgba(251, 191, 36, 0.55), transparent 32%),
        radial-gradient(circle at 8% 90%, rgba(52, 211, 153, 0.45), transparent 36%),
        radial-gradient(circle at 55% 100%, rgba(236, 72, 153, 0.4), transparent 38%),
        radial-gradient(circle at 70% 20%, rgba(167, 139, 250, 0.45), transparent 34%),
        linear-gradient(125deg, #1e3a8a 0%, #6d28d9 28%, #db2777 58%, #0891b2 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 20px 48px rgba(109, 40, 217, 0.35) !important;
    border-radius: 22px !important;
    color: #fff !important;
}

.erp-banner-kicker,
.student-module-head .module-label,
.student-command-copy .erp-banner-kicker {
    color: var(--primary) !important;
}

.student-module-head h3,
.student-command-copy h3 {
    color: var(--ink) !important;
}

.student-module-head p,
.student-command-copy p,
.student-dash-head p {
    color: var(--muted) !important;
}

.student-kpi strong,
.student-command-stats strong {
    color: var(--ink) !important;
}

.student-kpi small,
.student-command-stats span {
    color: var(--muted) !important;
}

.erp-kpi-card {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-soft) !important;
    overflow: hidden;
}

.erp-kpi-card::before {
    background: var(--primary) !important;
}

.erp-kpi-icon {
    background: var(--primary-soft) !important;
    color: var(--primary-deep) !important;
    border-radius: 12px !important;
}

.erp-module {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-soft) !important;
}

.erp-module-head > a {
    color: var(--primary) !important;
}

.workflow-step {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
}

.legend-dot.is-published {
    background: var(--primary) !important;
}

.announcement-placeholder,
.composer-image-field label .material-symbols-rounded,
.composer-actions > span .material-symbols-rounded,
.announcement-meta em {
    color: var(--primary-deep) !important;
}

.student-story-media {
    background: linear-gradient(145deg, #1e3a8a, #2563eb) !important;
}

/* ─── Student surfaces ─── */
.student-hero,
.student-welcome {
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.1), transparent 45%),
        #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-soft) !important;
}

/* ─── Exam studio ─── */
body.exam-mode {
    background: var(--bg) !important;
}

body.exam-mode .app-main {
    max-width: 1280px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    body.exam-mode .app-main {
        max-width: none;
        margin: 0;
    }

    body.exam-mode .exam-nav-bar {
        background: rgba(255, 255, 255, 0.98) !important;
        border-color: var(--line) !important;
    }

    body.exam-mode .option-item {
        background: #fff !important;
    }
}

.exam-top,
.exam-palette,
.question-card,
.exam-stage .card {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-soft) !important;
    border-radius: 14px !important;
}

.timer {
    color: var(--primary-deep) !important;
    background: var(--primary-soft) !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
}

.timer.is-warn {
    color: #b45309 !important;
    background: var(--warning-soft) !important;
    border-color: rgba(217, 119, 6, 0.28) !important;
}

.timer.is-critical {
    color: #b91c1c !important;
    background: var(--danger-soft) !important;
    border-color: rgba(220, 38, 38, 0.28) !important;
}

.exam-progress-strip span {
    background: #fff !important;
    border-color: var(--line) !important;
    color: #475467 !important;
}

.exam-progress-strip strong {
    color: var(--primary-deep) !important;
}

/* Palette question buttons */
.palette-btn,
.q-nav-btn,
.exam-palette button {
    border-radius: 10px !important;
}

.palette-btn.is-current,
.q-nav-btn.is-current,
.exam-palette button.is-current {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.palette-btn.is-answered,
.q-nav-btn.is-answered {
    background: var(--primary-soft) !important;
    color: var(--primary-deep) !important;
    border-color: rgba(37, 99, 235, 0.28) !important;
}

/* Option choices in exam */
.option-card,
.choice-item,
.mcq-option {
    background: #fff !important;
    border: 1.5px solid var(--line) !important;
    border-radius: 12px !important;
    transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.option-card:hover,
.choice-item:hover,
.mcq-option:hover {
    border-color: rgba(37, 99, 235, 0.35) !important;
    background: #f8fbff !important;
}

.option-card.is-selected,
.choice-item.is-selected,
.mcq-option.is-selected,
.option-card:has(input:checked),
.choice-item:has(input:checked),
.mcq-option:has(input:checked) {
    border-color: var(--primary) !important;
    background: var(--primary-soft) !important;
    box-shadow: 0 0 0 3px var(--primary-ring) !important;
}

/* ─── Mobile nav ─── */
.global-mobile-nav {
    background: rgba(255, 255, 255, 0.96) !important;
    border-top: 1px solid var(--line) !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.global-mobile-nav a {
    color: var(--muted) !important;
    font-weight: 700;
}

.global-mobile-nav a.is-active {
    color: var(--primary-deep) !important;
}

.global-mobile-nav a.is-active .material-symbols-rounded {
    color: var(--primary) !important;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

/* ─── Command palette ─── */
.cmdk-overlay {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px);
}

.cmdk-input {
    background: #fff !important;
    color: var(--ink) !important;
}

/* ─── Scrollbars ─── */
.app-sidebar,
.app-main,
.notification-list,
.cmdk-list {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.app-sidebar::-webkit-scrollbar,
.app-main::-webkit-scrollbar {
    width: 8px;
}

.app-sidebar::-webkit-scrollbar-thumb,
.app-main::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

/* ─── Focus ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28) !important;
    outline-offset: 2px;
}

/* ─── Empty states & soft surfaces ─── */
.empty-state,
.notification-empty {
    color: var(--muted) !important;
}

.cloudflare-trust-sidebar {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px;
}

/* ─── Animations ─── */
@keyframes orivex-fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-main > *:first-child,
.dashboard-head,
.card-grid > *,
.metric-card,
.stat-card {
    animation: orivex-fade-up 0.4s var(--ease) both;
}

.card-grid > *:nth-child(2) { animation-delay: 0.04s; }
.card-grid > *:nth-child(3) { animation-delay: 0.08s; }
.card-grid > *:nth-child(4) { animation-delay: 0.12s; }
.card-grid > *:nth-child(5) { animation-delay: 0.16s; }
.card-grid > *:nth-child(6) { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    .app-main > *:first-child,
    .dashboard-head,
    .card-grid > *,
    .metric-card,
    .stat-card {
        animation: none !important;
    }
}

/* ─── Responsive shell polish ─── */
@media (max-width: 980px) {
    .app-main {
        padding: 12px 10px calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .login-showcase {
        min-height: 200px;
    }

    /* iPhone: no horizontal bleed from decorative gradients */
    body.role-student.app-shell-page {
        background-attachment: scroll !important;
    }

    body.role-student .app-main > .section {
        overflow-x: hidden;
    }
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 980px) {
        .app-main {
            padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
        }
    }
}

/* Kill leftover dark Grok overrides if any class remains */
body.grok-ui,
body.orivex-ui {
    color-scheme: light;
}

/* Dense page polish (exams / monitoring / student) */
.page-kpi-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.page-kpi-strip article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow-soft);
    min-height: 0;
}

.page-kpi-strip article small {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.page-kpi-strip article strong {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.page-kpi-strip article.is-live strong {
    color: #059669;
}

.dense-table-card {
    padding: 14px 14px 10px;
}

.dense-table-card .panel-head h3 {
    font-size: 0.95rem;
}

.workflow-strip-tight {
    margin-bottom: 14px;
}

.workflow-strip-tight .workflow-step {
    padding: 10px 12px;
    border-radius: 12px;
}

.page-exams .section,
.page-questions .section,
.page-monitoring .section,
.student-home-dense.section {
    padding-top: 8px;
    padding-bottom: 20px;
}

@media (max-width: 900px) {
    .page-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .page-kpi-strip {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .page-kpi-strip article {
        padding: 10px 12px;
    }

    .page-kpi-strip article strong {
        font-size: 1.15rem;
    }
}

/* =============================================================================
   Orivex-style login (split form + hero) — no demo-access panel
   ============================================================================= */

body.orivex-login-page,
body.orivex-login-page.auth-page,
body.orivex-login-page.login-auth-page {
    background: #fff !important;
    min-height: 100vh;
    min-height: 100dvh;
}

body.orivex-login-page .skip-link {
    z-index: 100;
}

/* Keep the split layout edge-to-edge; security copy is already on the form */
body.orivex-login-page .cloudflare-trust-auth {
    display: none !important;
}

body.orivex-login-page > main#main-content {
    display: block;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.orivex-login {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
}

.orivex-login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    background: #fff;
}

.orivex-login-form-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 64px);
    background: #fff;
}

.orivex-login-form-inner {
    width: min(100%, 400px);
    animation: orivex-fade-up 0.45s var(--ease) both;
}

.orivex-login-brand {
    margin-bottom: 28px;
}

.orivex-login-brand img {
    display: block;
    height: 42px;
    width: auto;
    max-width: min(200px, 70vw);
    object-fit: contain;
}

.orivex-login-title {
    margin: 0 0 10px;
    font-family: var(--font-display), Inter, system-ui, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #0f172a !important;
}

.orivex-login-lead {
    margin: 0 0 28px;
    color: #64748b !important;
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 500;
}

.orivex-login-form {
    display: grid;
    gap: 18px;
}

.orivex-field {
    display: grid;
    gap: 8px;
}

.orivex-field > label,
.orivex-label-row label {
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
}

.orivex-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.orivex-forgot {
    color: #f97316 !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.orivex-forgot:hover {
    color: #ea580c !important;
    text-decoration: underline;
}

.orivex-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.orivex-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 20px;
    pointer-events: none;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
}

.orivex-input-wrap input {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-size: 0.95rem;
    outline: none;
    padding: 0 44px 0 44px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.orivex-input-wrap input::placeholder {
    color: #94a3b8;
}

.orivex-input-wrap input:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.orivex-input-wrap input:focus {
    border-color: #f97316;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.orivex-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
}

.orivex-password-toggle:hover {
    color: #64748b;
    background: #f1f5f9;
}

.orivex-password-toggle .material-symbols-rounded {
    font-size: 20px;
}

.orivex-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    margin-top: -2px;
}

.orivex-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #f97316;
    cursor: pointer;
}

.orivex-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #fb923c, #f97316) !important;
    color: #fff !important;
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.orivex-login-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.34) !important;
    background: linear-gradient(180deg, #fdba74, #ea580c) !important;
}

.orivex-login-submit:active {
    transform: translateY(0);
}

.orivex-login-submit .material-symbols-rounded {
    font-size: 20px;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20;
}

.orivex-login-submit.is-loading {
    opacity: 0.85;
    pointer-events: none;
}

.orivex-login-legal {
    margin: 28px 0 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.5;
}

.orivex-login-legal a {
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
}

.orivex-login-legal a:hover {
    color: #f97316;
    text-decoration: underline;
}

.orivex-login-switch {
    margin: 16px 0 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.orivex-login-switch a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.orivex-login-switch a:hover {
    color: #f97316;
}

/* Hero panel */
.orivex-login-hero {
    position: relative;
    min-height: 100%;
    background-color: #0b1220;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(20px, 3vw, 32px);
    color: #fff;
}

.orivex-login-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(37, 99, 235, 0.25), transparent 55%),
        linear-gradient(180deg, rgba(8, 15, 30, 0.35) 0%, rgba(8, 15, 30, 0.15) 40%, rgba(8, 15, 30, 0.75) 100%);
    pointer-events: none;
    z-index: 0;
}

.orivex-login-hero-top,
.orivex-login-hero-bottom {
    position: relative;
    z-index: 1;
}

.orivex-login-hero-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: flex-start;
}

.orivex-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.orivex-hero-chip .material-symbols-rounded {
    font-size: 18px;
    color: #93c5fd;
}

.orivex-login-hero-bottom {
    max-width: 520px;
    padding-bottom: 8px;
}

.orivex-hero-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}

.orivex-hero-dots span {
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.orivex-hero-dots span.is-active {
    width: 36px;
    background: #fff;
}

.orivex-login-hero-bottom h2 {
    margin: 0 0 12px;
    font-family: var(--font-display), Inter, system-ui, sans-serif;
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #fff !important;
}

.orivex-login-hero-bottom p {
    margin: 0;
    color: rgba(226, 232, 240, 0.88) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
    max-width: 46ch;
}

.orivex-login .alert {
    margin-bottom: 16px;
}

@media (max-width: 980px) {
    .orivex-login-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .orivex-login-hero {
        min-height: 280px;
        order: -1;
    }

    .orivex-login-hero-bottom h2 {
        font-size: 1.4rem;
    }

    .orivex-login-form-col {
        padding: 28px 20px 40px;
    }
}

@media (max-width: 520px) {
    .orivex-login-hero {
        min-height: 220px;
        padding: 16px;
    }

    .orivex-hero-chip {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .orivex-login-form-inner {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orivex-login-form-inner {
        animation: none;
    }
}

/* =============================================================================
   Orivex-style signup (create account) — same shell as login
   ============================================================================= */

body.orivex-signup-page .orivex-signup-form-inner {
    width: min(100%, 520px);
}

.orivex-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    flex-wrap: wrap;
}

.orivex-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 650;
}

.orivex-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.orivex-step.is-active {
    color: #0f172a;
}

.orivex-step.is-active .orivex-step-num {
    background: linear-gradient(180deg, #fb923c, #f97316);
    border-color: transparent;
    color: #fff;
}

.orivex-step.is-done {
    color: #0f172a;
}

.orivex-step.is-done .orivex-step-num {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.orivex-step-line {
    flex: 1;
    min-width: 28px;
    max-width: 64px;
    height: 2px;
    border-radius: 999px;
    background: #e2e8f0;
}

.orivex-step-line.is-done {
    background: #6ee7b7;
}

.orivex-signup-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.84rem;
    line-height: 1.5;
    font-weight: 500;
}

.orivex-signup-note .material-symbols-rounded {
    flex-shrink: 0;
    font-size: 20px;
    color: #f97316;
    margin-top: 1px;
}

.orivex-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
}

.orivex-field-span {
    grid-column: 1 / -1;
}

.orivex-signup-form {
    gap: 16px;
}

.orivex-input-wrap select {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-size: 0.95rem;
    outline: none;
    padding: 0 36px 0 44px;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #94a3b8 50%),
        linear-gradient(135deg, #94a3b8 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    cursor: pointer;
}

.orivex-input-wrap select:hover {
    border-color: #cbd5e1;
    background-color: #fff;
}

.orivex-input-wrap select:focus {
    border-color: #f97316;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.orivex-input-wrap select:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.orivex-otp-group {
    gap: 8px;
}

.orivex-otp-group .otp-digit {
    height: 52px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 800;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.orivex-otp-group .otp-digit:focus {
    border-color: #f97316;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.orivex-signup-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.orivex-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.orivex-secondary-link:hover {
    border-color: #fdba74;
    color: #c2410c;
    background: #fff7ed;
}

.orivex-secondary-link .material-symbols-rounded {
    font-size: 18px;
}

.orivex-login-lead strong {
    color: #0f172a;
    font-weight: 700;
}

body.orivex-signup-page .orivex-login-form-col {
    padding-top: clamp(20px, 3vw, 40px);
    padding-bottom: clamp(24px, 4vw, 48px);
    align-items: flex-start;
}

body.orivex-signup-page .orivex-login-form-inner {
    margin-top: auto;
    margin-bottom: auto;
}

@media (max-width: 980px) {
    body.orivex-signup-page .orivex-signup-form-inner {
        width: min(100%, 520px);
    }
}

@media (max-width: 640px) {
    .orivex-field-grid {
        grid-template-columns: 1fr;
    }

    .orivex-signup-secondary {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   Forgot password + admin login + OTP UX polish
   ============================================================================= */

.orivex-field-hint {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
}

.orivex-auth-single-action {
    grid-template-columns: 1fr;
}

.orivex-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.orivex-admin-badge .material-symbols-rounded {
    font-size: 18px;
}

/* OTP cells — filled / complete / invalid feedback */
.orivex-otp-group {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.orivex-otp-group .otp-digit {
    width: 100%;
    height: 54px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    caret-color: #f97316;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        transform 0.12s ease;
}

.orivex-otp-group .otp-digit:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.orivex-otp-group .otp-digit:focus {
    border-color: #f97316;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
    outline: none;
}

.orivex-otp-group .otp-digit.is-filled {
    border-color: #fdba74;
    background: #fff7ed;
    color: #9a3412;
}

.orivex-otp-group.is-complete .otp-digit {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.orivex-otp-group.is-complete .otp-digit:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.orivex-otp-group.is-invalid .otp-digit {
    border-color: #f87171;
    background: #fef2f2;
    animation: orivex-otp-shake 0.35s ease;
}

@keyframes orivex-otp-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

/* Alerts on Orivex auth pages */
body.orivex-login-page .alert {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
}

body.orivex-login-page .alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

body.orivex-login-page .alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Disabled submit on auth forms */
.orivex-login-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
}

/* Forgot / admin form column alignment */
body.orivex-forgot-page .orivex-login-form-col,
body.orivex-admin-login-page .orivex-login-form-col {
    align-items: center;
}

body.orivex-forgot-page .orivex-login-form-inner,
body.orivex-admin-login-page .orivex-login-form-inner {
    width: min(100%, 400px);
}

@media (max-width: 420px) {
    .orivex-otp-group {
        gap: 6px;
    }

    .orivex-otp-group .otp-digit {
        height: 48px;
        font-size: 1.05rem;
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orivex-otp-group.is-invalid .otp-digit {
        animation: none;
    }
}

/* =============================================================================
   Orivex profile page (admin account + student profile)
   Composes with panel-card / form-card / table-card / info-card system styles
   ============================================================================= */

.orivex-profile-page {
    display: grid;
    gap: 14px;
    max-width: 1120px;
}

.orivex-profile-page > .alert {
    margin: 0;
    border-radius: var(--radius-md);
}

.orivex-profile-head {
    margin: 0 0 2px;
    align-items: flex-start;
}

.orivex-profile-head h1,
.orivex-profile-head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink) !important;
}

.orivex-profile-head p {
    margin: 4px 0 0;
    color: var(--muted) !important;
    font-size: 0.92rem;
    font-weight: 500;
}

/* Reuse panel-card chrome; only layout overrides below */
.orivex-profile-page .panel-card.orivex-profile-hero,
.orivex-profile-page .panel-card.orivex-profile-card,
.orivex-profile-page .form-card.orivex-profile-card,
.orivex-profile-page .table-card.orivex-profile-card,
.orivex-profile-page .info-card.orivex-profile-card {
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    gap: 0;
}

.orivex-profile-hero {
    position: relative;
}

.orivex-profile-hero-banner {
    height: 96px;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.45), transparent 40%),
        linear-gradient(100deg, #fb923c 0%, #fdba74 42%, #fde68a 100%);
}

.orivex-profile-hero-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 0 22px 20px;
    margin-top: -42px;
}

.orivex-profile-identity {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    min-width: 0;
}

.orivex-profile-avatar {
    position: relative;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #fb923c, #ea580c);
    border: 4px solid #fff;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.25);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.orivex-profile-avatar-cam {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    font-size: 14px !important;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
}

.orivex-profile-identity-text {
    min-width: 0;
    padding-bottom: 4px;
}

.orivex-profile-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.orivex-profile-name-row h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.orivex-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.orivex-profile-badge.is-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.orivex-profile-badge .material-symbols-rounded {
    font-size: 14px;
}

.orivex-profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 500;
}

.orivex-profile-meta .material-symbols-rounded {
    font-size: 16px;
    color: #94a3b8;
}

.orivex-dot {
    color: #cbd5e1;
}

.orivex-profile-edit-btn {
    border-radius: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

.orivex-profile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 0;
    margin-bottom: 4px;
}

.orivex-profile-card-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.orivex-profile-card-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.orivex-profile-card > .orivex-profile-grid,
.orivex-profile-card > .orivex-profile-edit-form,
.orivex-profile-card > .table-wrap,
.orivex-profile-card > .orivex-access-table-wrap {
    padding: 12px 16px 18px;
}

.orivex-profile-inline-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.orivex-profile-inline-edit:hover {
    color: #ea580c;
}

.orivex-profile-inline-edit .material-symbols-rounded {
    font-size: 16px;
}

.orivex-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

/* Nested mini-cards for each profile field (reuse card tokens) */
.orivex-profile-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 12px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--card-alt, #f8fafc);
    box-shadow: none;
    transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}

.orivex-profile-field:hover {
    background: #fff;
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.orivex-profile-field-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    color: #64748b;
    display: grid;
    place-items: center;
    font-size: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.orivex-profile-field small {
    display: block;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.orivex-profile-field strong {
    display: block;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.orivex-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
    color: #059669;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 700;
}

.orivex-verified .material-symbols-rounded {
    font-size: 14px;
}

.orivex-profile-edit-form {
    padding: 12px 16px 18px;
}

.orivex-profile-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
}

.orivex-profile-edit-form .orivex-field-span {
    grid-column: 1 / -1;
}

/* Profile forms reuse login field chrome on white card surface */
.orivex-profile-page .orivex-input-wrap input,
.orivex-profile-page .orivex-input-wrap select {
    background: var(--field);
}

.orivex-profile-page .orivex-input-wrap input:focus,
.orivex-profile-page .orivex-input-wrap select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.orivex-profile-form-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.orivex-profile-save,
.btn.orivex-profile-save {
    background: linear-gradient(180deg, #fb923c, #f97316) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.24);
    font-weight: 700;
}

.orivex-profile-save:hover,
.btn.orivex-profile-save:hover {
    filter: brightness(1.03);
}

/* Preference toggles as nested cards */
.orivex-profile-prefs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 18px !important;
}

.orivex-pref-item {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--card-alt, #f8fafc);
    transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.orivex-pref-item:hover {
    background: #fff;
    border-color: rgba(249, 115, 22, 0.28);
    box-shadow: var(--shadow-soft);
}

.orivex-switch {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.orivex-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.orivex-switch-ui {
    position: relative;
    flex-shrink: 0;
    width: 42px;
    height: 24px;
    margin-top: 2px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.18s ease;
}

.orivex-switch-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    transition: transform 0.18s ease;
}

.orivex-switch input:checked + .orivex-switch-ui {
    background: #f97316;
}

.orivex-switch input:checked + .orivex-switch-ui::after {
    transform: translateX(18px);
}

.orivex-switch input:focus-visible + .orivex-switch-ui {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.orivex-pref-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.orivex-pref-copy strong {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.orivex-pref-copy small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

/* Security / 2FA banner — info-card variant */
.orivex-profile-page .info-card.orivex-profile-2fa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px !important;
    background: linear-gradient(100deg, #fff7ed, #fffbeb) !important;
    border-color: #fed7aa !important;
}

.orivex-2fa-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.orivex-2fa-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #fdba74;
    color: #ea580c;
    display: grid;
    place-items: center;
    font-size: 22px;
    box-shadow: var(--shadow-soft);
}

.orivex-profile-2fa h3 {
    margin: 0 0 4px;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--ink);
}

.orivex-profile-2fa p {
    margin: 0 0 8px;
    color: #9a3412;
    font-size: 0.86rem;
    line-height: 1.45;
}

.orivex-2fa-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 650;
}

.orivex-mini-switch {
    width: 28px;
    height: 16px;
    border-radius: 999px;
    background: #e2e8f0;
    position: relative;
}

.orivex-mini-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}

.orivex-mini-switch.is-off {
    background: #cbd5e1;
}

/* Access history */
.orivex-access-head {
    align-items: center;
}

.orivex-logout-others {
    color: #dc2626;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.orivex-logout-others:hover {
    text-decoration: underline;
}

.orivex-profile-card .orivex-access-table-wrap.table-wrap {
    margin: 8px 16px 16px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.orivex-access-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.orivex-access-table th,
.orivex-access-table td {
    padding: 12px 14px;
    text-align: left;
    font-size: 0.86rem;
    border-bottom: 1px solid #f1f5f9;
}

.orivex-access-table th {
    background: var(--field) !important;
    color: var(--muted) !important;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.orivex-access-table tbody tr:last-child td {
    border-bottom: 0;
}

.orivex-access-table tbody tr:hover td {
    background: #f8fafc;
}

.orivex-access-table td {
    color: var(--ink);
    font-weight: 600;
}

/* Soft enter animation for profile cards */
.orivex-profile-page > .panel-card,
.orivex-profile-page > .form-card,
.orivex-profile-page > .table-card,
.orivex-profile-page > .info-card {
    animation: orivex-fade-up 0.4s var(--ease) both;
}

.orivex-profile-page > .panel-card:nth-child(2) { animation-delay: 0.03s; }
.orivex-profile-page > .panel-card:nth-child(3),
.orivex-profile-page > .form-card:nth-child(3) { animation-delay: 0.06s; }
.orivex-profile-page > .panel-card:nth-child(4) { animation-delay: 0.09s; }
.orivex-profile-page > .info-card { animation-delay: 0.12s; }
.orivex-profile-page > .form-card { animation-delay: 0.15s; }
.orivex-profile-page > .table-card { animation-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
    .orivex-profile-page > .panel-card,
    .orivex-profile-page > .form-card,
    .orivex-profile-page > .table-card,
    .orivex-profile-page > .info-card {
        animation: none !important;
    }
}

.orivex-access-empty {
    text-align: center !important;
    color: var(--muted) !important;
    font-weight: 500 !important;
    padding: 22px 14px !important;
}

.orivex-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
}

.orivex-status-pill.is-current {
    background: #ecfdf5;
    color: #047857;
}

.orivex-status-pill.is-signed {
    background: #eff6ff;
    color: #1d4ed8;
}

.orivex-status-pill.is-muted {
    background: #f1f5f9;
    color: #64748b;
}

.orivex-status-pill.is-device {
    background: #fff7ed;
    color: #c2410c;
}

@media (max-width: 980px) {
    .orivex-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .orivex-profile-prefs {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 720px) {
    .orivex-profile-hero-body {
        flex-direction: column;
        align-items: stretch;
        margin-top: -36px;
    }

    .orivex-profile-identity {
        align-items: center;
    }

    .orivex-profile-hero-actions {
        width: 100%;
    }

    .orivex-profile-edit-btn {
        width: 100%;
        justify-content: center;
    }

    .orivex-profile-grid,
    .orivex-profile-edit-grid {
        grid-template-columns: 1fr;
    }

    .orivex-profile-2fa {
        flex-direction: column;
        align-items: stretch;
    }

    .orivex-profile-2fa .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================================================
   Modern Student Hub (Clean, High-Contrast, Zero-Clutter Architecture)
   ============================================================================= */

/* Watermark Architecture: System-wide visible watermark with dynamic exam booster */
.site-watermark-layer,
.exam-watermark-layer,
.exam-security-watermark {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 990 !important;
    pointer-events: none !important;
    opacity: var(--watermark-opacity, 0.18) !important;
    background-image: url('../img/watermark.png') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: min(54vw, 420px) auto !important;
}

body.auth-page .site-watermark-layer,
body.orivex-login-page .site-watermark-layer,
body.login-auth-page .site-watermark-layer {
    opacity: var(--watermark-opacity, 0.22) !important;
    background-size: min(58vw, 380px) auto !important;
}

body.exam-mode .site-watermark-layer,
body.exam-mode .exam-watermark-layer,
body.exam-mode .exam-security-watermark {
    z-index: 999 !important;
    opacity: var(--watermark-opacity, 0.24) !important;
    background-size: min(65vw, 480px) auto !important;
}

/* ─── Preflight 4-Checkbox Agreements (Red Initial → Green on Accept) ─── */
.exam-agreements-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exam-agreement-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exam-agreement-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1.5px solid #fecaca;
    background: #fff5f5;
    color: #dc2626;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.04);
}

.exam-agreement-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
}

.exam-agreement-item.is-pending {
    border-color: #fecaca;
    background: #fff5f5;
    color: #b91c1c;
}

.exam-agreement-item.is-pending .exam-agreement-text {
    color: #dc2626;
}

.exam-agreement-item.is-pending .exam-agreement-text strong {
    color: #991b1b;
}

.exam-agreement-item.is-accepted {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.04);
}

.exam-agreement-item.is-accepted:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.exam-agreement-item.is-accepted .exam-agreement-text {
    color: #059669;
}

.exam-agreement-item.is-accepted .exam-agreement-text strong {
    color: #065f46;
}

.exam-agreement-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    cursor: pointer;
    accent-color: #dc2626;
    flex-shrink: 0;
    transition: accent-color 0.2s ease;
}

.exam-agreement-item.is-accepted .exam-agreement-checkbox {
    accent-color: #10b981;
}

.exam-agreement-text {
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 500;
}

.student-dashboard-page {
    padding: 24px 0 60px;
}

.sh-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ─── Hero Section ─── */
.sh-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    border-radius: 20px;
    padding: 32px 36px;
    color: #ffffff;
    box-shadow: 0 12px 32px -4px rgba(37, 99, 235, 0.25), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.sh-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.sh-hero-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.sh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    width: fit-content;
    color: #ffffff;
}

.sh-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.35);
    animation: sh-pulse 2s infinite;
}

@keyframes sh-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
}

/* ─── EduNova AI Mascot Hero Architecture (mascf1 for Girls, mascm1 for Boys) ─── */
.edunova-hero-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: stretch;
}

.edunova-hero-card {
    background: #ffffff;
    background-image: 
        radial-gradient(circle at 92% 20%, rgba(219, 234, 254, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 98% 85%, rgba(224, 242, 254, 0.5) 0%, transparent 40%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 50%, #f0f7ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 28px 0 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

.edunova-hero-card::before {
    content: "school";
    font-family: 'Material Symbols Rounded';
    position: absolute;
    top: 14px;
    right: 28px;
    font-size: 80px;
    color: #3b82f6;
    opacity: 0.07;
    pointer-events: none;
    line-height: 1;
}

.edunova-hero-card::after {
    content: "bar_chart";
    font-family: 'Material Symbols Rounded';
    position: absolute;
    bottom: 12px;
    right: 20px;
    font-size: 70px;
    color: #3b82f6;
    opacity: 0.06;
    pointer-events: none;
    line-height: 1;
}

.edunova-mascot-box {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    align-self: stretch;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-bottom: 0;
}

.edunova-mascot-img {
    height: 100%;
    max-height: 215px;
    width: 100%;
    max-width: 180px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    margin: 0 auto;
}

.edunova-hero-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
    padding-bottom: 24px;
}

.edunova-hero-title {
    font-size: 1.7rem;
    font-weight: 850;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.edunova-hero-subtitle {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 600;
    margin: 0;
}

.edunova-quote-box {
    font-size: 0.86rem;
    color: #2563eb;
    font-style: italic;
    background: rgba(255, 255, 255, 0.75);
    border-left: 3px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    padding: 8px 14px;
    margin: 2px 0 0;
}

.edunova-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 2px;
}

.edunova-pill-tag {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 750;
    color: #1e293b;
}

.edunova-avatar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
}

.edunova-avatar-toggle:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* AI Study Assistant Card */
.edunova-ai-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
}

.edunova-ai-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.edunova-ai-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    flex-shrink: 0;
}

.edunova-prompt-chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edunova-prompt-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
}

.edunova-prompt-chip:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* 5-KPI Strip */
.edunova-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.edunova-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: all 0.15s ease;
}

.edunova-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.edunova-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.edunova-kpi-icon-pill {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #ffffff;
}

.edunova-kpi-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
}

.edunova-kpi-val {
    font-size: 1.55rem;
    font-weight: 850;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.edunova-kpi-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

/* ─── ULTRA-PREMIUM RESPONSIVE MOBILE & TABLET DESIGN SYSTEM ─── */
.edunova-analytics-tri-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.edunova-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    position: relative;
}

.edunova-table-responsive::-webkit-scrollbar {
    height: 6px;
}
.edunova-table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}
.edunova-table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

/* Tablet Layout (<= 1100px) */
@media (max-width: 1100px) {
    .edunova-hero-wrap {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .edunova-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .edunova-analytics-tri-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* Mobile & Small Tablet Layout (<= 768px) */
@media (max-width: 768px) {
    .edunova-page {
        padding: 12px 0 24px;
    }
    .edunova-container {
        padding: 0 12px;
    }
    
    /* Hero Card Mobile App-Like Styling */
    .edunova-hero-card {
        grid-template-columns: 110px 1fr;
        gap: 16px;
        padding: 16px 16px 0 16px;
        border-radius: 16px;
        text-align: left;
        align-items: stretch;
    }
    .edunova-mascot-box {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        align-self: stretch;
        overflow: hidden;
    }
    .edunova-mascot-img {
        height: 100%;
        max-height: 135px;
        width: 100%;
        max-width: 110px;
        object-fit: contain;
        object-position: bottom center;
        display: block;
    }
    .edunova-hero-title {
        font-size: 1.28rem;
        font-weight: 850;
        line-height: 1.2;
    }
    .edunova-hero-subtitle {
        font-size: 0.88rem;
    }
    .edunova-hero-card::before {
        font-size: 55px;
        top: 8px;
        right: 12px;
        opacity: 0.05;
    }
    .edunova-hero-card::after {
        font-size: 45px;
        bottom: 8px;
        right: 10px;
        opacity: 0.04;
    }
    .edunova-tags-row {
        justify-content: flex-start;
        gap: 6px;
    }
    .edunova-pill-tag {
        font-size: 0.72rem;
        padding: 3px 9px;
    }
    .edunova-avatar-toggle {
        font-size: 0.72rem;
        padding: 3px 8px;
    }
    
    /* 5-KPI Strip Mobile: Sleek 2-Column Touch Grid with 5th Card Full Width */
    .edunova-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .edunova-kpi-card {
        padding: 14px 14px;
        border-radius: 14px;
        gap: 6px;
    }
    .edunova-kpi-card:nth-child(5) {
        grid-column: span 2;
    }
    .edunova-kpi-val {
        font-size: 1.35rem;
    }
    .edunova-kpi-label {
        font-size: 0.74rem;
    }
    .edunova-kpi-sub {
        font-size: 0.72rem;
    }
    .edunova-kpi-icon-pill {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    .edunova-kpi-icon-pill .material-symbols-rounded {
        font-size: 16px !important;
    }

    /* Main Workspace Column */
    .edunova-main-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .edunova-analytics-tri-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* AI Card Mobile */
    .edunova-ai-card {
        padding: 16px 16px;
        border-radius: 16px;
    }
    .edunova-prompt-chip {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile (<= 480px) */
@media (max-width: 480px) {
    .edunova-container {
        padding: 0 10px;
    }
    .edunova-hero-card {
        grid-template-columns: 95px 1fr;
        gap: 12px;
        padding: 14px 14px;
    }
    .edunova-mascot-img {
        max-height: 105px;
    }
    .edunova-hero-title {
        font-size: 1.15rem;
    }
    .edunova-hero-subtitle {
        font-size: 0.82rem;
    }
    .edunova-hero-body div[style*="font-size: 0.95rem"] {
        font-size: 0.82rem !important;
        line-height: 1.35 !important;
    }
    .edunova-hero-body .btn {
        width: 100%;
        justify-content: center;
        padding: 11px 16px !important;
        font-size: 0.88rem !important;
    }
    .edunova-hero-body div[style*="display: flex; gap: 10px;"] {
        flex-direction: column;
        width: 100%;
        gap: 8px !important;
    }
    .edunova-card {
        padding: 16px 14px !important;
        border-radius: 16px !important;
    }
    .edunova-card-title {
        font-size: 0.95rem !important;
    }
}

.sh-hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.sh-hero-cohort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.sh-cohort-tag {
    background: rgba(255, 255, 255, 0.14);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}

.sh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.sh-btn-white {
    background: #ffffff !important;
    color: #1e40af !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}

.sh-btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;
    background: #f8fafc !important;
}

.sh-btn-glass {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
}

.sh-btn-glass:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
}

/* Hero Right Side Profile Widget */
.sh-hero-widget {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 260px;
    position: relative;
    z-index: 1;
}

.sh-widget-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sh-widget-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff;
    color: #2563eb;
    font-size: 1.15rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.sh-widget-info strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 750;
    color: #ffffff;
}

.sh-widget-info span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.sh-widget-score {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sh-widget-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
}

.sh-widget-score-row span {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.sh-widget-score-row strong {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.sh-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
}

.sh-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #38bdf8);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Metric KPI Grid ─── */
.sh-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sh-kpi-grid.is-6-col {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1200px) {
    .sh-kpi-grid.is-6-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sh-kpi-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.sh-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.sh-kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.sh-kpi-icon .material-symbols-rounded {
    font-size: 24px;
}

.sh-kpi-icon.is-live {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
}

.sh-kpi-icon.is-upcoming {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28) !important;
}

.sh-kpi-icon.is-done {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28) !important;
}

.sh-kpi-icon.is-score {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.28) !important;
}

.sh-kpi-data {
    display: flex;
    flex-direction: column;
}

.sh-kpi-data strong {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sh-kpi-data span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 2px;
}

/* ─── Priority Up-Next Banner ─── */
.sh-priority-card {
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
}

.sh-priority-card.is-live {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-color: #93c5fd;
}

.sh-priority-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sh-priority-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.sh-priority-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sh-priority-info strong {
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--ink);
}

.sh-priority-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.sh-priority-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ─── Announcements Strip ─── */
.sh-notices-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sh-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sh-section-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-section-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.sh-section-link:hover {
    color: var(--primary-deep);
    text-decoration: underline;
}

.sh-notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.sh-notice-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.sh-notice-card.is-critical {
    border-left-color: #ef4444;
}

.sh-notice-card.is-important {
    border-left-color: #f59e0b;
}

.sh-notice-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.sh-notice-tag {
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.sh-notice-card.is-critical .sh-notice-tag { color: #dc2626; }
.sh-notice-card.is-important .sh-notice-tag { color: #d97706; }

.sh-notice-date {
    color: var(--muted-2);
}

.sh-notice-card strong {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--ink);
}

.sh-notice-card p {
    font-size: 0.84rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.45;
}

/* ─── Main 2-Column Split Layout ─── */
.sh-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.sh-main-col,
.sh-side-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sh-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ─── Modern Exam Cards Inside Main Panel ─── */
.sh-exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.sh-exam-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.sh-exam-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}

.sh-exam-card.is-live {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.sh-exam-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sh-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sh-status-pill.live {
    background: #ecfdf5;
    color: #047857;
}

.sh-status-pill.upcoming {
    background: #fef3c7;
    color: #b45309;
}

.sh-status-pill.completed {
    background: #f1f5f9;
    color: #475569;
}

.sh-exam-type {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted-2);
    text-transform: uppercase;
}

.sh-exam-card h4 {
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--ink);
    margin: 0;
    line-height: 1.35;
}

.sh-exam-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--muted);
}

.sh-exam-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sh-exam-meta .material-symbols-rounded {
    font-size: 16px;
    color: var(--muted-2);
}

.sh-exam-progress {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--muted);
}

.sh-exam-progress-head {
    display: flex;
    justify-content: space-between;
}

.sh-exam-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

/* ─── Result Rows ─── */
.sh-result-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sh-result-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sh-result-row:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transform: translateX(2px);
}

.sh-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sh-result-info strong {
    font-size: 0.92rem;
    font-weight: 750;
    color: var(--ink);
}

.sh-result-info small {
    font-size: 0.78rem;
    color: var(--muted);
}

.sh-result-score {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.sh-result-score strong {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--ink);
}

.sh-result-score small {
    font-size: 0.74rem;
    color: var(--muted);
}

/* ─── Sidebar Components ─── */
.sh-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sh-timeline-item {
    padding: 12px 14px;
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sh-timeline-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sh-timeline-top strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
}

.sh-timeline-badge {
    font-size: 0.72rem;
    font-weight: 750;
    color: #b45309;
    background: #fef3c7;
    padding: 2px 7px;
    border-radius: 4px;
}

.sh-timeline-item small {
    font-size: 0.76rem;
    color: var(--muted);
}

.sh-chart-wrap {
    height: 180px;
    position: relative;
}

.sh-tips-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sh-tip-card {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sh-tip-card.is-success {
    border-left: 3px solid #10b981;
}

.sh-tip-card.is-focus {
    border-left: 3px solid #3b82f6;
}

.sh-tip-card.is-risk {
    border-left: 3px solid #f59e0b;
}

.sh-tip-card span {
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.sh-tip-card strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
}

.sh-tip-card p {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

/* ─── Responsive Breakdown ─── */
@media (max-width: 1080px) {
    .sh-layout {
        grid-template-columns: 1fr;
    }
    
    .sh-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sh-hero {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }
    
    .sh-hero-title {
        font-size: 1.45rem;
    }
    
    .sh-hero-widget {
        min-width: 0;
        width: 100%;
    }
    
    .sh-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .sh-kpi-card {
        padding: 12px 10px !important;
        gap: 10px !important;
        border-radius: 14px !important;
    }

    .sh-kpi-icon {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
    }

    .sh-kpi-icon .material-symbols-rounded {
        font-size: 20px !important;
    }

    .sh-kpi-data strong {
        font-size: 1.25rem !important;
    }

    .sh-kpi-data span {
        font-size: 0.72rem !important;
    }
    
    .sh-priority-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sh-priority-actions {
        width: 100%;
    }
    
    .sh-priority-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .sh-score-hero {
        padding: 16px 14px !important;
    }

    .sh-score-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        margin-top: 6px !important;
    }

    .sh-score-actions .btn {
        width: 100% !important;
        padding: 7px 4px !important;
        font-size: 0.72rem !important;
        justify-content: center !important;
    }
}

/* =============================================================================
   EXAMCLUTCH PRO STUDIO & TESTS DASHBOARD DESIGN SYSTEM (Matching References)
   ============================================================================= */

/* ─── Topbar Navigation ─── */
.ec-studio-page {
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ec-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.ec-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.ec-breadcrumb span.sep {
    color: #94a3b8;
    font-weight: 400;
}

.ec-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ec-exit-btn {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.ec-exit-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.ec-submit-btn {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 9px 20px !important;
    font-size: 0.9rem !important;
    font-weight: 750 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
}

.ec-submit-btn:hover {
    background: #1e293b !important;
    transform: translateY(-1px);
}

/* ─── 3-Column Studio Grid Layout ─── */
.ec-studio-grid {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 24px 40px;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

/* ─── Left Column: Question Palette ─── */
.ec-palette-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ec-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    font-weight: 750;
    color: #334155;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.ec-section-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}

.ec-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.ec-dot.green { background: #10b981; }
.ec-dot.purple { background: #a855f7; }
.ec-dot.gray { background: #cbd5e1; }

.ec-palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.ec-palette-btn {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.15s ease;
    padding: 0;
}

.ec-palette-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.ec-palette-btn.is-current {
    border: 2px solid #0f172a !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.ec-palette-btn.is-answered {
    background: #d1fae5 !important;
    border-color: #6ee7b7 !important;
    color: #065f46 !important;
    font-weight: 700 !important;
}

.ec-palette-btn.is-flagged {
    background: #f3e8ff !important;
    border-color: #d8b4fe !important;
    color: #6b21a8 !important;
    font-weight: 700 !important;
}

.ec-palette-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
}

.ec-palette-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ─── Center Column: Question Workspace ─── */
.ec-workspace-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ec-question-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ec-question-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.ec-question-report {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.ec-question-report:hover {
    color: #475569;
}

.ec-question-stem {
    font-size: 1rem;
    color: #1e293b;
    line-height: 1.65;
    font-weight: 500;
}

.ec-question-media-box {
    max-width: 520px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin: 8px 0;
}

.ec-question-media-box img {
    width: 100%;
    height: auto;
    display: block;
}

.ec-options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ec-option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.15s ease;
    user-select: none;
}

.ec-option-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.ec-option-card.is-selected {
    border-color: #6366f1 !important;
    background: #eef2ff !important;
}

.ec-option-card input[type="radio"] {
    display: none;
}

.ec-option-key {
    font-size: 0.95rem;
    font-weight: 750;
    color: #475569;
    min-width: 24px;
}

.ec-option-card.is-selected .ec-option-key {
    color: #4f46e5;
}

.ec-option-text {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.45;
    flex: 1;
}

.ec-option-card.is-selected .ec-option-text {
    color: #1e1b4b;
    font-weight: 600;
}

.ec-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    margin-top: 6px;
}

.ec-bookmark-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ec-bookmark-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.ec-bookmark-btn.is-active {
    background: #f3e8ff;
    border-color: #c084fc;
    color: #7e22ce;
}

.ec-clear-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ec-clear-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.ec-next-btn {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-size: 0.9rem !important;
    font-weight: 750 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
}

.ec-next-btn:hover {
    background: #1e293b !important;
    transform: translateY(-1px);
}

/* ─── Right Column: Timer & Overview Stats ─── */
.ec-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ec-timer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ec-timer-digits {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    font-family: 'Inter', monospace;
    display: block;
    line-height: 1;
}

.ec-timer-labels {
    display: flex;
    justify-content: center;
    gap: 28px;
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ec-timer-btn {
    width: 100%;
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.ec-timer-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.ec-overview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ec-overview-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ec-overview-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ec-overview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #475569;
    font-weight: 500;
}

.ec-overview-row strong {
    font-weight: 750;
    color: #0f172a;
}

.ec-overview-row.is-ans strong {
    color: #059669;
}

.ec-overview-row.is-flag strong {
    color: #7c3aed;
}

/* ─── Review & Submit Modal ─── */
.ec-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.ec-modal-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 36px;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ec-modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ec-modal-stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.ec-modal-stat-box strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
}

.ec-modal-stat-box span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

/* ─── Student Mock Tests Dashboard (Images 2, 3, 4) ─── */
.ec-tests-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 60px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ec-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ec-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 750;
    color: #0f172a;
}

.ec-filters-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ec-filter-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.ec-filter-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ec-filter-chip.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* ─── Extraordinary Assessment Cards (Desktop & Mobile Optimized) ─── */
.ec-assessment-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.ec-assessment-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.ec-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ec-card-title-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ec-card-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}

.ec-card-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ec-badge-live {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ec-badge-live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.ec-badge-upcoming {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 750;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
}

.ec-badge-completed {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-size: 0.72rem;
    font-weight: 750;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
}

.ec-badge-type {
    font-size: 0.74rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ec-card-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* 3-Item Metrics Strip */
.ec-card-metrics-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.ec-metric-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px;
}

.ec-metric-cell-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ec-metric-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ec-metric-rail {
    height: 7px;
    width: 60px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    display: inline-block;
}

.ec-metric-rail i {
    display: block;
    height: 100%;
    background: #10b981;
    border-radius: 999px;
}

.ec-metric-val {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
}

.ec-metric-val.is-highlight {
    color: #059669;
}

/* Card CTA Action */
.ec-card-action-wrap {
    flex-shrink: 0;
}

.ec-card-cta-btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ec-card-cta-btn.is-live {
    background: #0f172a;
    color: #ffffff;
    border: 1.5px solid #0f172a;
}

.ec-card-cta-btn.is-live:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.ec-card-cta-btn.is-result {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
}

.ec-card-cta-btn.is-result:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.ec-card-cta-btn.is-disabled {
    background: #f8fafc;
    color: #94a3b8;
    border: 1.5px solid #e2e8f0;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ─── Extraordinary KPI Dashboards ─── */
.sh-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sh-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.sh-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}

.sh-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    flex-shrink: 0;
}

.sh-kpi-icon.is-live {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.sh-kpi-icon.is-done {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}

.sh-kpi-icon.is-score {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.25);
}

.sh-kpi-icon.is-upcoming {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.25);
}

.sh-kpi-data {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sh-kpi-data strong {
    font-size: 1.45rem;
    font-weight: 850;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sh-kpi-data span {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

/* ─── Responsive Breakdown for Mobile & Tablet ─── */
@media (max-width: 900px) {
    .sh-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ec-assessment-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px 20px;
    }
    
    .ec-card-metrics-strip {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 12px 14px;
        text-align: center;
    }
    
    .ec-metric-cell {
        min-width: 0;
        align-items: center;
    }
    
    .ec-card-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }
}

@media (max-width: 600px) {
    .sh-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .ec-card-metrics-strip {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        padding: 8px 6px !important;
    }
}

/* =============================================================================
   EDUNOVA AI ERP FULL DASHBOARD DESIGN SYSTEM (Matching Reference Image 1)
   ============================================================================= */

.edunova-page {
    background: #f4f7fb;
    min-height: 100vh;
    padding: 16px 0 60px;
}

.edunova-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Top Main Grid: Left Workspace (1fr) + Right Sidebar (320px) */
.edunova-main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.edunova-col-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.edunova-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* EduNova Card Box */
.edunova-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edunova-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.edunova-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edunova-card-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.edunova-card-link:hover {
    text-decoration: underline;
}

/* 6 Subject Cards Grid (Matching Reference Image 1) */
.edunova-subjects-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.edunova-subject-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.edunova-subject-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.edunova-subject-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edunova-sub-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.edunova-sub-icon.physics { background: #eff6ff; color: #2563eb; }
.edunova-sub-icon.chem { background: #e0f2fe; color: #0284c7; }
.edunova-sub-icon.maths { background: #f5f3ff; color: #7c3aed; }
.edunova-sub-icon.bio { background: #ecfdf5; color: #059669; }
.edunova-sub-icon.eng { background: #fdf2f8; color: #db2777; }
.edunova-sub-icon.cs { background: #f0fdf4; color: #16a34a; }

.edunova-sub-meta h5 {
    font-size: 0.88rem;
    font-weight: 750;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.edunova-sub-meta span {
    font-size: 0.72rem;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

.edunova-subject-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f8fafc;
}

.edunova-sub-grade {
    font-size: 0.88rem;
    font-weight: 850;
    color: #0f172a;
}

.edunova-sub-pct {
    font-size: 0.78rem;
    font-weight: 750;
    color: #059669;
}

/* Middle 4-Card Action Row (Matching Reference Image 1) */
.edunova-mid-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Exam Schedule List Item */
.edunova-exam-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.edunova-exam-item:last-child {
    border-bottom: none;
}

.edunova-date-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
}

.edunova-date-badge span {
    font-size: 0.65rem;
    font-weight: 800;
    color: #1e40af;
    text-transform: uppercase;
    line-height: 1;
}

.edunova-date-badge strong {
    font-size: 0.95rem;
    font-weight: 850;
    color: #1e3a8a;
    line-height: 1.1;
}

.edunova-exam-info h6 {
    font-size: 0.84rem;
    font-weight: 750;
    color: #0f172a;
    margin: 0;
}

.edunova-exam-info span {
    font-size: 0.72rem;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

/* Study Material List Item */
.edunova-material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
}

.edunova-material-item:last-child {
    border-bottom: none;
}

.edunova-pdf-icon {
    color: #ef4444;
    font-size: 20px;
}

.edunova-material-info h6 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.edunova-material-info span {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* Fee & Exam Reminder Card */
.edunova-fee-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edunova-fee-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edunova-fee-top strong {
    font-size: 0.84rem;
    color: #92400e;
}

.edunova-fee-amount {
    font-size: 1.4rem;
    font-weight: 850;
    color: #78350f;
    margin: 4px 0 0;
}

.edunova-fee-meta {
    font-size: 0.75rem;
    color: #b45309;
    font-weight: 600;
}

.edunova-fee-btn {
    background: #d97706;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 4px;
}

.edunova-fee-btn:hover {
    background: #b45309;
}

/* Right Sidebar Widgets (Matching Reference Image 1) */
.edunova-timetable-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edunova-timetable-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.edunova-timetable-row.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.edunova-time-label {
    font-size: 0.76rem;
    font-weight: 750;
    color: #475569;
    min-width: 65px;
}

.edunova-subject-title {
    font-size: 0.84rem;
    font-weight: 750;
    color: #0f172a;
}

.edunova-subject-title small {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

.edunova-badge-tag {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
}

.edunova-badge-tag.completed {
    background: #ecfdf5;
    color: #047857;
}

.edunova-badge-tag.now {
    background: #2563eb;
    color: #ffffff;
}

/* Study Plan Progress Bars */
.edunova-plan-strip {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edunova-plan-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edunova-plan-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 650;
    color: #334155;
}

.edunova-plan-rail {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.edunova-plan-rail i {
    display: block;
    height: 100%;
    background: #2563eb;
    border-radius: 999px;
}

/* AI Floating Study Assistant Box */
.edunova-assistant-box {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edunova-assistant-chat-btn {
    background: #ffffff;
    border: 1px solid #c4b5fd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b21a8;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.edunova-assistant-chat-btn:hover {
    background: #f5f3ff;
    border-color: #8b5cf6;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .edunova-main-grid {
        grid-template-columns: 1fr;
    }
    .edunova-subjects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .edunova-mid-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .edunova-subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .edunova-mid-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   EXTRAORDINARY MOBILE APP NAVIGATION & TOUCH DESIGN SYSTEM (iOS & Android)
   ============================================================================= */

/* Desktop Rule: Strictly hide mobile bottom bars on desktop */
@media (min-width: 769px) {
    .global-mobile-nav,
    .student-mobile-nav,
    .admin-mobile-nav {
        display: none !important;
    }
}

/* Mobile Rule: Active on screens <= 768px */
@media (max-width: 768px) {
    /* 1. Safe Bottom Padding for Mobile Shell */
    body.has-mobile-nav .app-main,
    body.role-student .app-main,
    body.role-admin .app-main {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* 2. Glassmorphic App Bottom Navigation Bar */
    .global-mobile-nav,
    .student-mobile-nav,
    .admin-mobile-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        height: auto !important;
        min-height: 58px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        backdrop-filter: blur(24px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
        border-top: 1px solid rgba(226, 232, 240, 0.85) !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -6px 28px rgba(15, 23, 42, 0.08) !important;
        padding: 6px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        gap: 4px !important;
        margin: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
    }

    .global-mobile-nav a,
    .student-mobile-nav a,
    .admin-mobile-nav a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        flex: 1 !important;
        min-width: 0 !important;
        padding: 6px 4px !important;
        border-radius: 12px !important;
        color: #64748b !important;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        -webkit-tap-highlight-color: transparent !important;
        position: relative !important;
    }

    .global-mobile-nav a span.material-symbols-rounded,
    .student-mobile-nav a span.material-symbols-rounded,
    .admin-mobile-nav a span.material-symbols-rounded {
        font-size: 22px !important;
        line-height: 1 !important;
        color: #64748b !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .global-mobile-nav a:active,
    .student-mobile-nav a:active,
    .admin-mobile-nav a:active {
        transform: scale(0.92) !important;
    }

    .global-mobile-nav a.is-active,
    .student-mobile-nav a.is-active,
    .admin-mobile-nav a.is-active {
        color: #2563eb !important;
        font-weight: 850 !important;
        background: #eff6ff !important;
    }

    .global-mobile-nav a.is-active span.material-symbols-rounded,
    .student-mobile-nav a.is-active span.material-symbols-rounded,
    .admin-mobile-nav a.is-active span.material-symbols-rounded {
        color: #2563eb !important;
        transform: translateY(-1px) scale(1.08) !important;
    }
}

/* Hide mobile bottom nav during live fullscreen exam */
body.exam-mode .global-mobile-nav,
body.exam-mode .student-mobile-nav,
body.exam-mode .admin-mobile-nav {
    display: none !important;
}

/* 3. Mobile Filter Chips (Smooth Touch Flicking) */
.exam-filter-chips {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 2px 2px 6px;
    scrollbar-width: none;
}
.exam-filter-chips::-webkit-scrollbar {
    display: none;
}

.exam-filter-chip {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* 4. Mobile Preflight & Exam Taking Enhancements */
@media (max-width: 768px) {
    .exam-preflight-meta {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 14px 16px !important;
    }

    .exam-preflight-actions {
        flex-direction: column-reverse !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .exam-preflight-actions .btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 46px !important;
        font-size: 0.92rem !important;
    }

    .exam-agreements-section {
        padding: 16px 14px !important;
    }

    .exam-agreement-item {
        padding: 12px 14px !important;
        font-size: 0.85rem !important;
    }

    .exam-header-bar {
        padding: 10px 14px !important;
    }

    .exam-timer-badge {
        font-size: 1.1rem !important;
        padding: 6px 12px !important;
    }

    .exam-question-card {
        padding: 18px 16px !important;
        border-radius: 16px !important;
    }

    .exam-question-text {
        font-size: 1.05rem !important;
        line-height: 1.45 !important;
    }

    .exam-option-card {
        min-height: 52px !important;
        padding: 12px 14px !important;
        font-size: 0.95rem !important;
        border-radius: 12px !important;
    }

    .exam-bottom-action-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 100 !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(16px) !important;
        border-top: 1px solid #e2e8f0 !important;
        padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08) !important;
    }
}

/* 5. Mobile Table Experience */
.edunova-table-responsive table {
    min-width: 620px;
}

@media (max-width: 600px) {
    .edunova-table-responsive {
        box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.12);
    }
}









