@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
    --bg-dark: #041711;
    --bg-surface: #07251c;
    --card-bg: #0b3327;
    --gold: #fbbf24;
    --gold-gradient: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    --gold-glow: 0 0 25px rgba(245, 158, 11, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a3c2b7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Authentication Layout (Login & Register) */
.auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    background: radial-gradient(circle at 50% 30%, #084032 0%, #041711 60%, #020c09 100%);
    position: relative;
}

.auth::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15), transparent 70%);
    pointer-events: none;
}

.authbox {
    width: min(480px, calc(100% - 24px));
    background: rgba(11, 51, 39, 0.92);
    backdrop-filter: blur(25px);
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    border-radius: 28px;
    padding: 40px 35px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), var(--gold-glow);
    position: relative;
    z-index: 2;
}

.authbox img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: var(--gold-glow);
    display: block;
    margin: 0 auto 16px auto;
    object-fit: contain;
}

.authbox h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    color: #fff;
    margin: 0 0 6px 0;
}

.authbox p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 24px 0;
}

.authbox form {
    display: grid;
    gap: 12px;
}

.authbox label {
    font-size: 12px;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.authbox input, .authbox select {
    width: 100%;
    padding: 14px 16px;
    background: #041a13;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.authbox input:focus, .authbox select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.3);
}

.authbox button {
    margin-top: 10px;
    width: 100%;
    padding: 16px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 12px;
    color: #000;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: var(--gold-glow);
    transition: all 0.3s ease;
}

.authbox button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.6);
}

.authbox > a, .authbox small {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.authbox > a:hover {
    text-decoration: underline;
}

.error {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #6ee7b7;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

/* Sidebar & Student Dashboard */
aside.student-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    background: linear-gradient(180deg, #041f17, #02120e);
    border-right: 1px solid rgba(251, 191, 36, 0.15);
    color: #fff;
    padding: 24px 18px;
    z-index: 100;
}

.sbrand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sbrand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.sbrand b { font-family: 'Outfit', sans-serif; font-size: 20px; color: var(--gold); }
.sbrand span { font-size: 11px; color: var(--text-secondary); }

aside.student-sidebar nav { margin-top: 24px; }
aside.student-sidebar a {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #c7ded6;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    margin: 6px 0;
    transition: all 0.25s ease;
}

aside.student-sidebar a.active, aside.student-sidebar a:hover {
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold);
    border-left: 4px solid var(--gold);
}

main {
    margin-left: 260px;
    padding: 30px 40px;
    background: var(--bg-dark);
    min-height: 100vh;
}

main header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.smenu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.15);
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    color: var(--gold);
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.smenu:active {
    transform: scale(0.92);
}

