﻿/*.ball {
    position: absolute;
    border-radius: 100%;
    opacity: 0.7;
}*/

/*Site.Css*/

.about-stats-strip {
    background: #faf3ea !important;
    border-radius: 18px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    text-align: center !important;
}
}

.about-stats-wrap {
    max-width: 1100px;
    margin: 0 auto;
}


.about-stat {
    background: #13214b;
    border: 1px solid #ecebe6;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

    .about-stat::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 4px;
        background: linear-gradient(90deg,#1D9E75,#7F77DD);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform .4s ease;
    }

    .about-stat:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(20,20,20,.08);
        border-color: #d8d6cd;
    }

        .about-stat:hover::before {
            transform: scaleX(1);
        }

.as-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.about-stat:nth-child(1) .as-icon {
    background: #EAF3DE;
    color: #3B6D11;
}

.about-stat:nth-child(2) .as-icon {
    background: #EEEDFE;
    color: #3C3489;
}

.about-stat:nth-child(3) .as-icon {
    background: #FAEEDA;
    color: #854F0B;
}

.about-stat:nth-child(4) .as-icon {
    background: #E1F5EE;
    color: #0F6E56;
}

.as-value {
    display: block;
    font-size: 34px;
    font-weight: 700;
    color: #1f2320;
    line-height: 1.2;
}

.as-label {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #6b6b66;
    font-weight: 500;
}

@media (max-width:700px) {
    .about-stats-strip {
        grid-template-columns: repeat(2,1fr) !important;
    }
}

@media (max-width: 680px) {
    .eyebrow {
        justify-content: center !important;
    }
}


:root {
    --navy-deep: #0b1530;
    --navy: #101d40;
    --navy-light: #152556;
    --blue-accent: #B8812F;
    --blue-accent-dark: #96661F;
    --gold: #e0a13a;
    --ink: #14213d;
    --muted: #6b7488;
    --line: #ECE3D6;
    --bg: #FAF3EA;
    --card-purple-bg: #efeafb;
    --card-purple-fg: #7c5ce0;
    --card-green-bg: #e7f8ee;
    --card-green-fg: #2fa96a;
    --card-orange-bg: #fdf1de;
    --card-orange-fg: #e0a13a;
    --card-blue-bg: #e8f1fd;
    --card-blue-fg: #2f6df0;
    --card-red-bg: #fdeaec;
    --card-red-fg: #e0526a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo','Tajawal',sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

:focus-visible {
    outline: 2.5px solid var(--blue-accent);
    outline-offset: 3px;
}

/* ===== NAV ===== */
header.topbar {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(145deg,var(--navy-light),var(--navy-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.brand-text {
    min-width: 0;
}

    .brand-text .title {
        font-weight: 800;
        font-size: 17px;
        color: var(--navy-deep);
        line-height: 1.3;
        white-space: nowrap;
    }

    .brand-text .sub {
        font-size: 11.5px;
        color: var(--muted);
        white-space: nowrap;
    }

nav.links {
    display: flex;
    align-items: center;
    gap: 34px;
}

    nav.links a {
        font-size: 14.5px;
        font-weight: 600;
        color: #4a5170;
        padding-bottom: 4px;
        position: relative;
        transition: color .2s;
    }

        nav.links a:hover {
            color: var(--navy-deep);
        }

        nav.links a.active {
            color: var(--navy-deep);
        }

            nav.links a.active::after {
                content: "";
                position: absolute;
                bottom: -18px;
                left: 0;
                right: 0;
                height: 2.5px;
                background: var(--gold);
                border-radius: 2px;
            }

.nav-actions-mobile {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-dark {
    background: var(--navy-deep);
    color: #fff;
}

    .btn-dark:hover {
        background: var(--navy);
    }

.btn-outline {
    background: #fff;
    color: var(--navy-deep);
    border: 1.5px solid #dde1ec;
}

    .btn-outline:hover {
        border-color: var(--navy-deep);
    }

.btn-blue {
    background: var(--blue-accent);
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(184,129,47,.45);
}

    .btn-blue:hover {
        background: var(--blue-accent-dark);
    }

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid #3a4270;
}

    .btn-ghost:hover {
        border-color: #fff;
    }

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

    .hamburger span {
        display: block;
        width: 22px;
        height: 2.2px;
        background: var(--navy-deep);
        border-radius: 2px;
        transition: transform .25s ease, opacity .25s ease;
    }

    .hamburger.open span:nth-child(1) {
        transform: translateY(7.2px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-7.2px) rotate(-45deg);
    }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11,21,48,.45);
    z-index: 98;
    opacity: 0;
    transition: opacity .25s ease;
}

    .nav-overlay.show {
        display: block;
        opacity: 1;
    }

/* ===== HERO ===== */
.hero {
    background: radial-gradient(1100px 500px at 12% -10%, #1b2c5e 0%, transparent 60%), linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
    padding: 56px 0 0;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255,255,255,.055) 1.4px, transparent 1.4px);
        background-size: 22px 22px;
        -webkit-mask-image: radial-gradient(560px 360px at 4% 20%, black, transparent), radial-gradient(560px 420px at 100% 90%, black, transparent);
        mask-image: radial-gradient(560px 360px at 4% 20%, black, transparent), radial-gradient(560px 420px at 100% 90%, black, transparent);
        pointer-events: none;
    }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-photo {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 390px;
}

    .hero-photo img {
        max-height: 390px;
        width: auto;
        object-fit: cover;
        object-position: top;
        border-radius: 14px 14px 0 0;
    }

.play-btn {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    border: 1.5px solid rgba(255,255,255,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    transition: transform .2s;
    cursor: pointer;
}

    .play-btn:hover {
        transform: translate(-50%,-50%) scale(1.07);
    }

.hero-copy {
    padding: 20px 0 48px;
}

.eyebrow {
    color: var(--gold);
    font-weight: 700;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.hero-copy h1 {
    font-size: 44px;
    line-height: 1.28;
    font-weight: 900;
    color: #fff;
    margin-bottom: 22px;
}

.hero-copy p {
    font-size: 15.5px;
    line-height: 1.9;
    color: #aab2d1;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== FEATURE STRIP ===== */
.feature-strip-wrap {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    padding-bottom: 0;
}

.feature-strip {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 45px -20px rgba(15,25,60,.35);
    display: grid;
    grid-template-columns: repeat(5,1fr);
    padding: 28px 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 20px;
    border-left: 1px solid var(--line);
    justify-content: flex-end;
    text-align: right;
}

    .feature-item:first-child {
        border-left: none;
    }

    .feature-item .ic {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-item h4 {
        font-size: 14.5px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .feature-item p {
        font-size: 12.5px;
        color: var(--muted);
        line-height: 1.5;
    }

.ic.c1, .ic.c2, .ic.c3, .ic.c4 {
    background: #eef1fa;
    color: var(--navy);
}

.ic.c5 {
    background: #e8f4fb;
    color: #1a73b5;
}

/* ===== SECTIONS ===== */
section {
    padding: 10px 0 8px;
}

#categories {
    padding-top: 40px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

    .section-head h2 {
        font-size: 24px;
        font-weight: 800;
        position: relative;
        padding-bottom: 12px;
    }

        .section-head h2::after {
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            width: 46px;
            height: 3px;
            background: var(--blue-accent);
            border-radius: 2px;
        }

.view-all {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
}

/* ===== CATEGORIES ===== */
.cats {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 18px;
    margin-bottom: 16px;
}

.cat-card {
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .cat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 30px -18px rgba(20,30,60,.35);
    }

.cat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.cat-card .count {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
}

.cat-link {
    font-size: 12.5px;
    font-weight: 700;
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.cat-purple {
    background: var(--card-purple-bg);
}

    .cat-purple .cat-link, .cat-purple h3 {
        color: var(--card-purple-fg);
    }

.cat-green {
    background: var(--card-green-bg);
}

    .cat-green .cat-link, .cat-green h3 {
        color: var(--card-green-fg);
    }

.cat-orange {
    background: var(--card-orange-bg);
}

    .cat-orange .cat-link, .cat-orange h3 {
        color: var(--card-orange-fg);
    }

.cat-blue {
    background: var(--card-blue-bg);
}

    .cat-blue .cat-link, .cat-blue h3 {
        color: var(--card-blue-fg);
    }

.cat-red {
    background: var(--card-red-bg);
}

    .cat-red .cat-link, .cat-red h3 {
        color: var(--card-red-fg);
    }

/* ===== COURSES ===== */
.courses-row {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    padding: 6px 2px 24px;
}

.courses-track {
    display: flex;
    gap: 18px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .courses-track::-webkit-scrollbar {
        display: none;
    }

    .courses-track .course-card {
        flex: 0 0 calc((100% - 2*18px) / 3); /* 3 كروت ظاهرة، عدّل الرقم لو حابب أقل/أكتر */
        scroll-snap-align: start;
    }

.course-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .course-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 34px -20px rgba(20,30,60,.4);
    }

.course-thumb {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

    .course-thumb::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, rgba(0,0,0,.35), transparent 55%);
    }

.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #22c55e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}

.course-icon-big {
    font-size: 44px;
    position: relative;
    z-index: 1;
}

.course-body {
    padding: 14px 16px 18px;
}

    .course-body h4 {
        font-size: 14.5px;
        font-weight: 700;
        margin-bottom: 8px;
        line-height: 1.4;
    }

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-weight: 600;
}

.stars {
    color: #f5a524;
    letter-spacing: 1px;
    font-size: 12px;
}

.price {
    font-weight: 800;
    color: var(--navy-deep);
    font-size: 14px;
}

.thumb-python {
    background: linear-gradient(135deg,#12395e,#0b1d33);
}

.thumb-premiere {
    background: linear-gradient(135deg,#3d1a5e,#1e0e33);
}

.thumb-marketing {
    background: linear-gradient(135deg,#5e2a1a,#33150b);
}

.thumb-selfdev {
    background: linear-gradient(135deg,#12475e,#0b2733);
}

.thumb-math {
    background: linear-gradient(135deg,#1c2333,#0d1119);
}

.nav-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--navy-deep);
    box-shadow: 0 6px 14px -8px rgba(20,30,60,.3);
    transition: background .15s ease, color .15s ease;
}

    .nav-arrow:hover {
        background: var(--navy-deep);
        color: #fff;
    }

    .nav-arrow:disabled {
        opacity: .35;
        cursor: default;
    }

        .nav-arrow:disabled:hover {
            background: #fff;
            color: var(--navy-deep);
        }

.dots {
    display: none;
    justify-content: center;
    gap: 8px;
    padding: 18px 0 36px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d7dbe8;
    transition: background .2s,width .2s;
}

    .dot.active {
        background: var(--blue-accent);
        width: 20px;
        border-radius: 5px;
    }

.site-footer {
    margin-top: 40px;
    padding: 26px 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--line);
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* ---- Tablets (<=1100px): 3-col grids, tighter hero ---- */
@media (max-width:1100px) {
    .cats {
        grid-template-columns: repeat(3,1fr);
    }

        .cats .cat-card:nth-child(4), .cats .cat-card:nth-child(5) {
            grid-column: span 1;
        }

    .feature-strip {
        grid-template-columns: 1fr;
        margin-top: -24px;
    }

    .feature-item:nth-child(4) {
        border-left: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-photo {
        order: -1;
        height: 300px;
    }

        .hero-photo img {
            max-height: 300px;
        }

    .hero-copy {
        padding-top: 8px;
        text-align: center;
    }

        .hero-copy p {
            margin-left: auto;
            margin-right: auto;
        }

    .hero-ctas {
        justify-content: center;
    }

    .courses-track .course-card {
        flex: 0 0 calc((100% - 2*18px) / 2); /* كارتين على التابلت */
    }
}

/* ---- Small tablets / large phones (<=880px): nav collapses ---- */
@media (max-width:880px) {
    nav.links {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(78%,320px);
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 90px 26px 26px;
        transform: translateX(-100%);
        transition: transform .3s ease;
        z-index: 99;
        box-shadow: 12px 0 30px -12px rgba(20,30,60,.25);
        overflow-y: auto;
    }

        nav.links.open {
            transform: translateX(0);
        }

        nav.links a {
            font-size: 16px;
            width: 100%;
            padding: 12px 0;
            border-bottom: 1px solid var(--line);
        }

            nav.links a.active::after {
                display: none;
            }

            nav.links a.active {
                color: var(--blue-accent);
            }

    .nav-actions-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 16px;
    }

        .nav-actions-mobile .btn {
            width: 100%;
        }

    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .feature-strip {
        grid-template-columns: repeat(2,1fr);
    }

    .feature-item {
        border-left: none;
        border-bottom: 1px solid var(--line);
        padding: 16px 6px;
        justify-content: flex-start;
    }

        .feature-item:nth-child(even) {
            padding-right: 16px;
        }

    .cats {
        grid-template-columns: repeat(2,1fr);
    }

    #categories {
        padding-top: 60px;
    }
}

/* ---- Phones (<=680px) ---- */
@media (max-width:680px) {
    .container {
        padding: 0 18px;
    }

    .nav-row {
        padding: 12px 18px;
    }

    .brand-text .sub {
        display: none;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-copy h1 {
        font-size: 30px;
    }

    .hero-copy p {
        font-size: 14.5px;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

        .hero-ctas .btn {
            width: 100%;
        }

    .hero-photo {
        height: 230px;
    }

        .hero-photo img {
            max-height: 230px;
        }

    .play-btn {
        width: 52px;
        height: 52px;
    }

    .feature-strip {
        grid-template-columns: 1fr;
        transform: translateY(24px);
    }

    .feature-item {
        padding: 14px 4px;
    }

    .feature-strip-wrap {
        margin-top: 20px;
    }

    section {
        padding: 56px 0 8px;
    }

    #categories {
        padding-top: 44px;
    }

    .section-head h2 {
        font-size: 19px;
    }

    .cats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .cat-card {
        padding: 16px 14px;
        border-radius: 14px;
    }

        .cat-card h3 {
            font-size: 14px;
        }

    /* Course carousel: horizontal snap-scroll on phones */
    .courses-row {
        padding: 2px 0 8px;
    }

    .nav-arrow {
        display: none;
    }

    .courses-track {
        display: flex;
        grid-template-columns: unset;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

        .courses-track::-webkit-scrollbar {
            display: none;
        }

        .courses-track .course-card {
            flex: 0 0 78%;
            scroll-snap-align: start;
        }

    .dots {
        display: flex;
    }
}




/* ---- Very small phones ---- */
@media (max-width:380px) {
    .cats {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 26px;
    }

    .courses-track .course-card {
        flex: 0 0 88%;
    }
}

/* =============================================
   CART BUTTON (header, courses page)
   ============================================= */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1.5px solid #dde1ec;
    background: #fff;
    color: var(--navy-deep);
    flex-shrink: 0;
    transition: border-color .15s ease, transform .15s ease;
}

    .cart-btn:hover {
        border-color: var(--navy-deep);
        transform: translateY(-1px);
    }

.cart-count {
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--blue-accent);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid #fff;
}

/* =============================================
   PAGE HERO (inner pages: courses, etc.)
   ============================================= */
.page-hero {
    background: radial-gradient(900px 400px at 90% -20%, #1b2c5e 0%, transparent 60%), linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    padding: 46px 0;
    position: relative;
    overflow: hidden;
}

    .page-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255,255,255,.05) 1.4px, transparent 1.4px);
        background-size: 22px 22px;
        -webkit-mask-image: radial-gradient(500px 300px at 96% 10%, black, transparent);
        mask-image: radial-gradient(500px 300px at 96% 10%, black, transparent);
        pointer-events: none;
    }

.page-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.page-hero-headline {
    max-width: 640px;
}

    .page-hero-headline h1 {
        color: #fff;
        font-size: 24px;
        font-weight: 800;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .page-hero-headline p {
        color: #aab2d1;
        font-size: 14px;
        line-height: 1.7;
    }

.page-hero-title {
    text-align: left;
    flex-shrink: 0;
}

    .page-hero-title h2 {
        color: #fff;
        font-size: 32px;
        font-weight: 900;
        margin-bottom: 8px;
    }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    font-size: 13px;
    color: #9aa3c4;
    font-weight: 600;
}

    .breadcrumb a {
        color: #c7cde8;
        transition: color .15s;
    }

        .breadcrumb a:hover {
            color: #fff;
        }

    .breadcrumb svg {
        opacity: .6;
        transform: scaleX(-1);
    }

/* =============================================
   COURSES PAGE LAYOUT
   ============================================= */
.courses-page {
    padding: 44px 0 60px;
}

.courses-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 26px;
    align-items: start;
}

/* ---- Filters sidebar ---- */
.filters-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 88px;
}

.filters-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}

.filters-title {
    font-size: 14.5px;
    font-weight: 800;
    margin-bottom: 14px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    padding: 10px 12px;
    color: var(--muted);
}

    .search-box input {
        border: none;
        outline: none;
        font-family: inherit;
        font-size: 13.5px;
        width: 100%;
        background: transparent;
        color: var(--ink);
    }

.cat-filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 6px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: #4a5170;
    transition: background .15s ease, color .15s ease;
}

    .cat-filter-item:hover {
        background: #f4f6fb;
    }

    .cat-filter-item .cat-count {
        min-width: 26px;
        height: 22px;
        padding: 0 6px;
        border-radius: 6px;
        background: #eef1fa;
        color: var(--muted);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11.5px;
        font-weight: 800;
        flex-shrink: 0;
    }

    .cat-filter-item.active {
        color: var(--blue-accent);
    }

        .cat-filter-item.active .cat-count {
            background: var(--blue-accent);
            color: #fff;
        }

.check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 2px;
    font-size: 13.5px;
    font-weight: 600;
    color: #4a5170;
    cursor: pointer;
}

    .check-row input {
        width: 17px;
        height: 17px;
        accent-color: var(--blue-accent);
        cursor: pointer;
    }

