:root {
    --primary-brand: #4994D0;
    --primary-brand-rgb: 73, 148, 208;
    --primary-hover: #357abd;
    --secondary-color: #091B35;
    --navy-900: #09152e;
    --navy-800: #0f1f40;
    --navy-700: #162a4d;

    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;

    --white: #ffffff;
    --white-rgb: 255, 255, 255;
    --black-rgb: 0, 0, 0;

    --danger-brand: #dc3545;
    --danger-hover: #dc2626;
    --danger-soft: rgba(220, 53, 69, 0.1);

    --success: #198754;
    --warning: #ffc107;


    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --font-primary: 'Cairo', sans-serif;

    --fs-display-1: 3.5rem;
    --fs-display-2: 3rem;
    --fs-display-3: 2.5rem;
    --fs-display-4: 2rem;
    --fs-display-5: 1.75rem;
    --fs-display-6: 1.5rem;

    --fs-h1: 2.25rem;
    --fs-h2: 1.875rem;
    --fs-h3: 1.5rem;
    --fs-h4: 1.25rem;
    --fs-h5: 1.125rem;
    --fs-h6: 1rem;

    --fs-body-lg: 1.125rem;
    --fs-body-base: 1rem;
    --fs-body-sm: 0.9375rem;
    --fs-body-xs: 0.875rem;

    --fs-label-lg: 0.8125rem;
    --fs-label-md: 0.75rem;
    --fs-label-sm: 0.6875rem;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --lh-relaxed: 1.75;

    --white-alpha-08: rgba(255, 255, 255, 0.08);
    --white-alpha-10: rgba(255, 255, 255, 0.1);
    --white-alpha-12: rgba(255, 255, 255, 0.12);
    --white-alpha-20: rgba(255, 255, 255, 0.2);
    --white-alpha-30: rgba(255, 255, 255, 0.3);
    --white-alpha-40: rgba(255, 255, 255, 0.4);
    --white-alpha-60: rgba(255, 255, 255, 0.6);
    --white-alpha-70: rgba(255, 255, 255, 0.7);

    --success-brand: #10b981;
    --danger-accent: #ef4444;
    --warning-brand: #FFC107;
    --warning-soft: #FFF9E6;
    --warning-border: #FFEeba;
    --whatsapp-green: #25D366;

    --stat-blue-bg: #e0f2fe;
    --stat-blue-text: #0284c7;
    --stat-purple-bg: #f3e8ff;
    --stat-purple-text: #9333ea;
    --stat-green-bg: #dcfce7;
    --stat-green-text: #16a34a;


    --black-alpha-05: rgba(0, 0, 0, 0.05);
    --black-alpha-08: rgba(0, 0, 0, 0.08);


    --primary-alpha-10: rgba(var(--primary-brand-rgb), 0.1);
    --primary-alpha-40: rgba(var(--primary-brand-rgb), 0.4);
}

[dir="rtl"] * {
    text-align: right;
}

[dir="ltr"] * {
    text-align: left;
}

.text-center, .text-center * {
    text-align: center !important;
}

:focus-visible {
    outline: unset !important;
}

html {
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    padding-top: 75px;
    font-family: var(--font-primary);
    background-color: var(--slate-50);
    color: var(--slate-600);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body .container {
    max-width: 93%;
}

body .navbar-brand {
    margin-right: unset;
}

body .modal {
    overflow-y: hidden;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--navy-900);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: var(--lh-tight);
    margin-bottom: 0.5rem;
}

.text-lg {
    font-size: var(--fs-body-lg);
    line-height: var(--lh-relaxed);
}

.text-base {
    font-size: var(--fs-body-base);
    line-height: var(--lh-normal);
}

.text-sm {
    font-size: var(--fs-body-sm);
    line-height: var(--lh-normal);
}

.text-xs {
    font-size: var(--fs-body-xs);
    line-height: var(--lh-tight);
}

.fw-light {
    font-weight: var(--fw-regular);
}

.fw-normal {
    font-weight: var(--fw-regular);
}

.fw-medium {
    font-weight: var(--fw-medium);
}

.fw-semibold {
    font-weight: var(--fw-semibold);
}

.fw-bold {
    font-weight: var(--fw-bold);
}

.fw-extrabold {
    font-weight: var(--fw-extrabold);
}

.lh-tight {
    line-height: var(--lh-tight);
}

.lh-normal {
    line-height: var(--lh-normal);
}

.lh-relaxed {
    line-height: var(--lh-relaxed);
}

main {
    padding-bottom: 30px;
    margin-top: -5px;
}

.main-header.scrolled+main {
    margin-top: unset;
}

.main-header {
    background: var(--primary-brand);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: var(--fs-h6);
    font-weight: var(--fw-extrabold);
    color: var(--navy-900) !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-pill {
    background: var(--white-alpha-10);
    padding: 0 16px;
    height: 44px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--white);
    border: 1px solid var(--white-alpha-20);
    transition: all 0.2s;
}

