/* =========================================================
   Exocad Dental Lab Academy — visual system
   Midnight / Deep Navy / Dental Teal / Silver
   ========================================================= */
:root {
    --midnight: #0B1625;
    --navy: #14283B;
    --navy-soft: #1B3550;
    --teal: #20B8B0;
    --teal-dark: #149E97;
    --teal-soft: #E6F8F6;
    --silver: #DCE6EE;
    --ink: #0F2233;
    --muted: #5D7285;
    --line: #E3ECF2;
    --surface: #FFFFFF;
    --bg: #F4F8FA;
    --warning: #F4A63A;
    --danger: #E15B64;
    --success: #1FA97A;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow-sm: 0 6px 18px rgba(11, 22, 37, .06);
    --shadow-md: 0 18px 40px rgba(11, 22, 37, .10);
    --shadow-lg: 0 30px 70px rgba(11, 22, 37, .18);
    --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
    --font-en: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ar);
    font-size: 1rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

[dir="ltr"] body { font-family: var(--font-en); line-height: 1.65; }

h1, h2, h3, h4, h5, .display {
    font-weight: 800;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -.01em;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }

img { max-width: 100%; }

.skip-link {
    position: absolute;
    inset-inline-start: -999px;
    top: 0;
    background: var(--teal);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 2000;
    border-radius: 0 0 10px 10px;
}
.skip-link:focus { inset-inline-start: 1rem; color: #fff; }

.container { max-width: 1220px; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: .72rem 1.5rem;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-teal {
    background: linear-gradient(135deg, var(--teal), #2ACFC6);
    color: #04211F;
    border: 0;
    box-shadow: 0 12px 26px rgba(32, 184, 176, .30);
}
.btn-teal:hover, .btn-teal:focus { color: #04211F; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(32, 184, 176, .40); }
.btn-ghost {
    border: 1px solid rgba(220, 230, 238, .35);
    color: var(--silver);
    background: rgba(255, 255, 255, .04);
}
.btn-ghost:hover { color: #fff; border-color: var(--teal); background: rgba(32, 184, 176, .12); }
.btn-outline-teal {
    border: 1.5px solid rgba(32, 184, 176, .45);
    color: var(--teal-dark);
    background: transparent;
}
.btn-outline-teal:hover { background: var(--teal); border-color: var(--teal); color: #04211F; }
.btn-dark-soft {
    background: var(--navy);
    color: #fff;
    border: 0;
}
.btn-dark-soft:hover { background: var(--navy-soft); color: #fff; }
.btn-light-soft { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-light-soft:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-sm { padding: .5rem 1.05rem; font-size: .875rem; }
.btn-lg { padding: .95rem 2rem; font-size: 1.05rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------
   Brand / navbar
   --------------------------------------------------------- */
.site-nav {
    background: rgba(11, 22, 37, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(220, 230, 238, .08);
    padding: .65rem 0;
    transition: background .25s ease, box-shadow .25s ease;
    z-index: 1040;
}
.site-nav.scrolled { background: rgba(9, 18, 30, .98); box-shadow: 0 8px 30px rgba(0, 0, 0, .22); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
    position: relative;
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(32, 184, 176, .25), rgba(32, 184, 176, .04));
    border: 1px solid rgba(32, 184, 176, .45);
    color: var(--teal);
    font-size: 1.25rem;
    box-shadow: inset 0 0 18px rgba(32, 184, 176, .18);
}
.brand-dot {
    position: absolute; inset-inline-end: -3px; top: -3px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 3px rgba(32, 184, 176, .2);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-weight: 800; font-size: 1.06rem; letter-spacing: -.01em; }
.brand-title span { color: var(--teal); }
.brand-sub { font-size: .68rem; color: rgba(220, 230, 238, .62); letter-spacing: .04em; }
.navbar-toggler {
    border: 1px solid rgba(220, 230, 238, .25);
    padding: .4rem .6rem;
    border-radius: 10px;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28220,230,238,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.nav-links { gap: .1rem; }
.site-nav .nav-link {
    color: rgba(220, 230, 238, .78);
    font-weight: 600;
    font-size: .9rem;
    padding: .55rem .7rem !important;
    border-radius: 10px;
    transition: color .2s, background .2s;
}
.site-nav .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav .nav-link.active { color: var(--teal); }
.site-nav .dropdown-toggle::after { margin-inline-start: .35rem; font-size: .7rem; }
.nav-dropdown {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: .5rem;
    min-width: 230px;
    margin-top: .6rem;
}
.nav-dropdown .dropdown-item {
    border-radius: 10px;
    padding: .55rem .75rem;
    font-weight: 600;
    color: var(--ink);
    font-size: .9rem;
}
.nav-dropdown .dropdown-item:hover { background: var(--teal-soft); color: var(--teal-dark); }
.nav-dropdown .dropdown-header { color: var(--ink); font-weight: 700; font-size: .82rem; padding: .5rem .75rem; }
.nav-actions { gap: .45rem !important; }
.icon-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(220, 230, 238, .18);
    color: rgba(220, 230, 238, .85);
    position: relative;
    transition: all .2s ease;
}
.icon-btn:hover { color: #fff; border-color: var(--teal); background: rgba(32, 184, 176, .12); }
.notif-badge {
    position: absolute; top: -4px; inset-inline-end: -4px;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 9px;
    background: var(--teal);
    color: #04211F;
    font-size: .66rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.lang-switch {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(220, 230, 238, .14);
}
.lang-btn {
    min-width: 34px; text-align: center;
    padding: .18rem .5rem;
    border-radius: 999px;
    color: rgba(220, 230, 238, .7);
    font-size: .78rem; font-weight: 800;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--teal); color: #04211F; }
.user-chip {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(220, 230, 238, .16);
    border-radius: 999px;
    padding: .22rem .6rem .22rem .22rem;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
}
.user-chip:hover { border-color: var(--teal); }
.avatar-initials, .avatar-img {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--teal), #2F80ED);
    color: #fff; font-weight: 800; font-size: .75rem;
    object-fit: cover;
}

/* ---------------------------------------------------------
   Messages
   --------------------------------------------------------- */
.message-stack { position: relative; z-index: 5; padding-top: 1rem; }
.app-alert {
    border: 0;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    background: #fff;
    color: var(--ink);
    border-inline-start: 4px solid var(--teal);
    font-weight: 600;
}
.app-alert.alert-success { border-inline-start-color: var(--success); }
.app-alert.alert-warning { border-inline-start-color: var(--warning); }
.app-alert.alert-danger, .app-alert.alert-error { border-inline-start-color: var(--danger); }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
    position: relative;
    background: radial-gradient(1100px 600px at 15% -10%, rgba(32, 184, 176, .20), transparent 60%),
                radial-gradient(900px 500px at 90% 10%, rgba(47, 128, 237, .18), transparent 55%),
                linear-gradient(160deg, #0B1625 0%, #0F2033 55%, #0B1625 100%);
    color: #fff;
    padding: 5.5rem 0 5rem;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(220, 230, 238, .055) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(220, 230, 238, .055) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 78%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute; width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(32, 184, 176, .22), transparent 65%);
    top: -140px; inset-inline-end: -140px;
    filter: blur(10px);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .42rem .9rem;
    border-radius: 999px;
    background: rgba(32, 184, 176, .10);
    border: 1px solid rgba(32, 184, 176, .32);
    color: #8FE6E1;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: 1.4rem;
}
.hero-badge .pulse {
    width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
    box-shadow: 0 0 0 0 rgba(32, 184, 176, .6);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(32, 184, 176, .55); }
    70% { box-shadow: 0 0 0 12px rgba(32, 184, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(32, 184, 176, 0); }
}
.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 3.7vw, 3.35rem);
    line-height: 1.17;
    margin-bottom: 1.4rem;
    letter-spacing: -.02em;
}
.hero h1 .accent {
    background: linear-gradient(120deg, #5FE3DB, #2F80ED);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    color: rgba(220, 230, 238, .78);
    font-size: 1.06rem;
    max-width: 560px;
    margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.6rem; }
.hero-stats {
    display: flex; flex-wrap: wrap; gap: 2.2rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(220, 230, 238, .12);
}
.hero-stat strong { display: block; font-size: 1.7rem; color: #fff; line-height: 1.2; }
.hero-stat span { font-size: .8rem; color: rgba(220, 230, 238, .6); }

/* Hero visual */
.hero-visual { position: relative; min-height: 460px; }
.hero-photo {
    position: relative;
    width: min(440px, 100%);
    margin-inline-start: auto;
    margin-bottom: 0;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(220, 230, 238, .2);
    box-shadow: var(--shadow-lg);
    transform: rotate(-1.2deg);
}
.hero-photo img { display: block; width: 100%; height: 500px; object-fit: cover; object-position: 62% center; }
.hero-photo::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(11, 22, 37, .78));
    pointer-events: none;
}
.hero-photo figcaption {
    position: absolute; inset-inline: 1.1rem; bottom: 1rem; z-index: 1;
    display: flex; align-items: center; gap: .5rem;
    color: #fff; font-size: .8rem; font-weight: 700;
}
.hero-photo figcaption .pulse { background: var(--teal); }
.design-panel {
    position: absolute;
    inset-inline-end: 0; top: 20px;
    width: min(420px, 100%);
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
    border: 1px solid rgba(220, 230, 238, .16);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    padding: 1.2rem;
    animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.panel-bar { display: flex; gap: .4rem; margin-bottom: 1rem; }
.panel-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(220, 230, 238, .3); }
.panel-bar span:first-child { background: var(--teal); }
.panel-screen {
    border-radius: 18px;
    background: radial-gradient(circle at 50% 40%, rgba(32, 184, 176, .18), transparent 60%), #0A1422;
    border: 1px solid rgba(32, 184, 176, .18);
    padding: 1.4rem;
    position: relative;
    overflow: hidden;
}
.panel-screen::before {
    content: "";
    position: absolute; inset: 12%;
    border: 1px dashed rgba(32, 184, 176, .25);
    border-radius: 50%;
}
.tooth-glyph {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    height: 190px;
    color: rgba(32, 184, 176, .9);
    font-size: 6.2rem;
    text-shadow: 0 0 40px rgba(32, 184, 176, .45);
}
.tool-row { display: flex; gap: .45rem; margin-top: 1rem; flex-wrap: wrap; }
.tool-chip {
    font-size: .68rem; font-weight: 700;
    color: rgba(220, 230, 238, .7);
    border: 1px solid rgba(220, 230, 238, .16);
    padding: .3rem .65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
}
.tool-chip.active { border-color: var(--teal); color: var(--teal); background: rgba(32, 184, 176, .1); }
.floating-card {
    position: absolute;
    background: #fff;
    color: var(--ink);
    border-radius: 16px;
    padding: .85rem 1rem;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: .7rem;
    font-size: .8rem; font-weight: 700;
    animation: floatY 6s ease-in-out infinite;
}
.floating-card small { display: block; color: var(--muted); font-weight: 500; font-size: .7rem; }
.floating-one { inset-inline-start: 0; top: 0; animation-delay: .8s; }
.floating-two { inset-inline-start: 8%; bottom: 6%; animation-delay: 1.6s; }
.float-icon {
    width: 38px; height: 38px; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--teal-soft); color: var(--teal-dark); font-size: 1.1rem;
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */
.section { padding: 4.5rem 0; }
.photo-section { background: #F4F9FB; }
.photo-mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 180px;
    gap: .8rem;
    margin-top: 1.6rem;
}
.photo-tile {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0B1625;
    box-shadow: var(--shadow-sm);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(11, 22, 37, .8));
    pointer-events: none;
}
.photo-tile span {
    position: absolute; inset-inline: .8rem; bottom: .7rem; z-index: 1;
    color: #fff; font-size: .76rem; font-weight: 700; line-height: 1.35;
}
.photo-tile-lg { grid-column: span 2; grid-row: span 2; }
.about-photo {
    position: relative; margin: 0; border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(220, 230, 238, .18); box-shadow: var(--shadow-lg);
}
.about-photo img { display: block; width: 100%; height: 260px; object-fit: cover; }
.about-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(11, 22, 37, .82));
}
.about-photo figcaption {
    position: absolute; inset-inline: 1rem; bottom: .8rem; z-index: 1;
    color: #fff; font-size: .78rem; font-weight: 700;
}
@media (max-width: 767.98px) {
    .photo-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; }
    .photo-tile-lg { grid-column: span 2; grid-row: span 1; }
    .photo-mosaic > .photo-tile:last-child { grid-column: span 2; }
}
.section-tight { padding: 3rem 0; }
.section-dark {
    background: linear-gradient(160deg, #0B1625, #102338);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-sub { color: rgba(220, 230, 238, .68); }
.section-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 1rem; margin-bottom: 2.2rem;
}
.section-head h2 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); margin: 0; }
.section-sub { color: var(--muted); margin: .4rem 0 0; max-width: 640px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    color: var(--teal-dark);
    font-size: .75rem; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: .55rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.section-dark .eyebrow { color: #7FE3DD; }
.section-dark .eyebrow::before { background: #7FE3DD; }

/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */
.path-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--ink);
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(32, 184, 176, .35); color: var(--ink); }
.path-cover {
    position: relative;
    height: 158px;
    background: linear-gradient(140deg, var(--g1, #0B1625), var(--g2, #20B8B0));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.path-cover::after {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: .35;
}
.path-cover img { width: 100%; height: 100%; object-fit: cover; }
.path-cover-icon { font-size: 3.6rem; color: rgba(255, 255, 255, .85); position: relative; z-index: 1; }
.path-level {
    position: absolute; top: .8rem; inset-inline-start: .8rem;
    background: rgba(11, 22, 37, .55);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-size: .7rem; font-weight: 700;
    padding: .2rem .6rem; border-radius: 999px;
    backdrop-filter: blur(6px);
    z-index: 2;
}
.path-featured {
    position: absolute; top: .8rem; inset-inline-end: .8rem;
    background: rgba(32, 184, 176, .9); color: #04211F;
    font-size: .66rem; font-weight: 800;
    padding: .2rem .55rem; border-radius: 999px;
    display: inline-flex; align-items: center; gap: .25rem;
    z-index: 2;
}
.path-body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.path-title { font-size: 1.05rem; margin: 0 0 .4rem; }
.path-summary { color: var(--muted); font-size: .85rem; margin: 0 0 .9rem; flex: 1; }
.path-meta { display: flex; gap: 1rem; color: var(--muted); font-size: .76rem; font-weight: 600; }
.path-meta i { color: var(--teal-dark); }
.path-progress { display: flex; align-items: center; gap: .6rem; margin-top: .9rem; font-size: .72rem; font-weight: 700; color: var(--teal-dark); }
.path-progress .progress { flex: 1; }

.progress { background: #EAF1F5; border-radius: 999px; height: 10px; overflow: hidden; }
.progress.slim { height: 6px; }
.progress-bar { background: linear-gradient(90deg, var(--teal), #2F80ED); border-radius: 999px; }

.lesson-card {
    display: flex; gap: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    color: var(--ink);
    transition: all .2s ease;
    height: 100%;
}
.lesson-card:hover { border-color: rgba(32, 184, 176, .4); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--ink); }
.lesson-thumb {
    flex: 0 0 64px;
    width: 64px; height: 64px;
    border-radius: 14px;
    background: linear-gradient(140deg, #14283B, #20B8B0);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    position: relative;
    overflow: hidden;
}
.lesson-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lesson-card-body { min-width: 0; flex: 1; }
.lesson-card-kicker { font-size: .7rem; color: var(--teal-dark); font-weight: 700; margin-bottom: .15rem; }
.lesson-card-title { font-size: .94rem; font-weight: 700; margin: 0 0 .3rem; line-height: 1.4; }
.lesson-card-meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .72rem; color: var(--muted); }
.lesson-card-meta i { color: var(--teal-dark); }

.feature-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(220, 230, 238, .12);
    border-radius: 18px;
    padding: 1.5rem;
    height: 100%;
    transition: all .2s ease;
}
.feature-card:hover { border-color: rgba(32, 184, 176, .4); background: rgba(32, 184, 176, .06); }
.feature-icon {
    width: 50px; height: 50px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(32, 184, 176, .12);
    border: 1px solid rgba(32, 184, 176, .3);
    color: var(--teal);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.feature-card p { color: rgba(220, 230, 238, .66); font-size: .86rem; margin: 0; }

.case-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 260px;
    color: #fff;
    background: linear-gradient(150deg, var(--g1, #0B1625), var(--g2, #20B8B0));
}
.case-card:hover { color: #fff; }
.case-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.case-card-content {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; justify-content: flex-end;
    height: 100%; min-height: 260px;
    padding: 1.4rem;
    background: linear-gradient(180deg, transparent 28%, rgba(8, 18, 30, .88) 100%);
}
.case-code { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--teal); }
.case-card h3 { color: #fff; font-size: 1.1rem; margin: .3rem 0 .5rem; }
.case-card p { color: rgba(220, 230, 238, .72); font-size: .82rem; margin: 0; }

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    height: 100%;
}
.stat-card .stat-label { font-size: .76rem; color: var(--muted); font-weight: 600; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.stat-card .stat-icon { color: var(--teal); font-size: 1.2rem; }

.progress-ring { display: block; margin-left: auto; margin-right: auto; }
.progress-ring__track { stroke: #E7EFF4; }
.progress-ring__value { stroke: var(--teal); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.progress-ring__text { font-size: 13px; font-weight: 800; fill: var(--ink); font-family: var(--font-en); }

/* ---------------------------------------------------------
   Page headers
   --------------------------------------------------------- */
.page-dark {
    background: radial-gradient(800px 400px at 20% 0%, rgba(32, 184, 176, .16), transparent 60%),
                linear-gradient(150deg, #0B1625, #102338);
    color: #fff;
    padding: 3.4rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.page-dark::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(220, 230, 238, .045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(220, 230, 238, .045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at 40% 20%, #000, transparent 75%);
}
.page-dark .container { position: relative; z-index: 1; }
.page-dark h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .6rem; }
.page-dark p { color: rgba(220, 230, 238, .72); margin: 0; max-width: 720px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .78rem; color: rgba(220, 230, 238, .55); margin-bottom: .9rem; }
.breadcrumbs a { color: rgba(220, 230, 238, .75); }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs .sep { opacity: .45; }

/* ---------------------------------------------------------
   Filters
   --------------------------------------------------------- */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
    background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: .8rem; margin-bottom: 1.8rem;
}
.filter-bar .form-control, .filter-bar .form-select { border-radius: 10px; border-color: var(--line); }
.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    border: 1px solid var(--line);
    background: #fff; color: var(--muted);
    border-radius: 999px; padding: .35rem .85rem;
    font-size: .78rem; font-weight: 700;
}
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip.active { background: var(--teal); border-color: var(--teal); color: #04211F; }

/* ---------------------------------------------------------
   Course detail
   --------------------------------------------------------- */
.course-hero {
    background: radial-gradient(900px 500px at 85% -20%, rgba(32, 184, 176, .2), transparent 55%),
                linear-gradient(150deg, #0B1625, #12283D);
    color: #fff;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.course-hero-bg { position: absolute; inset: 0; z-index: 0; }
.course-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.course-hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11, 22, 37, .96) 15%, rgba(11, 22, 37, .72) 65%, rgba(11, 22, 37, .5));
}
[dir="rtl"] .course-hero-bg::after {
    background: linear-gradient(270deg, rgba(11, 22, 37, .96) 15%, rgba(11, 22, 37, .72) 65%, rgba(11, 22, 37, .5));
}
.course-hero > .container { position: relative; z-index: 1; }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.share-label { font-size: .78rem; font-weight: 700; color: var(--muted); margin-inline-end: .25rem; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    border: 1px solid var(--line); background: #fff; color: #35536B;
    font-size: .95rem; transition: all .2s ease;
}
.share-btn:hover { color: #fff; border-color: transparent; transform: translateY(-1px); }
.share-btn.whatsapp:hover { background: #25D366; }
.share-btn.facebook:hover { background: #1877F2; }
.share-btn.x:hover { background: #111; }
.share-btn.telegram:hover { background: #229ED9; }
.share-btn.linkedin:hover { background: #0A66C2; }
.share-btn.copy:hover { background: var(--teal); }
.course-hero h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.course-hero .lead { color: rgba(220, 230, 238, .75); font-size: 1rem; }
.course-meta-row { display: flex; flex-wrap: wrap; gap: 1.4rem; color: rgba(220, 230, 238, .72); font-size: .82rem; font-weight: 600; }
.course-meta-row i { color: var(--teal); }
.course-side-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.4rem;
}
.course-side-card .meta-line { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .85rem; }
.course-side-card .meta-line:last-of-type { border-bottom: 0; }
.course-side-card .meta-line span:first-child { color: var(--muted); }
.course-side-card .meta-line span:last-child { font-weight: 700; }

.module-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: .9rem;
    overflow: hidden;
}
.module-head {
    display: flex; align-items: center; gap: .9rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    user-select: none;
}
.module-num {
    flex: 0 0 42px; width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .85rem;
    font-family: var(--font-en);
}
.module-head h3 { font-size: .98rem; margin: 0; }
.module-head small { color: var(--muted); font-size: .74rem; }
.module-caret { margin-inline-start: auto; color: var(--muted); transition: transform .2s ease; }
.module-block.open .module-caret { transform: rotate(180deg); }
.module-body { display: none; border-top: 1px solid var(--line); }
.module-block.open .module-body { display: block; }
.lesson-row {
    display: flex; align-items: center; gap: .85rem;
    padding: .8rem 1.1rem;
    border-bottom: 1px solid #F0F5F8;
    color: var(--ink);
}
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: #F8FBFD; color: var(--ink); }
.lesson-status {
    flex: 0 0 28px; width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .78rem;
    background: #EEF4F8; color: var(--muted);
    border: 1px solid var(--line);
}
.lesson-status.completed { background: rgba(31, 169, 122, .12); color: var(--success); border-color: rgba(31, 169, 122, .3); }
.lesson-status.in_progress { background: var(--teal-soft); color: var(--teal-dark); border-color: rgba(32, 184, 176, .3); }
.lesson-status.locked { background: #F4F6F8; color: #A9B8C4; }
.lesson-row-title { flex: 1; min-width: 0; font-size: .88rem; font-weight: 600; }
.lesson-row-meta { font-size: .72rem; color: var(--muted); }
.lesson-row.locked { opacity: .65; }

/* ---------------------------------------------------------
   Lesson page
   --------------------------------------------------------- */
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.lesson-main {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.2rem, 3vw, 2.2rem);
}
.lesson-kicker { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.lesson-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .7rem; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .8rem; margin-bottom: 1.2rem; }
.lesson-meta i { color: var(--teal-dark); }
.badge-level {
    display: inline-flex; align-items: center;
    background: var(--teal-soft); color: var(--teal-dark);
    border-radius: 999px; padding: .25rem .7rem;
    font-size: .72rem; font-weight: 800;
}
.badge-soft { background: #EEF4F8; color: var(--muted); border-radius: 999px; padding: .25rem .7rem; font-size: .72rem; font-weight: 700; }
.badge-soft.badge-teal { background: var(--teal-soft); color: var(--teal-dark); }
.border-bottom-soft { border-bottom: 1px solid rgba(20, 40, 59, .08); }
.border-bottom-soft:last-child { border-bottom: 0; }
.video-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0B1625;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.8rem;
    box-shadow: var(--shadow-sm);
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.lesson-cover .video-placeholder { background: linear-gradient(180deg, rgba(11, 22, 37, .2), rgba(11, 22, 37, .75)); }
.pdf-reader { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.pdf-reader-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: #F6FAFC;
}
.pdf-frame-wrap { background: #2A3744; }
.pdf-frame { display: block; width: 100%; height: 78vh; min-height: 520px; border: 0; background: #fff; }
@media (max-width: 767.98px) {
    .pdf-frame { height: 68vh; min-height: 440px; }
}
.video-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .7rem;
    color: rgba(220, 230, 238, .7);
    background: radial-gradient(circle at 50% 40%, rgba(32, 184, 176, .2), transparent 60%), #0B1625;
}
.video-placeholder i { font-size: 2.4rem; color: var(--teal); }
.lesson-objectives {
    background: #F7FBFD;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.6rem;
}
.lesson-objectives h3 { font-size: .95rem; margin-bottom: .6rem; }
.lesson-objectives ul { margin: 0; padding-inline-start: 1.1rem; }
.lesson-objectives li { margin-bottom: .3rem; font-size: .88rem; color: #2C4356; }
.lesson-body { font-size: .97rem; color: #22384A; }
.lesson-body h3 { font-size: 1.12rem; margin: 1.8rem 0 .6rem; }
.lesson-body p { margin-bottom: 1rem; }
.lesson-body ol, .lesson-body ul { padding-inline-start: 1.3rem; margin-bottom: 1rem; }
.lesson-body li { margin-bottom: .35rem; }
.lesson-callout {
    background: var(--teal-soft);
    border-inline-start: 4px solid var(--teal);
    border-radius: 10px;
    padding: .9rem 1rem;
    font-size: .9rem;
    margin: 1.2rem 0;
}
.side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.15rem;
    margin-bottom: 1rem;
}
.side-card h3 { font-size: .92rem; margin-bottom: .8rem; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { display: flex; align-items: center; gap: .55rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .82rem; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: var(--ink); font-weight: 600; }
.side-list a:hover { color: var(--teal-dark); }
.side-list .active { color: var(--teal-dark); }
.resource-item { display: flex; align-items: center; gap: .7rem; padding: .65rem 0; border-bottom: 1px dashed var(--line); }
.resource-item:last-child { border-bottom: 0; }
.resource-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: #F0F6F9; color: var(--teal-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .9rem; font-weight: 800; flex: 0 0 38px;
    text-transform: uppercase;
}
.resource-name { font-size: .82rem; font-weight: 700; color: var(--ink); }
.resource-meta { font-size: .7rem; color: var(--muted); }

.lesson-nav { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.lesson-nav a, .lesson-nav span {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .82rem; font-weight: 700;
    padding: .6rem .9rem; border-radius: 10px;
    border: 1px solid var(--line); color: var(--ink); background: #fff;
}
.lesson-nav a:hover { border-color: var(--teal); color: var(--teal-dark); }
.lesson-nav .disabled { opacity: .45; pointer-events: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; }
.gallery-item { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery-item img { width: 100%; height: 130px; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { padding: .5rem .6rem; font-size: .72rem; color: var(--muted); }

/* ---------------------------------------------------------
   Auth
   --------------------------------------------------------- */
.auth-wrap { min-height: calc(100vh - 200px); display: flex; align-items: center; padding: 2.5rem 0; }
.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.auth-aside {
    background: radial-gradient(circle at 20% 10%, rgba(32, 184, 176, .24), transparent 55%),
                linear-gradient(160deg, rgba(11, 22, 37, .62), rgba(20, 40, 59, .86)),
                url("../img/photos/digital-designer.jpg") center / cover no-repeat;
    color: #fff;
    padding: 2.5rem;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 100%;
}
.auth-aside h2 { color: #fff; font-size: 1.5rem; }
.auth-aside p { color: rgba(220, 230, 238, .7); font-size: .88rem; }
.auth-points { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.auth-points li { display: flex; gap: .55rem; align-items: flex-start; color: rgba(220, 230, 238, .8); font-size: .82rem; margin-bottom: .7rem; }
.auth-points i { color: var(--teal); margin-top: .15rem; }
.auth-form { padding: 2.5rem; }
.auth-form h1 { font-size: 1.5rem; margin-bottom: .3rem; }
.auth-form .sub { color: var(--muted); font-size: .88rem; margin-bottom: 1.5rem; }
.form-label { font-weight: 700; font-size: .82rem; color: #2C4356; }
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #DCE6EE;
    padding: .65rem .85rem;
    font-size: .9rem;
    background-color: #FBFDFE;
}
.form-control:focus, .form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(32, 184, 176, .14);
    background-color: #fff;
}
.form-text { font-size: .74rem; color: var(--muted); }
.errorlist { list-style: none; padding: 0; margin: .35rem 0 0; color: var(--danger); font-size: .78rem; }
.auth-divider { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .75rem; margin: 1.2rem 0; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ---------------------------------------------------------
   Dashboard
   --------------------------------------------------------- */
.dashboard-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.8rem; padding: 2rem 0 4rem; align-items: start; }
.dashboard-shell > * { min-width: 0; }
.dash-side {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 1rem; position: sticky; top: 90px;
}
.dash-user { display: flex; align-items: center; gap: .7rem; padding: .6rem .5rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.dash-user .avatar-initials, .dash-user .avatar-img { width: 44px; height: 44px; font-size: 1rem; }
.dash-user-name { font-weight: 800; font-size: .9rem; line-height: 1.3; }
.dash-user-role { font-size: .72rem; color: var(--muted); }
.dash-nav { list-style: none; padding: 0; margin: 0; }
.dash-nav a {
    display: flex; align-items: center; gap: .6rem;
    padding: .6rem .7rem; border-radius: 10px;
    color: #33506A; font-size: .85rem; font-weight: 600;
}
.dash-nav a:hover { background: #F3F9FA; color: var(--teal-dark); }
.dash-nav a.active { background: var(--teal-soft); color: var(--teal-dark); }
.dash-nav i { font-size: 1rem; }
.dash-nav .divider { height: 1px; background: var(--line); margin: .5rem 0; }
.welcome-card {
    position: relative;
    border-radius: 20px;
    padding: 1.8rem;
    background: radial-gradient(600px 300px at 90% 0%, rgba(32, 184, 176, .25), transparent 60%),
                linear-gradient(150deg, #0B1625, #14283B);
    color: #fff;
    overflow: hidden;
    margin-bottom: 1.2rem;
}
.welcome-card h1 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .35rem; }
.welcome-card p { color: rgba(220, 230, 238, .7); margin-bottom: 1.2rem; }
.continue-card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 1.1rem 1.2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
    box-shadow: var(--shadow-sm);
}
.continue-card .thumb {
    width: 58px; height: 58px; border-radius: 14px; flex: 0 0 58px;
    background: linear-gradient(140deg, var(--navy), var(--teal));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.continue-body { flex: 1; min-width: 200px; }
.continue-kicker { font-size: .7rem; font-weight: 800; color: var(--teal-dark); letter-spacing: .08em; text-transform: uppercase; }
.continue-title { font-size: 1rem; font-weight: 800; margin: .15rem 0; }
.continue-meta { font-size: .76rem; color: var(--muted); }
.dash-section-title { display: flex; align-items: center; justify-content: space-between; margin: 1.8rem 0 1rem; }
.dash-section-title h2 { font-size: 1.1rem; margin: 0; }
.course-mini {
    display: flex; gap: .9rem; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem;
    color: var(--ink); margin-bottom: .7rem;
}
.course-mini:hover { border-color: rgba(32, 184, 176, .4); color: var(--ink); }
.course-mini .mini-cover {
    width: 54px; height: 54px; border-radius: 12px; flex: 0 0 54px;
    background: linear-gradient(140deg, var(--navy), var(--teal));
    color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.course-mini h3 { font-size: .9rem; margin: 0 0 .2rem; }
.course-mini .mini-meta { font-size: .72rem; color: var(--muted); }
.course-mini .progress { margin-top: .35rem; }

/* ---------------------------------------------------------
   Quiz
   --------------------------------------------------------- */
.quiz-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; }
.quiz-hero { text-align: center; padding: 1rem 0 1.6rem; }
.quiz-hero .quiz-icon {
    width: 70px; height: 70px; border-radius: 20px; margin: 0 auto 1rem;
    background: var(--teal-soft); color: var(--teal-dark);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.quiz-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; margin: 1.2rem 0; }
.quiz-fact { text-align: center; }
.quiz-fact strong { display: block; font-size: 1.2rem; }
.quiz-fact span { font-size: .74rem; color: var(--muted); }
.question-block { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.question-block:first-of-type { border-top: 0; }
.question-title { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.question-hint { font-size: .74rem; color: var(--muted); margin-bottom: .9rem; }
.option-list { display: flex; flex-direction: column; gap: .55rem; }
.option {
    display: flex; align-items: flex-start; gap: .7rem;
    border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .9rem;
    cursor: pointer; font-size: .9rem; transition: all .15s ease; background: #fff;
}
.option:hover { border-color: rgba(32, 184, 176, .45); background: #FAFEFE; }
.option input { margin-top: .3rem; accent-color: var(--teal); }
.option.correct { border-color: var(--success); background: rgba(31, 169, 122, .07); }
.option.wrong { border-color: var(--danger); background: rgba(225, 91, 100, .07); }
.quiz-timer {
    position: sticky; top: 90px; z-index: 10;
    display: inline-flex; align-items: center; gap: .5rem;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: .45rem .95rem; font-weight: 800; font-family: var(--font-en);
    box-shadow: var(--shadow-sm);
}
.quiz-timer.warning { border-color: var(--warning); color: #B06A00; }
.quiz-score-ring { margin: 0 auto; display: block; }
.result-hero { text-align: center; padding: 2rem 0 1rem; }
.result-score { font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--teal-dark); }
.result-badge { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .35rem .9rem; font-weight: 800; font-size: .8rem; margin-top: .8rem; }
.result-badge.pass { background: rgba(31, 169, 122, .12); color: var(--success); }
.result-badge.fail { background: rgba(225, 91, 100, .12); color: var(--danger); }
.answer-note { font-size: .8rem; padding: .6rem .8rem; border-radius: 10px; background: #F6FAFC; margin-top: .6rem; }

/* ---------------------------------------------------------
   Import wizard
   --------------------------------------------------------- */
.import-steps { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.6rem; }
.import-step {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .78rem; font-weight: 700; color: var(--muted);
    padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
}
.import-step.done { color: var(--teal-dark); border-color: rgba(32, 184, 176, .4); background: var(--teal-soft); }
.import-step.current { color: #04211F; background: var(--teal); border-color: var(--teal); }
.step-num { font-family: var(--font-en); }
.data-table { font-size: .78rem; }
.data-table th { background: #F5FAFC; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.data-table td { vertical-align: middle; }
.row-error { background: rgba(225, 91, 100, .06); }
.row-warning { background: rgba(244, 166, 58, .07); }
.pill { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .18rem .55rem; font-size: .7rem; font-weight: 800; }
.pill-new { background: var(--teal-soft); color: var(--teal-dark); }
.pill-update { background: #EAF1FF; color: #2F6BDB; }
.pill-skip { background: #F1F4F7; color: var(--muted); }
.pill-error { background: rgba(225, 91, 100, .12); color: var(--danger); }
.upload-zone {
    border: 2px dashed #CDDCE6;
    border-radius: 18px;
    padding: 2.2rem 1.5rem;
    text-align: center;
    background: #FAFDFE;
    transition: all .2s ease;
}
.upload-zone:hover { border-color: var(--teal); background: var(--teal-soft); }

/* ---------------------------------------------------------
   Search / misc
   --------------------------------------------------------- */
.search-hero { padding: 2.5rem 0; }
.search-form { display: flex; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem; box-shadow: var(--shadow-sm); }
.search-form input { border: 0; background: transparent; box-shadow: none !important; }
.search-form input:focus { background: transparent; }
.search-form .btn { border-radius: 999px; }
.result-card {
    display: flex; gap: 1rem; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem;
    margin-bottom: .7rem; color: var(--ink);
}
.result-card:hover { border-color: rgba(32, 184, 176, .4); color: var(--ink); }
.result-icon {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px;
    background: var(--teal-soft); color: var(--teal-dark);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.result-type { font-size: .68rem; font-weight: 800; color: var(--teal-dark); letter-spacing: .06em; text-transform: uppercase; }
.result-title { font-size: .95rem; font-weight: 800; margin: .1rem 0 .25rem; }
.result-summary { font-size: .82rem; color: var(--muted); margin: 0; }
.empty-state { text-align: center; padding: 3.5rem 1rem; }
.empty-state .empty-icon {
    width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 1.2rem;
    background: #fff; border: 1px solid var(--line); color: var(--teal-dark);
    display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
}
.empty-state h3 { font-size: 1.1rem; }
.empty-state p { color: var(--muted); font-size: .88rem; max-width: 420px; margin: 0 auto 1.2rem; }

.pagination { justify-content: center; margin-top: 2rem; }
.page-link { border-radius: 10px !important; margin: 0 .15rem; border-color: var(--line); color: var(--ink); font-weight: 700; }
.page-item.active .page-link { background: var(--teal); border-color: var(--teal); color: #04211F; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
    background: linear-gradient(160deg, #0A1422, #0E1E30);
    color: rgba(220, 230, 238, .72);
    padding: 3.5rem 0 1.4rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(32, 184, 176, .16);
}
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(220, 230, 238, .1); }
.footer-tagline { font-size: .82rem; margin: 1rem 0; max-width: 320px; color: rgba(220, 230, 238, .6); }
.footer-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .68rem; font-weight: 700; color: rgba(220, 230, 238, .6);
    border: 1px solid rgba(220, 230, 238, .14); border-radius: 999px; padding: .25rem .6rem;
}
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { color: rgba(220, 230, 238, .66); font-size: .82rem; }
.footer-col a:hover { color: var(--teal); }
.contact-row { display: flex; align-items: center; gap: .55rem; margin-bottom: .6rem; color: rgba(220, 230, 238, .75); font-size: .82rem; }
.contact-row:hover { color: var(--teal); }
.contact-icon {
    width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px;
    background: rgba(32, 184, 176, .12); color: var(--teal);
    display: inline-flex; align-items: center; justify-content: center; font-size: .85rem;
}
.footer-bottom { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; padding-top: 1.3rem; font-size: .74rem; color: rgba(220, 230, 238, .5); }
.developer-credit a { color: var(--teal); font-weight: 700; }
.credit-sep { opacity: .35; margin: 0 .3rem; }

/* ---------------------------------------------------------
   Misc
   --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.surface { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.text-muted-2 { color: var(--muted) !important; }
.divider-soft { height: 1px; background: var(--line); margin: 1.5rem 0; }
.sticky-top-offset { position: sticky; top: 92px; }
.table-responsive { border-radius: 12px; }
.form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.badge-status { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .18rem .6rem; font-size: .7rem; font-weight: 800; }
.badge-status.completed { background: rgba(31, 169, 122, .12); color: var(--success); }
.badge-status.in_progress { background: var(--teal-soft); color: var(--teal-dark); }
.badge-status.not_started { background: #F1F4F7; color: var(--muted); }
.badge-status.locked { background: #F1F4F7; color: #9AAAB8; }

@media (max-width: 1199.98px) {
    .site-nav .navbar-collapse { padding-top: .8rem; }
    .nav-links { gap: 0; }
    .site-nav .nav-link { padding: .55rem .4rem !important; }
    .nav-actions { padding: .8rem 0 .3rem; justify-content: flex-start; flex-wrap: wrap; }
    .hero { padding: 3.5rem 0; }
    .hero-visual { display: none; }
    .dashboard-shell { grid-template-columns: 1fr; }
    .dash-side { position: static; padding: .8rem; }
    .dash-nav { display: flex; flex-wrap: nowrap; gap: .35rem; overflow-x: auto; padding-bottom: .15rem; }
    .dash-nav li { flex: 0 0 auto; }
    .dash-nav a { white-space: nowrap; padding: .5rem .7rem; }
    .dash-nav .divider { display: none; }
    .lesson-layout { grid-template-columns: 1fr; }
    .sticky-top-offset { position: static; }
}
@media (max-width: 991.98px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .section { padding: 3.2rem 0; }
    .auth-aside { display: none; }
    .auth-form { padding: 1.8rem; }
}
@media (max-width: 575.98px) {
    .hero-stats { gap: 1.3rem; }
    .hero-stat strong { font-size: 1.35rem; }
    .footer-top { grid-template-columns: 1fr; }
    .lesson-main { border-radius: 14px; }
    .path-cover { height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