main header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.student-chip {
    margin-left: auto;
    background: rgba(11, 51, 39, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 8px 16px;
    border-radius: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.student-chip > div {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #000;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.student-chip span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.student-chip b { color: #fff; font-size: 14px; font-weight: 800; display: block; line-height: 1.2; }
.student-chip small { color: var(--gold); font-size: 11px; font-weight: 700; display: block; line-height: 1.2; }

/* Student Cards & Panels */
.scards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.scards article {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.3s ease;
}

.scards article > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.scards article:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.scards i {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-size: 24px;
    flex-shrink: 0;
}

.scards span { font-size: 12px; color: var(--text-secondary); font-weight: 600; display: block; }
.scards b { font-family: 'Outfit', sans-serif; font-size: 30px; color: #fff; display: block; line-height: 1; }

.welcome {
    background: linear-gradient(135deg, #094435, #04231b);
    border: 1.5px solid var(--gold);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--gold-glow);
}

.welcome > div { padding: 40px; }
.welcome h2 { font-family: 'Outfit', sans-serif; font-size: 36px; color: #fff; margin: 0 0 10px 0; }
.welcome p { color: var(--text-secondary); font-size: 16px; margin: 0 0 20px 0; }
.welcome a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-gradient);
    color: #000;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none;
}

.spanel {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 25px;
}

.shead h2 { font-family: 'Outfit', sans-serif; font-size: 22px; color: #fff; margin: 0; }
.shead p { color: var(--text-secondary); font-size: 12px; margin: 4px 0 0 0; }
.shead a { color: var(--gold); font-weight: 800; font-size: 13px; text-decoration: none; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-align: left; }
th { color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; background: rgba(4, 23, 17, 0.6); }
td { color: #e2f0ea; }


/* Student Profile Grid & Change Password Styling */
.profile-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.spanel form label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 14px 0 6px 0;
}

.spanel form label:first-of-type {
    margin-top: 0;
}

.spanel form input, .spanel form select {
    width: 100%;
    padding: 12px 14px;
    background: #041a13;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.25s ease;
}

.spanel form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.3);
}

.spanel form button {
    background: var(--gold-gradient);
    color: #000;
    border: none;
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    margin-top: 18px;
    box-shadow: var(--gold-glow);
    transition: transform 0.2s ease;
}

.spanel form button:hover {
    transform: translateY(-2px);
}

@media(max-width: 950px) {
    .smenu { display: flex !important; }
    aside.student-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000;
        box-shadow: 15px 0 50px rgba(0, 0, 0, 0.8);
    }
    .sopen aside.student-sidebar { transform: translateX(0); }
    main { margin-left: 0; padding: 16px 14px 85px 14px !important; }
    main header h1 { font-size: 22px; }
    main header p { font-size: 12px; }
    .student-email { display: none; }
    .scards { grid-template-columns: 1fr 1fr; }
    .welcome { grid-template-columns: 1fr; }
    .profile-grid-container { grid-template-columns: 1fr; }
}

@media(max-width: 600px) {
    .scards { grid-template-columns: 1fr; }
    .authbox { padding: 30px 20px; }
}

a {
    color: var(--gold);
    transition: color 0.2s ease;
}
a:hover {
    color: #f59e0b;
}

/* Professional CBT Mock Test Portal Styles */
body.testpage {
    background: #020f0b;
    color: #e2f0ea;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

body.testpage main,
body.testpage main.cbt-question-wrapper {
    margin-left: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    min-height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.testpage aside,
body.testpage aside.cbt-sidebar {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    background: transparent !important;
    border-right: none !important;
    padding: 0 !important;
    z-index: 1 !important;
}

body.testpage img {
    max-width: 100%;
    height: auto;
}

.cbt-header {
    background: #052119;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cbt-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cbt-brand img {
    height: 42px !important;
    width: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    border-radius: 50%;
    border: 2px solid #fbbf24;
    object-fit: contain;
    flex-shrink: 0;
}

.cbt-brand-info h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #fff;
    margin: 0;
}

.cbt-brand-info span {
    font-size: 12px;
    color: #a3c2b7;
}

.cbt-header-center {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(11, 51, 39, 0.9);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
}

.cbt-timer-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #a3c2b7;
    font-weight: 800;
}

.cbt-timer-val {
    font-family: 'Outfit', monospace;
    font-size: 22px;
    font-weight: 900;
    color: #fbbf24;
}

.cbt-timer-val.warning {
    color: #ef4444;
    animation: pulse 1s infinite;
}

.cbt-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

.cbt-question-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cbt-question-card {
    background: #072b20;
    border: 1.5px solid rgba(251, 191, 36, 0.2);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    display: none;
}

.cbt-question-card.active {
    display: block;
}

.cbt-question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
}

.cbt-q-number {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.cbt-q-marks {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 4px 12px;
    border-radius: 12px;
}

.cbt-q-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 24px;
}

.cbt-options-grid {
    display: grid;
    gap: 14px;
}

.cbt-option-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #041a13;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.cbt-option-tile:hover {
    background: #083326;
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateX(4px);
}

.cbt-option-tile.selected {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(7, 37, 28, 0.9));
    border-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.25);
}

.cbt-option-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #a3c2b7;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.cbt-option-tile.selected .cbt-option-badge {
    background: #fbbf24;
    color: #000;
    border-color: #fbbf24;
    font-weight: 900;
}

.cbt-option-text {
    font-size: 16px;
    font-weight: 500;
    color: #f1f7f4;
}

.cbt-nav-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #072b20;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px 20px;
    margin-top: 10px;
}

.cbt-btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.cbt-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #c7ded6;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cbt-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.cbt-btn-warning {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.cbt-btn-warning:hover {
    background: rgba(168, 85, 247, 0.35);
}

.cbt-btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.cbt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
}