.user-profile-pill:hover {
    background: rgba(var(--white-rgb), 0.2);
    border-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.user-icon-circle {
    width: 28px;
    height: 28px;
}

.btn-logout-custom {
    font-size: var(--fs-body-sm);
    padding: 0 24px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--fw-semibold);
    transition: all 0.3s ease;
    border-width: 1px !important;
}

.btn-logout-custom:hover {
    background-color: var(--danger-brand) !important;
    border-color: var(--danger-brand) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--danger-brand-rgb, 220, 53, 69), 0.3);
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: var(--fw-bold);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: var(--fs-body-sm);
}

.btn-primary {
    background: var(--primary-brand);
    border: 1px solid var(--primary-brand);
    color: white;
    box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: none;
}

.btn-outline-primary {
    color: var(--white);
    background: transparent;
    border-color: var(--white);
}

.btn-outline-primary:hover {
    background: var(--primary-hover);
    border-color: var(--white);
    border-color: var(--primary-hover);
    color: var(--white);
}

.btn-outline-primary-light {
    color: var(--primary-brand);
    background: transparent;
    border: 2px solid var(--primary-brand);
}

.btn-outline-primary-light:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-brand);
    border: none;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.dashboard-hero {
    background-color: var(--white);
    padding: 60px 0 100px;
    color: var(--navy-900);
    margin-bottom: -60px;
    border-bottom: 1px solid var(--slate-100);
}

.hero-title {
    font-size: var(--fs-display-4);
    font-weight: var(--fw-extrabold);
    margin-bottom: 10px;
}

.hero-subtitle {
    color: var(--slate-500);
    font-size: var(--fs-body-lg);
}

.account-status-pill {
    background: var(--white);
    border: 2px solid rgba(73, 148, 208, 0.15);
    border-radius: 50px;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 40px -15px rgba(73, 148, 208, 0.12);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(5px);
}

.account-status-pill a {
    color: var(--slate-600);
    text-decoration: none;
}

.account-status-pill a:hover {
    color: var(--primary-brand);
}

.account-status-pill:hover a {
    color: var(--primary-brand);
}

.account-status-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--white);
    color: var(--primary-brand);
}

.account-status-pill:hover .status-label-text {
    color: var(--primary-brand);
}

.status-label-text {
    font-size: var(--fs-body-xs);
    color: var(--slate-600);
}

.status-label {
    font-size: var(--fs-label-md);
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    font-weight: var(--fw-bold);
}

.status-value {
    color: white;
    font-weight: var(--fw-bold);
    font-size: var(--fs-body-base);
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: none;
    box-shadow: 0 10px 30px var(--black-alpha-08);

    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-brand);
}

.stat-icon-bg {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-blue .stat-icon-bg {
    background: var(--stat-blue-bg);
    color: var(--stat-blue-text);
}

.stat-purple .stat-icon-bg {
    background: var(--stat-purple-bg);
    color: var(--stat-purple-text);
}

.stat-green .stat-icon-bg {
    background: var(--stat-green-bg);
    color: var(--stat-green-text);
}


.exam-card-premium {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.exam-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(9, 21, 46, 0.08);

    border-color: var(--primary-brand);
}

.exam-card-header {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    height: 100px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding: 15px;
}

.status-badge {
    background: var(--white-alpha-20);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid var(--white-alpha-30);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    height: fit-content;
    font-weight: 600;
}

.exam-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-brand);
    position: absolute;
    bottom: -30px;
    right: 25px;
    box-shadow: var(--shadow-md);
}

[dir="rtl"] .exam-icon-wrapper {
    right: auto;
    left: 25px;

}

.exam-card-body {
    padding: 45px 25px 25px;

    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exam-title {
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.exam-desc {
    color: var(--slate-400);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.exam-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--slate-500);
    font-weight: 600;
}

.meta-item i {
    color: var(--primary-brand);
}


.hover-white:hover {
    color: white !important;
    text-decoration: underline !important;
}

.payment-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}

.payment-badge.tabby {
    background: #3BEDA3;
    color: black;
    font-family: sans-serif;

}