.price-slider {
    position: relative;
    height: 4px;
    background: transparent;
    margin: 22px 4px 6px;
}

.price-track {
    position: absolute;
    inset: 0;
    background: var(--line);
    border-radius: 4px;
}

.price-range {
    position: absolute;
    top: 0;
    height: 4px;
    background: var(--blue-accent);
    border-radius: 4px;
}

.range-input {
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
}

    .range-input::-webkit-slider-thumb {
        -webkit-appearance: none;
        pointer-events: all;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        border: 3px solid var(--blue-accent);
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(20,30,60,.25);
    }

    .range-input::-moz-range-thumb {
        pointer-events: all;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        border: 3px solid var(--blue-accent);
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(20,30,60,.25);
    }

.price-fields {
    display: flex;
    gap: 10px;
    margin: 16px 0 16px;
}

.price-field {
    flex: 1;
}

    .price-field label {
        display: block;
        font-size: 11.5px;
        color: var(--muted);
        font-weight: 700;
        margin-bottom: 6px;
    }

    .price-field input {
        width: 100%;
        border: 1.5px solid var(--line);
        border-radius: 8px;
        padding: 8px 10px;
        font-family: inherit;
        font-size: 12.5px;
        font-weight: 700;
        color: var(--ink);
        background: #f7f8fb;
        text-align: center;
    }

.apply-filters {
    width: 100%;
}

/* ---- Main content: toolbar ---- */
.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.toolbar-count {
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 600;
}

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sort-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}

.sort-select {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
}

    .sort-select select {
        border: none;
        outline: none;
        background: transparent;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        color: var(--ink);
        padding: 9px 6px;
        appearance: none;
        -webkit-appearance: none;
        padding-left: 22px;
    }

    .sort-select svg {
        position: absolute;
        left: 10px;
        pointer-events: none;
        color: var(--muted);
    }

.view-toggle {
    display: flex;
    gap: 6px;
    background: #eef1fa;
    padding: 4px;
    border-radius: 9px;
}

.view-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: background .15s ease,color .15s ease;
}

    .view-btn.active {
        background: var(--blue-accent);
        color: #fff;
    }

/* ---- Course grid (courses page cards) ---- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin-bottom: 34px;
}

    .course-grid.list-view {
        grid-template-columns: 1fr;
    }

        .course-grid.list-view .course-card-full {
            display: grid;
            grid-template-columns: 220px 1fr;
            align-items: stretch;
        }

        .course-grid.list-view .course-thumb {
            height: 100%;
            min-height: 140px;
        }

        .course-grid.list-view .course-body {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

.course-card-full {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .course-card-full:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 34px -20px rgba(20,30,60,.4);
    }

.badge-hot {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: var(--gold);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.thumb-figma {
    background: linear-gradient(135deg,#3a2d5e,#181229);
}

.thumb-excel {
    background: linear-gradient(135deg,#12592f,#0b2417);
}

.thumb-idea {
    background: linear-gradient(135deg,#5e4a1a,#2e2410);
}

.course-card-full .course-body {
    padding: 15px 16px 18px;
}

    .course-card-full .course-body h4 {
        font-size: 14.5px;
        font-weight: 700;
        margin-bottom: 8px;
        line-height: 1.4;
    }

.instructor {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eef1fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.course-card-full .course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--line);
}

.lectures {
    color: var(--muted);
    font-weight: 600;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-mini {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-accent);
    transition: background .15s ease,color .15s ease,border-color .15s ease;
}

    .cart-mini:hover {
        background: var(--blue-accent);
        color: #fff;
        border-color: var(--blue-accent);
    }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--navy-deep);
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease,color .15s ease,border-color .15s ease;
}

    .page-btn:hover {
        border-color: var(--blue-accent);
        color: var(--blue-accent);
    }

    .page-btn.active {
        background: var(--blue-accent);
        border-color: var(--blue-accent);
        color: #fff;
    }

/* =============================================
   RESPONSIVE: courses page
   ============================================= */
@media (max-width:1100px) {
    .course-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .page-hero-row {
        justify-content: flex-start;
    }

    .page-hero-title {
        text-align: right;
        order: -1;
        width: 100%;
    }

    .breadcrumb {
        justify-content: flex-start;
    }
}

@media (max-width:900px) {
    .courses-layout {
        grid-template-columns: 1fr;
    }

    .filters-panel {
        position: relative;
        top: 0;
    }

    .filters-panel {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .filters-card {
        flex: 1 1 260px;
    }
}

@media (max-width:680px) {
    .page-hero {
        padding: 32px 0;
    }

    .page-hero-headline h1 {
        font-size: 19px;
    }

    .page-hero-title h2 {
        font-size: 24px;
    }

    .courses-page {
        padding: 28px 0 40px;
    }

    .course-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

        .course-grid.list-view .course-card-full {
            grid-template-columns: 1fr;
        }

    .toolbar-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-controls {
        width: 100%;
        justify-content: space-between;
    }

    .filters-panel {
        flex-direction: column;
    }

    .cart-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width:460px) {
    .course-grid {
        grid-template-columns: 1fr;
    }

    .price-fields {
        flex-direction: row;
    }
}

/* =============================================
   AUTH PAGES (login / signup)
   ============================================= */
.auth-page {
    direction: ltr;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-visual {
    direction: rtl;
    background: radial-gradient(900px 500px at 20% 0%, #1b2c5e 0%, transparent 60%), linear-gradient(150deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 28px 40px 40px;
    position: relative;
    overflow: hidden;
}

.auth-form-panel {
    direction: rtl;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #c7cde8;
    transition: color .15s ease;
}

    .back-home:hover {
        color: #fff;
    }

.brand-on-dark {
    flex-direction: row-reverse;
}

    .brand-on-dark .title {
        color: #fff;
    }

    .brand-on-dark .sub {
        color: #9aa3c4;
    }

.auth-visual-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 20px;
}

.auth-visual-media {
    position: relative;
    width: 100%;
    max-width: 340px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 34px;
    box-shadow: 0 20px 45px -18px rgba(0,0,0,.5);
}

    .auth-visual-media img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .auth-visual-media .play-btn {
        width: 56px;
        height: 56px;
    }

.auth-visual-body h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 14px;
}

.auth-visual-body p {
    font-size: 13.5px;
    color: #aab2d1;
    line-height: 1.8;
    max-width: 340px;
    margin-bottom: 36px;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
    width: 100%;
    max-width: 360px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c7cde8;
    font-size: 12.5px;
    font-weight: 600;
    justify-content: flex-start;
    text-align: right;
}

    .auth-feature svg {
        flex-shrink: 0;
        color: #8fa0e8;
    }

.auth-form-wrap {
    width: 100%;
    max-width: 400px;
}

.auth-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e8f1fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.auth-form-wrap h1 {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.auth-sub {
    font-size: 13.5px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 8px;
    }

.form-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    background: #fff;
    transition: border-color .15s ease;
}

    .form-input-wrap:focus-within {
        border-color: var(--blue-accent);
    }

    .form-input-wrap input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-family: inherit;
        font-size: 13.5px;
        padding: 12px 42px 12px 14px;
        color: var(--ink);
        width: 100%;
    }

    .form-input-wrap > svg {
        position: absolute;
        right: 14px;
        color: var(--muted);
        pointer-events: none;
    }

.pw-toggle {
    position: absolute;
    left: 12px;
    color: var(--muted);
    display: flex;
    padding: 4px;
}

    .pw-toggle:hover {
        color: var(--ink);
    }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 13px;
}

.forgot-link {
    color: var(--blue-accent);
    font-weight: 700;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #4a5170;
    cursor: pointer;
}

    .remember-check input {
        width: 16px;
        height: 16px;
        accent-color: var(--blue-accent);
    }

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 14.5px;
}

.divider-or {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    margin: 22px 0;
    gap: 12px;
}

    .divider-or::before, .divider-or::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--line);
    }

.social-btn {
    width: 100%;
    justify-content: center;
    gap: 10px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 11px;
    margin-bottom: 12px;
}

    .social-btn:hover {
        border-color: #c7cde8;
        background: #f9fafc;
    }

.auth-switch-link {
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 20px;
}

    .auth-switch-link a {
        color: var(--blue-accent);
        font-weight: 700;
    }

.pw-requirements {
    background: #f7f8fb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

    .pw-requirements p {
        font-size: 12.5px;
        color: var(--muted);
        font-weight: 700;
        margin-bottom: 10px;
    }

    .pw-requirements ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .pw-requirements li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 12.5px;
        color: var(--muted);
        font-weight: 600;
    }

        .pw-requirements li .rule-icon {
            color: #c7cde8;
            flex-shrink: 0;
            transition: color .15s ease;
        }

        .pw-requirements li.valid {
            color: #22c55e;
        }

            .pw-requirements li.valid .rule-icon {
                color: #22c55e;
            }

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: #4a5170;
    font-weight: 600;
    margin-bottom: 22px;
    cursor: pointer;
    line-height: 1.6;
}

    .terms-check input {
        width: 16px;
        height: 16px;
        accent-color: var(--blue-accent);
        margin-top: 2px;
        flex-shrink: 0;
    }

    .terms-check a {
        color: var(--blue-accent);
        font-weight: 700;
    }

/* Standalone dark top bar (signup page) */
.auth-topbar {
    background: linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    padding: 22px 0;
}

.auth-center-wrap {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: var(--bg);
}

/* =============================================
   PROFILE PAGE
   ============================================= */
.profile-page {
    padding: 32px 0 60px;
}

.profile-banner {
    background: radial-gradient(700px 300px at 85% 0%, #1b2c5e 0%, transparent 60%), linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    border-radius: 18px;
    padding: 30px 34px;
    position: relative;
    overflow: hidden;
}

.profile-banner-info {
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.avatar-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    flex-shrink: 0;
}

    .avatar-wrap img {
        width: 84px;
        height: 84px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(255,255,255,.3);
    }

.avatar-edit-btn {
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

    .profile-name-row h1 {
        color: #fff;
        font-size: 21px;
        font-weight: 800;
    }

.role-badge {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}

.profile-name-block p {
    color: #aab2d1;
    font-size: 13px;
}

.profile-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    margin: -22px 20px 28px;
    position: relative;
    z-index: 2;
    box-shadow: 0 12px 30px -18px rgba(20,30,60,.3);
    overflow-x: auto;
}

.profile-tab {
    padding: 11px 18px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    transition: background .15s ease,color .15s ease;
}

    .profile-tab:hover {
        color: var(--ink);
    }

    .profile-tab.active {
        background: var(--navy-deep);
        color: #fff;
    }

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 22px;
    align-items: start;
}

.profile-col-main, .profile-col-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

    .card-head h3 {
        font-size: 15.5px;
        font-weight: 800;
    }

.card-head-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue-accent);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

    .info-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 13.5px;
        padding-bottom: 14px;
        border-bottom: 1px dashed var(--line);
    }

        .info-list li:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

.info-label {
    color: var(--muted);
    font-weight: 600;
}

.info-value {
    font-weight: 700;
}

.stat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

    .stat-list li {
        background: #f7f8fb;
        border-radius: 10px;
        padding: 16px;
        text-align: center;
    }

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: var(--navy-deep);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
}

.my-courses-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
}

    .my-courses-list li {
        display: flex;
        align-items: center;
        gap: 14px;
    }

.mc-thumb {
    width: 52px;
    height: 52px;
    border-radius: 11px;
    flex-shrink: 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mc-body {
    flex: 1;
    min-width: 0;
}

    .mc-body h4 {
        font-size: 13.5px;
        font-weight: 700;
        margin-bottom: 8px;
    }

.progress-bar {
    height: 6px;
    background: #eef1fa;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--blue-accent);
    border-radius: 6px;
}

.progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 700;
}

    .progress-meta span:first-child {
        color: var(--blue-accent);
    }

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

    .orders-list li {
        display: flex;
        align-items: center;
        gap: 12px;
    }