.cbt-btn-submit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.cbt-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
}

.cbt-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cbt-card-panel {
    background: #072b20;
    border: 1.5px solid rgba(251, 191, 36, 0.2);
    border-radius: 20px;
    padding: 20px;
}

.cbt-student-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}

.cbt-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #000;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 18px;
}

.cbt-student-details b {
    display: block;
    color: #fff;
    font-size: 14px;
}

.cbt-student-details small {
    color: #a3c2b7;
    font-size: 11px;
}

.cbt-legend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.cbt-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #c7ded6;
    background: #041a13;
    padding: 8px 10px;
    border-radius: 10px;
}

.cbt-badge-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.cbt-badge-dot.answered { background: #10b981; }
.cbt-badge-dot.unanswered { background: #374151; border: 1px solid #6b7280; }
.cbt-badge-dot.review { background: #a855f7; }
.cbt-badge-dot.current { background: #fbbf24; }

.cbt-palette-title {
    font-size: 13px;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.cbt-palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.cbt-palette-btn {
    height: 42px;
    border-radius: 10px;
    background: #041a13;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: grid;
    place-items: center;
}

.cbt-palette-btn:hover {
    border-color: #fbbf24;
    transform: scale(1.05);
}

.cbt-palette-btn.active-q {
    box-shadow: 0 0 0 2.5px #fbbf24 !important;
}

.cbt-palette-btn.status-answered {
    background: #10b981;
    color: #fff;
    border-color: #059669;
}

.cbt-palette-btn.status-review {
    background: #a855f7;
    color: #fff;
    border-color: #7e22ce;
}

.cbt-palette-btn.status-unanswered {
    background: #1f2937;
    color: #9ca3af;
}

.cbt-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cbt-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.cbt-modal-box {
    background: #072b20;
    border: 2px solid #fbbf24;
    border-radius: 24px;
    padding: 32px;
    width: min(480px, calc(100% - 32px));
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 30px rgba(251,191,36,0.3);
    text-align: center;
}

.cbt-modal-box h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    color: #fff;
    margin: 0 0 10px 0;
}

.cbt-modal-box p {
    color: #a3c2b7;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.cbt-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.cbt-summary-card {
    background: #041a13;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}

.cbt-summary-card b {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    color: #fbbf24;
    display: block;
}

.cbt-summary-card span {
    font-size: 11px;
    color: #a3c2b7;
}

.cbt-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

@media(max-width: 900px) {
    .cbt-container { grid-template-columns: 1fr; }
    .cbt-header { flex-direction: column; gap: 10px; text-align: center; }
    .cbt-nav-actions { flex-wrap: wrap; justify-content: center; }
}

/* Checkout & Payment Page Styling */
body.checkoutpage {
    background: #041711;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.checkoutwrap {
    width: min(1000px, 100%);
    margin: 0 auto;
}

.checkoutwrap > a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    transition: transform 0.2s ease;
}

.checkoutwrap > a:hover {
    transform: translateX(-4px);
}

.checkoutgrid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

.checkoutgrid section {
    background: #072b20;
    border: 1.5px solid rgba(251, 191, 36, 0.25);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.checkoutgrid h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 24px 0;
}

.couponbox {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.couponbox input {
    flex: 1;
    padding: 14px 16px;
    background: #041a13;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
}

.couponbox button {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.couponbox button:hover {
    background: #fbbf24;
    color: #000;
}

.paymentbox {
    background: #041a13;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.paymentbox h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    color: #fbbf24;
    margin: 0 0 12px 0;
}

.paymentbox p {
    color: #a3c2b7;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.paymentbox label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 6px 0;
}

.paymentbox input, .paymentbox textarea {
    width: 100%;
    padding: 14px 16px;
    background: #072b20;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.paymentbox textarea {
    min-height: 80px;
    resize: vertical;
}

.placeorder {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    border: none;
    border-radius: 14px;
    color: #000;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
}

.placeorder:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.6);
}

aside.ordersummary {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    background: #072b20 !important;
    border: 1.5px solid rgba(251, 191, 36, 0.25) !important;
    border-radius: 24px !important;
    padding: 28px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
    z-index: 1 !important;
}

aside.ordersummary img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

aside.ordersummary h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    color: #ffffff;
    margin: 0 0 20px 0;
}

aside.ordersummary > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: #a3c2b7;
}

aside.ordersummary > div b {
    color: #fff;
    font-size: 15px;
}

aside.ordersummary > div.total {
    border-bottom: none;
    padding-top: 18px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

aside.ordersummary > div.total b {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    color: #fbbf24;
}

@media(max-width: 850px) {
    .checkoutgrid {
        grid-template-columns: 1fr;
    }
}

/* Course Catalogue & Student Course Cards (.course-list) */
.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 380px));
    gap: 24px;
    margin-top: 20px;
}