.payment-badge.tamara {
    background: linear-gradient(90deg, #E6667C, #F4BC2C);
    color: black;
    font-family: sans-serif;
}

.pmi-badge {
    box-shadow: 0 0 15px var(--white-alpha-20);
}

.footer-actions .btn {
    transition: transform 0.2s;
}

.user-icon-circle {
    width: 32px;
    height: 32px;
}

.btn-logout-custom {
    height: 40px;
    display: flex;
    align-items: center;
}

.stat-label-custom {
    font-size: 1rem;
}

.stat-icon-purple-color {
    color: #9333ea;
}

.bg-purple-soft {
    background: #f3e8ff;
}

.cursor-pointer {
    cursor: pointer;
}

.btn-history-arrow {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.dashboard-content-wrapper {
    position: relative;
    z-index: 10;
}


.footer-custom {
    background: var(--primary-brand);
    border-top: 1px solid var(--slate-100);
    font-size: 0.9rem;
    color: var(--white);
}

.footer-logo-img {
    max-height: 50px;
}


.user-group-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-profile-pill-modern {
    background: var(--white-alpha-08);
    border: 2px solid rgba(73, 148, 208, 0.15);
    border-radius: 50px;
    padding: 6px 16px 6px 6px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 40px -15px rgba(73, 148, 208, 0.12);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(5px);
}

.user-icon-circle-modern {
    width: 32px;
    height: 32px;
    background: var(--white);
    color: var(--navy-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.user-info-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-name-label {
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
    font-size: 0.95rem;
}

.user-meta-label {
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 400;
}

.btn-logout-pill {
    background: transparent;
    border: 1px solid var(--white-alpha-40);
    color: var(--white);
    border-radius: 50px;
    padding: 6px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-logout-pill:hover {
    background: var(--danger-brand);
    border-color: var(--danger-brand);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.bg-custom {
    background: var(--primary-brand);
}

.hero-min-height {
    min-height: 400px;
}

.hero-pb-large {
    padding-bottom: 100px;
}

.overlap-up-mt {
    margin-top: -60px;
}

.mb-section {
    margin-bottom: 80px;
}

.fs-vsmall {
    font-size: 0.75rem !important;
}

.fs-mini {
    font-size: 0.65rem !important;
}

.bg-transparent {
    background: transparent !important;
}

.z-index-top {
    z-index: 10;
    position: relative;
}

.progress-bar-thin {
    height: 6px;
}

.w-history-progress {
    width: 60px;
}

#resultCircle,
#scoreRing {
    transition: stroke-dashoffset 0.8s ease-in-out, stroke 0.3s ease;
    stroke-dasharray: var(--circumference);
    stroke-dashoffset: var(--circumference);
    stroke-dashoffset: var(--offset, var(--circumference));
}

.stroke-success {
    stroke: var(--success-brand) !important;
}

.stroke-danger {
    stroke: var(--danger-accent) !important;
}

.pro-meta-badge {
    background: var(--slate-100);
    color: var(--slate-600);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.footer-list-custom {
    line-height: 2;
}

.pmi-badge-container {
    width: 60px;
    height: 60px;
    opacity: 0.9;
}

.pmi-badge-text {
    font-size: 0.6rem;
    line-height: 1.1;
}

.footer-powered-by {
    font-size: 0.75rem;
}

.footer-actions-wrapper {
    position: absolute;
    right: 0;
    bottom: -20px;
}

.btn-social-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.modern-warning-alert {
    background: var(--warning-soft);
    border: 1px solid var(--warning-border);
    border-right: 5px solid var(--warning-brand);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.05);
}

.modern-warning-alert .icon-box {
    color: var(--warning-brand);
    font-size: 1.5rem;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

[dir="rtl"] .modern-warning-alert {
    border-right: 5px solid #FFC107;
    border-left: 1px solid #FFEeba;
}

.btn-whatsapp-custom {
    background: var(--whatsapp-green);
    border: none;
}

.btn-start-exam {
    background: var(--primary-brand);
    color: white;
    border: 1px solid var(--primary-brand);
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    margin-top: auto;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(44, 123, 229, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(44, 123, 229, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(44, 123, 229, 0);
    }
}

.step-item.active .step-dot {
    background-color: var(--primary-brand);
    color: white;
    border-color: var(--primary-brand);
    animation: pulse-ring 2s infinite;
}

.animate-pulse {
    animation: pulse-simple 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-simple {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.btn-start-exam:hover {
    background: var(--primary-brand);
    color: white;
    border-color: var(--primary-brand);
}

.btn-start-exam:hover i {
    transform: translateX(-5px);
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-brand);
}

.card-icon-header {
    padding: 30px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-brand);
    font-size: 3rem;
    height: 120px;
}

.modern-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.modern-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--navy-900);
}

.modern-card-meta {
    display: flex;
    gap: 16px;
    color: var(--slate-400);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.status-pill {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: var(--slate-100);
    color: var(--slate-600);
}

.status-progress {
    background: #fff7ed;
    color: #ea580c;
}

.status-done {
    background: #f0fdf4;
    color: #16a34a;
}


.btn-card-action {
    width: 100%;
    justify-content: center;
}

.btn-corp-primary {
    background: var(--primary-brand);
    color: white;
}

.btn-corp-primary:hover {
    background: var(--primary-hover);
}

.btn-corp-outline {
    border: 2px solid var(--slate-200);
    color: var(--slate-600);
}

.btn-corp-outline:hover {
    border-color: var(--primary-brand);
    color: var(--primary-brand);
    background: transparent;
}

footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 0 30px;
    font-size: 0.95rem;
}

.footer-links h5 {
    color: var(--primary-brand);
}

.footer-links a:hover {
    color: var(--primary-brand);
    padding-right: 5px;
}


.summary-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-brand);
}


.sidebar {
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    border: none !important;
}

.question-card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--card-shadow);
}

.q-btn {
    border-radius: 12px;
    font-weight: 700;
    border: none;
}

.option-item {
    border-radius: 12px;
    border: 2px solid #EDF2F7;
    background: white;
    padding: 18px;
    margin-bottom: 12px;
}

.option-item:hover {
    border-color: var(--primary-brand);
    background: #ebf8ff;
}

.exam-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.exam-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.exam-stepper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    background: transparent;

    padding: 0 10px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.step-item.active .step-dot {
    background: white;
    border-color: var(--primary-brand);
    color: var(--primary-brand);
}

.step-item.completed .step-dot {
    background: var(--primary-brand);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.step-item.active .step-label {
    color: var(--dark-navy);
}


.exam-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    min-height: 600px;

}

.exam-context-panel {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    border: 1px solid #f1f5f9;
}

.context-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--dark-navy);
}