.status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-done {
    background: #e7f8ee;
    color: #2fa96a;
}

.order-body {
    flex: 1;
    min-width: 0;
}

    .order-body h4 {
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.order-date {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
}

.order-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--navy-deep);
    flex-shrink: 0;
}

.profile-footer-strip {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    margin-top: 28px;
}

.pf-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pf-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eef1fa;
    color: var(--navy);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-item h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
}

.pf-item p {
    font-size: 11.5px;
    color: var(--muted);
}

/* =============================================
   RESPONSIVE: auth + profile pages
   ============================================= */
@media (max-width:900px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-panel {
        padding: 0;
    }

    .auth-topbar {
        padding: 18px 0;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-footer-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width:680px) {
    .auth-form-panel {
        min-height: 100vh;
        padding: 24px 0;
    }

    .auth-center-wrap {
        padding: 36px 16px;
    }

    .auth-form-wrap {
        padding: 0 18px;
    }

    .profile-banner {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .profile-banner-info {
        gap: 14px;
    }

    .avatar-wrap, .avatar-wrap img {
        width: 64px;
        height: 64px;
    }

    .profile-name-row h1 {
        font-size: 17px;
    }

    .profile-name-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .profile-tabs {
        margin: -16px 8px 22px;
        padding: 6px;
    }

    .profile-tab {
        padding: 9px 14px;
        font-size: 12.5px;
    }

    .stat-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:420px) {
    .auth-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   PROFILE TAB PANELS
   ============================================= */
.tab-panel {
    display: none;
}

    .tab-panel.active {
        display: block;
    }

.panel-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .panel-head-row h2 {
        font-size: 19px;
        font-weight: 800;
    }

.panel-count {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    background: #eef1fa;
    padding: 6px 14px;
    border-radius: 20px;
}

/* ---- ?????? (full courses grid) ---- */
.full-courses-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.full-course-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .full-course-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 30px -18px rgba(20,30,60,.35);
    }

    .full-course-card .mc-thumb {
        width: 100%;
        height: 90px;
        border-radius: 0;
        font-size: 30px;
    }

.fc-body {
    padding: 16px;
}

    .fc-body h4 {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .fc-body .progress-meta {
        margin-bottom: 14px;
    }

.btn-sm {
    padding: 9px;
    font-size: 12.5px;
}

/* ---- ??????? ---- */
.fav-grid {
    grid-template-columns: repeat(3,1fr);
}

.fav-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #d1d5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease,transform .15s ease;
}

    .fav-toggle.active {
        color: #ef4a6b;
    }

    .fav-toggle:hover {
        transform: scale(1.08);
    }

/* ---- ??????? (full list) ---- */
.orders-full-card {
    padding: 8px 22px;
}

.orders-list-full li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

    .orders-list-full li:last-child {
        border-bottom: none;
    }

.status-pending {
    background: #fdf1de;
    color: #e0a13a;
}

.status-failed {
    background: #fdeaec;
    color: #e0526a;
}

.invoice-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-accent);
    transition: background .15s ease,color .15s ease;
}

    .invoice-btn:hover {
        background: var(--blue-accent);
        color: #fff;
        border-color: var(--blue-accent);
    }

/* ---- ????????? ---- */
.settings-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}

    .settings-section h3 {
        font-size: 15.5px;
        font-weight: 800;
        margin-bottom: 18px;
    }

.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-bottom: 18px;
}

.settings-section .form-group {
    margin-bottom: 0;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
    font-weight: 600;
    color: #4a5170;
    cursor: pointer;
}

    .switch-row:last-child {
        border-bottom: none;
    }

.switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

    .switch input {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        cursor: pointer;
        z-index: 1;
    }

.switch-slider {
    position: absolute;
    inset: 0;
    background: #dde1ec;
    border-radius: 20px;
    transition: background .2s ease;
}

    .switch-slider::before {
        content: "";
        position: absolute;
        top: 3px;
        right: 3px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        transition: transform .2s ease;
        box-shadow: 0 1px 3px rgba(0,0,0,.25);
    }

.switch input:checked + .switch-slider {
    background: var(--blue-accent);
}

    .switch input:checked + .switch-slider::before {
        transform: translateX(-18px);
    }

.danger-zone {
    border-color: #f7d2d8;
    background: #fff8f9;
}

    .danger-zone h3 {
        color: #e0526a;
    }

    .danger-zone p {
        font-size: 13px;
        color: var(--muted);
        line-height: 1.7;
        margin-bottom: 16px;
        max-width: 560px;
    }

.btn-danger {
    background: #e0526a;
    color: #fff;
}

    .btn-danger:hover {
        background: #c73f56;
    }

@media (max-width:1100px) {
    .full-courses-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .fav-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:680px) {
    .full-courses-grid, .fav-grid {
        grid-template-columns: 1fr;
    }

    .orders-full-card {
        padding: 6px 16px;
    }

    .orders-list-full li {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .panel-head-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =============================================
   PAGE HERO — compact variant (cart/checkout)
   ============================================= */
.page-hero-compact {
    padding: 30px 0;
}

    .page-hero-compact .page-hero-row {
        justify-content: flex-start;
    }

    .page-hero-compact .page-hero-title {
        text-align: right;
    }

/* =============================================
   CART PAGE
   ============================================= */
.cart-page {
    padding: 36px 0 60px;
}

.cart-table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

    .cart-table thead th {
        text-align: right;
        font-size: 12.5px;
        color: var(--muted);
        font-weight: 700;
        padding: 16px 20px;
        border-bottom: 1px solid var(--line);
        white-space: nowrap;
    }

        .cart-table thead th.col-remove {
            width: 50px;
        }

    .cart-table tbody td {
        padding: 16px 20px;
        border-bottom: 1px solid var(--line);
        vertical-align: middle;
        font-size: 13.5px;
    }

    .cart-table tbody tr:last-child td {
        border-bottom: none;
    }

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .cart-item h4 {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 4px;
        white-space: nowrap;
    }

.cart-item-meta {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.cell-price, .cell-total {
    font-weight: 700;
    white-space: nowrap;
}

.cell-total {
    color: var(--navy-deep);
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-deep);
    font-size: 16px;
    font-weight: 700;
    background: #f7f8fb;
    transition: background .15s ease;
}

    .qty-btn:hover {
        background: #eef1fa;
    }

.qty-value {
    width: 34px;
    text-align: center;
    border: none;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 0;
}

.remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: background .15s ease,color .15s ease;
}

    .remove-btn:hover {
        background: #fdeaec;
        color: #e0526a;
    }

.coupon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.coupon-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    margin-left: auto;
}

.coupon-input {
    flex: 1;
    min-width: 160px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 13px;
    text-align: right;
}

    .coupon-input:focus {
        outline: none;
        border-color: var(--blue-accent);
    }

.apply-coupon {
    order: -1;
}

.cart-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 20px;
    margin-bottom: 30px;
}

.cart-summary-title {
    font-size: 15.5px;
    font-weight: 800;
    margin-bottom: 18px;
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

    .summary-rows li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 13.5px;
        padding-bottom: 12px;
        border-bottom: 1px dashed var(--line);
    }

        .summary-rows li:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

.sr-label {
    color: var(--muted);
    font-weight: 600;
}

.sr-value {
    font-weight: 700;
}

.sr-discount {
    color: #2fa96a;
}

.summary-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 18px;
    border-top: 2px solid var(--line);
}

.st-label {
    font-size: 14px;
    font-weight: 700;
}

.st-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--navy-deep);
}

    .st-value::after {
        content: none;
        font-size: 13px;
        font-weight: 700;
        color: var(--muted);
    }

.cart-summary-card .btn {
    margin-bottom: 10px;
}

.why-us-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

    .why-us-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 13.5px;
        font-weight: 600;
        color: #4a5170;
    }

.wu-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #eef1fa;
    color: var(--navy);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-logos-block {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

    .payment-logos-block p {
        font-size: 12.5px;
        color: var(--muted);
        font-weight: 700;
        margin-bottom: 12px;
    }

.payment-logos-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pay-logo {
    background: #f7f8fb;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    color: #4a5170;
    letter-spacing: .3px;
}

.cart-footer-strip {
    margin-top: 0;
}

/* =============================================
   CHECKOUT PAGE
   ============================================= */
.checkout-steps-wrap {
    padding: 10px 0 8px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 0 26px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef1fa;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    border: 2px solid #eef1fa;
}

.step-item.current .step-circle {
    background: var(--blue-accent);
    color: #fff;
    border-color: var(--blue-accent);
}

.step-item.done .step-circle {
    background: #22c55e;
    border-color: #22c55e;
}

.step-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
}

.step-item.current .step-label {
    color: var(--blue-accent);
}

.step-item.done .step-label {
    color: #22c55e;
}

.step-line {
    width: 70px;
    height: 2px;
    background: var(--line);
}

    .step-line.done {
        background: #22c55e;
    }

.checkout-page {
    padding: 12px 0 40px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 22px;
    align-items: start;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-bottom: 26px;
}

.payment-method-tile {
    position: relative;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color .15s ease,background .15s ease;
    text-align: center;
}

    .payment-method-tile input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .payment-method-tile.active,
    .payment-method-tile:has(input:checked) {
        border-color: var(--blue-accent);
        background: #eef4ff;
    }

.pm-label {
    font-size: 12.5px;
    font-weight: 700;
}

.pm-logos {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 18px;
}

.mada-badge, .stc-badge {
    font-size: 10px;
    font-weight: 800;
    color: #0f7a3d;
    background: #e7f8ee;
    border-radius: 4px;
    padding: 2px 6px;
}

.stc-badge {
    color: #7c3aed;
    background: #f1ebfd;
}

.card-fields {
    margin-bottom: 4px;
}

.card-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.save-card-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5170;
    margin: 6px 0 22px;
    cursor: pointer;
}

    .save-card-check input {
        width: 16px;
        height: 16px;
        accent-color: var(--blue-accent);
    }

.pay-now-btn {
    padding: 15px;
    font-size: 15.5px;
    margin-bottom: 14px;
}

.secure-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    line-height: 1.7;
}

.checkout-item-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 18px 0 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

    .checkout-item-list li {
        display: flex;
        align-items: center;
        gap: 12px;
    }

.ci-body {
    flex: 1;
    min-width: 0;
}

    .ci-body h4 {
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ci-body span {
        font-size: 11.5px;
        color: var(--muted);
        font-weight: 600;
    }

.ci-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy-deep);
    flex-shrink: 0;
}

.checkout-trust-mini {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ctm-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctm-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef1fa;
    color: var(--navy);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctm-item h4 {
    font-size: 13px;
    font-weight: 700;
}

.ctm-item p {
    font-size: 11.5px;
    color: var(--muted);
}

.checkout-footer-strip {
    padding: 30px 0 10px;
}

.agree-note {
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 22px;
    line-height: 1.8;
}

    .agree-note a {
        color: var(--blue-accent);
        font-weight: 700;
    }

/* =============================================
   RESPONSIVE: cart + checkout
   ============================================= */
@media (max-width:1000px) {
    .cart-bottom-grid {
        grid-template-columns: 1fr;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:680px) {
    .cart-page {
        padding: 24px 0 40px;
    }

    .page-hero-compact {
        padding: 22px 0;
    }

    .coupon-row {
        flex-direction: column;
        align-items: stretch;
    }

    .coupon-label {
        margin-left: 0;
        order: -2;
    }

    .payment-method-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .card-fields-grid {
        grid-template-columns: 1fr;
    }

    .checkout-steps {
        gap: 6px;
    }

    .step-line {
        width: 34px;
    }

    .step-label {
        font-size: 10.5px;
    }
}

/* =============================================
   ADD-TO-CART MODAL
   ============================================= */
.cart-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(11,21,48,.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .2s ease;
}

    .cart-modal-overlay.show {
        display: flex;
        opacity: 1;
    }

.cart-modal {
    background: #fff;
    border-radius: 18px;
    padding: 34px 30px 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: cartModalPop .25s ease;
    box-shadow: 0 30px 60px -20px rgba(11,21,48,.5);
}

@keyframes cartModalPop {
    from {
        transform: scale(.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cart-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: background .15s ease;
}

    .cart-modal-close:hover {
        background: #f4f6fb;
    }

.cart-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e7f8ee;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 10px;
}

.cart-modal p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.cart-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =============================================
   EMPTY CART STATE
   ============================================= */
.cart-empty-state {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 60px 24px;
    text-align: center;
    margin-bottom: 30px;
}

.cart-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #eef1fa;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.cart-empty-state h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cart-empty-state p {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 22px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}


/* =============================================
   USER ACCOUNT MENU (header dropdown when signed in)
   ============================================= */
.user-menu {
    position: relative;
}

    .user-menu summary {
        list-style: none;
    }

        .user-menu summary::-webkit-details-marker {
            display: none;
        }






.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 14px 6px 6px;
    border-radius: 30px;
    border: 1.5px solid #dde1ec;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .user-menu-trigger:hover {
        border-color: var(--navy-deep);
        box-shadow: 0 4px 10px -4px rgba(20,30,60,.15);
    }

.user-menu-avatar,
.user-menu-avatar-fallback {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-menu-avatar {
    object-fit: cover;
}

.user-menu-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-deep);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.user-menu-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 34px -14px rgba(20,30,60,.35);
    min-width: 190px;
    padding: 8px;
    z-index: 150;
}

    .user-menu-dropdown a {
        display: block;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 13.5px;
        font-weight: 600;
        color: #4a5170;
        transition: background .15s ease, color .15s ease;
    }

        .user-menu-dropdown a:hover {
            background: #f4f6fb;
            color: var(--navy-deep);
        }

    .user-menu-dropdown hr {
        border: none;
        border-top: 1px solid var(--line);
        margin: 6px 4px;
    }

    .user-menu-dropdown form {
        margin: 0;
    }

    .user-menu-dropdown button[type="submit"] {
        width: 100%;
        text-align: right;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 13.5px;
        font-weight: 600;
        color: #e0526a;
        transition: background .15s ease;
    }

        .user-menu-dropdown button[type="submit"]:hover {
            background: #fdeaec;
        }

/* =============================================
   SUCCESS ALERT BOX (e.g. contact form confirmation)
   ============================================= */
.alert-success-box {
    background: #e7f8ee;
    border: 1px solid #bfe9d1;
    color: #1c7a45;
    font-size: 13.5px;
    font-weight: 600;
    padding: 14px 18px;
    border-radius: 10px;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}
/* ===== COURSE DETAILS ===== */
.cd-hero-row {
    max-width: 760px;
}

.cd-cat-pill {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.cd-hero-title {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cd-hero-desc {
    color: #aab2d1;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.cd-hero-meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    color: #c7cde8;
    font-size: 13.5px;
    font-weight: 600;
}

    .cd-hero-meta span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

.cd-page {
    padding: 40px 0 60px;
}

.cd-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 26px;
    align-items: start;
}

.cd-section-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 16px;
}

.curriculum-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.curriculum-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.curriculum-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

    .curriculum-header::-webkit-details-marker {
        display: none;
    }

.curriculum-count {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.curriculum-body {
    border-top: 1px solid var(--line);
}

.lesson-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    font-size: 13.5px;
    border-bottom: 1px dashed var(--line);
}

    .lesson-row:last-child {
        border-bottom: none;
    }

.lesson-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-row i {
    color: var(--blue-accent);
}

.lesson-row.locked i {
    color: var(--muted);
}

.lesson-row.locked {
    color: var(--muted);
}

.lesson-preview-badge {
    background: #e8f1fd;
    color: var(--blue-accent);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    margin-right: 6px;
}

.lesson-duration {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.cd-purchase-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    position: sticky;
    top: 88px;
}

.cd-purchase-thumb {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    margin-bottom: 16px;
}

.cd-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--navy-deep);
    margin-bottom: 14px;
}