.course-list article {
    background: #072b20;
    border: 1.5px solid rgba(251, 191, 36, 0.25);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.course-list article:hover {
    transform: translateY(-5px);
    border-color: #fbbf24;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(251, 191, 36, 0.2);
}

.course-list article img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #041a13;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.course-list article img.logo-thumb {
    object-fit: contain !important;
    padding: 24px !important;
    background: #041a13 !important;
}

.course-list article > div {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-list article span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
    align-self: flex-start;
    margin-bottom: 12px;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.course-list article h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.course-list article p {
    color: #a3c2b7;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex: 1;
}

.course-list .buyprice {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.course-list .buyprice b {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #fbbf24;
}

.course-list .buyprice del {
    color: #6b7280;
    font-size: 15px;
    text-decoration: line-through;
}

.course-list article small {
    display: block;
    color: #a3c2b7;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.course-list article a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    color: #000000 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 800;
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    transition: all 0.25s ease;
}

.course-list article a:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
    color: #000000 !important;
}

/* Course Learning Detail Hero & Grid (.coursehero & .learninggrid) */
.coursehero {
    background: #072b20;
    border: 1.5px solid rgba(251, 191, 36, 0.25);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
    margin-bottom: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.coursehero img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    background: #041a13;
}

.coursehero > div {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coursehero span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fbbf24;
    margin-bottom: 10px;
}

.coursehero h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
}

.coursehero p {
    color: #a3c2b7;
    font-size: 15px;
    margin: 0;
}

.learninggrid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.lessonrow {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #041a13;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: all 0.25s ease;
}

.lessonrow:hover {
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateX(4px);
}

.lessonrow i {
    font-size: 22px;
    color: #fbbf24;
}

.lessonrow > div:nth-child(2) {
    flex: 1;
}

.lessonrow small {
    display: block;
    color: #a3c2b7;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.lessonrow h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.lessonrow span {
    font-size: 12px;
    color: #a3c2b7;
}

.lessonrow a {
    padding: 8px 18px;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.lessonrow a:hover {
    background: #fbbf24;
    color: #000 !important;
}

.materialrow {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #041a13;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 12px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.materialrow:hover {
    border-color: #fbbf24;
    transform: translateX(4px);
}

.materialrow i {
    font-size: 24px;
    color: #ef4444;
}

.materialrow span b {
    display: block;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
}

.materialrow span small {
    color: #a3c2b7;
    font-size: 11px;
}

.liverow {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #041a13;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 12px;
}

.liverow > span {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 12px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 13px;
    text-align: center;
}

.liverow > div {
    flex: 1;
}

.liverow b {
    display: block;
    color: #fff;
    font-size: 14px;
}

.liverow small {
    color: #a3c2b7;
    font-size: 11px;
}

.liverow a {
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none !important;
}

@media(max-width: 900px) {
    .coursehero { grid-template-columns: 1fr; }
    .learninggrid { grid-template-columns: 1fr; }
}

/* Study Material Grid (.materialgrid) */
.materialgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.materialgrid article {
    background: #072b20;
    border: 1.5px solid rgba(251, 191, 36, 0.25);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.materialgrid article:hover {
    transform: translateY(-4px);
    border-color: #fbbf24;
}

.materialgrid article i {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 14px;
}

.materialgrid article span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.materialgrid article h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #fff;
    margin: 0 0 8px 0;
}

.materialgrid article small {
    color: #a3c2b7;
    font-size: 12px;
    margin-bottom: 12px;
    display: block;
}

.materialgrid article p {
    color: #a3c2b7;
    font-size: 13px;
    flex: 1;
    margin: 0 0 18px 0;
}

.materialgrid article a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: var(--gold-gradient);
    color: #000 !important;
    font-weight: 800;
    font-size: 14px;
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: var(--gold-glow);
}