.context-desc {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 90%;
}


.exam-question-panel {
    background: var(--dark-navy);
    border-radius: 20px;
    padding: 50px;
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(9, 21, 46, 0.15);
    position: relative;
    overflow: hidden;
}


.exam-question-panel::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    border-radius: 50%;
}

.q-number-pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 30px;
    display: inline-block;
    font-size: 0.85rem;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.question-text-lg {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.4;
}

.exam-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.exam-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.exam-option.selected {
    background: var(--primary-brand);
    border-color: var(--primary-brand);
    color: white;
    font-weight: 600;
}

.option-circle {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin-left: 15px;
    flex-shrink: 0;
}

.exam-option.selected .option-circle {
    background: white;
    border-color: white;
}

.exam-nav-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 0;
    gap: 15px;
}

.btn-exam-next {
    background: var(--primary-brand);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
}

.btn-exam-next:hover {
    background: var(--primary-hover);
    color: white;
}

.btn-exam-back {
    color: #64748b;
    font-weight: 600;
}

.btn-exam-back:hover {
    color: var(--primary-brand);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.dashboard-hero-modern h1,
.dashboard-hero-modern p,
.dashboard-hero-modern .display-6 {
    color: var(--white) !important;
}

.stat-card-modern {
    background: var(--white);
    border: 2px solid rgba(73, 148, 208, 0.15);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 40px -15px rgba(73, 148, 208, 0.12);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.stat-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    position: relative;
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.stat-card-modern:hover .stat-icon-wrapper {
    transform: scale(1.25) rotate(-8deg);
    box-shadow: 0 10px 20px rgba(73, 148, 208, 0.25);
}

.stat-value-lg {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--navy-900);
    margin-bottom: 0;
    letter-spacing: -1px;
}

.stat-label-sm {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-600);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0;
}

.exam-card-pro {
    background: white;
    border-radius: 28px;
    border: 1px solid var(--slate-100);
    padding: 0;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 25px;
}

.exam-card-pro:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px -20px rgba(73, 148, 208, 0.2);
    border-color: rgba(73, 148, 208, 0.2);
}

/* Watermark removed */

.helper-text-box {
    background-color: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: 12px;
    padding: 10px 15px;
    color: var(--slate-500);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-top: 15px;
    display: inline-block;
    width: 100%;
    transition: all 0.3s ease;
}

.exam-card-pro:hover .helper-text-box {
    background-color: white;
    border-color: var(--slate-200);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.pro-card-body {
    padding: 30px 25px 25px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.floating-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-brand);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: -25px;
    right: 25px;
    z-index: 10;
    transition: all 0.3s ease;
    border: 1px solid var(--slate-100);
}

.status-badge-container .floating-icon {
    position: static;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    top: auto;
    right: auto;
    z-index: auto;
    margin: 0;
    flex-shrink: 0;
}

.exam-card-pro:hover .floating-icon {
    transform: rotate(-10deg) scale(1.1);
    color: var(--primary-hover);
}

.pro-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 20px;
    line-height: 1.4;
    z-index: 1;
    position: relative;
}

.pro-meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--slate-50);
    border-radius: 14px;
    color: var(--slate-600);
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 10px;
    margin-bottom: 10px;
    transition: all 0.3s;
    border: 1px solid transparent;
    z-index: 1;
    position: relative;
}

.exam-card-pro:hover .pro-meta-badge {
    background: white;
    border-color: var(--slate-200);
    transform: translateY(-2px);
}

.action-btn-container {
    margin-top: auto;
    z-index: 1;
    position: relative;
}


.pro-action-btn {
    text-align: center;
    color: var(--white);
    background: var(--primary-brand);
    text-decoration: none;
    font-size: 0.95rem;
    width: 100%;
    padding: 14px 20px;
    border-radius: 15px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 12px var(--primary-alpha-10);
}

.pro-action-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-alpha-20);
    color: var(--white);
}

.pro-action-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.pro-action-btn:hover i {
    transform: translateX(-5px);
}

.pro-action-btn.completed {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    text-decoration: none;
    padding: 16px;
}

.pro-action-btn.completed:hover {
    background: #dcfce7;
    border-color: #86efac;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.1);
    color: #166534;
}

.pro-action-btn.completed::before {
    display: none;
}

.pro-action-btn.locked {
    background: var(--slate-50) !important;
    color: var(--slate-400) !important;
    border: 2px dashed var(--slate-200) !important;
    cursor: default;
    pointer-events: none;
    box-shadow: none !important;
    transform: none !important;
    opacity: 0.85;
}

.pro-action-btn.locked::before {
    display: none;
}

.dashboard-hero-instructions {
    padding: 60px 0 100px;
    min-height: auto;
}