.cd-purchase-card form {
    margin-bottom: 10px;
}

.cd-fav-btn {
    margin-bottom: 16px;
}

.cd-perks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

    .cd-perks-list li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: var(--muted);
        font-weight: 600;
    }

@media (max-width:900px) {
    .cd-grid {
        grid-template-columns: 1fr;
    }

    .cd-purchase-card {
        position: relative;
        top: 0;
    }
}
/* Cart toggle button on course card */
.course-card .cart-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-accent);
    background: #fff;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    flex-shrink: 0;
}

    .course-card .cart-toggle-btn:hover {
        background: var(--blue-accent);
        color: #fff;
        border-color: var(--blue-accent);
    }

    .course-card .cart-toggle-btn.in-cart {
        background: var(--blue-accent);
        color: #fff;
        border-color: var(--blue-accent);
    }

/* Details page button when already in cart */
.cart-toggle-detail.in-cart {
    background: #e0526a;
}

    .cart-toggle-detail.in-cart:hover {
        background: #c73f56;
    }


/* =============================================
   NOTIFICATIONS PAGE
   ============================================= */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
    transition: background .15s ease;
}

    .notif-item.unread {
        background: #f2f6ff;
        border-color: #cfdcfb;
    }

.notif-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef1fa;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-item.unread .notif-item-icon {
    background: var(--blue-accent);
    color: #fff;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

    .notif-item-body h4 {
        font-size: 14.5px;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .notif-item-body p {
        font-size: 13px;
        color: var(--muted);
        line-height: 1.7;
        margin-bottom: 8px;
    }

.notif-item-date {
    font-size: 11.5px;
    color: #9aa3c4;
    font-weight: 600;
}

.notif-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

    .notif-item-actions button {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        border: 1.5px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        transition: background .15s ease, color .15s ease, border-color .15s ease;
    }

.notif-mark-read-btn:hover {
    background: #e7f8ee;
    color: #2fa96a;
    border-color: #bfe9d1;
}

.course-thumb {
    position: relative; /* ? ???? ?????? ?????? ???? ?? */
}

.wishlist-toggle-btn {
    position: absolute;
    top: 10px;
    left: 10px; /* ?? RTL ?? ????? ????? ?????? ?????? ?? ?????? dir="rtl" - ?????? ?? right ?? ?????? ??? ???? */
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 2;
    transition: transform 0.15s ease, background 0.15s ease;
}

    .wishlist-toggle-btn:hover {
        transform: scale(1.08);
    }

    .wishlist-toggle-btn i {
        font-size: 15px;
        color: #6b7280; /* ????? - ??? ?????? */
    }

    .wishlist-toggle-btn.in-wishlist i {
        color: #e11d48; /* ???? - ?????? ?????? */
    }



/*About US*/

/* =============================================
   SHARED: section head centered variant
   ============================================= */
.center-head {
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-bottom: 36px;
}

    .center-head h2::after {
        right: 50%;
        transform: translateX(50%);
    }

    .center-head p {
        color: var(--muted);
        font-size: 14px;
        max-width: 520px;
        margin-top: 10px;
    }

.eyebrow-light {
    color: var(--blue-accent);
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 12px;
    display: block;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-intro {
    padding: 56px 0;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 44px;
    align-items: center;
}

.about-intro-media {
    position: relative;
}

    .about-intro-media img {
        width: 100%;
        height: 380px;
        object-fit: cover;
        border-radius: 18px;
    }

.about-media-badge {
    position: absolute;
    bottom: -18px;
    left: 24px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 16px 34px -16px rgba(20,30,60,.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
}

.about-media-badge-num {
    font-size: 22px;
    font-weight: 900;
    color: var(--blue-accent);
}

.about-media-badge span:last-child {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 700;
}

.about-intro-copy h1 {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 18px;
}

.about-intro-copy p {
    font-size: 14px;
    color: #4a5170;
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-stats-wrap {
    padding: 10px 0 40px;
}

.about-stats-strip {
    background: linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    border-radius: 18px;
    padding: 34px 20px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    text-align: center;
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.as-value {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
}

.as-label {
    font-size: 12.5px;
    color: #aab2d1;
    font-weight: 600;
}

.about-values {
    padding: 50px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.value-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 22px;
    transition: transform .2s ease,box-shadow .2s ease;
}

    .value-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 30px -18px rgba(20,30,60,.3);
    }

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef1fa;
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

.about-instructor {
    padding: 20px 0 60px;
}

.instructor-card-full {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
}

.instructor-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
}

.instructor-info h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 6px 0 12px;
}

.instructor-info p {
    font-size: 13.5px;
    color: #4a5170;
    line-height: 1.8;
    margin-bottom: 16px;
}

.instructor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background: #eef1fa;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
}

.about-cta {
    background: linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    padding: 56px 0;
}

.about-cta-inner {
    text-align: center;
}

    .about-cta-inner h2 {
        color: #fff;
        font-size: 24px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .about-cta-inner p {
        color: #aab2d1;
        font-size: 14px;
        margin-bottom: 26px;
    }

.about-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

@media (max-width:680px) {
    .instructor-card-full {
        grid-template-columns: 1fr;
    }

    .instructor-photo img {
        height: 220px;
    }

    .about-intro-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-strip {
        grid-template-columns: repeat(2,1fr);
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:460px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-page {
    padding: 40px 0 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
    align-items: start;
}

.contact-info-col h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.contact-info-col > p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 420px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

    .contact-info-list li {
        display: flex;
        align-items: center;
        gap: 14px;
    }

.ci-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #eef1fa;
    color: var(--blue-accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-list h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 3px;
}

.contact-info-list p {
    font-size: 13px;
    color: var(--muted);
}

.social-links {
    display: flex;
    gap: 10px;
}

    .social-links a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1.5px solid var(--line);
        color: var(--navy-deep);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .15s ease,color .15s ease,border-color .15s ease;
    }

        .social-links a:hover {
            background: var(--navy-deep);
            color: #fff;
            border-color: var(--navy-deep);
        }

.contact-textarea {
    width: 100%;
    min-height: 120px;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 13.5px;
    resize: vertical;
    color: var(--ink);
}

    .contact-textarea:focus {
        outline: none;
        border-color: var(--blue-accent);
    }

.contact-select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    padding: 12px 14px;
    color: var(--ink);
    appearance: none;
    -webkit-appearance: none;
}

.services-section {
    padding: 20px 0 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 22px;
    transition: transform .2s ease,box-shadow .2s ease;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 30px -18px rgba(20,30,60,.3);
    }

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef1fa;
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 15.5px;
    font-weight: 800;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

/* Shared centered section head (used by services section here) */
.center-head {
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-bottom: 36px;
}

    .center-head h2::after {
        right: 50%;
        transform: translateX(50%);
    }

    .center-head p {
        color: var(--muted);
        font-size: 14px;
        max-width: 520px;
        margin-top: 10px;
    }

@media (max-width:680px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   LEARNING PAGE
   ============================================= */
.learning-page {
    padding: 24px 0 60px;
}

.learning-header {
    background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 100%);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 22px;
}

    .learning-header h1 {
        color: #fff;
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 14px;
    }

.learning-progress-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
}

.learning-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    align-items: start;
}

.learning-sidebar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    max-height: 640px;
    overflow-y: auto;
}

.learning-section {
    margin-bottom: 14px;
}

    .learning-section h4 {
        font-size: 13.5px;
        font-weight: 800;
        padding: 8px 10px;
        color: var(--navy-deep);
    }

.learning-lessons-list li {
    border-radius: 8px;
    margin-bottom: 2px;
}

    .learning-lessons-list li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        font-size: 13px;
        font-weight: 600;
        color: #4a5170;
        border-radius: 8px;
        transition: background .15s ease, color .15s ease;
    }

    .learning-lessons-list li:hover a {
        background: #f4f6fb;
    }

    .learning-lessons-list li.active a {
        background: #e8f1fd;
        color: var(--blue-accent);
        font-weight: 700;
    }

    .learning-lessons-list li.completed a {
        color: #2fa96a;
    }

.lesson-status-icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.lesson-title {
    flex: 1;
    min-width: 0;
}

.lesson-duration {
    font-size: 11px;
    color: var(--muted);
    flex-shrink: 0;
}

.learning-player-area {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}

    .learning-player-area h3 {
        font-size: 16px;
        font-weight: 800;
        margin-bottom: 16px;
    }

#vimeoPlayerContainer {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

@media (max-width: 900px) {
    .learning-body {
        grid-template-columns: 1fr;
    }

    .learning-sidebar {
        order: 2;
        max-height: 320px;
    }
}

/* =============================================
   CERTIFICATE PAGE
   ============================================= */
.certificate-page {
    padding: 40px 0 60px;
}

.certificate-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 26px;
}

.certificate-frame {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border: 10px solid var(--navy-deep);
    border-radius: 16px;
    padding: 10px;
}

.certificate-inner {
    border: 2px solid var(--gold);
    border-radius: 10px;
    padding: 50px 40px;
    text-align: center;
}

.certificate-brand {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy-deep);
    letter-spacing: .5px;
}

.certificate-subtitle {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 30px;
}

.certificate-intro {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}

.certificate-student-name {
    font-size: 34px;
    font-weight: 900;
    color: var(--navy-deep);
    margin-bottom: 18px;
    font-family: 'Tajawal', sans-serif;
}

.certificate-course-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue-accent);
    margin-bottom: 12px;
}

.certificate-teacher {
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 30px;
}

.certificate-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px dashed var(--line);
    font-size: 12.5px;
    color: var(--muted);
}

    .certificate-footer strong {
        display: block;
        color: var(--ink);
        font-size: 14px;
        margin-top: 4px;
    }

.certificate-verify-note {
    margin-top: 26px;
    font-size: 11.5px;
    color: var(--muted);
}

    .certificate-verify-note a {
        color: var(--blue-accent);
        font-weight: 700;
    }

@media print {
    .no-print, header.topbar, footer.site-footer, .nav-overlay {
        display: none !important;
    }

    .certificate-frame {
        border-width: 6px;
        box-shadow: none;
    }
}

/* =============================================
   CERTIFICATE VERIFY PAGE
   ============================================= */
.certificate-verify-page {
    padding: 60px 0;
    display: flex;
    justify-content: center;
}

.verify-card {
    max-width: 460px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px 30px;
    text-align: center;
}

.verify-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    margin: 0 auto 18px;
}

.verify-icon--success {
    background: #e7f8ee;
    color: #2fa96a;
}

.verify-icon--error {
    background: #fdeaec;
    color: #e0526a;
}