/* Lesson Page & Video Player Styles */
body.lessonpage {
    background: #020f0b !important;
    color: #fff !important;
    font-family: 'Manrope', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
}

body.lessonpage header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 28px !important;
    background: #031812 !important;
    border-bottom: 1.5px solid rgba(251, 191, 36, 0.25) !important;
    gap: 20px !important;
}

body.lessonpage header a {
    color: var(--gold) !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(251, 191, 36, 0.1) !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
    transition: all 0.2s ease !important;
}

body.lessonpage header a:hover {
    background: var(--gold) !important;
    color: #000 !important;
}

body.lessonpage header div {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    text-align: right !important;
}

body.lessonpage header b {
    color: var(--gold) !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

body.lessonpage header span {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

.lessonwrap {
    max-width: 1100px !important;
    margin: 30px auto !important;
    padding: 0 20px 50px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
}

.videobox {
    background: #000 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1.5px solid rgba(251, 191, 36, 0.25) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
}

.videobox video, .videobox iframe {
    width: 100% !important;
    max-height: 72vh !important;
    display: block !important;
    border: none !important;
}

.lessonwrap section {
    background: #041a13 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.lessonwrap section h1 {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 16px 0 !important;
}

.lessonwrap section p {
    color: #a3c2b7 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin-bottom: 28px !important;
}

.lessonwrap form button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 28px !important;
    background: var(--gold-gradient) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    box-shadow: var(--gold-glow) !important;
    transition: all 0.25s ease !important;
}

.lessonwrap form button:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4) !important;
}

.lessonwrap form button:disabled {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #6ee7b7 !important;
    border: 1.5px solid #10b981 !important;
    box-shadow: none !important;
    cursor: default !important;
}

/* ==========================================================================
   CBT (Computer Based Test) Interface Styles
   ========================================================================== */
body.testpage {
    background: #041711 !important;
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
}

body.testpage main {
    margin-left: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    min-height: auto !important;
}

.cbt-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    background: #072b20;
    border-bottom: 1.5px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cbt-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cbt-brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #fbbf24;
    object-fit: contain;
}

.cbt-brand-info h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.cbt-brand-info span {
    font-size: 12px;
    color: #a3c2b7;
}

.cbt-header-center {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #041a13;
    padding: 8px 20px;
    border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.cbt-timer-label {
    font-size: 11px;
    font-weight: 700;
    color: #a3c2b7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cbt-timer-val {
    font-family: 'Outfit', monospace;
    font-size: 22px;
    font-weight: 900;
    color: #fbbf24;
}

.cbt-timer-val.warning {
    color: #ef4444;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0.5; }
}

.cbt-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    padding: 24px;
    max-width: 1440px;
    margin: 0 auto;
    min-height: calc(100vh - 75px);
}

.cbt-question-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cbt-question-card {
    display: none;
    background: #072b20;
    border: 1.5px solid rgba(251, 191, 36, 0.25);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.cbt-question-card.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.cbt-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cbt-q-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #fbbf24;
}

.cbt-q-marks {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.cbt-q-text {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 28px;
    word-break: break-word;
}

.cbt-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.cbt-option-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #041a13;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.cbt-option-tile:hover {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}

.cbt-option-tile.selected {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.18);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.cbt-option-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.cbt-option-tile.selected .cbt-option-badge {
    background: #fbbf24;
    color: #000000;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.cbt-option-text {
    font-size: 16px;
    font-weight: 500;
    color: #e2e8f0;
    flex: 1;
    line-height: 1.4;
}

.cbt-nav-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.cbt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
}

.cbt-btn-primary {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #000000;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.cbt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.45);
}

.cbt-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cbt-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cbt-btn-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid #f59e0b;
}

.cbt-btn-warning:hover {
    background: rgba(245, 158, 11, 0.35);
}

.cbt-btn-submit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cbt-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.cbt-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.cbt-card-panel {
    background: #072b20;
    border: 1.5px solid rgba(251, 191, 36, 0.25);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.cbt-student-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.cbt-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000000;
    font-weight: 900;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.cbt-student-details b {
    display: block;
    font-size: 15px;
    color: #ffffff;
}

.cbt-student-details small {
    color: #a3c2b7;
    font-size: 12px;
}

.cbt-legend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: #041a13;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cbt-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 600;
}