.dashboard-content-instructions {
    margin-top: -60px;
}

.instructions-card {
    min-height: auto;
    cursor: default;
}

.alert-warning-custom {
    background-color: #fff3cd;
}

.exam-body {
    background-color: var(--slate-50);
}

.exam-header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timer-badge {
    background: var(--slate-50);
    color: var(--navy-900);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 700;
}

.exam-context-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    height: 100%;
    border: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
}

.flag-icon-container {
    background: var(--slate-100);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 1.2rem;
}

.exam-question-card {
    background: var(--white);
    border-radius: 20px !important;
    padding: 20px 35px !important;
    color: var(--navy-900);
    position: relative;
    overflow: hidden !important;
    box-shadow: var(--shadow-xl);
    min-height: auto !important;
    scroll-margin-top: 130px;
    border: 1px solid var(--slate-200);
}

.exam-question-card::after,
.exam-question-card::before,
.exam-question-card-blobs {
    display: none;
}

.question-number-pill {
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 25px;
    color: var(--navy-900);
    font-weight: 600;
}

.question-text-modern {
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--navy-900);
}

.option-card-modern {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--slate-700);
    font-weight: 500;
}

.option-card-modern:hover:not(.selected) {
    background: var(--white);
    border-color: var(--primary-brand);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.option-card-modern.selected {
    background: rgba(var(--primary-brand-rgb), 0.06);
    border: 2px solid var(--primary-brand) !important;
    color: var(--navy-900);
    box-shadow: 0 10px 25px rgba(var(--primary-brand-rgb), 0.1);
    z-index: 5;
    position: relative;
    font-weight: 600;
}

.option-card-modern.selected .option-radio {
    border-color: var(--primary-brand);
    background: var(--white);
}

.option-card-modern.selected .option-radio::after {
    background: var(--primary-brand);
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px rgba(var(--primary-brand-rgb), 0.3);
}

.option-radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--slate-300);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--white);
}

.option-radio::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}


.bottom-nav-bar {
    padding: 15px 0;
    border-top: 1px solid var(--slate-100);
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.custom-table {
    border-collapse: separate;
    border-spacing: 0 15px;
    margin-top: -15px;
}

.custom-table thead th {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy-700);
    border: none;
    padding: 0 1.5rem 1rem;
    opacity: 0.7;
}

.custom-table tbody tr {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.custom-table .table>:not(:first-child) {
    border-top: unset;
}

body:has(.dashboard-hero-modern) .main-header {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
    transition: all 0.3s ease;
}

body:has(.dashboard-hero-modern) .main-header.scrolled {
    background: var(--primary-brand);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
}

body:has(.dashboard-hero-modern) {
    padding-top: 0;
}

.dashboard-hero-modern {
    background: var(--primary-brand);
    padding: 160px 0 140px;
    color: var(--navy-900);
    position: relative;
    margin-bottom: -20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(9, 21, 46, 0.08);
}

.dashboard-hero-modern h1 {
    font-weight: 800;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.dashboard-hero-modern .hero-content {
    position: relative;
    z-index: 5;
}

.dashboard-hero-modern::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(73, 148, 208, 0.15), rgba(16, 185, 129, 0.08));
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
}

.dashboard-hero-modern::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.12), rgba(255, 193, 7, 0.08));
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1.1);
    }

    100% {
        transform: translate(40px, 60px) scale(1);
    }
}

.mt-n120 {
    margin-top: -110px !important;
}

.mt-n160 {
    margin-top: -110px !important;
}

.custom-table tbody tr td:first-child {
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}

.custom-table tbody tr td:last-child {
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
}

.custom-table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.custom-table tbody td {
    padding: 1.5rem;
    border: none;
    vertical-align: middle;
}


.history-icon-wrapper {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex-shrink: 0;
    background-color: var(--slate-50);
    color: var(--primary-brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.custom-table tbody tr:hover .history-icon-wrapper {
    background-color: var(--primary-brand);
    color: var(--white);
}

.btn-action-circle {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    min-width: 36px;
    flex-shrink: 0;
    color: var(--primary-brand);
    border: 2px solid var(--primary-brand);
}

.exam-status-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-100);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    height: 100%;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.exam-status-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.status-ring-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-ring-text {
    text-align: center;
    line-height: 1;
}

.stat-row-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-600);
    font-weight: 600;
}

.stat-row-modern:last-child {
    border-bottom: none;
}

.stat-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.question-header-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--slate-100);
    position: relative;
    z-index: 1;
}

.question-meta-badge {
    background: var(--slate-50);
    color: var(--navy-900);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    border: 1px solid var(--slate-200);
}

.question-header-row .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    border-width: 1px;
}

#flagBtn {
    transition: all 0.3s ease;
    border-color: var(--slate-200);
    color: var(--slate-600);
}

#flagBtn:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--navy-900);
    transform: translateY(-1px);
}


.btn-nav-prev {
    background: transparent;
    border: 1px solid var(--primary-brand);
    color: var(--primary-brand);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: none !important;
}