.verify-details {
    text-align: right;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .verify-details li {
        display: flex;
        justify-content: space-between;
        font-size: 13.5px;
        padding-bottom: 12px;
        border-bottom: 1px dashed var(--line);
    }

        .verify-details li span {
            color: var(--muted);
            font-weight: 600;
        }



:root {
    --navy-deep: #0b1530;
    --navy: #101d40;
    --navy-light: #152556;
    --blue-accent: #B8812F;
    --blue-accent-dark: #96661F;
    --gold: #e0a13a;
    --ink: #14213d;
    --muted: #6b7488;
    --line: #ECE3D6;
    --bg: #FAF3EA;
    --card-purple-bg: #efeafb;
    --card-purple-fg: #7c5ce0;
    --card-green-bg: #e7f8ee;
    --card-green-fg: #2fa96a;
    --card-orange-bg: #fdf1de;
    --card-orange-fg: #e0a13a;
    --card-blue-bg: #e8f1fd;
    --card-blue-fg: #2f6df0;
    --card-red-bg: #fdeaec;
    --card-red-fg: #e0526a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo','Tajawal',sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

:focus-visible {
    outline: 2.5px solid var(--blue-accent);
    outline-offset: 3px;
}

/* ===== NAV ===== */
header.topbar {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(145deg,var(--navy-light),var(--navy-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.brand-text {
    min-width: 0;
}

    .brand-text .title {
        font-weight: 800;
        font-size: 17px;
        color: var(--navy-deep);
        line-height: 1.3;
        white-space: nowrap;
    }

    .brand-text .sub {
        font-size: 11.5px;
        color: var(--muted);
        white-space: nowrap;
    }

nav.links {
    display: flex;
    align-items: center;
    gap: 34px;
}

    nav.links a {
        font-size: 14.5px;
        font-weight: 600;
        color: #4a5170;
        padding-bottom: 4px;
        position: relative;
        transition: color .2s;
    }

        nav.links a:hover {
            color: var(--navy-deep);
        }

        nav.links a.active {
            color: var(--navy-deep);
        }

            nav.links a.active::after {
                content: "";
                position: absolute;
                bottom: -18px;
                left: 0;
                right: 0;
                height: 2.5px;
                background: var(--gold);
                border-radius: 2px;
            }

.nav-actions-mobile {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-dark {
    background: var(--navy-deep);
    color: #fff;
}

    .btn-dark:hover {
        background: var(--navy);
    }

.btn-outline {
    background: #fff;
    color: var(--navy-deep);
    border: 1.5px solid #dde1ec;
}

    .btn-outline:hover {
        border-color: var(--navy-deep);
    }

.btn-blue {
    background: var(--blue-accent);
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(184,129,47,.45);
}

    .btn-blue:hover {
        background: var(--blue-accent-dark);
    }

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid #3a4270;
}

    .btn-ghost:hover {
        border-color: #fff;
    }

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

    .hamburger span {
        display: block;
        width: 22px;
        height: 2.2px;
        background: var(--navy-deep);
        border-radius: 2px;
        transition: transform .25s ease, opacity .25s ease;
    }

    .hamburger.open span:nth-child(1) {
        transform: translateY(7.2px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-7.2px) rotate(-45deg);
    }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11,21,48,.45);
    z-index: 98;
    opacity: 0;
    transition: opacity .25s ease;
}

    .nav-overlay.show {
        display: block;
        opacity: 1;
    }

/* ===== HERO ===== */
.hero {
    background: radial-gradient(1100px 500px at 12% -10%, #1b2c5e 0%, transparent 60%), linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
    padding: 56px 0 0;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255,255,255,.055) 1.4px, transparent 1.4px);
        background-size: 22px 22px;
        -webkit-mask-image: radial-gradient(560px 360px at 4% 20%, black, transparent), radial-gradient(560px 420px at 100% 90%, black, transparent);
        mask-image: radial-gradient(560px 360px at 4% 20%, black, transparent), radial-gradient(560px 420px at 100% 90%, black, transparent);
        pointer-events: none;
    }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-photo {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 390px;
}

    .hero-photo img {
        max-height: 390px;
        width: auto;
        object-fit: cover;
        object-position: top;
        border-radius: 14px 14px 0 0;
    }

.play-btn {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    border: 1.5px solid rgba(255,255,255,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    transition: transform .2s;
    cursor: pointer;
}

    .play-btn:hover {
        transform: translate(-50%,-50%) scale(1.07);
    }

.hero-copy {
    padding: 20px 0 48px;
}

.eyebrow {
    color: var(--gold);
    font-weight: 700;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.hero-copy h1 {
    font-size: 44px;
    line-height: 1.28;
    font-weight: 900;
    color: #fff;
    margin-bottom: 22px;
}

.hero-copy p {
    font-size: 15.5px;
    line-height: 1.9;
    color: #aab2d1;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== FEATURE STRIP ===== */
.feature-strip-wrap {
    position: relative;
    z-index: 2;
    margin-top: 0px;
    padding-bottom: 0;
}

.feature-strip {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 45px -20px rgba(15,25,60,.35);
    display: grid;
    grid-template-columns: repeat(5,1fr);
    padding: 28px 8px;
    /*transform: translateY(-11px);*/ /* was translateY(38px) */
    transform: translateY(0);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 20px;
    border-left: 1px solid var(--line);
    justify-content: flex-end;
    text-align: right;
}

    .feature-item:first-child {
        border-left: none;
    }

    .feature-item .ic {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-item h4 {
        font-size: 14.5px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .feature-item p {
        font-size: 12.5px;
        color: var(--muted);
        line-height: 1.5;
    }

.ic.c1, .ic.c2, .ic.c3, .ic.c4 {
    background: #eef1fa;
    color: var(--navy);
}

.ic.c5 {
    background: #e8f4fb;
    color: #1a73b5;
}

/* ===== SECTIONS ===== */
section {
    padding: 10px 0 8px;
}

#categories {
    padding-top: 5px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

    .section-head h2 {
        font-size: 24px;
        font-weight: 800;
        position: relative;
        padding-bottom: 12px;
    }

        .section-head h2::after {
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            width: 46px;
            height: 3px;
            background: var(--blue-accent);
            border-radius: 2px;
        }

.view-all {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
}

/* ===== CATEGORIES ===== */
.cats {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 18px;
    margin-bottom: 16px;
}

.cat-card {
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .cat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 30px -18px rgba(20,30,60,.35);
    }

.cat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.cat-card .count {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
}

.cat-link {
    font-size: 12.5px;
    font-weight: 700;
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.cat-purple {
    background: var(--card-purple-bg);
}

    .cat-purple .cat-link, .cat-purple h3 {
        color: var(--card-purple-fg);
    }

.cat-green {
    background: var(--card-green-bg);
}

    .cat-green .cat-link, .cat-green h3 {
        color: var(--card-green-fg);
    }

.cat-orange {
    background: var(--card-orange-bg);
}

    .cat-orange .cat-link, .cat-orange h3 {
        color: var(--card-orange-fg);
    }

.cat-blue {
    background: var(--card-blue-bg);
}

    .cat-blue .cat-link, .cat-blue h3 {
        color: var(--card-blue-fg);
    }

.cat-red {
    background: var(--card-red-bg);
}

    .cat-red .cat-link, .cat-red h3 {
        color: var(--card-red-fg);
    }

/* ===== COURSES ===== */
.courses-row {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    padding: 6px 2px 24px;
}

.courses-track {
    display: flex;
    gap: 18px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .courses-track::-webkit-scrollbar {
        display: none;
    }

    .courses-track .course-card {
        flex: 0 0 calc((100% - 2*18px) / 3);
        scroll-snap-align: start;
    }

.course-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .course-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 34px -20px rgba(20,30,60,.4);
    }

.course-thumb {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

    .course-thumb::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, rgba(0,0,0,.35), transparent 55%);
    }

.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #22c55e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}

.course-icon-big {
    font-size: 44px;
    position: relative;
    z-index: 1;
}

.course-body {
    padding: 14px 16px 18px;
}

    .course-body h4 {
        font-size: 14.5px;
        font-weight: 700;
        margin-bottom: 8px;
        line-height: 1.4;
    }

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-weight: 600;
}

.stars {
    color: #f5a524;
    letter-spacing: 1px;
    font-size: 12px;
}

.price {
    font-weight: 800;
    color: var(--navy-deep);
    font-size: 14px;
}

.thumb-python {
    background: linear-gradient(135deg,#12395e,#0b1d33);
}

.thumb-premiere {
    background: linear-gradient(135deg,#3d1a5e,#1e0e33);
}

.thumb-marketing {
    background: linear-gradient(135deg,#5e2a1a,#33150b);
}

.thumb-selfdev {
    background: linear-gradient(135deg,#12475e,#0b2733);
}

.thumb-math {
    background: linear-gradient(135deg,#1c2333,#0d1119);
}

.nav-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--navy-deep);
    box-shadow: 0 6px 14px -8px rgba(20,30,60,.3);
    transition: background .15s ease, color .15s ease;
}

    .nav-arrow:hover {
        background: var(--navy-deep);
        color: #fff;
    }

    .nav-arrow:disabled {
        opacity: .35;
        cursor: default;
    }

        .nav-arrow:disabled:hover {
            background: #fff;
            color: var(--navy-deep);
        }

.dots {
    display: none;
    justify-content: center;
    gap: 8px;
    padding: 18px 0 36px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d7dbe8;
    transition: background .2s,width .2s;
}

    .dot.active {
        background: var(--blue-accent);
        width: 20px;
        border-radius: 5px;
    }

.site-footer {
    margin-top: 40px;
    padding: 26px 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--line);
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* ---- Tablets (<=1100px): 3-col grids, tighter hero ---- */
@media (max-width:1100px) {
    .cats {
        grid-template-columns: repeat(3,1fr);
    }

        .cats .cat-card:nth-child(4), .cats .cat-card:nth-child(5) {
            grid-column: span 1;
        }

    .feature-strip {
        grid-template-columns: repeat(3,1fr);
    }

    .feature-item:nth-child(4) {
        border-left: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-photo {
        order: -1;
        height: 300px;
    }

        .hero-photo img {
            max-height: 300px;
        }

    .hero-copy {
        padding-top: 8px;
        text-align: center;
    }

        .hero-copy p {
            margin-left: auto;
            margin-right: auto;
        }

    .hero-ctas {
        justify-content: center;
    }

    .courses-track {
        grid-template-columns: repeat(3,1fr);
    }
}

/* ---- Small tablets / large phones (<=880px): nav collapses ---- */
@media (max-width:880px) {
    nav.links {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(78%,320px);
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 90px 26px 26px;
        transform: translateX(-100%);
        transition: transform .3s ease;
        z-index: 99;
        box-shadow: 12px 0 30px -12px rgba(20,30,60,.25);
        overflow-y: auto;
    }

        nav.links.open {
            transform: translateX(0);
        }

        nav.links a {
            font-size: 16px;
            width: 100%;
            padding: 12px 0;
            border-bottom: 1px solid var(--line);
        }

            nav.links a.active::after {
                display: none;
            }

            nav.links a.active {
                color: var(--blue-accent);
            }

    .nav-actions-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 16px;
    }

        .nav-actions-mobile .btn {
            width: 100%;
        }

    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .feature-strip {
        grid-template-columns: repeat(2,1fr);
    }

    .feature-item {
        border-left: none;
        border-bottom: 1px solid var(--line);
        padding: 16px 6px;
        justify-content: flex-start;
    }

        .feature-item:nth-child(even) {
            padding-right: 16px;
        }

    .cats {
        grid-template-columns: repeat(2,1fr);
    }

    #categories {
        padding-top: 60px;
    }
}

/* ---- Phones (<=680px) ---- */
@media (max-width:680px) {
    .container {
        padding: 0 18px;
    }

    .nav-row {
        padding: 12px 18px;
    }

    .brand-text .sub {
        display: none;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-copy h1 {
        font-size: 30px;
    }

    .hero-copy p {
        font-size: 14.5px;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

        .hero-ctas .btn {
            width: 100%;
        }

    .hero-photo {
        height: 230px;
    }

        .hero-photo img {
            max-height: 230px;
        }

    .play-btn {
        width: 52px;
        height: 52px;
    }

    .feature-strip {
        grid-template-columns: 1fr;
        transform: translateY(24px);
    }

    .feature-item {
        padding: 14px 4px;
    }

    .feature-strip-wrap {
        margin-top: 20px;
    }

    section {
        padding: 56px 0 8px;
    }

    #categories {
        padding-top: 44px;
    }

    .section-head h2 {
        font-size: 19px;
    }

    .cats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .cat-card {
        padding: 16px 14px;
        border-radius: 14px;
    }

        .cat-card h3 {
            font-size: 14px;
        }

    /* Course carousel: horizontal snap-scroll on phones */
    .courses-row {
        padding: 2px 0 8px;
    }

    .nav-arrow {
        display: none;
    }

    .courses-track {
        display: flex;
        grid-template-columns: unset;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

        .courses-track::-webkit-scrollbar {
            display: none;
        }

        .courses-track .course-card {
            flex: 0 0 78%;
            scroll-snap-align: start;
        }

    .dots {
        display: flex;
    }
}

/* ---- Very small phones ---- */
@media (max-width:380px) {
    .cats {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 26px;
    }

    .courses-track .course-card {
        flex: 0 0 88%;
    }
}

/* =============================================
   CART BUTTON (header, courses page)
   ============================================= */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1.5px solid #dde1ec;
    background: #fff;
    color: var(--navy-deep);
    flex-shrink: 0;
    transition: border-color .15s ease, transform .15s ease;
}

    .cart-btn:hover {
        border-color: var(--navy-deep);
        transform: translateY(-1px);
    }

.cart-count {
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--blue-accent);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid #fff;
}

/* =============================================
   PAGE HERO (inner pages: courses, etc.)
   ============================================= */
.page-hero {
    background: radial-gradient(900px 400px at 90% -20%, #1b2c5e 0%, transparent 60%), linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    padding: 46px 0;
    position: relative;
    overflow: hidden;
}

    .page-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255,255,255,.05) 1.4px, transparent 1.4px);
        background-size: 22px 22px;
        -webkit-mask-image: radial-gradient(500px 300px at 96% 10%, black, transparent);
        mask-image: radial-gradient(500px 300px at 96% 10%, black, transparent);
        pointer-events: none;
    }

.page-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.page-hero-headline {
    max-width: 640px;
}

    .page-hero-headline h1 {
        color: #fff;
        font-size: 24px;
        font-weight: 800;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .page-hero-headline p {
        color: #aab2d1;
        font-size: 14px;
        line-height: 1.7;
    }

.page-hero-title {
    text-align: left;
    flex-shrink: 0;
}

    .page-hero-title h2 {
        color: #fff;
        font-size: 32px;
        font-weight: 900;
        margin-bottom: 8px;
    }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    font-size: 13px;
    color: #9aa3c4;
    font-weight: 600;
}

    .breadcrumb a {
        color: #c7cde8;
        transition: color .15s;
    }

        .breadcrumb a:hover {
            color: #fff;
        }

    .breadcrumb svg {
        opacity: .6;
        transform: scaleX(-1);
    }

/* =============================================
   COURSES PAGE LAYOUT
   ============================================= */
.courses-page {
    padding: 44px 0 60px;
}

.courses-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 26px;
    align-items: start;
}

/* ---- Filters sidebar ---- */
.filters-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 88px;
}

.filters-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}

.filters-title {
    font-size: 14.5px;
    font-weight: 800;
    margin-bottom: 14px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    padding: 10px 12px;
    color: var(--muted);
}

    .search-box input {
        border: none;
        outline: none;
        font-family: inherit;
        font-size: 13.5px;
        width: 100%;
        background: transparent;
        color: var(--ink);
    }

.cat-filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 6px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: #4a5170;
    transition: background .15s ease, color .15s ease;
}

    .cat-filter-item:hover {
        background: #f4f6fb;
    }

    .cat-filter-item .cat-count {
        min-width: 26px;
        height: 22px;
        padding: 0 6px;
        border-radius: 6px;
        background: #eef1fa;
        color: var(--muted);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11.5px;
        font-weight: 800;
        flex-shrink: 0;
    }

    .cat-filter-item.active {
        color: var(--blue-accent);
    }

        .cat-filter-item.active .cat-count {
            background: var(--blue-accent);
            color: #fff;
        }

.check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 2px;
    font-size: 13.5px;
    font-weight: 600;
    color: #4a5170;
    cursor: pointer;
}

    .check-row input {
        width: 17px;
        height: 17px;
        accent-color: var(--blue-accent);
        cursor: pointer;
    }

.price-slider {
    position: relative;
    height: 4px;
    background: transparent;
    margin: 22px 4px 6px;
}

.price-track {
    position: absolute;
    inset: 0;
    background: var(--line);
    border-radius: 4px;
}

.price-range {
    position: absolute;
    top: 0;
    height: 4px;
    background: var(--blue-accent);
    border-radius: 4px;
}

.range-input {
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
}

    .range-input::-webkit-slider-thumb {
        -webkit-appearance: none;
        pointer-events: all;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        border: 3px solid var(--blue-accent);
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(20,30,60,.25);
    }

    .range-input::-moz-range-thumb {
        pointer-events: all;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        border: 3px solid var(--blue-accent);
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(20,30,60,.25);
    }

.price-fields {
    display: flex;
    gap: 10px;
    margin: 16px 0 16px;
}

.price-field {
    flex: 1;
}

    .price-field label {
        display: block;
        font-size: 11.5px;
        color: var(--muted);
        font-weight: 700;
        margin-bottom: 6px;
    }

    .price-field input {
        width: 100%;
        border: 1.5px solid var(--line);
        border-radius: 8px;
        padding: 8px 10px;
        font-family: inherit;
        font-size: 12.5px;
        font-weight: 700;
        color: var(--ink);
        background: #f7f8fb;
        text-align: center;
    }

.apply-filters {
    width: 100%;
}

/* ---- Main content: toolbar ---- */
.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.toolbar-count {
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 600;
}

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sort-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}

