/* ─── Splash Screen ──────────────────────────────────── */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.2s ease, visibility 0.2s;
    will-change: opacity;
    transform: translateZ(0);
}

[data-theme="dark"] .splash-screen {
    background: #0f172a;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.splash-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 50px;
    font-weight: 900;
    color: var(--text-navy);
}

.splash-logo .logo-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 15px 30px rgba(244, 63, 94, 0.3);
}

.loader-bar {
    width: 280px;
    height: 4px;
    background: var(--bg-soft);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .loader-bar {
    background: rgba(255, 255, 255, 0.1);
}

.loader-progress {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(to right, #f43f5e, #7c3aed);
    animation: loaderIndeterminate 1.5s infinite ease-in-out;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
    border-radius: 20px;
}

@keyframes loaderIndeterminate {
    0% {
        left: -40%;
        width: 30%;
    }

    50% {
        width: 50%;
    }

    100% {
        left: 100%;
        width: 30%;
    }
}

/* Auth Flicker Prevention */
.nav-actions-dynamic {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-actions-dynamic.auth-loaded {
    opacity: 1;
    pointer-events: auto;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-purple {
    background-color: var(--primary-purple);
    color: white;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

.btn-purple:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.3);
    opacity: 0.95;
}

.btn-outline-purple {
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    background: transparent;
}

.btn-outline-purple:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.15);
}

.btn-outline-red {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    background: transparent;
}
.btn-outline-red:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(244, 63, 94, 0.15);
}
[data-theme="dark"] .btn-outline-red {
    border-color: #f87171;
    color: #f87171;
}
[data-theme="dark"] .btn-outline-red:hover {
    background: #f87171;
    color: #0f172a;
}

.btn-green {
    background: #22c55e;
    color: white;
    border: none;
}
.btn-green:hover {
    background: #16a34a;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

.btn-outline-green {
    border: 2px solid #22c55e;
    color: #22c55e;
    background: transparent;
}
.btn-outline-green:hover {
    background: #22c55e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.15);
}
[data-theme="dark"] .btn-outline-green {
    border-color: #4ade80;
    color: #4ade80;
}
[data-theme="dark"] .btn-outline-green:hover {
    background: #4ade80;
    color: #0f172a;
}

.btn-hero {
    padding: 1rem 3rem;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 16px;
}

.btn-red {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 10px 20px rgba(244, 63, 94, 0.2);
}

.btn-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(244, 63, 94, 0.3);
}

.btn-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.3);
}