.btn-nav-prev:hover:not(:disabled),
.btn-nav-prev:focus:not(:disabled),
.btn-nav-prev:active:not(:disabled) {
    background: var(--primary-brand);
    border-color: var(--primary-brand);
    color: white;
    box-shadow: none !important;
}

.btn-nav-prev:disabled {
    opacity: 0.4;
    border-color: var(--slate-200);
    color: var(--slate-400);
    box-shadow: none;
}

.exam-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.tool-btn {
    background: var(--white);
    border: 1px solid var(--slate-100);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--slate-600);
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tool-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-brand);
    color: var(--primary-brand);
}

.tool-btn i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    transition: color 0.3s;
}

.tool-btn:hover i {
    color: var(--primary-brand);
}

body.large-text-mode .question-text-modern {
    font-size: 1.6rem;
    line-height: 2;
}

body.large-text-mode .option-card-modern {
    font-size: 1.25rem;
    padding: 24px;
}

body.large-text-mode .option-radio {
    width: 28px;
    height: 28px;
    border-width: 3px;
}

.exam-calculator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    background: var(--navy-900);
    border-radius: 20px;
    padding: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    border: 1px solid rgba(var(--white-rgb), 0.1);
    display: none;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.exam-calculator.active {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.exam-info-bar {
    background: var(--white);
    padding: 14px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 1050;
    border-bottom: 1px solid var(--slate-100);
    transition: all 0.2s;
}

.calc-close-btn {
    background: var(--white);
    border: none;
    color: var(--navy-900);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calc-close-btn:hover {
    background: #ef4444;
    color: var(--white);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 10px rgba(239, 68, 68, 0.3);
}

.timer-display-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--slate-50);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid var(--slate-200);
}


.calc-display {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 20px;
    text-align: right;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-brand);
    margin-bottom: 20px;
    height: 80px;
    overflow: hidden;
    letter-spacing: 2px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    direction: ltr;
}

.calc-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-align: center;
    font-size: 1.4rem;
    padding: 15px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-btn:hover {
    background: var(--white-alpha-20);
    opacity: 0.8;
    transform: scale(1.05);
}

.calc-btn.op {
    background: var(--primary-brand);
    border-color: var(--primary-brand);
    font-weight: 700;
}

.calc-btn.op:hover {
    background: var(--primary-hover);
}

.calc-btn.clear {
    background: #ef4444;
    border-color: #ef4444;
}

.key-stat-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.key-stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.key-stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.key-stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.key-stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

.key-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.question-text-modern.large-text {
    font-size: 1.4rem;
    line-height: 2;
}

#optionsContainer.large-text .option-card-modern {
    font-size: 1.3rem;
    padding: 25px;
}

.question-header-row .btn-check:focus+.btn-outline-light,
.question-header-row .btn-outline-light:focus {
    box-shadow: unset;
}