.sort-select {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
}

    .sort-select select {
        border: none;
        outline: none;
        background: transparent;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        color: var(--ink);
        padding: 9px 6px;
        appearance: none;
        -webkit-appearance: none;
        padding-left: 22px;
    }

    .sort-select svg {
        position: absolute;
        left: 10px;
        pointer-events: none;
        color: var(--muted);
    }

.view-toggle {
    display: flex;
    gap: 6px;
    background: #eef1fa;
    padding: 4px;
    border-radius: 9px;
}

.view-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: background .15s ease,color .15s ease;
}

    .view-btn.active {
        background: var(--blue-accent);
        color: #fff;
    }

/* ---- Course grid (courses page cards) ---- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin-bottom: 34px;
}

    .course-grid.list-view {
        grid-template-columns: 1fr;
    }

        .course-grid.list-view .course-card-full {
            display: grid;
            grid-template-columns: 220px 1fr;
            align-items: stretch;
        }

        .course-grid.list-view .course-thumb {
            height: 100%;
            min-height: 140px;
        }

        .course-grid.list-view .course-body {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

.course-card-full {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .course-card-full:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 34px -20px rgba(20,30,60,.4);
    }

.badge-hot {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: var(--gold);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.thumb-figma {
    background: linear-gradient(135deg,#3a2d5e,#181229);
}

.thumb-excel {
    background: linear-gradient(135deg,#12592f,#0b2417);
}

.thumb-idea {
    background: linear-gradient(135deg,#5e4a1a,#2e2410);
}

.course-card-full .course-body {
    padding: 15px 16px 18px;
}

    .course-card-full .course-body h4 {
        font-size: 14.5px;
        font-weight: 700;
        margin-bottom: 8px;
        line-height: 1.4;
    }

.instructor {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eef1fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.course-card-full .course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--line);
}

.lectures {
    color: var(--muted);
    font-weight: 600;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-mini {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-accent);
    transition: background .15s ease,color .15s ease,border-color .15s ease;
}

    .cart-mini:hover {
        background: var(--blue-accent);
        color: #fff;
        border-color: var(--blue-accent);
    }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--navy-deep);
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease,color .15s ease,border-color .15s ease;
}

    .page-btn:hover {
        border-color: var(--blue-accent);
        color: var(--blue-accent);
    }

    .page-btn.active {
        background: var(--blue-accent);
        border-color: var(--blue-accent);
        color: #fff;
    }

/* =============================================
   RESPONSIVE: courses page
   ============================================= */
@media (max-width:1100px) {
    .course-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .page-hero-row {
        justify-content: flex-start;
    }

    .page-hero-title {
        text-align: right;
        order: -1;
        width: 100%;
    }

    .breadcrumb {
        justify-content: flex-start;
    }
}

@media (max-width:900px) {
    .courses-layout {
        grid-template-columns: 1fr;
    }

    .filters-panel {
        position: relative;
        top: 0;
    }

    .filters-panel {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .filters-card {
        flex: 1 1 260px;
    }
}

@media (max-width:680px) {
    .page-hero {
        padding: 32px 0;
    }

    .page-hero-headline h1 {
        font-size: 19px;
    }

    .page-hero-title h2 {
        font-size: 24px;
    }

    .courses-page {
        padding: 28px 0 40px;
    }

    .course-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

        .course-grid.list-view .course-card-full {
            grid-template-columns: 1fr;
        }

    .toolbar-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-controls {
        width: 100%;
        justify-content: space-between;
    }

    .filters-panel {
        flex-direction: column;
    }

    .cart-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width:460px) {
    .course-grid {
        grid-template-columns: 1fr;
    }

    .price-fields {
        flex-direction: row;
    }
}

/* =============================================
   AUTH PAGES (login / signup)
   ============================================= */
.auth-page {
    direction: ltr;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-visual {
    direction: rtl;
    background: radial-gradient(900px 500px at 20% 0%, #1b2c5e 0%, transparent 60%), linear-gradient(150deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 28px 40px 40px;
    position: relative;
    overflow: hidden;
}

.auth-form-panel {
    direction: rtl;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #c7cde8;
    transition: color .15s ease;
}

    .back-home:hover {
        color: #fff;
    }

.brand-on-dark {
    flex-direction: row-reverse;
}

    .brand-on-dark .title {
        color: #fff;
    }

    .brand-on-dark .sub {
        color: #9aa3c4;
    }

.auth-visual-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 20px;
}

.auth-visual-media {
    position: relative;
    width: 100%;
    max-width: 340px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 34px;
    box-shadow: 0 20px 45px -18px rgba(0,0,0,.5);
}

    .auth-visual-media img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .auth-visual-media .play-btn {
        width: 56px;
        height: 56px;
    }

.auth-visual-body h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 14px;
}

.auth-visual-body p {
    font-size: 13.5px;
    color: #aab2d1;
    line-height: 1.8;
    max-width: 340px;
    margin-bottom: 36px;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
    width: 100%;
    max-width: 360px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c7cde8;
    font-size: 12.5px;
    font-weight: 600;
    justify-content: flex-start;
    text-align: right;
}

    .auth-feature svg {
        flex-shrink: 0;
        color: #8fa0e8;
    }

.auth-form-wrap {
    width: 100%;
    max-width: 400px;
}

.auth-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e8f1fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.auth-form-wrap h1 {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.auth-sub {
    font-size: 13.5px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 8px;
    }

.form-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    background: #fff;
    transition: border-color .15s ease;
}

    .form-input-wrap:focus-within {
        border-color: var(--blue-accent);
    }

    .form-input-wrap input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-family: inherit;
        font-size: 13.5px;
        padding: 12px 42px 12px 14px;
        color: var(--ink);
        width: 100%;
    }

    .form-input-wrap > svg {
        position: absolute;
        right: 14px;
        color: var(--muted);
        pointer-events: none;
    }

.pw-toggle {
    position: absolute;
    left: 12px;
    color: var(--muted);
    display: flex;
    padding: 4px;
}

    .pw-toggle:hover {
        color: var(--ink);
    }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 13px;
}

.forgot-link {
    color: var(--blue-accent);
    font-weight: 700;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #4a5170;
    cursor: pointer;
}

    .remember-check input {
        width: 16px;
        height: 16px;
        accent-color: var(--blue-accent);
    }

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 14.5px;
}

.divider-or {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    margin: 22px 0;
    gap: 12px;
}

    .divider-or::before, .divider-or::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--line);
    }

.social-btn {
    width: 100%;
    justify-content: center;
    gap: 10px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 11px;
    margin-bottom: 12px;
}

    .social-btn:hover {
        border-color: #c7cde8;
        background: #f9fafc;
    }

.auth-switch-link {
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 20px;
}

    .auth-switch-link a {
        color: var(--blue-accent);
        font-weight: 700;
    }

.pw-requirements {
    background: #f7f8fb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

    .pw-requirements p {
        font-size: 12.5px;
        color: var(--muted);
        font-weight: 700;
        margin-bottom: 10px;
    }

    .pw-requirements ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .pw-requirements li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 12.5px;
        color: var(--muted);
        font-weight: 600;
    }

        .pw-requirements li .rule-icon {
            color: #c7cde8;
            flex-shrink: 0;
            transition: color .15s ease;
        }

        .pw-requirements li.valid {
            color: #22c55e;
        }

            .pw-requirements li.valid .rule-icon {
                color: #22c55e;
            }

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: #4a5170;
    font-weight: 600;
    margin-bottom: 22px;
    cursor: pointer;
    line-height: 1.6;
}

    .terms-check input {
        width: 16px;
        height: 16px;
        accent-color: var(--blue-accent);
        margin-top: 2px;
        flex-shrink: 0;
    }

    .terms-check a {
        color: var(--blue-accent);
        font-weight: 700;
    }

/* Standalone dark top bar (signup page) */
.auth-topbar {
    background: linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    padding: 22px 0;
}

.auth-center-wrap {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: var(--bg);
}

/* =============================================
   PROFILE PAGE
   ============================================= */
.profile-page {
    padding: 32px 0 60px;
}

.profile-banner {
    background: radial-gradient(700px 300px at 85% 0%, #1b2c5e 0%, transparent 60%), linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    border-radius: 18px;
    padding: 30px 34px;
    position: relative;
    overflow: hidden;
}

.profile-banner-info {
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.avatar-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    flex-shrink: 0;
}

    .avatar-wrap img {
        width: 84px;
        height: 84px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(255,255,255,.3);
    }

.avatar-edit-btn {
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

    .profile-name-row h1 {
        color: #fff;
        font-size: 21px;
        font-weight: 800;
    }

.role-badge {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}

.profile-name-block p {
    color: #aab2d1;
    font-size: 13px;
}

.profile-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    margin: -22px 20px 28px;
    position: relative;
    z-index: 2;
    box-shadow: 0 12px 30px -18px rgba(20,30,60,.3);
    overflow-x: auto;
}

.profile-tab {
    padding: 11px 18px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    transition: background .15s ease,color .15s ease;
}

    .profile-tab:hover {
        color: var(--ink);
    }

    .profile-tab.active {
        background: var(--navy-deep);
        color: #fff;
    }

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 22px;
    align-items: start;
}

.profile-col-main, .profile-col-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

    .card-head h3 {
        font-size: 15.5px;
        font-weight: 800;
    }

.card-head-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue-accent);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

    .info-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 13.5px;
        padding-bottom: 14px;
        border-bottom: 1px dashed var(--line);
    }

        .info-list li:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

.info-label {
    color: var(--muted);
    font-weight: 600;
}

.info-value {
    font-weight: 700;
}

.stat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

    .stat-list li {
        background: #f7f8fb;
        border-radius: 10px;
        padding: 16px;
        text-align: center;
    }

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: var(--navy-deep);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
}

.my-courses-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
}

    .my-courses-list li {
        display: flex;
        align-items: center;
        gap: 14px;
    }

.mc-thumb {
    width: 52px;
    height: 52px;
    border-radius: 11px;
    flex-shrink: 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mc-body {
    flex: 1;
    min-width: 0;
}

    .mc-body h4 {
        font-size: 13.5px;
        font-weight: 700;
        margin-bottom: 8px;
    }

.progress-bar {
    height: 6px;
    background: #eef1fa;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--blue-accent);
    border-radius: 6px;
}

.progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 700;
}

    .progress-meta span:first-child {
        color: var(--blue-accent);
    }

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

    .orders-list li {
        display: flex;
        align-items: center;
        gap: 12px;
    }

.status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-done {
    background: #e7f8ee;
    color: #2fa96a;
}

.order-body {
    flex: 1;
    min-width: 0;
}

    .order-body h4 {
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.order-date {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
}

.order-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--navy-deep);
    flex-shrink: 0;
}

.profile-footer-strip {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    margin-top: 28px;
}

.pf-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pf-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eef1fa;
    color: var(--navy);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-item h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
}

.pf-item p {
    font-size: 11.5px;
    color: var(--muted);
}

/* =============================================
   RESPONSIVE: auth + profile pages
   ============================================= */
@media (max-width:900px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-panel {
        padding: 0;
    }

    .auth-topbar {
        padding: 18px 0;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-footer-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width:680px) {
    .auth-form-panel {
        min-height: 100vh;
        padding: 24px 0;
    }

    .auth-center-wrap {
        padding: 36px 16px;
    }

    .auth-form-wrap {
        padding: 0 18px;
    }

    .profile-banner {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .profile-banner-info {
        gap: 14px;
    }

    .avatar-wrap, .avatar-wrap img {
        width: 64px;
        height: 64px;
    }

    .profile-name-row h1 {
        font-size: 17px;
    }

    .profile-name-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .profile-tabs {
        margin: -16px 8px 22px;
        padding: 6px;
    }

    .profile-tab {
        padding: 9px 14px;
        font-size: 12.5px;
    }

    .stat-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:420px) {
    .auth-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   PROFILE TAB PANELS
   ============================================= */
.tab-panel {
    display: none;
}

    .tab-panel.active {
        display: block;
    }

.panel-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .panel-head-row h2 {
        font-size: 19px;
        font-weight: 800;
    }

.panel-count {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    background: #eef1fa;
    padding: 6px 14px;
    border-radius: 20px;
}

/* ---- ?????? (full courses grid) ---- */
.full-courses-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.full-course-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .full-course-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 30px -18px rgba(20,30,60,.35);
    }

    .full-course-card .mc-thumb {
        width: 100%;
        height: 90px;
        border-radius: 0;
        font-size: 30px;
    }

.fc-body {
    padding: 16px;
}

    .fc-body h4 {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .fc-body .progress-meta {
        margin-bottom: 14px;
    }

.btn-sm {
    padding: 9px;
    font-size: 12.5px;
}

/* ---- ??????? ---- */
.fav-grid {
    grid-template-columns: repeat(3,1fr);
}

.fav-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #d1d5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease,transform .15s ease;
}

    .fav-toggle.active {
        color: #ef4a6b;
    }

    .fav-toggle:hover {
        transform: scale(1.08);
    }

/* ---- ??????? (full list) ---- */
.orders-full-card {
    padding: 8px 22px;
}

.orders-list-full li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

    .orders-list-full li:last-child {
        border-bottom: none;
    }

.status-pending {
    background: #fdf1de;
    color: #e0a13a;
}

.status-failed {
    background: #fdeaec;
    color: #e0526a;
}

.invoice-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-accent);
    transition: background .15s ease,color .15s ease;
}

    .invoice-btn:hover {
        background: var(--blue-accent);
        color: #fff;
        border-color: var(--blue-accent);
    }

/* ---- ????????? ---- */
.settings-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}

    .settings-section h3 {
        font-size: 15.5px;
        font-weight: 800;
        margin-bottom: 18px;
    }

.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-bottom: 18px;
}

.settings-section .form-group {
    margin-bottom: 0;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
    font-weight: 600;
    color: #4a5170;
    cursor: pointer;
}

    .switch-row:last-child {
        border-bottom: none;
    }

.switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

    .switch input {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        cursor: pointer;
        z-index: 1;
    }

.switch-slider {
    position: absolute;
    inset: 0;
    background: #dde1ec;
    border-radius: 20px;
    transition: background .2s ease;
}

    .switch-slider::before {
        content: "";
        position: absolute;
        top: 3px;
        right: 3px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        transition: transform .2s ease;
        box-shadow: 0 1px 3px rgba(0,0,0,.25);
    }

.switch input:checked + .switch-slider {
    background: var(--blue-accent);
}

    .switch input:checked + .switch-slider::before {
        transform: translateX(-18px);
    }