/* ─── Floating Icons ─────────────────────────────────── */
.floating-icon-new {
    position: absolute;
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.floating-icon-new i {
    font-size: 1.5rem;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 992px) {
    .floating-icon-new {
        width: 50px;
        height: 50px;
    }
    .floating-icon-new i {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    .floating-icon-new {
        width: 45px;
        height: 45px;
    }
    .floating-icon-new i {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .floating-icon-new {
        width: 38px;
        height: 38px;
    }
    .floating-icon-new i {
        font-size: 1.05rem;
    }
}

/* ─── Highlight ──────────────────────────────────────── */
.highlight-box {
    background: var(--primary-purple);
    color: white;
    padding: 2px 12px;
    border-radius: 6px;
}

.text-gold {
    color: #f59e0b;
    font-weight: 800;
}

.hero-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-purple);
    border-radius: 2px;
    margin: 1.5rem 0;
}

/* ─── Feature Cards ──────────────────────────────────── */
.feature-card-new {
    border-radius: 30px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card-white {
    background: var(--item-card-bg, white);
    color: #1e1b4b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #f1f5f9;
}

.feature-card-teal {
    background: var(--item-card-bg, #0d9488);
    color: white;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.15);
}

/* Glowing effect */
.feature-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card-new:hover::before {
    opacity: 1;
}

.feature-card-new:hover {
    transform: translateY(-15px) scale(1.02) !important;
}

.feature-card-white:hover {
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15) !important;
    border-color: #e0e7ff;
}

.feature-card-teal:hover {
    box-shadow: 0 25px 50px rgba(13, 148, 136, 0.3) !important;
}

.f-icon-circle {
    width: 80px;
    height: 80px;
    min-width: 80px; /* Forces it to stay 80px wide */
    min-height: 80px; /* Forces it to stay 80px tall */
    flex-shrink: 0; /* Prevents Flexbox from squashing it into an oval */
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card-white .f-icon-circle {
    background: #f0fdfa;
}

/* Rotating dashed ring */
.f-icon-circle::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(245, 158, 11, 0.5);
    animation: spin 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card-teal .f-icon-circle::after {
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.feature-card-new:hover .f-icon-circle {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.feature-card-new:hover .f-icon-circle::after {
    opacity: 1;
}

.f-icon-circle i {
    font-size: 2.5rem;
    color: #f59e0b;
    transition: all 0.3s ease;
    animation: floatIcon 3s ease-in-out infinite;
    display: inline-block;
}

.feature-card-teal .f-icon-circle i {
    color: #0d9488;
}

.feature-card-new:hover .f-icon-circle i {
    transform: rotate(15deg) scale(1.1);
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.f-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.f-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    white-space: pre-wrap;
}

[data-theme="dark"] .feature-card-white {
    background: var(--item-card-bg-dark, var(--card-bg-dark, #1e293b));
    color: white;
    border-color: #334155;
}

[data-theme="dark"] .feature-card-white:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
    border-color: #475569;
}

[data-theme="dark"] .feature-card-teal {
    background: var(--item-card-bg-dark, var(--card-bg-dark, #0f172a));
    color: white;
    border-color: #334155;
}

/* ─── Grade Cards ────────────────────────────────────── */
.grade-card {
    background: var(--card-bg, white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.grade-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.grade-img-box {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.grade-card.sec-1 .grade-img-box {
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
}

.grade-card.sec-2 .grade-img-box {
    background: linear-gradient(135deg, #f472b6, #db2777);
}

.grade-card.sec-3 .grade-img-box {
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.grade-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.grade-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
}

.grade-footer {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-footer-bg, transparent);
}

.grade-footer h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e1b4b;
}

.btn-start-now {
    background: #0d9488;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.grade-card.sec-2 .btn-start-now {
    background: #db2777;
}

.grade-card.sec-3 .btn-start-now {
    background: #d97706;
}

.btn-start-now:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .grade-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .btn-start-now {
        width: 100%;
        justify-content: center;
    }
}

[data-theme="dark"] .grade-card {
    background: var(--card-bg-dark, #1e293b);
    border-color: #334155;
}

[data-theme="dark"] .grade-footer {
    background: var(--card-footer-bg-dark, transparent);
}

[data-theme="dark"] .grade-footer h3 {
    color: white;
}

/* ─── Type Badges ────────────────────────────────────── */
.type-badge.quiz-type {
    background: #fef3c7;
    color: #d97706;
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-inline-start: 0.5rem;
    font-weight: 700;
}

[data-theme="dark"] .type-badge.quiz-type {
    background: #422006;
    color: #fbbf24;
}

/* ─── Course Cards ───────────────────────────────────── */
.course-card-new {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card-bg, white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}


.card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pinned-ribbon {
    position: absolute;
    top: 20px;
    left: -50px;
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(-45deg);
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.free-ribbon {
    position: absolute;
    top: 20px;
    left: -50px;
    background: #16a34a;
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(-45deg);
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.featured-free-ribbon {
    position: absolute;
    top: 20px;
    left: -50px;
    background: linear-gradient(135deg, #16a34a 50%, var(--primary-red) 50%);
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(-45deg);
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.card-content-float {
    background: var(--card-bg, white);
    width: 100%;
    margin-top: 0;
    position: relative;
    z-index: 10;
    border-radius: 0 0 24px 24px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

:root[data-theme="dark"] .card-content-float {
    background: var(--card-bg-dark, #1e293b);
}

.card-title-new {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    text-align: right;
    flex: 1;
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 1rem;
}

.card-dates-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #94a3b8;
    font-size: 0.8rem;
    text-align: right;
}

.card-dates-left span i {
    margin-left: 0.5rem;
}

.card-price-row {
    color: #6366f1;
    font-weight: 800;
    font-size: 1.25rem;
}

.original-price-strikethrough {
    position: relative;
    color: #ef4444;
    font-size: 0.8em;
    font-weight: 700;
    margin-left: 0.5rem;
    display: inline-block;
    opacity: 0.85;
}

.original-price-strikethrough::after {
    content: '';
    position: absolute;
    left: 0;
    top: 52%;
    width: 100%;
    height: 2px;
    background: #ef4444;
    transform: translateY(-50%);
}

.card-subtitle-row {
    text-align: right;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-footer-btns {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-full-width {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

@media (max-width: 576px) {
    .card-footer-btns {
        flex-direction: row;
        gap: 0.5rem;
    }
    .card-footer-btns .btn-full-width {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}

.btn-outline-indigo {
    border: 2px solid #6366f1;
    color: #6366f1;
    background: transparent;
}

.btn-outline-red {
    border: 2px solid var(--primary-red, #f43f5e);
    color: var(--primary-red, #f43f5e);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-red:hover, .btn-outline-red:hover i {
    background: var(--primary-red, #f43f5e);
    color: white !important;
}

[data-theme="dark"] input[type="checkbox"] {
    color-scheme: dark;
}

.btn-solid-indigo {
    background: #6366f1;
    color: white;
    border: none;
}

.btn-full-width:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.view-more-btn {
    display: block;
    margin: 4rem auto;
    background: var(--primary-red);
    color: white;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    width: fit-content;
}

.view-more-btn:hover {
    transform: scale(1.05);
    background: #e11d48;
}

[data-theme="dark"] .course-card-new {
    background: var(--card-bg-dark, #1e293b);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .course-card-new:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .card-title-new {
    color: white;
}

@media (max-width: 768px) {
    .card-content-float { padding: 1rem; }
    .card-title-new { font-size: 1rem; }
}

@media (max-width: 480px) {
    .card-meta-row { align-items: flex-start; gap: 0.5rem; }
}

/* ─── Final CTA ──────────────────────────────────────── */
.final-cta {
    padding: 2rem 0 5rem;
}

.cta-box {
    background: var(--card-bg, #881337);
    border-radius: 30px;
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 25px 50px -12px rgba(136, 19, 55, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    transform: rotate(30deg);
}

.cta-box h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cta-box p {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    white-space: pre-wrap;
}

.cta-btn {
    display: inline-block;
    background: #ecfeff;
    color: #0891b2;
    padding: 1.2rem 4rem;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    transform: scale(1.05) translateY(-5px);
    background: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .cta-box {
    background: var(--card-bg-dark, #4a0d1f);
}

@media (max-width: 768px) {
    .cta-box {
        padding: 4rem 1.5rem;
        margin: 0 1rem;
    }

    .cta-box h2 {
        font-size: 2.2rem;
    }

    .cta-box p {
        font-size: 1.1rem;
    }

    .cta-btn {
        padding: 1rem 2.5rem;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .cta-box { padding: 3rem 1.5rem; margin: 0 0.5rem; }
    .cta-box h2 { font-size: 1.8rem; }
    .cta-box p { font-size: 1rem; }
    .cta-btn { max-width: none; }
}

/* ─── Back to Top ────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
}

/* ─── WhatsApp Float ─────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
}

/* ─── Login Page Styles ──────────────────────────────── */
.login-page {
    display: flex;
    min-height: 100vh;
    background: #fff;
}

[data-theme="dark"] .login-page {
    background: #0f172a;
}

.login-form-container {
    flex: 0 0 50%;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-graphic {
    flex: 0 0 50%;
    background: #f0f9ff;
    display: block;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

[data-theme="dark"] .login-graphic {
    background: #1e293b;
}

.login-graphic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-graphic h2 {
    font-size: 4rem;
    color: white;
    z-index: 3;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 15%;
    width: 100%;
    text-align: center;
}

.form-title {
    color: #334155;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.input-group-login {
    margin-bottom: 2rem;
    position: relative;
}

.input-group-login label {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #64748b;
    font-weight: 700;
}

.input-group-login input {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    font-family: inherit;
    transition: var(--transition);
    background: transparent;
    font-size: 1.1rem;
}

.input-group-login input:focus {
    border-color: #0ea5e9;
    outline: none;
}

.btn-login-submit {
    background: #3c91a4;
    color: white;
    width: 100%;
    padding: 1.25rem;
    border-radius: 10px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.btn-login-submit:hover {
    background: #2d6d7b;
    transform: translateY(-2px);
}

.register-link {
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
}

.register-link a {
    color: #f59e0b;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .login-page {
        flex-direction: column-reverse;
    }

    .login-graphic {
        flex: none;
        width: 100%;
        height: 400px;
        position: relative;
    }

    .login-graphic h2 {
        font-size: 2.5rem;
    }

    .login-form-container {
        flex: none;
        width: 100%;
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .login-graphic {
        height: 300px;
    }

    .login-form-container {
        padding: 2rem 1.5rem;
    }
}

/* ─── Register Page Styles ───────────────────────────── */
.register-page {
    display: flex;
    min-height: 100vh;
    background: #fff;
}

[data-theme="dark"] .register-page {
    background: #0f172a;
}

.register-form-container {
    flex: 0 0 50%;
    padding: 4rem;
}

.register-graphic {
    flex: 0 0 50%;
    background: #e0f2fe;
    display: block;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

[data-theme="dark"] .register-graphic {
    background: #1e293b;
}

.register-graphic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.register-graphic h2 {
    font-size: 3rem;
    color: var(--text-navy);
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.form-title-reg {
    color: #0ea5e9;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-group-reg {
    position: relative;
    margin-bottom: 1rem;
}

.input-group-reg label {
    display: block;
    margin-bottom: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.input-group-reg input,
.input-group-reg select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
    background: #f8fafc;
}

.input-group-reg input:focus {
    border-color: #0ea5e9;
    background: white;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    outline: none;
}

.full-width-input {
    grid-column: span 2;
}

.file-upload-group {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-reg-submit {
    background: #0ea5e9;
    color: white;
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.btn-reg-submit:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.btn-instructions {
    background: #2dd4bf;
    color: white;
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .register-page {
        flex-direction: column-reverse;
    }

    .register-graphic {
        flex: none;
        width: 100%;
        height: 300px;
        position: relative;
    }

    .register-graphic h2 {
        font-size: 2rem;
    }

    .register-form-container {
        flex: none;
        width: 100%;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .register-form-container {
        padding: 2rem 1.5rem;
    }
}

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

    .full-width-input {
        grid-column: span 1;
    }
}

/* ─── Account Type Toggle ────────────────────────────── */
.account-type-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.type-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.type-btn.active {
    background: white;
    color: #0ea5e9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.login-page .type-btn.active {
    color: #3c91a4;
}

[data-theme="dark"] .account-type-toggle {
    background: #1e293b;
}

[data-theme="dark"] .type-btn {
    color: #94a3b8;
}

[data-theme="dark"] .type-btn.active {
    background: #0f172a;
    color: #38bdf8;
}

.login-page[data-theme="dark"] .type-btn.active {
    color: #67e8f9;
}

/* ─── Features Carousel (Dynamic) ────────────────────── */
.carousel-outer-wrapper {
    position: relative;
    background: var(--slide-bg, #ebf5ff);
    border-radius: 30px;
    overflow: hidden;
    padding: 0;
    min-height: 450px;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.carousel-main-container {
    width: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
    direction: ltr;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem 6rem;
    direction: rtl;
    box-sizing: border-box;
}

.slide-image-side {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.slide-image-side img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.slide-content-side {
    flex: 1;
    text-align: right;
}

.slide-icon-float {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    color: var(--primary-purple);
    font-size: 1.8rem;
}

.slide-content-side h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-navy);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.slide-content-side p {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.8;
    max-width: 500px;
    white-space: pre-line;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.carousel-nav:hover {
    background: #4f46e5;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    right: 20px;
}

.carousel-nav.next {
    left: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    direction: ltr;
}

.dot {
    width: 12px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 30px;
    background: var(--primary-purple);
}

@media (max-width: 992px) {
    .carousel-slide {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .slide-image-side {
        flex: none;
        width: 100%;
        max-width: 400px;
        align-self: center;
    }

    .slide-image-side img {
        object-fit: contain;
    }

    .slide-content-side {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .carousel-outer-wrapper {
        padding: 3rem 2rem;
        min-height: 600px;
    }

    .slide-content-side h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .carousel-outer-wrapper {
        padding: 0;
        min-height: auto;
    }
    .carousel-slide {
        padding: 2rem 1.5rem 4.5rem 1.5rem;
        gap: 1.5rem;
    }
    .slide-content-side h2 {
        font-size: 1.8rem;
    }
    .carousel-nav {
        top: auto;
        bottom: 15px;
        transform: none;
        width: 38px;
        height: 38px;
    }
    .carousel-nav:hover {
        transform: none;
    }
    .carousel-nav.prev {
        right: 15px;
    }
    .carousel-nav.next {
        left: 15px;
    }
    .carousel-dots {
        bottom: 25px;
    }
}

@media (max-width: 576px) {
    .carousel-outer-wrapper {
        padding: 0;
        min-height: auto;
    }
    .carousel-slide {
        padding: 1.5rem 1rem 4rem 1rem;
    }
    .slide-image-side {
        max-width: 100%;
        width: 100%;
    }
    .slide-image-side img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    .slide-content-side h2 {
        font-size: 1.5rem;
    }
    .slide-content-side p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .carousel-nav {
        bottom: 12px;
        width: 34px;
        height: 34px;
    }
    .carousel-nav:hover {
        transform: none;
    }
    .carousel-nav.prev {
        right: 12px;
    }
    .carousel-nav.next {
        left: 12px;
    }
    .carousel-dots {
        bottom: 20px;
    }
}

@media (max-width: 400px) {
    .slide-image-side img {
        max-width: 100%;
    }
}

/* ─── Testimonials Ticker (Dynamic) ─────────────────── */
.testimonials-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.testimonials-scroll-parent {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    position: relative;
    direction: ltr;
    will-change: transform;
}

.scroll-element {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

@keyframes testimonials-scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--scroll-distance));
    }
}

@keyframes testimonials-scroll-right {
    0% {
        transform: translateX(var(--scroll-distance));
    }

    100% {
        transform: translateX(0);
    }
}

.testimonials-scroll-parent.animating {
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.testimonials-scroll-parent.animating:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: var(--card-bg, white);
    padding: 1.5rem 2rem;
    border-radius: 18px;
    width: 380px;
    min-height: 160px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: default;
    user-select: none;
    direction: rtl;
}

@media (hover: hover) {
    .testimonial-card:hover {
        transform: translateY(-4px);
        border-color: var(--primary-purple);
    }
}

.testimonial-card.touch-hover {
    transform: translateY(-4px);
    border-color: var(--primary-purple);
}

[data-theme="dark"] .testimonial-card {
    background: var(--card-bg-dark, #1e293b);
    border-color: #334155;
}

.t-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.t-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.t-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 0.15rem;
}

.t-name {
    font-weight: 800;
    color: var(--text-navy);
    font-size: 1.05rem;
}

[data-theme="dark"] .t-name {
    color: white;
}

.t-grade {
    font-size: 0.8rem;
    color: var(--primary-purple);
    font-weight: 700;
}

.t-batch {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
}

.t-stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 0.85rem;
}

.t-content {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    font-weight: 600;
    text-align: right;
    word-break: normal;
    overflow-wrap: break-word;
}

[data-theme="dark"] .t-content {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 300px;
        padding: 1.2rem;
    }
}

@media (max-width: 400px) {
    .testimonial-card {
        width: 270px;
    }
    .t-name {
        font-size: 0.95rem;
    }
    .t-batch {
        font-size: 0.85rem;
    }
}

/* ─── FAQ Accordion (Dynamic) ───────────────────────── */
.faq-container {
    max-width: 900px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.05);
}

.faq-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: var(--faq-header-bg, white);
}

.faq-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-navy);
    margin: 0;
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    background: var(--primary-purple);
    color: white;
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--faq-body-bg, #f8fafc);
}

.faq-answer {
    padding: 1.5rem 2rem;
    color: #64748b;
    line-height: 1.8;
    font-size: 1rem;
    border-top: 1px solid #f1f5f9;
    white-space: pre-wrap;
}

[data-theme="dark"] .faq-item {
    background: var(--faq-header-bg-dark, #1e293b);
    border-color: #334155;
}

[data-theme="dark"] .faq-header {
    background: var(--faq-header-bg-dark, #1e293b);
}

[data-theme="dark"] .faq-header h3 {
    color: white;
}

[data-theme="dark"] .faq-icon {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .faq-content {
    background: var(--faq-body-bg-dark, #0f172a);
}

[data-theme="dark"] .faq-answer {
    color: #94a3b8;
    border-color: #1e293b;
}

/* ─── Purchase Confirmation Modal ───────────────────── */
.purchase-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.purchase-modal-overlay.active {
    display: flex;
}

.purchase-modal-overlay.visible {
    opacity: 1;
}

.purchase-modal-card {
    background: white;
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Cairo', sans-serif;
}

.purchase-modal-overlay.visible .purchase-modal-card {
    transform: scale(1) translateY(0);
}

.purchase-modal-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.purchase-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.purchase-modal-body {
    padding: 2rem;
    text-align: center;
}

.purchase-modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.purchase-modal-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: #6366f1;
    margin-bottom: 1.25rem;
}

.purchase-modal-question {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.purchase-modal-actions {
    display: flex;
    gap: 1rem;
}

.purchase-modal-btn {
    flex: 1;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-height: 44px;
}

.purchase-modal-btn-confirm {
    background: #6366f1;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.purchase-modal-btn-confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.35);
    opacity: 0.95;
}

.purchase-modal-btn-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.purchase-modal-btn-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.purchase-modal-btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
}

[data-theme="dark"] .purchase-modal-card {
    background: #1e293b;
}

[data-theme="dark"] .purchase-modal-title {
    color: #f8fafc;
}

[data-theme="dark"] .purchase-modal-question {
    color: #94a3b8;
}

[data-theme="dark"] .purchase-modal-btn-cancel {
    background: #334155;
    color: #cbd5e1;
    border-color: #475569;
}

[data-theme="dark"] .purchase-modal-btn-cancel:hover {
    background: #475569;
    color: #f8fafc;
}

@media (max-width: 600px) {
    .purchase-modal-card {
        width: 90%;
        max-width: 450px;
        border-radius: 24px;
        overflow-y: auto;
    }

    .purchase-modal-body {
        padding: 1.5rem;
    }

    .purchase-modal-title {
        font-size: 1.2rem;
    }

    .purchase-modal-price {
        font-size: 1.5rem;
    }

    .purchase-modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ─── Mentor Section ────────────────────────────────── */
.mentor-inner-box {
    background: var(--mentor-bg, var(--bg-soft));
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 3rem;
    border-radius: var(--border-radius-lg, 24px);
}

[data-theme="dark"] .mentor-inner-box {
    background: var(--mentor-bg-dark, var(--bg-soft));
}

.mentor-image-col {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
}

.teacher-portrait {
    width: 250px;
    height: 250px;
    border-radius: 24px;
    overflow: visible;
    transform: scale(1.15);
    transform-origin: bottom center;
}

.teacher-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 24px;
}

@media (max-width: 992px) {
    .mentor-inner-box {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }
    .mentor-image-col {
        flex: none;
        width: 100%;
    }
    .mentor-inner-box .hero-content {
        text-align: center;
    }
    .mentor-inner-box .hero-actions {
        justify-content: center;
    }
}
@media (max-width: 576px) {
    .teacher-portrait {
        width: 200px;
        height: 200px;
    }
}

/* ─── Features Slide Buttons ───────────────────────── */
.slide-btns-container {
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
    box-sizing: border-box;
}

.slide-btns-container.one-btn {
    grid-template-columns: 1fr;
}

.slide-btns-container.two-btns {
    grid-template-columns: 1fr 1fr;
}

.slide-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
}

.slide-btn.btn-solid {
    background: var(--primary-purple, #7c3aed);
    color: white;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

.slide-btn.btn-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.3);
    opacity: 0.95;
}

.slide-btn.btn-outline {
    border: 2px solid var(--primary-purple, #7c3aed);
    color: var(--primary-purple, #7c3aed);
    background: transparent;
}

.slide-btn.btn-outline:hover {
    background: var(--primary-purple, #7c3aed);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.15);
}

/* Dark mode adjustments for slide buttons */
[data-theme="dark"] .slide-btn.btn-outline {
    border-color: #a78bfa;
    color: #a78bfa;
}

[data-theme="dark"] .slide-btn.btn-outline:hover {
    background: #a78bfa;
    color: #0f172a;
}


/* ─── Custom Premium Select Dropdown replacement ───── */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Ensure the open dropdown wrapper stays on top of adjacent elements and calendar pickers */
.custom-select-wrapper.open {
    z-index: 1050 !important;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    user-select: none;
    outline: none;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: 200% 100%;
    background-position: 0 0;
    border: 1px solid transparent;
}

/* Map existing class stylings to custom triggers */
.custom-select-wrapper.wizard-select .custom-select-trigger {
    height: 52px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-navy, #1e293b);
    background-image: linear-gradient(to left, #f3e8ff 50%, var(--bg-soft, #f1f5f9) 50%);
}

.custom-select-wrapper.dashboard-input .custom-select-trigger {
    height: 52px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-navy, #1e293b);
    background-image: linear-gradient(to left, #f3e8ff 50%, #f1f5f9 50%);
}

.custom-select-wrapper.compact-select .custom-select-trigger {
    height: 36px;
    width: 110px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-navy, #1e293b);
    background-color: var(--bg-white, #fff);
    border: 1.5px solid var(--border, #e2e8f0);
}

/* Hover and Focus States */
.custom-select-wrapper.wizard-select:hover .custom-select-trigger,
.custom-select-wrapper.dashboard-input:hover .custom-select-trigger {
    border-color: #7c3aed;
    transform: translateY(-1px);
}

.custom-select-wrapper.compact-select:hover .custom-select-trigger {
    border-color: #7c3aed;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #7c3aed;
    background-position: 100% 0;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
}

.custom-select-wrapper.compact-select.open .custom-select-trigger {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Arrow Icon */
.custom-select-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #7c3aed;
}

.custom-select-wrapper.open .custom-select-arrow {
    transform: rotate(180deg);
}

/* Options Container (Glassmorphic Window) */
.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(124, 58, 237, 0.2) transparent !important;
    padding: 6px;
    box-sizing: border-box;
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Custom Scrollbar for Options list */
.custom-select-options::-webkit-scrollbar {
    width: 8px !important;
    display: block !important;
}
.custom-select-options::-webkit-scrollbar-track {
    background: transparent !important;
    margin: 12px 0 !important; /* Keep thumb inside rounded corners */
}
.custom-select-options::-webkit-scrollbar-thumb {
    background-color: rgba(124, 58, 237, 0.2) !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    border-radius: 10px !important;
}
.custom-select-options::-webkit-scrollbar-thumb:hover {
    background-color: rgba(124, 58, 237, 0.4) !important;
}

/* Option Items */
.custom-select-option {
    padding: 10px 16px;
    margin: 2px 0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: right; /* RTL support */
    min-height: 44px;
    display: flex;
    align-items: center;
}

.custom-select-option:hover {
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
    padding-right: 20px; /* Micro-animation sliding right */
}

.custom-select-option.selected {
    background: #7c3aed;
    color: #ffffff;
}

.custom-select-option.selected:hover {
    background: #6d28d9;
    color: #ffffff;
}

/* Dark Theme Overrides */
[data-theme="dark"] .custom-select-wrapper.wizard-select .custom-select-trigger,
[data-theme="dark"] .custom-select-wrapper.dashboard-input .custom-select-trigger {
    color: #f8fafc;
    border-color: #334155;
    background-image: linear-gradient(to left, #2e1065 50%, #1e293b 50%);
}

[data-theme="dark"] .custom-select-wrapper.compact-select .custom-select-trigger {
    border-color: #334155;
    background-color: #1e293b;
    color: #f8fafc;
}

[data-theme="dark"] .custom-select-wrapper.wizard-select:hover .custom-select-trigger,
[data-theme="dark"] .custom-select-wrapper.dashboard-input:hover .custom-select-trigger,
[data-theme="dark"] .custom-select-wrapper.open .custom-select-trigger {
    border-color: #a78bfa;
}

[data-theme="dark"] .custom-select-wrapper.compact-select:hover .custom-select-trigger,
[data-theme="dark"] .custom-select-wrapper.compact-select.open .custom-select-trigger {
    border-color: #a78bfa;
}

[data-theme="dark"] .custom-select-wrapper.open .custom-select-trigger {
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.2);
}

[data-theme="dark"] .custom-select-wrapper.compact-select.open .custom-select-trigger {
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

[data-theme="dark"] .custom-select-arrow {
    color: #a78bfa;
}

[data-theme="dark"] .custom-select-options {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(167, 139, 250, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .custom-select-option {
    color: #cbd5e1;
}

[data-theme="dark"] .custom-select-option:hover {
    background: rgba(167, 139, 250, 0.12);
    color: #c084fc;
}

[data-theme="dark"] .custom-select-option.selected {
    background: #7c3aed;
    color: #ffffff;
}

/* ─── Navbar Profile Dropdown ──────────────────────────── */
.nav-profile-wrapper {
    position: relative;
}

.nav-profile-trigger {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    transition: all 0.2s ease;
    outline: none;
}

.nav-profile-trigger:hover,
.nav-profile-trigger[aria-expanded="true"] {
    background: rgba(124, 58, 237, 0.08);
}

[data-theme="dark"] .nav-profile-trigger:hover,
[data-theme="dark"] .nav-profile-trigger[aria-expanded="true"] {
    background: rgba(167, 139, 250, 0.12);
}

.nav-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-profile-trigger:hover .nav-avatar,
.nav-profile-trigger[aria-expanded="true"] .nav-avatar {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.4);
}

.nav-user-name {
    font-weight: 700;
    color: var(--text-navy);
    font-size: 0.95rem;
}

[data-theme="dark"] .nav-user-name { color: #f8fafc; }

.nav-chevron {
    color: #94a3b8;
    font-size: 0.8rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-profile-trigger[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
    color: var(--primary-purple);
}

.nav-profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0; /* Align left to prevent extending off screen if in LTR context, but website is RTL so left is actually right visual side. Wait, if RTL, left:0 means align to left edge. */
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transform-origin: top left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

html[dir="rtl"] .nav-profile-dropdown {
    transform-origin: top right;
    left: auto;
    right: 0;
}

[data-theme="dark"] .nav-profile-dropdown {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(167, 139, 250, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.nav-profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(124, 58, 237, 0.03);
}

[data-theme="dark"] .dropdown-header { background: rgba(167, 139, 250, 0.05); }

.dropdown-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
}

.dropdown-user-info strong {
    font-size: 0.95rem;
    color: var(--text-navy);
}

[data-theme="dark"] .dropdown-user-info strong { color: #f8fafc; }

.dropdown-user-info span {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

[data-theme="dark"] .dropdown-user-info span { color: #94a3b8; }

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 0.25rem 0;
}

[data-theme="dark"] .dropdown-divider { background: rgba(255, 255, 255, 0.05); }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: right;
    cursor: pointer;
    font-family: inherit;
}

[data-theme="dark"] .dropdown-item { color: #e2e8f0; }

.dropdown-item i {
    font-size: 1rem;
    color: #94a3b8;
    transition: color 0.2s ease;
    width: 20px;
    text-align: center;
}

.dropdown-item:hover {
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary-purple);
    padding-right: 1.25rem;
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(167, 139, 250, 0.12);
    color: #c084fc;
}

.dropdown-item:hover i {
    color: var(--primary-purple);
}

[data-theme="dark"] .dropdown-item:hover i { color: #c084fc; }

.dropdown-item.text-danger {
    color: #ef4444;
}

.dropdown-item.text-danger i {
    color: #f87171;
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

[data-theme="dark"] .dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

/* ─── Smart Upsell & Bundles Modal Additions ─────────── */
.upsell-card {
    position: relative;
    border: 2px solid #fbbf24;
}

[data-theme="dark"] .upsell-card {
    border-color: #d97706;
}

.upsell-card {
    overflow: visible;
}

.upsell-badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translate(50%, -50%);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e1b4b;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.35rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
}

.upsell-text {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: right;
}

[data-theme="dark"] .upsell-text {
    color: #cbd5e1;
}

.upsell-lectures-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upsell-lectures-list li {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
}

[data-theme="dark"] .upsell-lectures-list li {
    color: #f1f5f9;
}

.purchase-modal-btn-link {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    text-decoration: underline;
    padding: 0.5rem;
}

.purchase-modal-btn-link:hover {
    color: #ef4444;
}

[data-theme="dark"] .purchase-modal-btn-link {
    color: #94a3b8;
}

[data-theme="dark"] .purchase-modal-btn-link:hover {
    color: #f87171;
}

@media (max-width: 480px) {
    .feature-card-new { padding: 1.5rem 1rem; }
    .f-card-title { font-size: 1.1rem; }
    .grade-footer { padding: 1rem; }
    [data-theme="dark"] .grade-footer { padding: 1rem; }
    .grade-footer h3 { font-size: 1rem; }
    [data-theme="dark"] .grade-footer h3 { font-size: 1rem; }
    .login-graphic h2 { font-size: 1.6rem; }
    .register-graphic h2 { font-size: 1.4rem; }
}