.review-card {
    background: var(--white);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.review-card.correct {
    border-right: 4px solid #10b981;
}

.review-card.incorrect {
    border-right: 4px solid #ef4444;
}

.review-question-header {
    background-color: transparent;
    padding: 1.5rem 1.5rem 1rem;
}

.review-options {
    padding: 0 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-option {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-100);
    background-color: white;
    font-size: 0.95rem;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.review-option>div {
    display: flex;
    align-items: baseline;
}

.review-option.user-selected-correct {
    background-color: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #065f46;
    gap: 5px;
    font-weight: 600;
}

.review-option.user-selected-wrong {
    background-color: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
    gap: 5px;
    color: #991b1b;
}

.review-option.correct-answer {
    background-color: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #065f46;
    font-weight: 600;
    gap: 5px;
}

.review-explanation {
    margin: 0 1.5rem 1.5rem;
    padding: 1rem;
    background-color: var(--slate-50);
    border-radius: var(--radius-md);
    border: 1px dashed var(--slate-200);
    font-size: 0.9rem;
    color: var(--slate-600);
}

.review-status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.review-status-icon.correct {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.review-status-icon.incorrect {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.flagged-list-container {
    background: var(--slate-50);
    border-radius: 0 0 16px 16px;
    margin-top: -15px;
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid var(--slate-200);
    border-top: none;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
    max-height: 300px;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 1001;
}

.flagged-list-container::-webkit-scrollbar {
    width: 6px;
}

.flagged-list-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.flagged-list-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flagged-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    background: white;
    margin-bottom: 8px;
    border: 1px solid var(--slate-200);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.flagged-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #FFC107;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.flagged-item:last-child {
    margin-bottom: 0;
}

.flagged-item:hover {
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #FFC107;
}

.flagged-item:hover::before {
    opacity: 1;
}

.flagged-item .q-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flagged-item .q-number-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--slate-100);
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: monospace;
    border: 1px solid var(--slate-200);
}

.flagged-item:hover .q-number-badge {
    background: #FFC107;
    color: var(--white);
    border-color: #FFC107;
}

.flagged-item .q-text {
    font-weight: 700;
    font-size: 0.95rem;
}

.flagged-item .go-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    color: var(--slate-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.flagged-item:hover .go-icon {
    background: rgba(9, 21, 46, 0.05);
    color: var(--navy-900);
    transform: translateX(-3px);
}

.transition-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.main-header {
    padding: 10px 0;
}


.exam-info-bar .container {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 12px;
}

.timer-display-modern {
    padding: 6px 15px;
    font-size: 0.9rem !important;
}

.timer-display-modern span {
    font-size: 1rem !important;
}

.option-card-modern {
    padding: 15px !important;
    gap: 10px !important;
    border-radius: 12px !important;
}

.option-radio {
    width: 20px;
    height: 20px;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.row.g-4 {
    --bs-gutter-x: 1rem !important;
    --bs-gutter-y: 1rem !important;
}

.professional-modal {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

.professional-modal .btn {
    white-space: nowrap;
}

.modal-status-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-pulse-wrapper {
    width: 80px;
    height: 80px;
    background: var(--primary-alpha-10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 var(--primary-alpha-40);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(var(--primary-brand-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-brand-rgb), 0);
    }
}

.text-primary-brand {
    color: var(--primary-brand) !important;
}

.bg-primary-brand {
    background-color: rgba(var(--primary-brand-rgb), var(--bs-bg-opacity, 1)) !important;
}

.btn-primary-brand {
    background-color: var(--primary-brand);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary-brand:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-slate {
    background-color: transparent;
    border: 1px solid var(--slate-300);
    color: var(--slate-600);
    transition: all 0.3s ease;
}

.btn-outline-slate:hover {
    background-color: var(--slate-100);
    border-color: var(--slate-400);
    color: var(--navy-900);
}

body .card {
    border-radius: 24px;
}

#resultBadgeContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .col-12 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card-modern .btn-outline-dark:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Reopen Button Icon Only */
.btn-reopen-icon {
    background: rgba(var(--primary-brand-rgb), 0.1);
    border: 1px solid rgba(var(--primary-brand-rgb), 0.2);
    color: var(--primary-brand);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-reopen-icon:hover {
    background: var(--primary-brand);
    color: white;
    transform: rotate(-15deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(var(--primary-brand-rgb), 0.3);
    border-color: var(--primary-brand);
}

body:has(.login-modern-wrapper) {
    padding-top: 0 !important;
    background-color: var(--navy-900);
}

.login-modern-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-brand);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.login-bg-blob-1,
.login-bg-blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.login-bg-blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(22, 47, 77, 0.4);
    animation: pulse 10s infinite alternate;
}

.login-bg-blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(124, 58, 237, 0.4);
    animation: pulse 15s infinite alternate-reverse;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.login-modern-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 2;
    pointer-events: none;
}

.login-card-centered {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    padding: 40px 35px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
}

.login-logo-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo-wrapper img {
    height: 55px;
    margin-bottom: 15px;
    object-fit: contain;
}

.login-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 5px;
}

.login-subheading {
    color: var(--slate-500);
    font-size: 0.9rem;
    font-weight: 500;
}

.login-input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-modern-input {
    width: 100%;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    padding: 14px 45px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--navy-900);
    font-weight: 600;
    transition: all 0.2s;
    height: 50px;
}

[dir='rtl'] .login-modern-input {
    padding-right: 45px;
    padding-left: 45px;
}

[dir='ltr'] .login-modern-input {
    padding-left: 45px;
    padding-right: 45px;
}

.login-modern-input:focus {
    background: var(--white);
    border-color: var(--primary-brand);
    box-shadow: 0 0 0 3px var(--primary-alpha-10);
    outline: none;
}

.login-input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--slate-400);
    pointer-events: none;
    transition: color 0.2s;
}

[dir='rtl'] .login-input-icon {
    right: 16px;
}

[dir='ltr'] .login-input-icon {
    left: 16px;
}

.login-modern-input:focus+.login-input-icon {
    color: var(--primary-brand);
}

.d-flex.justify-content-between.align-items-center.mb-4 {
    margin-bottom: 25px !important;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    padding: 0;
    min-height: 24px;
}