.danger-zone {
    border-color: #f7d2d8;
    background: #fff8f9;
}

    .danger-zone h3 {
        color: #e0526a;
    }

    .danger-zone p {
        font-size: 13px;
        color: var(--muted);
        line-height: 1.7;
        margin-bottom: 16px;
        max-width: 560px;
    }

.btn-danger {
    background: #e0526a;
    color: #fff;
}

    .btn-danger:hover {
        background: #c73f56;
    }

@media (max-width:1100px) {
    .full-courses-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .fav-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:680px) {
    .full-courses-grid, .fav-grid {
        grid-template-columns: 1fr;
    }

    .orders-full-card {
        padding: 6px 16px;
    }

    .orders-list-full li {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .panel-head-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =============================================
   PAGE HERO — compact variant (cart/checkout)
   ============================================= */
.page-hero-compact {
    padding: 30px 0;
}

    .page-hero-compact .page-hero-row {
        justify-content: flex-start;
    }

    .page-hero-compact .page-hero-title {
        text-align: right;
    }

/* =============================================
   CART PAGE
   ============================================= */
.cart-page {
    padding: 36px 0 60px;
}

.cart-table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

    .cart-table thead th {
        text-align: right;
        font-size: 12.5px;
        color: var(--muted);
        font-weight: 700;
        padding: 16px 20px;
        border-bottom: 1px solid var(--line);
        white-space: nowrap;
    }

        .cart-table thead th.col-remove {
            width: 50px;
        }

    .cart-table tbody td {
        padding: 16px 20px;
        border-bottom: 1px solid var(--line);
        vertical-align: middle;
        font-size: 13.5px;
    }

    .cart-table tbody tr:last-child td {
        border-bottom: none;
    }

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .cart-item h4 {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 4px;
        white-space: nowrap;
    }

.cart-item-meta {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.cell-price, .cell-total {
    font-weight: 700;
    white-space: nowrap;
}

.cell-total {
    color: var(--navy-deep);
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-deep);
    font-size: 16px;
    font-weight: 700;
    background: #f7f8fb;
    transition: background .15s ease;
}

    .qty-btn:hover {
        background: #eef1fa;
    }

.qty-value {
    width: 34px;
    text-align: center;
    border: none;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 0;
}

.remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: background .15s ease,color .15s ease;
}

    .remove-btn:hover {
        background: #fdeaec;
        color: #e0526a;
    }

.coupon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.coupon-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    margin-left: auto;
}

.coupon-input {
    flex: 1;
    min-width: 160px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 13px;
    text-align: right;
}

    .coupon-input:focus {
        outline: none;
        border-color: var(--blue-accent);
    }

.apply-coupon {
    order: -1;
}

.cart-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 20px;
    margin-bottom: 30px;
}

.cart-summary-title {
    font-size: 15.5px;
    font-weight: 800;
    margin-bottom: 18px;
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

    .summary-rows li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 13.5px;
        padding-bottom: 12px;
        border-bottom: 1px dashed var(--line);
    }

        .summary-rows li:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

.sr-label {
    color: var(--muted);
    font-weight: 600;
}

.sr-value {
    font-weight: 700;
}

.sr-discount {
    color: #2fa96a;
}

.summary-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 18px;
    border-top: 2px solid var(--line);
}

.st-label {
    font-size: 14px;
    font-weight: 700;
}

.st-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--navy-deep);
}

    .st-value::after {
        font-size: 13px;
        font-weight: 700;
        color: var(--muted);
    }

.cart-summary-card .btn {
    margin-bottom: 10px;
}

.why-us-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

    .why-us-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 13.5px;
        font-weight: 600;
        color: #4a5170;
    }

.wu-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #eef1fa;
    color: var(--navy);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-logos-block {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

    .payment-logos-block p {
        font-size: 12.5px;
        color: var(--muted);
        font-weight: 700;
        margin-bottom: 12px;
    }

.payment-logos-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pay-logo {
    background: #f7f8fb;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    color: #4a5170;
    letter-spacing: .3px;
}

.cart-footer-strip {
    margin-top: 0;
}

/* =============================================
   CHECKOUT PAGE
   ============================================= */
.checkout-steps-wrap {
    padding: 10px 0 8px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 0 26px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef1fa;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    border: 2px solid #eef1fa;
}

.step-item.current .step-circle {
    background: var(--blue-accent);
    color: #fff;
    border-color: var(--blue-accent);
}

.step-item.done .step-circle {
    background: #22c55e;
    border-color: #22c55e;
}

.step-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
}

.step-item.current .step-label {
    color: var(--blue-accent);
}

.step-item.done .step-label {
    color: #22c55e;
}

.step-line {
    width: 70px;
    height: 2px;
    background: var(--line);
}

    .step-line.done {
        background: #22c55e;
    }

.checkout-page {
    padding: 12px 0 40px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 22px;
    align-items: start;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-bottom: 26px;
}

.payment-method-tile {
    position: relative;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color .15s ease,background .15s ease;
    text-align: center;
}

    .payment-method-tile input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .payment-method-tile.active,
    .payment-method-tile:has(input:checked) {
        border-color: var(--blue-accent);
        background: #eef4ff;
    }

.pm-label {
    font-size: 12.5px;
    font-weight: 700;
}

.pm-logos {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 18px;
}

.mada-badge, .stc-badge {
    font-size: 10px;
    font-weight: 800;
    color: #0f7a3d;
    background: #e7f8ee;
    border-radius: 4px;
    padding: 2px 6px;
}

.stc-badge {
    color: #7c3aed;
    background: #f1ebfd;
}

.card-fields {
    margin-bottom: 4px;
}

.card-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.save-card-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5170;
    margin: 6px 0 22px;
    cursor: pointer;
}

    .save-card-check input {
        width: 16px;
        height: 16px;
        accent-color: var(--blue-accent);
    }

.pay-now-btn {
    padding: 15px;
    font-size: 15.5px;
    margin-bottom: 14px;
}

.secure-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    line-height: 1.7;
}

.checkout-item-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 18px 0 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

    .checkout-item-list li {
        display: flex;
        align-items: center;
        gap: 12px;
    }

.ci-body {
    flex: 1;
    min-width: 0;
}

    .ci-body h4 {
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ci-body span {
        font-size: 11.5px;
        color: var(--muted);
        font-weight: 600;
    }

.ci-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy-deep);
    flex-shrink: 0;
}

.checkout-trust-mini {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ctm-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctm-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef1fa;
    color: var(--navy);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctm-item h4 {
    font-size: 13px;
    font-weight: 700;
}

.ctm-item p {
    font-size: 11.5px;
    color: var(--muted);
}

.checkout-footer-strip {
    padding: 30px 0 10px;
}

.agree-note {
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 22px;
    line-height: 1.8;
}

    .agree-note a {
        color: var(--blue-accent);
        font-weight: 700;
    }

/* =============================================
   RESPONSIVE: cart + checkout
   ============================================= */
@media (max-width:1000px) {
    .cart-bottom-grid {
        grid-template-columns: 1fr;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:680px) {
    .cart-page {
        padding: 24px 0 40px;
    }

    .page-hero-compact {
        padding: 22px 0;
    }

    .coupon-row {
        flex-direction: column;
        align-items: stretch;
    }

    .coupon-label {
        margin-left: 0;
        order: -2;
    }

    .payment-method-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .card-fields-grid {
        grid-template-columns: 1fr;
    }

    .checkout-steps {
        gap: 6px;
    }

    .step-line {
        width: 34px;
    }

    .step-label {
        font-size: 10.5px;
    }
}

.fc-actions-row {
    display: flex;
    gap: 8px;
}

    .fc-actions-row .btn {
        flex: 1;
    }

/* =============================================
   ADD-TO-CART MODAL
   ============================================= */
.cart-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(11,21,48,.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .2s ease;
}

    .cart-modal-overlay.show {
        display: flex;
        opacity: 1;
    }

.cart-modal {
    background: #fff;
    border-radius: 18px;
    padding: 34px 30px 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: cartModalPop .25s ease;
    box-shadow: 0 30px 60px -20px rgba(11,21,48,.5);
}

@keyframes cartModalPop {
    from {
        transform: scale(.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cart-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: background .15s ease;
}

    .cart-modal-close:hover {
        background: #f4f6fb;
    }

.cart-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e7f8ee;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 10px;
}

.cart-modal p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.cart-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =============================================
   EMPTY CART STATE
   ============================================= */
.cart-empty-state {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 60px 24px;
    text-align: center;
    margin-bottom: 30px;
}

.cart-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #eef1fa;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.cart-empty-state h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cart-empty-state p {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 22px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* =============================================
   SHARED: section head centered variant
   ============================================= */
.center-head {
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-bottom: 36px;
}

    .center-head h2::after {
        right: 50%;
        transform: translateX(50%);
    }

    .center-head p {
        color: var(--muted);
        font-size: 14px;
        max-width: 520px;
        margin-top: 10px;
    }

.eyebrow-light {
    color: var(--blue-accent);
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 12px;
    display: block;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-intro {
    padding: 56px 0;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 44px;
    align-items: center;
}

.about-intro-media {
    position: relative;
}

    .about-intro-media img {
        width: 100%;
        height: 380px;
        object-fit: cover;
        border-radius: 18px;
    }

.about-media-badge {
    position: absolute;
    bottom: -18px;
    left: 24px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 16px 34px -16px rgba(20,30,60,.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
}

.about-media-badge-num {
    font-size: 22px;
    font-weight: 900;
    color: var(--blue-accent);
}

.about-media-badge span:last-child {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 700;
}

.about-intro-copy h1 {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 18px;
}

.about-intro-copy p {
    font-size: 14px;
    color: #4a5170;
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-stats-wrap {
    padding: 10px 0 40px;
}

.about-stats-strip {
    background: linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    border-radius: 18px;
    padding: 34px 20px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    text-align: center;
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.as-value {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
}

.as-label {
    font-size: 12.5px;
    color: #aab2d1;
    font-weight: 600;
}

.about-values {
    padding: 50px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.value-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 22px;
    transition: transform .2s ease,box-shadow .2s ease;
}

    .value-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 30px -18px rgba(20,30,60,.3);
    }

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef1fa;
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

.about-instructor {
    padding: 20px 0 60px;
}

.instructor-card-full {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
}

.instructor-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
}

.instructor-info h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 6px 0 12px;
}

.instructor-info p {
    font-size: 13.5px;
    color: #4a5170;
    line-height: 1.8;
    margin-bottom: 16px;
}

.instructor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background: #eef1fa;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
}

.about-cta {
    background: linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    padding: 56px 0;
}

.about-cta-inner {
    text-align: center;
}

    .about-cta-inner h2 {
        color: #fff;
        font-size: 24px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .about-cta-inner p {
        color: #aab2d1;
        font-size: 14px;
        margin-bottom: 26px;
    }

.about-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* =============================================
   FAQ PAGE
   ============================================= */
.faq-page {
    padding: 40px 0 60px;
}

.faq-search-wrap {
    max-width: 560px;
    margin: 0 auto 24px;
}

.faq-search-box {
    padding: 13px 16px;
    border-radius: 12px;
}

    .faq-search-box input {
        font-size: 14px;
    }

.faq-categories {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.faq-cat {
    padding: 9px 18px;
    border-radius: 20px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #4a5170;
    transition: background .15s ease,color .15s ease,border-color .15s ease;
}

    .faq-cat:hover {
        border-color: var(--blue-accent);
    }

    .faq-cat.active {
        background: var(--blue-accent);
        border-color: var(--blue-accent);
        color: #fff;
    }

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .15s ease;
}

    .faq-item.open {
        border-color: var(--blue-accent);
    }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    color: var(--ink);
}

.faq-chevron {
    color: var(--muted);
    flex-shrink: 0;
    transition: transform .2s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--blue-accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.faq-item.open .faq-answer {
    max-height: 260px;
}

.faq-answer p {
    padding: 0 20px 20px;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.8;
}

.faq-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 14px;
}

.faq-cta {
    max-width: 760px;
    margin: 44px auto 0;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 34px 20px;
}

    .faq-cta h3 {
        font-size: 17px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .faq-cta p {
        font-size: 13.5px;
        color: var(--muted);
        margin-bottom: 20px;
    }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-page {
    padding: 40px 0 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
    align-items: start;
}

.contact-info-col h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.contact-info-col > p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 420px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

    .contact-info-list li {
        display: flex;
        align-items: center;
        gap: 14px;
    }

.ci-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #eef1fa;
    color: var(--blue-accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-list h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 3px;
}

.contact-info-list p {
    font-size: 13px;
    color: var(--muted);
}

.social-links {
    display: flex;
    gap: 10px;
}

    .social-links a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1.5px solid var(--line);
        color: var(--navy-deep);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .15s ease,color .15s ease,border-color .15s ease;
    }

        .social-links a:hover {
            background: var(--navy-deep);
            color: #fff;
            border-color: var(--navy-deep);
        }

.contact-textarea, .notes-textarea {
    width: 100%;
    min-height: 120px;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 13.5px;
    resize: vertical;
    color: var(--ink);
}

    .contact-textarea:focus, .notes-textarea:focus {
        outline: none;
        border-color: var(--blue-accent);
    }

.contact-select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    padding: 12px 14px;
    color: var(--ink);
    appearance: none;
    -webkit-appearance: none;
}

.services-section {
    padding: 20px 0 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 22px;
    transition: transform .2s ease,box-shadow .2s ease;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 30px -18px rgba(20,30,60,.3);
    }

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef1fa;
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 15.5px;
    font-weight: 800;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

/* =============================================
   COURSE PLAYER PAGE
   ============================================= */
.player-breadcrumb-wrap {
    padding: 18px 0 6px;
}

.player-breadcrumb {
    justify-content: flex-start;
}

.player-page {
    padding: 10px 0 60px;
}

.player-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 24px;
    align-items: start;
}

.video-wrap {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #0b1530;
    aspect-ratio: 16/9;
    margin-bottom: 10px;
}

    .video-wrap video {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.video-progress-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.video-progress-track {
    flex: 1;
    height: 6px;
    background: var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.video-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--blue-accent);
    border-radius: 6px;
    transition: width .15s linear;
}

.video-progress-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.player-course-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

    .player-course-head h1 {
        font-size: 19px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .player-course-head p {
        font-size: 13px;
        color: var(--muted);
        font-weight: 600;
    }

.course-progress-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e7f8ee;
    color: #2fa96a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
}

.player-tabs {
    display: flex;
    gap: 4px;
    background: #f4f6fb;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 20px;
    width: fit-content;
}

.player-tab {
    padding: 9px 18px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    transition: background .15s ease,color .15s ease;
}

    .player-tab.active {
        background: #fff;
        color: var(--ink);
        box-shadow: 0 4px 10px -6px rgba(20,30,60,.25);
    }

.player-tab-panel {
    display: none;
}

    .player-tab-panel.active {
        display: block;
    }

    .player-tab-panel p {
        font-size: 13.5px;
        color: #4a5170;
        line-height: 1.9;
    }

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .resource-list li {
        display: flex;
        align-items: center;
        gap: 12px;
        background: #f7f8fb;
        border-radius: 10px;
        padding: 12px 16px;
    }

        .resource-list li span {
            flex: 1;
            font-size: 13px;
            font-weight: 600;
        }

        .resource-list li svg {
            color: var(--muted);
            flex-shrink: 0;
        }

.resource-download {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue-accent);
    flex-shrink: 0;
}