.cbt-badge-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.cbt-badge-dot.answered { background: #10b981; }
.cbt-badge-dot.unanswered { background: #ef4444; }
.cbt-badge-dot.review { background: #f59e0b; }
.cbt-badge-dot.current { background: #3b82f6; }

.cbt-palette-title {
    font-size: 14px;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cbt-palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.cbt-palette-btn {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: #041a13;
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cbt-palette-btn:hover {
    border-color: #fbbf24;
}

.cbt-palette-btn.status-answered {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
}

.cbt-palette-btn.status-unanswered {
    background: #ef4444;
    color: #ffffff;
    border-color: #dc2626;
}

.cbt-palette-btn.status-review {
    background: #f59e0b;
    color: #ffffff;
    border-color: #d97706;
}

.cbt-palette-btn.active-q {
    box-shadow: 0 0 0 3px #3b82f6, 0 0 15px rgba(59, 130, 246, 0.5);
    border-color: #3b82f6;
}

/* Modal Popup */
.cbt-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    place-items: center;
}

.cbt-modal-backdrop.open {
    display: grid;
}

.cbt-modal-box {
    background: #072b20;
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    border-radius: 24px;
    padding: 36px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.cbt-modal-box h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.cbt-modal-box p {
    color: #a3c2b7;
    font-size: 14px;
    margin-bottom: 24px;
}

.cbt-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.cbt-summary-card {
    background: #041a13;
    padding: 16px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cbt-summary-card b {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: #fbbf24;
}

.cbt-summary-card span {
    font-size: 11px;
    color: #a3c2b7;
    font-weight: 700;
    text-transform: uppercase;
}

.cbt-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

@media (max-width: 992px) {
    .cbt-container {
        grid-template-columns: 1fr;
    }
    .cbt-sidebar {
        position: static;
    }
    .cbt-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        text-align: center;
    }
    .cbt-brand {
        justify-content: center;
    }
    .cbt-header-center {
        justify-content: center;
    }
}

/* Android Mobile App Bottom Navigation Bar & Mobile Experience */
.app-bottom-nav {
    display: none;
}

@media (max-width: 1024px) {
    body {
        padding-bottom: 75px !important;
    }
    
    main {
        padding: 16px 14px 85px 14px !important;
    }

    .app-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        height: 64px;
        background: rgba(4, 23, 17, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1.5px solid rgba(251, 191, 36, 0.3);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
        padding: 0 4px;
    }

    .app-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        height: 100%;
        color: #8da49c;
        text-decoration: none;
        font-size: 11px;
        font-weight: 700;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        -webkit-tap-highlight-color: transparent;
    }

    .app-nav-link i {
        font-size: 19px;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .app-nav-link span {
        letter-spacing: 0.2px;
        line-height: 1.1;
    }

    .app-nav-link:active {
        transform: scale(0.92);
    }

    .app-nav-link.active {
        color: #fbbf24;
    }

    .app-nav-link.active i {
        transform: translateY(-2px) scale(1.15);
        color: #fbbf24;
        filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.7));
    }

    .app-nav-link.active::before {
        content: '';
        position: absolute;
        top: 0;
        width: 34px;
        height: 3px;
        background: linear-gradient(90deg, #fbbf24, #f59e0b);
        border-radius: 0 0 4px 4px;
        box-shadow: 0 2px 10px rgba(251, 191, 36, 0.8);
    }
}

/* Result Page Overhaul Styling */
.result-header-card {
    background: linear-gradient(135deg, #094435, #04231b);
    border: 1.5px solid var(--gold);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--gold-glow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.result-header-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    color: #fff;
    margin: 8px 0 12px 0;
}

.result-score-display {
    text-align: center;
    background: rgba(4, 26, 19, 0.85);
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    padding: 20px 32px;
    border-radius: 20px;
    box-shadow: var(--gold-glow);
}

.result-score-num {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: #fbbf24;
    line-height: 1;
}

.result-score-label {
    font-size: 12px;
    color: #a3c2b7;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 6px;
}

.result-stat-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease;
}

.result-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(251, 191, 36, 0.3);
}

.result-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0;
}

.result-stat-icon.correct { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.result-stat-icon.wrong { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.result-stat-icon.unanswered { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.result-stat-icon.accuracy { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.q-review-card {
    background: var(--card-bg);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.q-review-card.correct-card { border-color: rgba(16, 185, 129, 0.35); }
.q-review-card.wrong-card { border-color: rgba(239, 68, 68, 0.35); }
.q-review-card.skipped-card { border-color: rgba(245, 158, 11, 0.25); }

.q-option-item {
    padding: 12px 16px;
    border-radius: 12px;
    background: #041a13;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    gap: 12px;
}

.q-option-item.is-correct {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #6ee7b7;
}

.q-option-item.is-user-wrong {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
    color: #fca5a5;
}

.explanation-box {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px dashed rgba(251, 191, 36, 0.35);
    border-radius: 12px;
    font-size: 13px;
    color: #e2f0ea;
    line-height: 1.6;
}

/* Student Chip / User Badge Header Styling */
.student-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 18px 8px 10px !important;
    background: var(--card-bg) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.35) !important;
    border-radius: 40px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

.student-chip:hover {
    border-color: var(--gold) !important;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.4) !important;
    transform: translateY(-2px) !important;
}

.student-avatar-badge {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: var(--gold-gradient) !important;
    color: #000 !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: var(--gold-glow) !important;
}

.student-info-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.student-name {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.student-email {
    font-size: 12px !important;
    color: var(--gold) !important;
    font-weight: 600 !important;
}

/* Buy Courses Page Grid & Premium Cards */
.buy-courses-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 0 40px;
}

.buy-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.buy-course-card {
    background: var(--card-bg) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.25) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    position: relative !important;
}

.buy-course-card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), var(--gold-glow) !important;
}

.card-thumb-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #041711;
}

.card-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s ease !important;
}

.buy-course-card:hover .card-thumb {
    transform: scale(1.08) !important;
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(4, 23, 17, 0.9) !important;
    backdrop-filter: blur(10px);
    color: var(--gold) !important;
    border: 1px solid var(--gold) !important;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--gold-gradient) !important;
    color: #000 !important;
    padding: 6px 12px !important;
    border-radius: 30px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    box-shadow: var(--gold-glow) !important;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
}