.form-check-input {
    margin: 0;
    float: none;
    width: 20px;
    height: 20px;
    border-color: var(--slate-300);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.form-check-input:checked {
    background-color: var(--primary-brand);
    border-color: var(--primary-brand);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px var(--primary-alpha-10);
    border-color: var(--primary-brand);
}

.form-check-label {
    cursor: pointer;
    color: var(--slate-600);
    font-weight: 600;
    margin: 0;
    padding: 0;
    padding-right: 25px;
    user-select: none;
}

.login-card-centered a {
    color: var(--primary-brand);
    text-decoration: none;
    font-weight: 700;
}

.login-card-centered a:hover {
    text-decoration: underline;
    color: var(--navy-800);
}

.btn-login-premium {
    width: 100%;
    padding: 14px;
    background: var(--primary-brand);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.btn-login-premium:hover {
    background: var(--primary-brand);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px var(--primary-alpha-40);
    color: white;
}

.btn-login-premium:disabled {
    background: var(--slate-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.login-footer-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--slate-100);
    text-align: center;
    font-size: 0.85rem;
    color: var(--slate-500);
}

.login-footer-links .small.text-muted {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--slate-400) !important;
    font-weight: 500;
}

.login-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.form-check .form-check-input:focus {
    box-shadow: none;
}

.modal-dialog .modal-content {
    border-radius: 24px;
}


.cursor-pointer {
    cursor: pointer;
}

.hidden-initial {
    display: none;
}

.icon-xxl {
    font-size: 4rem;
}

.login-alert-box {
    padding: 15px;
    border-right: 4px solid #dc3545;
    background: #fff5f5;
    border-radius: 12px;
}

.progress-ring-mirror {
    transform: rotate(-90deg);
    transform-origin: center;
}

.score-ring-static {
    stroke-dasharray: 565.48 565.48;
    stroke-dashoffset: 113;
}

.card-rounded-24 {
    border-radius: 24px !important;
}

.overflow-x-visible {
    overflow-x: visible !important;
}

.progress-fixed-sm {
    width: 60px;
    height: 6px;
}

.w-81 {
    width: 81%;
}

.w-45 {
    width: 45%;
}

.w-94 {
    width: 94%;
}

.animate-on-load {
    animation: fadeUpOnLoad 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.btn-finish-exam-custom {
    background: var(--danger-soft);
    border: 1px solid var(--danger-border);
    color: var(--danger-brand);
    transition: all 0.2s ease;
    font-size: 12px;
    text-align: center;
}

.btn-finish-exam-custom:hover {
    background: var(--danger-brand);
    color: white;
    border-color: var(--danger-brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

body button:focus:not(:focus-visible) {
    box-shadow: unset;
}

#examGroupsList {
    row-gap: 20px;
}

@keyframes fadeUpOnLoad {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



@media (max-width: 992px) {
    .exam-split-container {
        grid-template-columns: 1fr;
    }

    .dashboard-content-wrapper {
        padding-bottom: unset;
    }

    .custom-table thead {
        display: none;
    }

    .custom-table,
    .custom-table tbody,
    .custom-table tr,
    .custom-table td {
        display: block;
        width: 100%;
        border-top: none !important;
    }

    .custom-table tbody {
        border-top: none !important;
    }

    .custom-table tbody tr {
        margin-bottom: 24px;
        border-radius: 20px !important;
        border: 1px solid var(--slate-100);
        padding: 0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        background: white;
        overflow: hidden;
        border-top: 5px solid transparent;
    }

    .custom-table tbody tr.status-pass {
        border-top-color: #10b981;
    }

    .custom-table tbody tr.status-fail {
        border-top-color: #ef4444;
    }

    .custom-table tbody tr td:first-child {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-left: none !important;
        border-top: none;
        background-color: var(--slate-50);
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .custom-table tbody td {
        text-align: right;
        padding: 12px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--slate-100);
    }

    .custom-table tbody td:last-child {
        border-bottom: none;
        justify-content: center;
        padding-top: 20px;
        padding-bottom: 20px;
        background-color: transparent;
    }

    .custom-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--slate-400);
        font-size: 0.9rem;
    }

    .custom-table tbody td:first-child {
        display: block;
        text-align: center;
    }

    .custom-table tbody td:first-child::before {
        display: none;
    }

    .custom-table tbody td:first-child .d-flex {
        justify-content: center !important;
        flex-direction: column;
        text-align: center;
        margin-bottom: 5px;
    }
}

@media (max-width: 991px) {
    .mt-n120 {
        margin-top: -50px !important;
    }

    .mt-n160 {
        margin-top: -50px !important;
    }

    .dashboard-hero-modern {
        padding: 140px 0 100px;
    }
}

@media (max-width: 768px) {
    .footer-actions-wrapper {
        position: static;
        margin-top: 20px;
        text-align: center;
        justify-content: center;
        display: flex;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .login-card-centered {
        padding: 30px 20px;
    }

    .exam-stepper {
        margin-top: 20px;
    }

    .bottom-nav-bar {
        flex-direction: column-reverse;
        gap: 12px;
        width: 100%;
        align-items: stretch;
    }

    .bottom-nav-bar .btn {
        width: 100%;
        margin: 0 !important;
        justify-content: center;
    }
}

@media(max-width:430px) {
    #groupNameBadge {
        display: none;
    }

    .exam-info-bar .d-flex.align-items-center.gap-3 {
        width: 100%;
        justify-content: space-between;
    }
}

@media(max-width:480px) {
    .question-text-modern {
        font-size: 1rem;
        margin-bottom: 25px;
        word-break: break-word;
    }

    .exam-question-card {
        padding: 20px;
    }

    .option-card-modern {
        padding: 15px;
        margin-bottom: 12px;
        font-size: 0.95rem;
        gap: 12px;
        align-items: flex-start;
    }

    .option-card-modern .flex-grow-1 {
        min-width: 0;
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
    }

    .option-radio {
        flex-shrink: 0;
        margin-top: 4px;
    }
}

@media(max-width:300px) {
    .exam-stepper {
        display: none;
    }
}

/* Custom Modal Overlay */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-modal-content {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(var(--white-rgb), 0.1);
}

.modal-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.animate-zoomIn {
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.shadow-danger {
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}