.save-note-btn {
    margin-top: 12px;
}

.player-sidebar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    position: sticky;
    top: 88px;
}

.player-sidebar-head {
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--line);
}

    .player-sidebar-head h3 {
        font-size: 15px;
        font-weight: 800;
        margin-bottom: 12px;
    }

.course-progress-bar {
    height: 6px;
    background: var(--line);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.course-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--blue-accent);
    border-radius: 6px;
    transition: width .2s ease;
}

.course-progress-meta {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.lecture-list {
    max-height: 520px;
    overflow-y: auto;
}

.lecture-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
    transition: background .15s ease;
}

    .lecture-item:last-child {
        border-bottom: none;
    }

    .lecture-item:hover {
        background: #f7f8fb;
    }

    .lecture-item.current {
        background: #eef4ff;
    }

.lecture-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--line);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 12px;
    font-weight: 800;
    transition: background .15s ease,border-color .15s ease,color .15s ease;
}

.lecture-item.completed .lecture-check {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.lecture-item.current .lecture-check {
    border-color: var(--blue-accent);
}

.lecture-item.current:not(.completed) .lecture-check {
    color: var(--blue-accent);
}

.lecture-body {
    flex: 1;
    min-width: 0;
}

    .lecture-body h4 {
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.lecture-item.current .lecture-body h4 {
    color: var(--blue-accent);
}

.lecture-duration {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
}

.lecture-section-label {
    padding: 14px 18px 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .3px;
    background: #fafbfd;
}

@media (max-width:1000px) {
    .player-grid {
        grid-template-columns: 1fr;
    }

    .player-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width:680px) {
    .player-course-head {
        flex-direction: column;
    }

    .instructor-card-full {
        grid-template-columns: 1fr;
    }

    .instructor-photo img {
        height: 220px;
    }

    .about-intro-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-strip {
        grid-template-columns: repeat(2,1fr);
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:460px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.course-card .cart-toggle-btn.btn {
    width: auto;
    height: auto;
    border-radius: 8px;
    padding: 9px 14px;
    gap: 6px;
}
/* =============================================
   CHECKOUT — GUEST AUTH
   يُضاف في نهاية site.css — بيستخدم نفس متغيرات الديزاين سيستم
   الموجودة أصلاً فوق (--line, --muted, --card-red-bg, --card-red-fg)
   ملحوظة: لينك "إنشاء حساب / تسجيل الدخول" بيستخدم كلاس .auth-switch-link
   الموجود عندك بالفعل في site.css، فمحتجناش نضيفه تاني
   ============================================= */

/* مهم جدًا: site.css مش مبني على Bootstrap، فكلاس d-none (اللي بيخفي
   العناصر) مش معرّف فيه أصلاً. الصفحة بتستخدمه في أكتر من مكان
   (فورم الريجستر، رسائل الأخطاء، السبينر) فلازم نعرّفه هنا وإلا
   العناصر هتفضل ظاهرة دايمًا حتى لو الكلاس اتحط عليها */
.d-none {
    display: none !important;
}

.checkout-auth-card,
.checkout-buyer-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}

.checkout-auth-lead {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 20px;
}

.checkout-form-error {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--card-red-fg);
    background: var(--card-red-bg);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 16px;
}

@media (max-width: 680px) {
    .checkout-auth-card,
    .checkout-buyer-card {
        padding: 18px;
    }
}

/* Cart button icon-only variant (course grid page) */
.cart-icon-only {
    width: 38px;
    height: 38px;
    padding: 0;
    flex-shrink: 0;
    font-size: 0; /* بيخفي النص بصريًا بدون ما يشيله من الـ DOM */
    box-shadow: none;
}

    .cart-icon-only i {
        font-size: 16px; /* بيرجع حجم الأيقونة لوحدها */
    }


/* Details button icon-only variant (course grid page) */
.details-icon-only {
    width: 38px;
    height: 38px;
    padding: 0;
    flex-shrink: 0;
    font-size: 0;
    background: transparent;
    color: var(--blue-accent);
    border: 1.5px solid var(--line);
    box-shadow: none;
}

    .details-icon-only i {
        font-size: 16px;
    }

    .details-icon-only:hover {
        background: var(--blue-accent);
        color: #fff;
        border-color: var(--blue-accent);
    }

/* ===== Rating Widget ===== */
.rating-widget {
    margin: 10px 0;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #eee;
}

.rating-widget-summary {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-widget-value {
    font-weight: 700;
    font-size: 14px;
    color: #212529;
}

.rating-widget-stars,
.rating-widget-stars-input {
    display: flex;
    gap: 2px;
    font-size: 15px;
    direction: ltr;
}

    .rating-widget-stars i,
    .rating-widget-stars-input i {
        color: #d9d9d9;
        transition: color .15s ease, transform .1s ease;
    }

        .rating-widget-stars i.filled {
            color: #ffb400;
        }

.rating-widget-count {
    font-size: 12px;
    color: #888;
    margin-right: 2px;
}

.rating-widget-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e2e2;
}

.rating-widget-label {
    font-size: 12.5px;
    color: #555;
}

.rating-widget-stars-input {
    font-size: 18px;
    cursor: pointer;
}

    .rating-widget-stars-input i.star-icon {
        color: #d9d9d9;
    }

        .rating-widget-stars-input i.star-icon.filled {
            color: #ffb400;
        }

        .rating-widget-stars-input i.star-icon:hover {
            transform: scale(1.15);
        }

.course-instructor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 8px;
    font-size: 12.5px;
}

.card-rating-display {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #ffb400;
    font-weight: 600;
}

    .card-rating-display .bi-star-fill {
        font-size: 11px;
    }

.card-rating-count {
    color: #999;
    font-weight: 400;
    margin-right: 2px;
}

.cd-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffb400;
    font-weight: 600;
}

/* ===== VIDEO MODAL (Home hero) ===== */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9999;
}

    .video-modal.show {
        opacity: 1;
        visibility: visible;
    }

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    text-align: center;
}

.video-modal video {
    width: 70%;
    border-radius: 12px;
    background: #000;
}

.close-video {
    position: absolute;
    top: -45px;
    left: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 40px;
}


@media (max-width:680px) {
    .video-modal video {
        width: 95%;
    }
}

/* =============================================
   COURSE DETAILS — LEARN / REQUIREMENTS
   ============================================= */
.cd-info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 18px;
}

.cd-learn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.cd-learn-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #4a5170;
}

    .cd-learn-item i {
        color: #2fa96a;
        font-size: 15px;
        margin-top: 2px;
        flex-shrink: 0;
    }

.cd-requirements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cd-requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #4a5170;
}

    .cd-requirement-item::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--blue-accent);
        margin-top: 8px;
        flex-shrink: 0;
    }

@media (max-width:680px) {
    .course-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

        .course-grid.list-view {
            grid-template-columns: 1fr;
        }

            .course-grid.list-view .course-card-full {
                grid-template-columns: 1fr;
            }

    .cd-learn-grid {
        grid-template-columns: 1fr;
    }
}

/* Purchase card image bigger/cleaner on details page */
.cd-purchase-thumb {
    height: 190px;
}

/* =============================================
   CATEGORIES PAGE — GRID / LIST TOGGLE
   ============================================= */
.cats.list-view {
    grid-template-columns: 1fr;
    gap: 12px;
}

    .cats.list-view .cat-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 16px 22px;
    }

    .cats.list-view .cat-top {
        flex: 1;
        min-width: 0;
    }

    .cats.list-view .cat-link {
        flex-shrink: 0;
        width: auto;
    }

@media (max-width:460px) {
    .cats.list-view .cat-card {
        flex-direction: column;
        align-items: stretch;
    }

    .cats.list-view .cat-link {
        width: 100%;
        text-align: center;
    }
}

/* =============================================
   PRIVACY POLICY PAGE
   ============================================= */
.legal-hero {
    background: radial-gradient(900px 400px at 90% -20%, #1b2c5e 0%, transparent 60%), linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    padding: 54px 0 46px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

    .legal-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255,255,255,.05) 1.4px, transparent 1.4px);
        background-size: 22px 22px;
        -webkit-mask-image: radial-gradient(560px 320px at 50% 0%, black, transparent);
        mask-image: radial-gradient(560px 320px at 50% 0%, black, transparent);
        pointer-events: none;
    }

.legal-hero-inner {
    position: relative;
    z-index: 1;
}

.legal-hero-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 18px;
}

.legal-hero h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 12px;
}

.legal-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #aab2d1;
    font-size: 13px;
    font-weight: 600;
}

.legal-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: #c7cde8;
    padding: 6px 14px;
    border-radius: 20px;
}

.legal-meta-dot {
    color: #4a5586;
}

/* ---- Layout ---- */
.legal-page {
    padding: 44px 0 60px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 26px;
    align-items: start;
}

/* ---- TOC sidebar ---- */
.legal-toc {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    position: sticky;
    top: 88px;
}

.legal-toc-title {
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--muted);
    margin-bottom: 12px;
}

.legal-toc-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 60vh;
    overflow-y: auto;
}

.legal-toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5170;
    border-right: 2.5px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

    .legal-toc-link:hover {
        background: #f4f6fb;
        color: var(--navy-deep);
    }

    .legal-toc-link.active {
        background: #eef4ff;
        color: var(--blue-accent);
        border-color: var(--blue-accent);
        font-weight: 700;
    }

.legal-toc-num {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #eef1fa;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-toc-link.active .legal-toc-num {
    background: var(--blue-accent);
    color: #fff;
}

/* ---- Content ---- */
.legal-content {
    min-width: 0;
}

.legal-intro-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 22px;
    font-size: 13.5px;
    color: #4a5170;
    line-height: 1.9;
}

.legal-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 26px 24px;
    margin-bottom: 18px;
    scroll-margin-top: 100px;
}

.legal-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--line);
}

.legal-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #eef1fa;
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.legal-section-head h3 {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--ink);
}

.legal-section-body {
    font-size: 13.5px;
    color: #4a5170;
    line-height: 1.95;
}

    .legal-section-body p {
        margin-bottom: 12px;
    }

        .legal-section-body p:last-child {
            margin-bottom: 0;
        }

    .legal-section-body ul, .legal-section-body ol {
        padding-right: 20px;
        margin-bottom: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        list-style: disc;
    }

    .legal-section-body strong {
        color: var(--ink);
    }

/* ---- Footer contact card ---- */
.legal-footer-card {
    background: linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    border-radius: 16px;
    padding: 28px 26px;
    text-align: center;
    margin-top: 26px;
}

    .legal-footer-card h4 {
        color: #fff;
        font-size: 16px;
        font-weight: 800;
        margin-bottom: 8px;
    }

    .legal-footer-card p {
        color: #aab2d1;
        font-size: 13px;
        margin-bottom: 18px;
    }

@media (max-width:900px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: relative;
        top: 0;
    }

    .legal-toc-list {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
    }

    .legal-toc-link {
        border-right: none;
        border-bottom: 2px solid transparent;
    }

        .legal-toc-link.active {
            border-color: var(--blue-accent);
        }
}

@media (max-width:680px) {
    .legal-hero {
        padding: 40px 0 32px;
    }

        .legal-hero h1 {
            font-size: 21px;
        }

    .legal-page {
        padding: 28px 0 44px;
    }

    .legal-section {
        padding: 20px 18px;
    }

    .legal-section-head {
        gap: 10px;
    }

    .legal-section-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .legal-footer-card {
        padding: 24px 18px;
    }
}

.booking-cta-wrap {
    padding: 10px 0 40px;
}

.booking-cta-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: radial-gradient(700px 300px at 85% 0%, #1b2c5e 0%, transparent 60%), linear-gradient(120deg,var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
    border-radius: 18px;
    padding: 44px 48px;
    overflow: hidden;
    box-shadow: 0 18px 40px -18px rgba(11,21,48,.45);
}

    .booking-cta-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255,255,255,.05) 1.4px, transparent 1.4px);
        background-size: 22px 22px;
        -webkit-mask-image: radial-gradient(500px 300px at 90% 10%, black, transparent);
        mask-image: radial-gradient(500px 300px at 90% 10%, black, transparent);
        pointer-events: none;
    }

.booking-cta-copy {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.booking-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(224,161,58,.12);
    border: 1px solid rgba(224,161,58,.35);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.booking-cta-copy h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.45;
}

.booking-cta-copy p {
    color: #aab2d1;
    font-size: 14.5px;
    line-height: 1.9;
    margin: 0 0 28px;
}

.btn-booking {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-accent);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    box-shadow: 0 8px 18px -6px rgba(184,129,47,.45);
}

    .btn-booking:hover {
        background: var(--blue-accent-dark);
        transform: translateY(-1px);
        color: #fff;
    }

.booking-cta-visual {
    position: relative;
    z-index: 1;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-icon-circle {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(145deg,var(--navy-light),var(--navy-deep));
    border: 1.5px solid rgba(224,161,58,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 26px -8px rgba(0,0,0,.5);
    position: relative;
    z-index: 2;
}

    .booking-icon-circle svg {
        stroke: var(--gold);
    }

.booking-orbit {
    position: absolute;
    border: 1.5px dashed rgba(224,161,58,.3);
    border-radius: 50%;
}

.booking-orbit-1 {
    width: 140px;
    height: 140px;
}

.booking-orbit-2 {
    width: 112px;
    height: 112px;
}

@media (max-width: 768px) {
    .booking-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 22px;
    }

    .booking-cta-copy {
        max-width: 100%;
    }

    .booking-cta-badge {
        margin-inline: auto;
    }
}

.teachers-row {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: .5rem .25rem 1.25rem;
    scrollbar-width: thin;
}

.teacher-avatar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: inherit;
    flex: 0 0 auto;
    width: 96px;
    transition: transform .2s;
}

    .teacher-avatar-card:hover {
        transform: translateY(-4px);
        color: inherit;
    }

.teacher-avatar-wrap {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(11, 30, 61, .12);
}

    .teacher-avatar-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.teacher-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1e3d;
    color: #e6a817;
    font-weight: 700;
    font-size: 1.6rem;
}

.teacher-avatar-name {
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
    color: #0b1e3d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 96px;
}