.card-desc {
    font-size: 14px !important;
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
    margin: 0 0 18px 0 !important;
}

.card-features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-features-mini span {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-features-mini i {
    font-size: 13px;
    color: var(--gold);
}

.card-footer-box {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.price-group {
    display: flex;
    flex-direction: column;
}

.current-price {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
}

.original-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

.buy-now-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 22px !important;
    background: var(--gold-gradient) !important;
    color: #000 !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    box-shadow: var(--gold-glow) !important;
    transition: all 0.25s ease !important;
}

.buy-now-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.7) !important;
}

/* Progress Report Card & Stats Styling */
.progress-report-card {
    background: var(--card-bg) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.35) !important;
    border-radius: 24px !important;
    padding: 28px 32px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--gold-glow) !important;
    position: relative;
    overflow: hidden;
}

.progress-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.report-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    color: var(--gold);
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 5px 12px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.progress-report-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.progress-report-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.progress-percentage-badge {
    text-align: center;
    background: rgba(4, 23, 17, 0.8);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 12px 24px;
    box-shadow: var(--gold-glow);
}

.progress-percentage-badge b {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
    display: block;
    line-height: 1;
}

.progress-percentage-badge span {
    font-size: 12px;
    color: #a3c2b7;
    font-weight: 700;
    text-transform: uppercase;
}

.progress-bar-container {
    width: 100%;
    height: 16px;
    background: #041a13;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.progress-bar-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 20px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--gold-glow);
}

.progress-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.pstat-item {
    background: rgba(4, 26, 19, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pstat-item i {
    font-size: 26px;
    flex-shrink: 0;
}

.icon-completed { color: #10b981; }
.icon-pending { color: #fbbf24; }
.icon-total { color: #3b82f6; }
.icon-score { color: #ec4899; }

.pstat-item div strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.pstat-item div span {
    font-size: 12px;
    color: #a3c2b7;
    font-weight: 600;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid #10b981;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-start {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: var(--gold-glow);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.btn-reattempt {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-reattempt:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}





