/* ============================================================
   Online M-IT Academy — LMS (online.m-it-academy.uz)
   Uslub: futuristik · dark · glassmorphism · neon  (markaz sayti bilan bir xil)
   PERFORMANS QOIDALARI (buzmang):
   - Fon = STATIK gradient (animatsiyasiz)
   - Kartalar = blursiz "soxta shisha" (rgba + edge + sheen)
   - backdrop-filter FAQAT navbarda
   - Animatsiya faqat transform/opacity
   ============================================================ */

:root {
    /* Brend */
    --brand: #ECFF16;
    --brand-600: #D9EC00;
    --brand-700: #B9CC00;
    --brand-50: rgba(236, 255, 22, .12);
    --brand-ink: #0A0C16;
    --cyan: #27E3D2;
    --violet: #8B7BFF;

    --accent: #F5C451;     /* yulduzcha */
    --green: #34D399;
    --red: #FCA5A5;

    /* Neytral (dark) */
    --bg: #070912;
    --panel: #0A0C16;      /* to'q panel: footer, stats, ikonka chip */
    --ink: #EEF0FA;        /* asosiy matn */
    --body: #AEB4C9;
    --muted: #8F96B2;
    --line: rgba(255, 255, 255, .09);

    /* Yuzalar (blursiz shisha) */
    --card: rgba(255, 255, 255, .045);
    --card-strong: rgba(255, 255, 255, .075);
    --edge: rgba(255, 255, 255, .14);
    --hairline: 1px solid var(--edge);
    --ring: 0 0 0 1px rgba(255, 255, 255, .04);
    --sheen: inset 0 1px 0 rgba(255, 255, 255, .12);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, .65);
    --shadow-lg: 0 34px 70px -28px rgba(0, 0, 0, .8);

    --radius: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --container: 1240px;
    --font: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-head: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
    --ease: cubic-bezier(.16, 1, .3, 1);

    /* Eski shablonlar uchun moslik */
    --text-dark: var(--ink);
    --text-gray: var(--muted);
    --accent-green: var(--green);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(900px 600px at 88% -8%, rgba(236, 255, 22, .16), transparent 60%),
        radial-gradient(760px 520px at 5% 10%, rgba(139, 123, 255, .13), transparent 60%),
        radial-gradient(820px 560px at 50% 108%, rgba(39, 227, 210, .09), transparent 60%),
        var(--bg);
    background-attachment: scroll;
    color: var(--body);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 20%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 55% at 50% 20%, #000 25%, transparent 75%);
    opacity: .4;
}
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 700; transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); color: #fff; font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
::selection { background: var(--brand); color: var(--brand-ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--panel); }
::-webkit-scrollbar-thumb { background: #232739; border-radius: 10px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    * { scroll-behavior: auto !important; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 26px; }
.section { padding: 100px 0; }
.section-soft { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, .008)); border-top: 1px solid rgba(255,255,255,.035); border-bottom: 1px solid rgba(255,255,255,.035); }
main { flex: 1 0 auto; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--card); border: var(--hairline); color: var(--brand);
    box-shadow: var(--sheen);
    font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
    padding: 8px 15px; border-radius: var(--radius-pill); margin-bottom: 20px;
}
.eyebrow i { color: var(--brand); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-head p { margin-top: 16px; font-size: 1.05rem; color: var(--muted); }

/* ---------- Tugmalar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--f-head); font-size: .98rem; font-weight: 600; cursor: pointer;
    padding: 15px 28px; border-radius: var(--radius-pill); border: 1px solid transparent;
    transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 34px rgba(236, 255, 22, .26); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-dark { background: var(--panel); color: #fff; border-color: var(--edge); }
.btn-dark:hover { background: #131725; transform: translateY(-2px); }
.btn-ghost { background: var(--card); color: #fff; border-color: var(--edge); box-shadow: var(--sheen); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--brand-ink); }
.btn-white:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Navbar (yagona backdrop-filter) ---------- */
.navbar { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.navbar::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: min(100% - 52px, var(--container)); height: 1px; background: linear-gradient(90deg, transparent, rgba(236,255,22,.35), transparent); opacity: 0; transform: translateX(-50%); transition: opacity .3s; }
.navbar.is-scrolled::after { opacity: 1; }
.navbar.is-scrolled { background: rgba(7, 9, 18, .96); border-bottom-color: var(--line); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-head); font-weight: 700; color: #fff; font-size: 1.12rem; }
.brand-logo { width: 44px; height: 44px; border-radius: 13px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: .8rem; font-weight: 800; box-shadow: 0 0 28px rgba(236, 255, 22, .32); }
.brand small { display: block; font-family: var(--f-mono); font-size: .58rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 15px; border-radius: var(--radius-pill); font-weight: 500; font-size: .93rem; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: var(--card-strong); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-user-link { display: flex; align-items: center; gap: 10px; }
.nav-user .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--edge); }
.nav-user .u-name { font-weight: 600; font-size: .9rem; color: #fff; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: var(--hairline); background: var(--card); display: grid; place-items: center; color: var(--muted); cursor: pointer; transition: all .2s; }
.icon-btn:hover { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: var(--hairline); background: var(--card); color: #fff; font-size: 1.15rem; cursor: pointer; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 96px 0 118px; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; left: -260px; top: 60px; border: 1px solid rgba(236,255,22,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(236,255,22,.018), 0 0 0 140px rgba(236,255,22,.012); }
.hero .container { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.hero-title { max-width: 720px; font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.rotator { position: relative; display: inline-block; vertical-align: top; margin-top: .16em; font-size: .95em; max-width: 100%; }
.rot-sizer { visibility: hidden; white-space: nowrap; padding: .04em .26em; font-weight: 700; }
.rot-word { position: absolute; left: 0; top: 0; white-space: nowrap; background: var(--brand); color: var(--brand-ink); padding: .04em .26em; border-radius: 12px; box-decoration-break: clone; box-shadow: 0 0 30px rgba(236, 255, 22, .28); }
.rot-enter, .rot-leave { transition: transform .6s var(--ease), opacity .5s ease; }
.rot-enter-start { opacity: 0; transform: translateY(80%) rotate(-3deg); }
.rot-enter-end { opacity: 1; transform: translateY(0) rotate(0); }
.rot-leave-start { opacity: 1; transform: translateY(0) rotate(0); }
.rot-leave-end { opacity: 0; transform: translateY(-80%) rotate(3deg); }
.hero-lead { margin-top: 24px; font-size: 1.12rem; color: var(--muted); max-width: 520px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 32px; display: flex; align-items: center; gap: 14px; }
.trust-avatars { display: flex; padding-left: 8px; }
.trust-avatars img { width: 38px; height: 38px; margin-left: -8px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); background: var(--panel); }
.trust-stars { font-family: var(--f-head); font-size: .9rem; font-weight: 700; color: #fff; }
.trust-stars i { color: var(--accent); margin-right: 5px; }
.trust-stars span, .hero-trust p { color: var(--muted); }
.hero-trust p { font-size: .73rem; line-height: 1.35; }
.hero-stats { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; gap: 0; flex-wrap: wrap; }
.hero-stats > div { min-width: 128px; padding-right: 26px; margin-right: 26px; border-right: 1px solid var(--line); }
.hero-stats > div:last-child { border-right: 0; margin-right: 0; }
.hero-stats .num { font-family: var(--f-head); font-size: 1.85rem; font-weight: 700; color: #fff; }
.hero-stats .lbl { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.hero-visual { position: relative; padding: 14px; border-radius: 36px; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); border: 1px solid var(--edge); box-shadow: var(--shadow-lg), var(--sheen); }
.hero-visual > img { width: 100%; min-height: 540px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); filter: saturate(.85) contrast(1.05); }
.visual-glow { position: absolute; z-index: -1; inset: 12% -8% -6% 14%; background: radial-gradient(ellipse, rgba(236,255,22,.16), transparent 68%); border-radius: 50%; }
.visual-caption { position: absolute; left: 34px; right: 34px; bottom: 34px; padding: 18px 20px; border-radius: 16px; background: rgba(7,9,18,.88); border: 1px solid var(--edge); box-shadow: var(--sheen); }
.visual-caption span { display: block; color: var(--brand); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.visual-caption strong { display: block; margin-top: 3px; color: #fff; font-family: var(--f-head); font-size: .95rem; }
.float-card { position: absolute; background: rgba(10, 12, 22, .82); border: var(--hairline); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow), var(--sheen); display: flex; align-items: center; gap: 12px; animation: floaty 6s ease-in-out infinite; }
.float-card .fc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.float-card .fc-title { font-family: var(--f-head); font-weight: 600; font-size: .9rem; color: #fff; }
.float-card .fc-sub { font-size: .75rem; color: var(--muted); }
.float-card.top { top: 30px; left: -28px; }
.float-card.bottom { bottom: 128px; right: -24px; animation-delay: 2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Ekrandan pastdagi katta bloklar brauzer tomonidan kerak bo'lgandagina chiziladi. */
.hero ~ .section, .hero ~ .section-soft { content-visibility: auto; contain-intrinsic-size: auto 760px; }

/* ---------- Umumiy karta (blursiz shisha) ---------- */
.grid { display: grid; gap: 20px; }
.cat-card, .course-card, .feat-card, .mentor-card, .testi-card, .faq-item {
    background: var(--card); border: var(--hairline); box-shadow: var(--ring), var(--sheen);
}

/* Kategoriya */
.cat-grid { grid-template-columns: repeat(3, 1fr); }
.cat-card { display: flex; align-items: center; gap: 16px; border-radius: var(--radius); padding: 22px; transition: transform .3s var(--ease), border-color .3s, background .3s; }
.cat-card:hover { transform: translateY(-4px); border-color: rgba(236, 255, 22, .45); background: var(--card-strong); }
.cat-ic { width: 54px; height: 54px; border-radius: 15px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.cat-card h4 { font-size: 1.05rem; }
.cat-card span { font-size: .84rem; color: var(--muted); }

/* Kurs kartalari */
.course-grid { grid-template-columns: repeat(3, 1fr); }
.course-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.course-card:hover { transform: translateY(-6px); border-color: rgba(236, 255, 22, .45); }
.course-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.course-card:hover .course-thumb img { transform: scale(1.05); }
.course-badges { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .66rem; font-weight: 500; padding: 6px 11px; border-radius: var(--radius-pill); letter-spacing: .08em; text-transform: uppercase; }
.badge-cat { background: var(--brand); color: var(--brand-ink); }
.badge-level { background: rgba(7, 9, 18, .8); color: #fff; border: 1px solid var(--edge); }
.course-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.course-body h4 { font-size: 1.12rem; line-height: 1.35; }
.course-mentor { display: flex; align-items: center; gap: 10px; }
.course-mentor img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.course-mentor span { font-size: .84rem; color: var(--muted); }
.course-meta { display: flex; gap: 18px; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.course-meta i { color: var(--brand); margin-right: 5px; }
.course-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.rating { display: flex; align-items: center; gap: 5px; font-weight: 700; color: #fff; font-size: .9rem; }
.rating i { color: var(--accent); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .now { font-family: var(--f-head); font-size: 1.12rem; font-weight: 700; color: #fff; }
.price .old { font-size: .8rem; color: var(--muted); text-decoration: line-through; }

/* Afzalliklar */
.feat-grid { grid-template-columns: repeat(4, 1fr); }
.feat-card { border-radius: var(--radius-lg); padding: 30px 26px; transition: transform .3s var(--ease), border-color .3s, background .3s; }
.feat-card:hover { transform: translateY(-4px); border-color: rgba(236, 255, 22, .45); background: var(--card-strong); }
.feat-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem; background: var(--card-strong); color: var(--brand); border: var(--hairline); margin-bottom: 18px; }
.feat-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.feat-card p { font-size: .92rem; color: var(--muted); }

/* Statistika */
.stats-band { background: var(--panel); border: var(--hairline); border-radius: var(--radius-lg); padding: 54px 40px; box-shadow: var(--sheen); }
.stats-grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats-grid .num { font-family: var(--f-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--brand); }
.stats-grid .lbl { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* Mentorlar */
.mentor-grid { grid-template-columns: repeat(4, 1fr); }
.mentor-card { text-align: center; border-radius: var(--radius-lg); padding: 30px 22px; transition: transform .3s var(--ease), border-color .3s, background .3s; }
.mentor-card:hover { transform: translateY(-4px); border-color: rgba(236, 255, 22, .45); background: var(--card-strong); }
.mentor-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 1px solid var(--edge); }
.mentor-card h4 { font-size: 1.06rem; }
.mentor-card .spec { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--brand); margin-top: 5px; }
.mentor-social { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.mentor-social a { width: 34px; height: 34px; border-radius: 10px; background: var(--card-strong); display: grid; place-items: center; color: var(--muted); transition: all .2s; }
.mentor-social a:hover { background: var(--brand); color: var(--brand-ink); }

/* Sharhlar */
.testi-grid { grid-template-columns: repeat(3, 1fr); }
.testi-card { border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.testi-stars i { color: var(--brand); }
.testi-card p { font-size: .96rem; color: var(--ink); }
.testi-user { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-user img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testi-user .tu-name { font-family: var(--f-head); font-weight: 600; color: #fff; font-size: .94rem; }
.testi-user .tu-role { font-size: .8rem; color: var(--muted); }

/* FAQ */
.faq-wrap { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: var(--radius); overflow: hidden; transition: border-color .25s, background .25s; }
.faq-item.open { border-color: rgba(236, 255, 22, .5); background: var(--card-strong); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; font-family: var(--f-head); font-weight: 600; color: #fff; font-size: 1rem; }
.faq-q .chev { color: var(--brand); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease), padding .35s var(--ease); }
.faq-item.open .faq-a { padding: 0 24px 22px; max-height: 340px; }
.faq-a p { font-size: .94rem; color: var(--muted); }

/* CTA */
.cta-band { position: relative; overflow: hidden; background: var(--brand); border-radius: var(--radius-lg); padding: 66px 40px; text-align: center; box-shadow: var(--sheen); }
.cta-band h2 { color: var(--brand-ink); font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.cta-band p { color: rgba(10, 12, 22, .72); margin: 14px auto 30px; max-width: 560px; font-size: 1.02rem; font-weight: 500; }

/* Footer */
.footer { background: var(--panel); border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 38px; }
.footer p { font-size: .9rem; color: var(--muted); margin-top: 14px; max-width: 300px; }
.footer h5 { font-family: var(--f-head); color: #fff; font-size: .98rem; margin-bottom: 18px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--brand); }
.footer-contact li { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; font-size: .9rem; color: var(--muted); }
.footer-contact i { color: var(--brand); width: 18px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 11px; background: var(--card-strong); display: grid; place-items: center; color: #fff; transition: all .2s; }
.footer-social a:hover { background: var(--brand); color: var(--brand-ink); transform: translateY(-3px); }
.footer-bottom { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: var(--muted); }

/* ============================================================
   Auth
   ============================================================ */
.auth-shell { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 940px; display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg), var(--sheen); overflow: hidden; }
.auth-aside { position: relative; overflow: hidden; padding: 46px 40px; background: var(--panel); color: #fff; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.auth-aside::before { content: ""; position: absolute; top: -130px; right: -130px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(236, 255, 22, .18), transparent 65%); }
.auth-aside .brand { margin-bottom: 34px; position: relative; z-index: 1; }
.aside-title { font-family: var(--f-head); font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1.25; position: relative; z-index: 1; }
.aside-sub { color: var(--muted); margin-top: 14px; font-size: .94rem; position: relative; z-index: 1; }
.aside-benefits { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 40px; position: relative; z-index: 1; }
.aside-benefit { display: flex; align-items: center; gap: 13px; font-size: .9rem; color: var(--ink); }
.aside-benefit i { width: 32px; height: 32px; border-radius: 10px; background: rgba(236, 255, 22, .14); color: var(--brand); display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; }
.auth-body { padding: 46px 42px; }
.auth-head { margin-bottom: 26px; }
.auth-head h3 { font-size: 1.45rem; }
.auth-head p { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; margin-bottom: 8px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field-group { position: relative; }
.field-group > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; }
.field-group .premium-input { padding-left: 44px; }
.otp-input { text-align: center; font-size: 1.4rem; font-weight: 700; letter-spacing: 10px; }
.auth-alt { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.auth-alt a { color: var(--brand); font-weight: 600; }
.form-msg { margin: 4px 0 14px; font-size: .85rem; }
.form-msg .err { color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.form-msg .ok { color: var(--green); font-weight: 600; }
.auth-success { text-align: center; padding: 14px 0; }
.auth-success .ok-ic { width: 66px; height: 66px; border-radius: 50%; background: rgba(52, 211, 153, .14); color: var(--green); display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 18px; }
.auth-success h3 { font-size: 1.3rem; }
.premium-input { width: 100%; background: var(--card); border: var(--hairline); outline: none; padding: 15px 18px; border-radius: 14px; font-family: inherit; font-size: .96rem; color: #fff; transition: border-color .2s; }
.premium-input:focus { border-color: var(--brand); }
.premium-input::placeholder { color: var(--muted); }
.btn-premium-main { background: var(--brand); color: var(--brand-ink); border: none; outline: none; padding: 16px; border-radius: 14px; font-family: var(--f-head); font-size: 1rem; font-weight: 600; cursor: pointer; width: 100%; box-shadow: 0 0 34px rgba(236, 255, 22, .26); transition: all .2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-premium-main:hover { background: var(--brand-600); transform: translateY(-2px); }
.text-muted-custom { color: var(--muted); font-size: .88rem; }
.text-title-custom { color: #fff; font-family: var(--f-head); font-weight: 700; }
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }

/* ============================================================
   Katalog
   ============================================================ */
.catalog-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { width: 100%; padding: 13px 16px 13px 42px; border-radius: var(--radius-pill); border: var(--hairline); background: var(--card); color: #fff; font-family: inherit; font-size: .94rem; outline: none; }
.search-box input:focus { border-color: var(--brand); }
.catalog-bar select { padding: 13px 16px; border-radius: var(--radius-pill); border: var(--hairline); background: var(--panel); color: #fff; font-family: inherit; font-weight: 500; font-size: .9rem; cursor: pointer; outline: none; }
.cat-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--radius-pill); background: var(--card); border: var(--hairline); font-size: .88rem; color: var(--muted); transition: all .2s; }
.cat-pill span { font-family: var(--f-mono); font-size: .7rem; background: rgba(255, 255, 255, .07); padding: 1px 8px; border-radius: var(--radius-pill); }
.cat-pill:hover { color: #fff; border-color: var(--brand); }
.cat-pill.active { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.cat-pill.active span { background: rgba(10, 12, 22, .16); color: var(--brand-ink); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state i { font-size: 2.6rem; margin-bottom: 14px; }
.empty-state p { margin-bottom: 18px; font-size: 1.02rem; }

/* ============================================================
   Kurs detali
   ============================================================ */
.crumbs { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs i { font-size: .6rem; }
.course-layout { display: grid; grid-template-columns: 1fr 370px; gap: 44px; align-items: start; }
.course-main { min-width: 0; }
.course-h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-top: 6px; }
.course-sub { font-size: 1.05rem; color: var(--muted); margin-top: 14px; }
.course-metaline { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 22px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; color: var(--muted); }
.course-metaline i { color: var(--brand); margin-right: 5px; }
.course-metaline .rating i { color: var(--accent); }
.course-mentorline { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.course-mentorline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--edge); }
.course-mentorline small { color: var(--muted); font-size: .72rem; display: block; }
.course-mentorline strong { color: #fff; }
.course-cover { position: relative; margin-top: 30px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; border: 1px solid var(--edge); }
.course-cover img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 0 40px rgba(236, 255, 22, .4); transition: transform .25s var(--ease); }
.play-btn:hover { transform: scale(1.08); }
.detail-block { margin-top: 44px; }
.detail-block h3 { font-size: 1.35rem; margin-bottom: 20px; }
.prose { color: var(--muted); font-size: .98rem; line-height: 1.75; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; }
.outcome { display: flex; gap: 10px; font-size: .94rem; color: var(--muted); }
.outcome i { color: var(--brand); margin-top: 3px; }
.program { display: flex; flex-direction: column; gap: 12px; }
.module { border: var(--hairline); border-radius: var(--radius); background: var(--card); box-shadow: var(--ring), var(--sheen); overflow: hidden; }
.module.open { border-color: rgba(236, 255, 22, .45); background: var(--card-strong); }
.module-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; }
.module-title { display: flex; align-items: center; gap: 14px; font-family: var(--f-head); font-weight: 600; color: #fff; }
.module-idx { width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: .8rem; font-weight: 800; flex-shrink: 0; }
.module-right { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.module-right .chev { color: var(--brand); transition: transform .3s var(--ease); }
.module.open .module-right .chev { transform: rotate(180deg); }
.module-body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.module.open .module-body { max-height: 1200px; }
.lesson { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 22px 13px 24px; border-top: 1px solid var(--line); font-size: .9rem; }
.lesson-name { display: flex; align-items: center; gap: 11px; color: var(--muted); }
.lesson-name i { color: var(--brand); }
.lesson.muted { color: var(--muted); font-style: italic; }
.lesson-tag i { color: var(--muted); }
.free-badge { background: var(--brand); color: var(--brand-ink); font-family: var(--f-mono); font-size: .62rem; font-weight: 500; padding: 3px 9px; border-radius: var(--radius-pill); text-transform: uppercase; }
.lesson-link { transition: background .2s; }
.lesson-link:hover { background: rgba(255, 255, 255, .04); }
.lesson-link:hover .lesson-tag i { color: var(--brand); }
.review-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.review-head strong { color: #fff; }
.rev-stars { color: var(--accent); font-weight: 600; font-size: .84rem; }
.course-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.price-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--card); border: var(--hairline); box-shadow: var(--shadow-lg), var(--sheen); }
.pc-cover { aspect-ratio: 16 / 10; }
.pc-cover img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { padding: 24px; }
.pc-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pc-price .now { font-family: var(--f-head); font-size: 1.6rem; font-weight: 700; color: #fff; }
.pc-price .old { font-size: .95rem; color: var(--muted); text-decoration: line-through; }
.pc-price .off { font-family: var(--f-mono); font-size: .68rem; background: var(--brand); color: var(--brand-ink); padding: 3px 9px; border-radius: var(--radius-pill); }
.pc-note { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 12px; }
.pc-note a { color: var(--brand); font-weight: 600; }
.includes { margin-top: 22px; display: flex; flex-direction: column; gap: 13px; }
.includes li { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--muted); }
.includes i { color: var(--brand); width: 18px; text-align: center; }
.mentor-side { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius-lg); background: var(--card); border: var(--hairline); box-shadow: var(--ring), var(--sheen); }
.mentor-side img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 1px solid var(--edge); }
.mentor-side small { color: var(--muted); font-size: .7rem; }
.mentor-side h4 { font-size: 1rem; }
.mentor-side .spec { font-family: var(--f-mono); font-size: .72rem; color: var(--brand); }

/* ============================================================
   Kabinet
   ============================================================ */
.cab-layout { display: grid; grid-template-columns: 264px 1fr; gap: 32px; align-items: start; }
.cab-side { position: sticky; top: 96px; border-radius: var(--radius-lg); background: var(--card); border: var(--hairline); box-shadow: var(--ring), var(--sheen); padding: 22px; }
.cab-user { display: flex; align-items: center; gap: 13px; padding-bottom: 20px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.cab-user img, .cab-ava-fallback { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cab-ava-fallback { background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.cab-name { font-family: var(--f-head); font-weight: 600; color: #fff; font-size: .94rem; }
.cab-phone { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.cab-nav { display: flex; flex-direction: column; gap: 4px; }
.cab-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 500; font-size: .92rem; color: var(--muted); transition: all .2s; }
.cab-nav a i { width: 18px; text-align: center; color: var(--muted); }
.cab-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.cab-nav a.active { background: var(--brand); color: var(--brand-ink); }
.cab-nav a.active i { color: var(--brand-ink); }
.cab-nav .cab-logout { margin-top: 8px; color: var(--red); }
.cab-nav .cab-logout i { color: var(--red); }
.cab-nav .cab-logout:hover { background: rgba(252, 165, 165, .1); color: var(--red); }
.cab-main { min-width: 0; }
.cab-head { margin-bottom: 26px; }
.cab-head h2 { font-size: 1.6rem; }
.cab-head p { color: var(--muted); margin-top: 6px; }
.cab-messages { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.cab-alert { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; font-size: .9rem; font-weight: 500; border: 1px solid transparent; }
.cab-alert.is-ok { background: rgba(52, 211, 153, .1); color: var(--green); border-color: rgba(52, 211, 153, .25); }
.cab-alert.is-error { background: rgba(252, 165, 165, .08); color: var(--red); border-color: rgba(252, 165, 165, .25); }
.enrolled-list { display: flex; flex-direction: column; gap: 18px; }
.enrolled-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px; border-radius: var(--radius-lg); background: var(--card); border: var(--hairline); box-shadow: var(--ring), var(--sheen); }
.ec-thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.ec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ec-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ec-cat { align-self: flex-start; }
.ec-body h4 { font-size: 1.1rem; }
.ec-mentor { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.ec-mentor i { color: var(--brand); margin-right: 4px; }
.progress { height: 8px; background: rgba(255, 255, 255, .08); border-radius: var(--radius-pill); overflow: hidden; margin-top: 4px; }
.progress-bar { height: 100%; background: var(--brand); border-radius: var(--radius-pill); transition: width .5s var(--ease); }
.ec-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.ec-stat { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.ec-stat strong { color: #fff; }
.cab-empty { text-align: center; padding: 60px 20px; border-radius: var(--radius-lg); background: var(--card); border: var(--hairline); box-shadow: var(--ring); color: var(--muted); }
.cab-empty i { font-size: 2.6rem; margin-bottom: 14px; }
.cab-empty p { margin-bottom: 18px; font-size: 1.02rem; }
.cab-panel { padding: 30px; border-radius: var(--radius-lg); background: var(--card); border: var(--hairline); box-shadow: var(--ring), var(--sheen); margin-bottom: 22px; }
.cab-panel .btn { margin-top: 6px; }
.panel-title { font-size: 1.1rem; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.avatar-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.avatar-lg { width: 82px; height: 82px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand); flex-shrink: 0; }
.avatar-lg.fallback { background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 2rem; }
.file-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-pill); background: var(--card-strong); border: var(--hairline); font-weight: 600; font-size: .86rem; color: #fff; cursor: pointer; transition: all .2s; }
.file-btn:hover { border-color: var(--brand); color: var(--brand); }
.device-list { display: flex; flex-direction: column; gap: 14px; }
.device-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--card); border: var(--hairline); box-shadow: var(--ring), var(--sheen); }
.device-card.is-current { border-color: rgba(236, 255, 22, .5); }
.dev-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--card-strong); color: var(--brand); display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.dev-info { flex: 1; min-width: 0; }
.dev-name { font-family: var(--f-head); font-weight: 600; color: #fff; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dev-badge { font-family: var(--f-mono); font-size: .62rem; text-transform: uppercase; background: var(--brand); color: var(--brand-ink); padding: 3px 9px; border-radius: var(--radius-pill); }
.dev-meta { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); margin-top: 3px; }
.dev-kill { padding: 9px 18px; font-size: .84rem; color: var(--red); border-color: rgba(252, 165, 165, .3); background: transparent; }
.dev-kill:hover { background: var(--red); border-color: var(--red); color: var(--brand-ink); }

/* ============================================================
   O'quv sahifasi + Quiz
   ============================================================ */
.learn-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; margin-top: 20px; }
.learn-main { min-width: 0; }
.lesson-head { margin-bottom: 22px; }
.lesson-head .badge-cat { display: inline-block; margin-bottom: 12px; }
.lesson-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.video-box { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--edge); }
#lesson-video video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.video-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.video-placeholder i { width: 74px; height: 74px; border-radius: 50%; background: rgba(236, 255, 22, .12); color: var(--brand); display: grid; place-items: center; font-size: 1.4rem; }
.video-placeholder span { font-size: .88rem; }
.watch-status { margin-top: 16px; }
.watch-track { height: 8px; background: rgba(255, 255, 255, .08); border-radius: var(--radius-pill); overflow: hidden; }
.watch-bar { height: 100%; width: 0; background: var(--brand); border-radius: var(--radius-pill); transition: width .4s var(--ease); }
.watch-info { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); flex-wrap: wrap; }
.watch-info #watch-label { color: var(--brand); }
.lesson-content { margin-top: 8px; }
.lesson-status { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.lesson-status.done { background: rgba(52, 211, 153, .1); color: var(--green); border: 1px solid rgba(52, 211, 153, .25); }
.complete-form, .next-wrap { margin-top: 24px; }
.learn-side { position: sticky; top: 96px; border-radius: var(--radius-lg); background: var(--card); border: var(--hairline); box-shadow: var(--ring), var(--sheen); padding: 22px; max-height: calc(100vh - 120px); overflow-y: auto; }
.curr-title { font-size: 1rem; margin-bottom: 16px; }
.curriculum-nav { display: flex; flex-direction: column; gap: 16px; }
.curr-mtitle { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.curr-lesson { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; font-size: .86rem; color: var(--muted); transition: all .2s; }
.curr-lesson > span { flex: 1; min-width: 0; }
.curr-lesson i { color: var(--muted); font-size: .88rem; flex-shrink: 0; }
.curr-lesson:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.curr-lesson.current { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.curr-lesson.current i { color: var(--brand-ink); }
.curr-lesson.done i { color: var(--green); }
.curr-lesson.locked { color: var(--muted); opacity: .55; cursor: not-allowed; }
.curr-lesson .free-badge { font-size: .56rem; padding: 2px 7px; }
.quiz-block { margin-top: 28px; border-radius: var(--radius-lg); background: var(--card); border: var(--hairline); box-shadow: var(--ring), var(--sheen); padding: 28px; }
.quiz-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.quiz-head i { width: 40px; height: 40px; border-radius: 12px; background: var(--card-strong); border: var(--hairline); color: var(--brand); display: grid; place-items: center; }
.quiz-head h3 { font-size: 1.2rem; }
.quiz-meta { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); margin-bottom: 22px; }
.quiz-meta strong { color: var(--brand); }
.quiz-state { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 14px; font-weight: 500; border: 1px solid transparent; }
.quiz-state.ok { background: rgba(52, 211, 153, .1); color: var(--green); border-color: rgba(52, 211, 153, .25); }
.quiz-state.err { background: rgba(252, 165, 165, .08); color: var(--red); border-color: rgba(252, 165, 165, .25); }
.quiz-q { padding: 20px 0; border-top: 1px solid var(--line); }
.quiz-q:first-of-type { border-top: none; }
.quiz-q-text { display: flex; gap: 12px; font-family: var(--f-head); font-weight: 600; color: #fff; margin-bottom: 14px; }
.quiz-q-text em { color: var(--muted); font-weight: 400; font-size: .84rem; }
.quiz-q-num { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: .78rem; font-weight: 800; flex-shrink: 0; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; padding-left: 38px; }
.quiz-opt { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; border: var(--hairline); background: var(--card); cursor: pointer; transition: all .2s; }
.quiz-opt:hover { border-color: var(--brand); }
.quiz-opt input { width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.quiz-opt span { font-size: .92rem; color: var(--body); }
.quiz-form > .btn { margin-top: 22px; }
.quiz-shell { position: relative; }
.quiz-shell.locked #quiz { opacity: .4; pointer-events: none; user-select: none; }
.quiz-gate { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; border-radius: var(--radius-lg); background: rgba(7, 9, 18, .72); font-family: var(--f-head); font-weight: 600; color: #fff; }
.quiz-gate i { color: var(--brand); }

/* ============================================================
   Sertifikat
   ============================================================ */
.cert-list { display: flex; flex-direction: column; gap: 14px; }
.cert-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--card); border: var(--hairline); box-shadow: var(--ring), var(--sheen); flex-wrap: wrap; }
.cert-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.cert-info { flex: 1; min-width: 180px; }
.cert-info h4 { font-size: 1.02rem; }
.cert-meta { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); margin-top: 3px; }
.cert-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cert-actions .btn { padding: 10px 18px; font-size: .86rem; }
.verify-card { text-align: center; padding: 48px 36px; border-radius: var(--radius-lg); background: var(--card); border: var(--hairline); box-shadow: var(--shadow-lg), var(--sheen); }
.verify-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; margin: 0 auto 20px; }
.verify-ic.ok { background: rgba(52, 211, 153, .12); color: var(--green); }
.verify-ic.bad { background: rgba(252, 165, 165, .1); color: var(--red); }
.verify-card h2 { font-size: 1.55rem; }
.verify-sub { color: var(--muted); margin-top: 8px; }
.verify-rows { text-align: left; margin: 28px 0; display: flex; flex-direction: column; border: var(--hairline); border-radius: var(--radius); overflow: hidden; }
.verify-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.verify-rows > div:last-child { border-bottom: none; }
.verify-rows span { color: var(--muted); font-size: .88rem; }
.verify-rows strong { color: #fff; text-align: right; word-break: break-all; font-family: var(--f-mono); font-size: .84rem; }

/* ============================================================
   To'lov (checkout)
   ============================================================ */
.checkout-card { border-radius: var(--radius-lg); background: var(--card); border: var(--hairline); box-shadow: var(--shadow-lg), var(--sheen); padding: 32px; margin-top: 8px; }
.checkout-title { font-size: 1.5rem; margin-bottom: 22px; }
.checkout-course { display: flex; gap: 14px; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.checkout-course img { width: 84px; height: 58px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.checkout-course h4 { font-size: 1.02rem; }
.checkout-course span { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.promo-form { display: flex; gap: 10px; margin-bottom: 10px; }
.promo-form .premium-input { flex: 1; }
.promo-msg { font-size: .84rem; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.promo-msg.ok { color: var(--green); }
.promo-msg.err { color: var(--red); }
.checkout-sum { border: var(--hairline); border-radius: var(--radius); overflow: hidden; margin: 18px 0 24px; }
.checkout-sum > div { display: flex; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.checkout-sum > div:last-child { border-bottom: none; }
.checkout-sum .total { background: rgba(236, 255, 22, .07); }
.checkout-sum .total strong { color: var(--brand); font-family: var(--f-head); font-size: 1.12rem; }
.pay-methods { display: flex; flex-direction: column; gap: 12px; }
.pay-label { font-family: var(--f-head); font-weight: 600; color: #fff; margin-bottom: 4px; }
.pay-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: 14px; font-family: var(--f-head); font-weight: 600; color: #fff; transition: transform .2s var(--ease); }
.pay-btn span { font-weight: 700; }
.pay-btn:hover { transform: translateY(-2px); }
.pay-btn.payme { background: #33d1c9; color: #0A0C16; }
.pay-btn.click { background: #0d6efd; }
.pay-note { margin-top: 18px; font-size: .8rem; color: var(--muted); display: flex; gap: 8px; }
.pay-note code { font-family: var(--f-mono); background: rgba(255, 255, 255, .07); padding: 1px 6px; border-radius: 6px; }

/* ---------- Yordamchi ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.info-line { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.info-line .feat-ic { width: 46px; height: 46px; font-size: 1.05rem; margin: 0; flex-shrink: 0; }
.info-line .l { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.info-line .v { font-weight: 600; color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual { max-width: 680px; }
    .hero-visual > img { min-height: 440px; }
    .cat-grid, .feat-grid, .mentor-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .course-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .course-layout { grid-template-columns: 1fr; }
    .course-side { position: static; }
}
@media (max-width: 900px) {
    .learn-layout { grid-template-columns: 1fr; }
    .learn-side { position: static; max-height: none; }
}
@media (max-width: 860px) {
    .cab-layout { grid-template-columns: 1fr; }
    .cab-side { position: static; }
    .cab-nav { flex-direction: row; flex-wrap: wrap; }
    .cab-nav a { flex: 1; justify-content: center; }
    .cab-nav .cab-logout { margin-top: 0; }
}
@media (max-width: 820px) {
    .auth-card { grid-template-columns: 1fr; max-width: 440px; }
    .auth-aside { display: none; }
    .auth-body { padding: 40px 30px; }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .nav-links { display: none; }
    .nav-actions .btn-ghost { display: none; }
    .nav-toggle { display: grid; place-items: center; }
    .mobile-menu { display: block; position: absolute; left: 16px; right: 16px; top: 84px; background: rgba(10, 12, 22, .97); border: var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 16px; }
    .mobile-menu a { display: block; padding: 13px 16px; border-radius: 12px; font-weight: 500; color: var(--muted); }
    .mobile-menu a:hover { background: var(--brand); color: var(--brand-ink); }
    .mobile-menu .btn { width: 100%; margin-top: 6px; }
    .mobile-menu hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }
    .float-card { animation: none; }
    body::before { opacity: .22; background-size: 84px 84px; }
}
@media (max-width: 620px) {
    .container { padding: 0 18px; }
    .cat-grid, .course-grid, .feat-grid, .mentor-grid, .testi-grid, .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 62px 0 82px; }
    .hero-title { font-size: clamp(2.45rem, 12vw, 3.5rem); }
    .hero-stats { gap: 22px 0; }
    .hero-stats > div { width: 50%; min-width: 0; margin-right: 0; padding-right: 16px; border-right: 0; }
    .hero-visual { padding: 8px; border-radius: 26px; }
    .hero-visual > img { min-height: 400px; border-radius: 19px; }
    .visual-caption { left: 20px; right: 20px; bottom: 20px; }
    .stats-band, .cta-band { padding: 44px 24px; }
    .float-card.top { left: 0; }
    .float-card.bottom { right: 0; bottom: 120px; }
    .outcomes { grid-template-columns: 1fr; }
    .catalog-bar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 430px) {
    .brand > span:last-child { font-size: .94rem; }
    .brand small { font-size: .5rem; }
    .nav-actions > .btn-primary { display: none; }
    .hero-cta .btn { width: 100%; }
    .hero-trust { align-items: flex-start; }
    .float-card { padding: 10px 12px; }
    .float-card.top { top: 20px; }
    .float-card.bottom { display: none; }
}

/* Product flows: pagination, moderation, password reset and mentor workspace */
.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 38px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .78rem; }
.pagination a:hover { border-color: rgba(236, 255, 22, .4); color: #fff; }
.pagination .active { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.pagination .disabled { opacity: .38; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-label-row a { color: var(--brand); font-size: .72rem; font-weight: 700; }
.auth-card-compact { max-width: 500px; }
.auth-step-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 16px; border: 1px solid rgba(236, 255, 22, .25); border-radius: 14px; background: rgba(236, 255, 22, .08); color: var(--brand); }
.pending-badge { display: inline-flex; margin-left: 7px; padding: 3px 7px; border: 1px solid rgba(255, 190, 73, .28); border-radius: 999px; background: rgba(255, 190, 73, .09); color: #ffca68; font-size: .58rem; font-weight: 700; vertical-align: middle; }
.comment-report-form { margin-top: 10px; }
.comment-report-form button { padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .66rem; cursor: pointer; }
.comment-report-form button:hover { color: #ff7f7f; }
.lesson-signin-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); color: var(--muted); font-size: .78rem; }
.lesson-signin-note a { color: var(--brand); font-weight: 700; }

.mentor-workspace { min-height: 70vh; padding-top: 56px; background: radial-gradient(circle at 80% 0, rgba(236, 255, 22, .055), transparent 28%); }
.mentor-workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.mentor-workspace-head h1 { margin: 7px 0 8px; font-size: clamp(1.9rem, 4vw, 3rem); }
.mentor-workspace-head p { color: var(--muted); }
.mentor-head-actions, .mentor-form-actions { display: flex; align-items: center; gap: 10px; }
.mentor-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mentor-course-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .025); transition: transform .2s var(--ease), border-color .2s var(--ease); }
.mentor-course-card:hover { transform: translateY(-3px); border-color: rgba(236, 255, 22, .28); }
.mentor-course-cover { aspect-ratio: 16 / 8.5; overflow: hidden; background: #11151f; }
.mentor-course-cover img { width: 100%; height: 100%; object-fit: cover; }
.mentor-course-body { padding: 20px; }
.mentor-course-body h2 { min-height: 2.7em; margin: 12px 0; font-size: 1.08rem; line-height: 1.35; }
.status-pill { display: inline-flex; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .62rem; font-weight: 700; }
.status-pill.is-live { border-color: rgba(95, 226, 151, .25); background: rgba(95, 226, 151, .08); color: #71e6a4; }
.mentor-course-stats { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-bottom: 18px; color: var(--muted); font-size: .7rem; }
.mentor-manage-wrap, .mentor-form-wrap { max-width: 1080px; }
.mentor-module-list { display: grid; gap: 16px; margin-bottom: 20px; }
.mentor-module-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .02); }
.mentor-module-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mentor-module-head small { color: var(--brand); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mentor-module-head h2 { margin-top: 4px; font-size: 1rem; }
.mentor-lesson-list { padding: 6px 20px; }
.mentor-lesson-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mentor-lesson-row:last-child { border-bottom: 0; }
.mentor-lesson-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: rgba(236, 255, 22, .08); color: var(--brand); }
.mentor-lesson-row strong, .mentor-lesson-row small { display: block; }
.mentor-lesson-row strong { font-size: .82rem; }
.mentor-lesson-row small, .mentor-lesson-row > span { margin-top: 3px; color: var(--muted); font-size: .66rem; }
.mentor-row-actions { display: flex; gap: 6px; }
.mentor-row-actions a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.mentor-row-actions a:hover { border-color: var(--brand); color: var(--brand); }
.mentor-empty-row { padding: 18px 0; color: var(--muted); font-size: .76rem; }
.mentor-form-card { max-width: 760px; margin: 25px auto 0; padding: clamp(24px, 5vw, 44px); border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .025); }
.mentor-form-head { margin-bottom: 28px; }
.mentor-form-head h1 { margin-top: 7px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.mentor-form-card textarea { min-height: 130px; resize: vertical; }
.mentor-form-card select { appearance: auto; }
.mentor-form-card input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }
.mentor-form-actions { justify-content: flex-end; margin-top: 26px; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: .66rem; }
.field-error { display: block; margin-top: 6px; color: #ff8585; font-size: .68rem; }

@media (max-width: 900px) {
    .mentor-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .mentor-workspace-head, .mentor-module-head { align-items: stretch; flex-direction: column; }
    .mentor-head-actions { align-items: stretch; flex-direction: column; }
    .mentor-course-grid { grid-template-columns: 1fr; }
    .mentor-lesson-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
    .mentor-lesson-row > span:nth-child(3) { display: none; }
    .mentor-row-actions { grid-column: 2 / -1; }
    .lesson-signin-note { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
    .enrolled-card { grid-template-columns: 1fr; }
}

/* ============================================================
   2026 UI refresh — minimal, modern glass
   ============================================================ */
:root {
    --brand: #ECFF16;
    --brand-600: #D9EC00;
    --brand-700: #B9CC00;
    --brand-50: rgba(236, 255, 22, .12);
    --brand-ink: #0A0C16;
    --cyan: #27E3D2;
    --violet: #8B7BFF;
    --accent: #F5C451;
    --green: #34D399;
    --red: #FCA5A5;
    --bg: #070912;
    --panel: #0A0C16;
    --ink: #EEF0FA;
    --body: #AEB4C9;
    --muted: #8F96B2;
    --line: rgba(255, 255, 255, .09);
    --card: rgba(255, 255, 255, .045);
    --card-strong: rgba(255, 255, 255, .075);
    --edge: rgba(255, 255, 255, .12);
    --shadow: 0 18px 50px -30px rgba(0, 0, 0, .72);
    --shadow-lg: 0 34px 90px -45px rgba(0, 0, 0, .82);
    --radius: 16px;
    --radius-lg: 24px;
    --container: 1180px;
}

body {
    background:
        radial-gradient(920px 580px at 88% -10%, rgba(236, 255, 22, .15), transparent 64%),
        radial-gradient(720px 500px at -6% 24%, rgba(139, 123, 255, .12), transparent 66%),
        radial-gradient(760px 500px at 55% 105%, rgba(39, 227, 210, .07), transparent 68%),
        var(--bg);
}

body::before {
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: .7;
}

:focus-visible {
    outline: 3px solid rgba(236, 255, 22, .75);
    outline-offset: 3px;
}

.container { padding-inline: 24px; }
.section { padding: 88px 0; }
.section-soft {
    background: rgba(255, 255, 255, .014);
    border-color: rgba(255, 255, 255, .045);
}

.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; }
.section-head p { max-width: 600px; margin-inline: auto; line-height: 1.7; }
.section-head.left p { margin-inline: 0; }
.section-head-row {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
}
.section-head-row > div { max-width: 690px; }
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--brand);
    font-family: var(--f-head);
    font-weight: 600;
    white-space: nowrap;
}
.text-link:hover i { transform: translateX(4px); }
.text-link i { transition: transform .2s var(--ease); }

.eyebrow {
    padding: 7px 12px;
    margin-bottom: 16px;
    border-color: rgba(236, 255, 22, .22);
    background: rgba(236, 255, 22, .07);
    box-shadow: none;
    letter-spacing: .14em;
}

.btn {
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 13px;
    box-shadow: none;
}
.btn-lg { min-height: 54px; padding: 14px 25px; }
.btn-primary { background: var(--brand); box-shadow: 0 12px 36px -18px rgba(236,255,22,.85); }
.btn-primary:hover { background: #f1ff67; }
.btn-ghost, .btn-dark {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .11);
    box-shadow: none;
}

.navbar {
    background: rgba(7, 9, 18, .76);
    border-bottom: 1px solid rgba(255,255,255,.055);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.navbar.is-scrolled { background: rgba(7, 9, 18, .92); }
.navbar::after { display: none; }
.navbar .container { height: 72px; }
.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: none;
}
.brand small { letter-spacing: .11em; }
.nav-links a { padding: 9px 13px; }
.nav-links a:hover { background: rgba(255,255,255,.055); }

.hero { padding: 74px 0 96px; }
.hero::before { display: none; }
.hero .container {
    display: grid;
    max-width: var(--container);
    grid-template-columns: 1.04fr .96fr;
    gap: clamp(38px, 6vw, 76px);
    text-align: left;
}
.hero-text { display: block; }
.hero-title {
    max-width: 720px;
    font-size: clamp(2.65rem, 5.3vw, 4.35rem);
    line-height: 1.01;
    letter-spacing: -.058em;
}
.hero-highlight {
    display: inline;
    color: var(--brand);
}
.rot-word {
    background: linear-gradient(115deg, var(--brand), #f5ff85);
    border-radius: 10px;
    box-shadow: none;
}
.hero-lead { max-width: 520px; font-size: 1.08rem; line-height: 1.75; }
.hero-cta { margin-top: 28px; }
.hero-trust { margin-top: 28px; }
.hero-stats { margin-top: 30px; padding-top: 24px; }
.hero-stats .num { font-size: 1.55rem; }
.hero-stats .lbl { letter-spacing: .1em; }
.hero-visual {
    padding: 9px;
    border-radius: 28px;
    background: rgba(255,255,255,.055);
    border-color: rgba(255,255,255,.14);
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.hero-visual > img {
    min-height: 500px;
    border-radius: 20px;
    filter: saturate(.78) contrast(1.02);
}
.visual-glow { opacity: .65; }
.visual-caption {
    left: 24px;
    right: 24px;
    bottom: 24px;
    padding: 15px 17px;
    background: rgba(7,9,18,.8);
    border-color: rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.hero-float-card {
    position: absolute;
    top: 30px;
    left: -34px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
    padding: 14px 16px;
    border: 1px solid var(--edge);
    border-radius: 16px;
    background: rgba(10,12,22,.86);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.hero-float-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--brand);
    color: var(--brand-ink);
}
.hero-float-card strong, .hero-float-card small { display: block; }
.hero-float-card strong { color: #fff; font-family: var(--f-head); font-size: .88rem; }
.hero-float-card small { color: var(--muted); font-size: .7rem; margin-top: 2px; }

.proof-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.proof-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 128px;
    padding: 24px;
    text-align: center;
    border-right: 1px solid var(--line);
}
.proof-item:last-child { border-right: 0; }
.proof-item strong { color: #fff; font-family: var(--f-head); font-size: clamp(1.7rem,3vw,2.35rem); }
.proof-item span { color: var(--muted); font-size: .82rem; margin-top: 5px; }

.grid { gap: 18px; }
.cat-card, .course-card, .feat-card, .mentor-card, .testi-card, .faq-item,
.detail-block, .price-card, .mentor-side, .learn-side, .quiz-block,
.cab-side, .cab-panel, .enrolled-card, .device-card, .checkout-card, .verify-card {
    background: rgba(255,255,255,.038);
    border-color: rgba(255,255,255,.095);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.055);
}
.cat-grid { grid-template-columns: repeat(4, 1fr); }
.cat-card { align-items: flex-start; flex-direction: column; padding: 22px; }
.cat-ic, .feat-ic {
    background: rgba(236,255,22,.09);
    color: var(--brand);
    border: 1px solid rgba(236,255,22,.16);
}
.cat-card:hover, .course-card:hover, .feat-card:hover, .mentor-card:hover {
    transform: translateY(-3px);
    border-color: rgba(236,255,22,.35);
    background: rgba(255,255,255,.055);
}
.course-card { border-radius: 20px; }
.course-thumb { aspect-ratio: 16 / 9.7; }
.course-body { padding: 20px; }
.course-desc {
    min-height: 44px;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.55;
}
.badge { letter-spacing: .04em; text-transform: none; }
.badge-cat { background: rgba(7,9,18,.82); color: #fff; border: 1px solid rgba(255,255,255,.12); }
.badge-level { background: rgba(236,255,22,.92); color: var(--brand-ink); border: 0; }
.course-foot .price .now::after { content: " so‘m"; font-size: .68em; color: var(--muted); font-weight: 500; }
.feat-card { padding: 26px 24px; }
.mentor-card { padding: 26px 20px; }
.mentor-card img { width: 84px; height: 84px; }
.testi-card { padding: 26px; }
.testi-stars { font-size: .82rem; }
.faq-wrap { max-width: 760px; }
.faq-item { overflow: hidden; }
.faq-q {
    width: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    font: inherit;
    font-family: var(--f-head);
    font-weight: 600;
    cursor: pointer;
}
.faq-a { display: block; }
.faq-item:not(.open) .faq-a { display: none !important; }

.cta-band {
    background: linear-gradient(135deg, var(--brand), #d8ef00 62%, #bfe857);
    border: 1px solid rgba(255,255,255,.22);
    color: var(--brand-ink);
    box-shadow: 0 30px 80px -42px rgba(236,255,22,.7);
}
.cta-band h2, .cta-band p { color: var(--brand-ink); }
.cta-band .btn-dark { background: #07111f; border-color: #07111f; color: #fff; }

.footer { padding-top: 62px; }
.footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; }
.footer-social:empty { display: none; }
.footer-bottom { color: #77849a; }

.premium-input, .catalog-bar select, .search-box input {
    min-height: 50px;
    background: rgba(255,255,255,.045);
    border-color: rgba(255,255,255,.11);
}
.premium-input:focus, .catalog-bar select:focus, .search-box:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(236,255,22,.09);
}
.auth-shell { padding: 56px 24px; }
.auth-card { border-radius: 28px; background: rgba(255,255,255,.035); }
.auth-aside {
    background: linear-gradient(155deg, rgba(236,255,22,.11), rgba(39,227,210,.035));
}
.btn-premium-main { background: var(--brand); color: var(--brand-ink); border-radius: 13px; box-shadow: none; }

.checkout-card { padding: 28px; }
.checkout-sum .total { background: rgba(236,255,22,.07); }
.pay-btn { min-height: 54px; border-radius: 13px; }
.pay-btn.click { background: #1688f5; }
.pay-btn.payme { background: #54d8d0; }

@media (max-width: 992px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-visual { justify-self: center; width: min(100%, 720px); }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .section-head-row { align-items: flex-start; }
    .mobile-menu {
        top: 78px;
        background: rgba(7,9,18,.95);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
    }
    .cab-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .cab-nav a { flex: 0 0 auto; }
}

@media (max-width: 620px) {
    .container { padding-inline: 16px; }
    .section-head { margin-bottom: 34px; text-align: left; }
    .section-head p { margin-inline: 0; }
    .section-head-row { display: block; }
    .section-head-row .text-link { margin-top: 18px; }
    .hero { padding: 48px 0 70px; }
    .hero-title { font-size: clamp(2.35rem, 11.5vw, 3.25rem); }
    .hero-lead { font-size: 1rem; }
    .hero-visual > img { min-height: 360px; }
    .hero-float-card { left: 18px; top: 18px; min-width: 190px; }
    .proof-item { min-height: 110px; padding: 18px 10px; }
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .cat-card { padding: 18px; min-height: 145px; }
    .cat-ic { width: 46px; height: 46px; }
    .cat-card h4 { font-size: .96rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .auth-shell { padding: 28px 16px; }
    .auth-body { padding: 30px 22px; }
    .checkout-card { padding: 22px 18px; }
    .promo-form { flex-direction: column; }
    .promo-form .btn { width: 100%; }
}

@media (max-width: 430px) {
    .navbar .container { height: 68px; }
    .brand small { display: none; }
    .hero-stats > div { width: 50%; }
    .proof-strip .container { grid-template-columns: 1fr; }
    .proof-item { min-height: auto; flex-direction: row; justify-content: space-between; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); }
    .proof-item:last-child { border-bottom: 0; }
    .proof-item strong { font-size: 1.55rem; }
    .proof-item span { max-width: 150px; text-align: right; margin-top: 0; }
    .cat-grid { gap: 12px; }
    .course-meta { gap: 12px; }
    .checkout-course { align-items: flex-start; }
    .checkout-course img { width: 72px; height: 52px; }
}

/* ---------- Ishchi flow komponentlari ---------- */
.module-head {
    width: 100%;
    border: 0;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.module-head:focus-visible { border-radius: 14px; }
.disabled-link { cursor: not-allowed; opacity: .65; }
.logout-inline { display: inline-flex; margin: 0; }
.mobile-menu[hidden] { display: none !important; }
.logout-inline button, .cab-logout-form button { font: inherit; cursor: pointer; }
.cab-logout-form { margin-top: auto; }
.cab-logout-form .cab-logout {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}
.toast-region { position: fixed; top: 82px; right: 20px; z-index: 1200; width: min(390px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.site-toast { --toast-accent: #6ee7b7; --toast-duration: 6500ms; position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 28px; align-items: start; gap: 12px; overflow: hidden; padding: 14px 12px 16px 14px; border: 1px solid color-mix(in srgb, var(--toast-accent) 32%, transparent); border-radius: 15px; background: rgba(15, 18, 29, .96); color: #fff; box-shadow: 0 20px 55px rgba(0, 0, 0, .42); backdrop-filter: blur(18px); pointer-events: auto; animation: toast-in .28s var(--ease) both; }
.site-toast.is-error { --toast-accent: #fca5a5; --toast-duration: 8000ms; }
.site-toast.is-warning { --toast-accent: #facc15; --toast-duration: 7500ms; }
.site-toast.is-info { --toast-accent: #93c5fd; }
.toast-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--toast-accent) 12%, transparent); color: var(--toast-accent); }
.toast-copy { min-width: 0; padding-top: 1px; }
.toast-copy strong, .toast-copy span { display: block; }
.toast-copy strong { margin-bottom: 3px; color: var(--toast-accent); font-size: .76rem; font-weight: 750; }
.toast-copy span { color: #d7dbe5; font-size: .82rem; line-height: 1.45; }
.toast-close { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #7f8798; cursor: pointer; }
.toast-close:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.toast-timer { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--toast-accent); transform-origin: left; animation: toast-timer var(--toast-duration) linear forwards; }
.form-inline-alert { display: flex; align-items: center; gap: 9px; margin: 12px 0; padding: 12px 14px; border: 1px solid rgba(252, 165, 165, .25); border-radius: 11px; background: rgba(252, 165, 165, .07); color: #ffe2e2; font-size: .8rem; }
.site-toast.is-leaving { animation: toast-out .22s ease forwards; }
.site-toast:hover .toast-timer { animation-play-state: paused; }
@keyframes toast-in { from { opacity: 0; transform: translate3d(18px, -8px, 0); } }
@keyframes toast-out { to { opacity: 0; transform: translate3d(24px, 0, 0); } }
@keyframes toast-timer { to { transform: scaleX(0); } }
.review-form {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.review-form h4 { margin-bottom: 16px; }
.review-fields {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.review-fields label, .comment-form label {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
}
.review-text-field textarea { width: 100%; resize: vertical; }
.lesson-resources, .lesson-discussion {
    margin-top: 26px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .03);
}
.lesson-resources h3, .lesson-discussion h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.resource-list { display: grid; gap: 10px; }
.resource-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .035);
}
.resource-item i { color: var(--brand); }
.resource-item small { color: var(--muted); }
.lesson-discussion-panel { margin-top: 24px; overflow: hidden; scroll-margin-top: 86px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .018); }
.discussion-panel-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.discussion-panel-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(236, 255, 22, .16); border-radius: 12px; background: rgba(236, 255, 22, .06); color: var(--brand); }
.discussion-panel-head h2 { font-size: 1rem; }
.discussion-panel-head p { margin-top: 3px; color: var(--muted); font-size: .71rem; }
.discussion-count { padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--muted); font-size: .64rem; white-space: nowrap; }
.comment-list { display: grid; gap: 12px; padding: 20px; }
.comment-card { padding: 16px; scroll-margin-top: 86px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .025); transition: border-color .2s, background .2s; }
.comment-card:target { border-color: rgba(236, 255, 22, .38); background: rgba(236, 255, 22, .035); }
.comment-author-row { display: flex; align-items: center; gap: 10px; }
.comment-avatar { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.comment-avatar.is-fallback { display: grid; place-items: center; background: rgba(236, 255, 22, .12); color: var(--brand); font-size: .74rem; font-weight: 800; }
.comment-avatar.is-small { width: 32px; height: 32px; }
.comment-meta { display: flex; flex: 1; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 12px; }
.comment-meta strong { overflow: hidden; color: #fff; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.comment-meta > span { display: flex; align-items: center; gap: 7px; }
.comment-meta time { color: var(--muted); font-size: .63rem; white-space: nowrap; }
.comment-text { margin: 11px 0 0 48px; color: var(--body); font-size: .82rem; line-height: 1.7; overflow-wrap: anywhere; }
.comment-replies { display: grid; gap: 9px; margin: 15px 0 0 48px; }
.comment-reply { padding: 13px; border-left: 2px solid rgba(236, 255, 22, .32); border-radius: 0 11px 11px 0; background: rgba(236, 255, 22, .025); }
.comment-reply .comment-text { margin-left: 42px; }
.comment-actions { display: flex; align-items: center; gap: 13px; margin: 13px 0 0 48px; }
.comment-report-form { display: inline-flex; }
.comment-action { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: transparent; color: var(--brand); font: inherit; font-size: .68rem; cursor: pointer; }
.comment-action.is-muted { color: #747c8e; }
.comment-action:hover { color: #fff; }
.reply-composer { margin: 13px 0 0 48px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.reply-composer[hidden] { display: none; }
.reply-composer label { display: block; margin-bottom: 7px; color: #cfd4df; font-size: .69rem; font-weight: 650; }
.reply-composer textarea { width: 100%; resize: vertical; }
.reply-composer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 9px; }
.reply-composer-actions .btn { padding: 9px 12px; font-size: .7rem; }
.comment-composer { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 20px; scroll-margin-top: 86px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.comment-composer-user img, .comment-composer-user span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; object-fit: cover; background: var(--brand); color: var(--brand-ink); font-size: .78rem; font-weight: 800; }
.comment-form label { margin-bottom: 8px; }
.comment-form textarea { width: 100%; min-height: 86px; max-height: 240px; resize: vertical; }
.comment-composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 9px; }
.comment-composer-foot > span { color: var(--muted); font-size: .62rem; }
.comment-composer-foot .btn { padding: 10px 14px; font-size: .76rem; }
.discussion-empty { display: flex; min-height: 150px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); text-align: center; }
.discussion-empty i { margin-bottom: 4px; color: var(--brand); font-size: 1.25rem; }
.discussion-empty strong { color: #fff; font-size: .82rem; }
.discussion-empty span { font-size: .7rem; }
.video-error { color: var(--muted); font-size: .86rem; }
.video-error { padding: 12px 16px; }
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.legal-links { display: inline-flex; flex-wrap: wrap; gap: 14px; }
.legal-links a { color: inherit; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { margin: 16px 0 28px; font-size: clamp(2.2rem, 6vw, 3.5rem); }
.legal-page h2 { margin: 30px 0 10px; font-size: 1.35rem; }
.legal-page p { color: var(--body); line-height: 1.8; }
@media (max-width: 620px) {
    .review-fields { grid-template-columns: 1fr; }
    .lesson-resources, .lesson-discussion { padding: 18px; }
    .resource-item { grid-template-columns: auto 1fr; }
    .resource-item small { grid-column: 2; }
    .discussion-panel-head { grid-template-columns: 40px minmax(0, 1fr); padding: 15px; }
    .discussion-panel-icon { width: 40px; height: 40px; }
    .discussion-count { grid-column: 2; justify-self: start; }
    .comment-list { padding: 14px; }
    .comment-card { padding: 14px; }
    .comment-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
    .comment-text { margin-left: 0; }
    .comment-replies, .comment-actions, .reply-composer { margin-left: 20px; }
    .comment-reply .comment-text { margin-left: 0; }
    .comment-composer { grid-template-columns: 1fr; padding: 16px; }
    .comment-composer-user { display: none; }
    .reply-composer-actions { align-items: stretch; flex-direction: column-reverse; }
    .reply-composer-actions .btn, .comment-composer-foot .btn { width: 100%; }
    .comment-composer-foot { align-items: flex-end; flex-direction: column; }
}

/* ============================================================
   Product-first online learning UI
   ============================================================ */

/* Bosh sahifa: reklama emas, kurs topish nuqtasi */
.learning-home {
    padding: 72px 0 58px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .022), transparent);
}
.learning-home .container {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
    gap: clamp(44px, 7vw, 88px);
    align-items: center;
}
.learning-home-copy h1 {
    max-width: 760px;
    font-size: clamp(2.5rem, 5.4vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}
.learning-home-copy > p {
    max-width: 620px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 1.06rem;
}
.home-course-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 7px 7px 7px 20px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    background: rgba(255, 255, 255, .055);
    box-shadow: var(--shadow);
}
.home-course-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(236, 255, 22, .08); }
.home-course-search > i { color: var(--brand); }
.home-course-search input {
    min-width: 0;
    padding: 12px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
}
.home-course-search input::placeholder { color: #7f879f; }
.home-course-search .btn { padding: 13px 22px; border-radius: 13px; }
.home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.home-actions .btn { padding: 11px 18px; font-size: .88rem; }
.home-my-courses { color: var(--brand); font-weight: 600; font-size: .9rem; }
.home-my-courses i { margin-right: 6px; }
.home-category-list { display: grid; gap: 10px; }
.home-category-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    min-height: 78px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .03);
    transition: border-color .2s, background .2s, transform .2s;
}
.home-category-item:hover { transform: translateX(4px); border-color: rgba(236, 255, 22, .36); background: rgba(255, 255, 255, .05); }
.home-category-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(236, 255, 22, .1); color: var(--brand); }
.home-category-item strong, .home-category-item small { display: block; }
.home-category-item strong { color: #fff; font-family: var(--f-head); font-size: .94rem; }
.home-category-item small { margin-top: 2px; color: var(--muted); font-size: .76rem; }
.home-category-item > i { color: #677087; font-size: .8rem; }
.course-discovery { padding-top: 72px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.catalog-heading h1, .catalog-heading h2 { margin-top: 7px; font-size: clamp(2rem, 4vw, 3rem); }
.catalog-heading p { max-width: 650px; margin-top: 10px; color: var(--muted); }
.catalog-kicker { color: var(--brand); font-family: var(--f-mono); font-size: .69rem; letter-spacing: .14em; text-transform: uppercase; }

/* Kurs kartasi: toza axborot ierarxiyasi */
.course-card { border-radius: 16px; background: rgba(255, 255, 255, .035); box-shadow: none; }
.course-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .052); }
.course-thumb { aspect-ratio: 16 / 9; background: #111520; }
.course-card:hover .course-thumb img { transform: scale(1.025); }
.course-thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg, #151927, #0d1019); color: var(--brand); font-size: 2rem; }
.course-body { gap: 9px; padding: 18px; }
.course-card-category { color: var(--brand); font-size: .71rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.course-body h3 { min-height: 2.5em; font-size: 1.06rem; line-height: 1.28; }
.course-desc { min-height: 43px; margin: 0; font-size: .82rem; line-height: 1.55; }
.course-mentor-name { color: #cdd2df; font-size: .78rem; }
.course-mentor-name span { color: var(--muted); }
.course-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; color: var(--muted); font-size: .72rem; }
.course-facts .rating { font-size: .75rem; }
.course-foot { margin-top: 6px; padding-top: 14px; gap: 12px; }
.course-foot .price { flex-wrap: wrap; gap: 5px 8px; }
.course-foot .price .now { font-size: 1rem; }
.course-foot .price .now::after { content: none; }
.course-open-label { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.course-open-label i { margin-left: 4px; color: var(--brand); }

/* Katalog */
.catalog-page { padding: 58px 0 96px; }
.catalog-page-heading { margin-bottom: 24px; }
.catalog-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px 190px auto;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .025);
}
.catalog-search .search-box input, .catalog-search select {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
    outline: 0;
    background: #10131e;
    color: #fff;
    font: inherit;
    font-size: .84rem;
}
.catalog-search .search-box input { padding-left: 42px; }
.catalog-search .search-box i { z-index: 1; }
.catalog-search .search-box input:focus, .catalog-search select:focus { border-color: var(--brand); }
.catalog-search .btn { border-radius: 12px; padding-inline: 22px; }
.catalog-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 34px; align-items: start; margin-top: 34px; }
.catalog-filter-panel { position: sticky; top: 98px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .025); }
.filter-panel-head { display: flex; justify-content: space-between; gap: 12px; padding: 0 5px 13px; border-bottom: 1px solid var(--line); }
.filter-panel-head strong { color: #fff; font-family: var(--f-head); }
.filter-panel-head a, .results-summary a { color: var(--brand); font-size: .75rem; font-weight: 600; }
.catalog-category-nav { display: grid; gap: 4px; margin-top: 10px; }
.catalog-category-nav a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 11px; border-radius: 10px; color: var(--muted); font-size: .82rem; }
.catalog-category-nav a:hover { background: rgba(255, 255, 255, .045); color: #fff; }
.catalog-category-nav a.active { background: rgba(236, 255, 22, .1); color: var(--brand); }
.catalog-category-nav strong { font-family: var(--f-mono); font-size: .66rem; }
.results-summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; min-height: 31px; margin-bottom: 16px; }
.results-summary p { color: var(--muted); font-size: .83rem; }
.results-summary p strong { color: #fff; }
.results-summary p span { color: #cfd4e2; }
.catalog-results .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Kurs detail */
.course-detail-page { padding: 30px 0 96px; }
.course-detail-body { background: linear-gradient(180deg, #080a13, #070912 68%); }
.course-detail-body::before { display: none; }
.course-detail-body .navbar { background: rgba(7, 9, 18, .98); -webkit-backdrop-filter: none; backdrop-filter: none; }
.course-detail-body .enroll-preview, .course-detail-body .site-toast { -webkit-backdrop-filter: none; backdrop-filter: none; }
.course-detail-body .detail-panel, .course-detail-body .course-about-grid, .course-detail-body .detail-section { content-visibility: auto; contain-intrinsic-size: auto 520px; }
.course-breadcrumbs { max-width: 100%; margin-bottom: 18px; text-transform: none; letter-spacing: 0; }
.course-breadcrumbs span { overflow: hidden; color: #c9cedb; text-overflow: ellipsis; white-space: nowrap; }
.course-detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(42px, 6vw, 82px); align-items: start; padding: 32px 0 58px; border-bottom: 1px solid var(--line); }
.course-detail-intro { min-width: 0; padding-top: 9px; }
.course-hero-badges { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.course-detail-category, .course-access-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700; }
.course-detail-category { background: rgba(236, 255, 22, .08); color: var(--brand); }
.course-access-badge { background: rgba(52, 211, 153, .08); color: var(--green); }
.course-detail-intro h1 { max-width: 820px; margin-top: 18px; font-size: clamp(2.45rem, 5vw, 4.3rem); line-height: 1.02; letter-spacing: -.052em; }
.course-detail-lead { max-width: 760px; margin-top: 18px; color: #b8bfce; font-size: 1.02rem; line-height: 1.72; }
.course-detail-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; max-width: 760px; margin-top: 28px; }
.course-detail-meta > span { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 1px 8px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .02); }
.course-detail-meta i { grid-row: 1 / 3; color: var(--brand); font-size: .82rem; }
.course-detail-meta b { overflow: hidden; color: #fff; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.course-detail-meta small { overflow: hidden; color: var(--muted); font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.course-instructor { display: flex; align-items: center; gap: 11px; margin-top: 26px; }
.course-instructor img, .course-instructor-avatar { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--edge); border-radius: 50%; object-fit: cover; }
.course-instructor-avatar { display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.course-instructor small, .course-instructor strong, .course-instructor span { display: block; }
.course-instructor small { color: var(--muted); font-size: .61rem; }
.course-instructor strong { color: #fff; font-size: .8rem; }
.course-instructor div > span { color: var(--muted); font-size: .66rem; }
.course-enroll-card { position: sticky; top: 92px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .13); border-radius: 18px; background: #10131d; box-shadow: 0 18px 44px rgba(0, 0, 0, .24); }
.enroll-cover { position: relative; aspect-ratio: 16 / 9; background: #0b0e17; }
.enroll-cover > img { width: 100%; height: 100%; object-fit: cover; }
.enroll-preview { position: absolute; inset: auto 12px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 10px; background: rgba(7, 9, 18, .9); color: #fff; font-size: .72rem; font-weight: 600; backdrop-filter: blur(10px); }
.enroll-preview i { color: var(--brand); }
.enroll-body { padding: 21px; }
.enroll-price-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .63rem; }
.enroll-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 10px; margin-bottom: 17px; }
.enroll-price strong { color: #fff; font-family: var(--f-head); font-size: 1.55rem; }
.enroll-price span { color: var(--muted); font-size: .76rem; text-decoration: line-through; }
.enroll-price em { padding: 3px 7px; border-radius: 6px; background: rgba(236, 255, 22, .12); color: var(--brand); font-size: .65rem; font-style: normal; }
.enroll-body .btn { justify-content: center; gap: 9px; }
.enroll-body .btn + .btn { margin-top: 9px; }
.enroll-login-note { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: .72rem; }
.enroll-login-note a { color: var(--brand); }
.enrollment-state { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--green); }
.enrollment-state > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(52, 211, 153, .1); }
.enrollment-state span, .enrollment-state strong, .enrollment-state small { display: block; }
.enrollment-state strong { color: #fff; font-size: .76rem; }
.enrollment-state small { margin-top: 2px; color: var(--muted); font-size: .6rem; }
.enrolled-progress-head { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .7rem; }
.enrolled-progress-head strong { color: #fff; }
.enroll-body > .progress { height: 6px; margin: 7px 0 17px; }
.enroll-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.enroll-features span { display: flex; align-items: center; flex-direction: column; gap: 5px; color: var(--muted); font-size: .57rem; text-align: center; }
.enroll-features i { color: var(--brand); font-size: .76rem; }
.course-detail-content { width: 100%; padding-top: 54px; }
.section-kicker { display: block; margin-bottom: 6px; color: var(--brand); font-size: .62rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.detail-panel { padding: 30px; border: 1px solid rgba(236, 255, 22, .16); border-radius: 18px; background: rgba(236, 255, 22, .028); }
.detail-panel-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 23px; }
.detail-heading-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(236, 255, 22, .18); border-radius: 12px; background: rgba(236, 255, 22, .07); color: var(--brand); }
.detail-panel h2, .detail-section h2 { margin: 0; font-size: 1.42rem; }
.course-outcomes-panel .outcomes { gap: 13px 26px; }
.course-outcomes-panel .outcome { align-items: flex-start; color: #cbd0dc; font-size: .86rem; line-height: 1.55; }
.course-outcomes-panel .outcome i { width: 21px; height: 21px; display: grid; place-items: center; flex: 0 0 auto; margin: 0; border-radius: 6px; background: rgba(236, 255, 22, .11); font-size: .62rem; }
.course-about-grid { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 46px 0; border-bottom: 1px solid var(--line); }
.course-about-section { padding: 0; border: 0; }
.course-about-section h2 { margin-bottom: 18px; }
.course-about-section .prose { max-width: 920px; color: #aeb5c5; font-size: .9rem; line-height: 1.82; }
.course-mentor-profile { display: grid; grid-template-columns: 142px minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; border: 1px solid rgba(236, 255, 22, .14); border-radius: 18px; background: linear-gradient(120deg, rgba(236, 255, 22, .045), rgba(255, 255, 255, .018)); }
.mentor-profile-visual img, .mentor-profile-avatar { width: 142px; height: 142px; display: grid; place-items: center; border: 1px solid rgba(236, 255, 22, .2); border-radius: 18px; object-fit: cover; background: var(--brand); color: var(--brand-ink); font-size: 2.3rem; font-weight: 850; }
.mentor-profile-copy h2 { margin: 0; font-size: 1.55rem; }
.mentor-profile-specialization { margin-top: 5px; color: var(--brand); font-size: .76rem; font-weight: 650; }
.mentor-profile-bio { max-width: 780px; margin-top: 12px; color: #aeb5c5; font-size: .8rem; line-height: 1.7; }
.mentor-profile-bio p + p { margin-top: 8px; }
.mentor-profile-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.mentor-profile-facts span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0, 0, 0, .12); color: var(--muted); font-size: .66rem; }
.mentor-profile-facts i, .mentor-profile-facts strong { color: var(--brand); }
.detail-section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.program-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.program-heading h2 { margin-bottom: 7px; }
.program-heading p { max-width: 650px; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.program-summary { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.program-summary span { display: flex; align-items: baseline; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .02); color: var(--muted); font-size: .61rem; white-space: nowrap; }
.program-summary strong { color: #fff; font-size: .78rem; }
.program-progress-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; padding: 11px 14px; border: 1px solid rgba(236, 255, 22, .13); border-radius: 10px; background: rgba(236, 255, 22, .025); color: var(--muted); font-size: .68rem; }
.program-progress-note span { display: flex; align-items: center; gap: 7px; }
.program-progress-note i { color: var(--brand); }
.program-progress-note strong { color: #fff; }
.program { gap: 10px; }
.course-detail-content .course-module { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #0e111b; box-shadow: none; }
.course-detail-content .course-module.open { border-color: rgba(236, 255, 22, .24); background: #10131e; }
.course-detail-content .course-module.is-complete { border-color: rgba(52, 211, 153, .17); }
.course-detail-content .course-module > .module-head { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto 14px; width: 100%; min-height: 88px; gap: 16px; padding: 18px 21px; border: 0; appearance: none; background: #0e111b; color: #f3f4f8; text-align: left; }
.course-detail-content .course-module.open > .module-head { background: #10131e; }
.course-detail-content .course-module .module-idx { width: 50px; height: 50px; border: 1px solid rgba(236, 255, 22, .15); border-radius: 13px; background: rgba(236, 255, 22, .06); color: var(--brand); font-size: .75rem; }
.course-detail-content .course-module.is-complete .module-idx { border-color: rgba(52, 211, 153, .18); background: rgba(52, 211, 153, .07); color: var(--green); }
.module-title-copy { min-width: 0; }
.module-title-copy strong, .module-title-copy small { display: block; }
.module-title-copy strong { overflow: hidden; color: #f3f4f8; font-size: .96rem; text-overflow: ellipsis; white-space: nowrap; }
.module-title-copy small { margin-top: 5px; color: var(--muted); font-size: .68rem; }
.module-state { display: inline-flex; align-items: center; align-self: center; gap: 7px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: .66rem; white-space: nowrap; }
.module-state.is-done { background: rgba(52, 211, 153, .08); color: var(--green); }
.module-state.is-ready { background: rgba(236, 255, 22, .07); color: var(--brand); }
.module-state.is-locked { color: #71798b; }
.course-module .chev { align-self: center; color: #727a8c; font-size: .7rem; transition: transform .25s var(--ease); }
.course-module.open .chev { color: var(--brand); transform: rotate(180deg); }
.course-detail-content .course-module.open .module-body { max-height: 5000px; }
.course-detail-content .course-module .module-body { display: none; max-height: none; transition: none; }
.course-detail-content .course-module.open .module-body { display: block; max-height: none; }
.module-lessons { border-top: 1px solid var(--line); }
.program-lesson { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 70px; padding: 12px 17px; border-bottom: 1px solid var(--line); transition: background .18s; }
a.program-lesson:hover { background: rgba(255, 255, 255, .025); }
.program-lesson-status { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); color: #858da0; font-size: .68rem; }
.program-lesson.is-complete .program-lesson-status { border-color: rgba(52, 211, 153, .18); background: rgba(52, 211, 153, .07); color: var(--green); }
.program-lesson.is-test-ready .program-lesson-status { border-color: rgba(236, 255, 22, .2); background: rgba(236, 255, 22, .07); color: var(--brand); }
.program-lesson-copy { min-width: 0; }
.program-lesson-copy small, .program-lesson-copy strong, .program-lesson-copy em { display: block; }
.program-lesson-copy small { margin-bottom: 2px; color: #6f7789; font-size: .57rem; }
.program-lesson-copy strong { overflow: hidden; color: #cbd0dc; font-size: .77rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.program-lesson-copy em { margin-top: 3px; color: #727a8d; font-size: .58rem; font-style: normal; }
.program-lesson.is-locked { opacity: .68; }
.program-lesson-action { color: #737b8d; font-size: .68rem; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 7px; font-size: .58rem; font-weight: 700; white-space: nowrap; }
.status-pill.is-done { background: rgba(52, 211, 153, .08); color: var(--green); }
.status-pill.is-ready { background: rgba(236, 255, 22, .08); color: var(--brand); }
.status-pill.is-free { background: var(--brand); color: var(--brand-ink); }
.program-module-exam { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 76px; padding: 13px 17px; background: rgba(236, 255, 22, .025); }
a.program-module-exam:hover { background: rgba(236, 255, 22, .05); }
.exam-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(236, 255, 22, .18); border-radius: 9px; background: rgba(236, 255, 22, .07); color: var(--brand); font-size: .68rem; }
.program-module-exam.is-complete .exam-icon { border-color: rgba(52, 211, 153, .18); background: rgba(52, 211, 153, .07); color: var(--green); }
.program-module-exam > span:nth-child(2) small, .program-module-exam > span:nth-child(2) strong, .program-module-exam > span:nth-child(2) em { display: block; }
.program-module-exam small { color: var(--brand); font-size: .56rem; }
.program-module-exam strong { margin-top: 2px; color: #fff; font-size: .78rem; }
.program-module-exam em { margin-top: 3px; color: var(--muted); font-size: .58rem; font-style: normal; }
.program-module-exam.is-locked { opacity: .68; }
.program-module-exam.is-locked > i { color: #747c8e; }
.program-empty { padding: 28px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .75rem; text-align: center; }
.reviews-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.reviews-rating { display: grid; grid-template-columns: auto auto; align-items: center; gap: 1px 7px; }
.reviews-rating i { grid-row: 1 / 3; color: var(--brand); }
.reviews-rating strong { color: #fff; font-size: 1.05rem; }
.reviews-rating small { color: var(--muted); font-size: .58rem; }
.reviews-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reviews-list .review-item { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .02); }
.review-author { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.review-author img, .review-author > span:first-child { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; object-fit: cover; background: rgba(236, 255, 22, .1); color: var(--brand); font-size: .72rem; font-weight: 800; }
.review-author strong, .review-author small { display: block; }
.review-author strong { color: #fff; font-size: .74rem; }
.review-author small { margin-top: 2px; color: var(--muted); font-size: .58rem; }
.review-author .rev-stars { color: var(--brand); font-size: .68rem; }
.reviews-list .review-item p { margin-top: 13px; color: #aeb5c5; font-size: .75rem; line-height: 1.7; }
.reviews-empty { grid-column: 1 / -1; display: flex; min-height: 160px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); text-align: center; }
.reviews-empty i { margin-bottom: 5px; color: var(--brand); font-size: 1.3rem; }
.reviews-empty strong { color: #fff; font-size: .82rem; }
.reviews-empty span { font-size: .67rem; }
.review-form { max-width: 820px; }
.related-courses { padding-top: 66px; }

/* Dars oynasi: Coursera uslubidagi chap dastur va fokuslangan workspace */
.learning-mode { background: #080a12; }
.learning-mode::before { display: none; }
.learning-mode > main { overflow: visible; }
.learn-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: grid;
    grid-template-columns: 44px 56px minmax(0, 1fr) 190px auto;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 10, 18, .96);
    backdrop-filter: blur(16px);
}
.learn-back { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.learn-back:hover { color: var(--brand); border-color: var(--brand); }
.learn-brand { width: 48px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-family: var(--f-head); font-size: .76rem; font-weight: 800; }
.learn-course-name { min-width: 0; padding-left: 4px; }
.learn-course-name small, .learn-course-name strong { display: block; }
.learn-course-name small { color: var(--muted); font-size: .59rem; text-transform: uppercase; letter-spacing: .12em; }
.learn-course-name strong { overflow: hidden; color: #fff; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.learn-top-progress span { display: block; margin-bottom: 4px; color: var(--muted); text-align: right; font-size: .65rem; }
.learn-top-progress .progress { height: 5px; }
.curriculum-toggle { display: none; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: #fff; font: inherit; font-size: .75rem; cursor: pointer; }
.learning-shell { display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.course-curriculum { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; border-right: 1px solid var(--line); background: #0b0e17; }
.curriculum-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 20px 17px; border-bottom: 1px solid var(--line); }
.curriculum-head small { color: var(--brand); font-size: .63rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.curriculum-head h2 { margin-top: 5px; font-size: .98rem; line-height: 1.35; }
.curriculum-close { display: none; width: 34px; height: 34px; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: #fff; cursor: pointer; }
.curriculum-progress { padding: 15px 20px; border-bottom: 1px solid var(--line); }
.curriculum-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--muted); font-size: .68rem; }
.curriculum-progress strong { color: #fff; }
.curriculum-progress .progress { height: 5px; }
.course-curriculum .curriculum-nav { gap: 0; }
.course-curriculum .curr-module { border-bottom: 1px solid var(--line); padding: 14px 10px 16px; }
.course-curriculum .curr-mtitle { display: flex; align-items: center; gap: 9px; margin: 0 8px 8px; color: #d7dbe6; font-family: var(--font); font-size: .76rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.course-curriculum .curr-mtitle > span { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: .62rem; }
.course-curriculum .curr-lesson { min-height: 42px; padding: 8px 10px; border-radius: 8px; font-size: .76rem; line-height: 1.35; }
.course-curriculum .curr-lesson-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.course-curriculum .curr-lesson-copy strong { overflow: hidden; color: inherit; font-size: .75rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.course-curriculum .curr-lesson-copy small { color: #70788c; font-size: .61rem; font-weight: 450; }
.course-curriculum .curr-lesson.current { background: rgba(236, 255, 22, .11); color: #fff; box-shadow: inset 3px 0 var(--brand); }
.course-curriculum .curr-lesson.current i { color: var(--brand); }
.course-curriculum .curr-lesson.done:not(.current) i { color: var(--green); }
.course-curriculum .curr-lesson.done .curr-lesson-copy small { color: var(--green); opacity: .8; }
.course-curriculum .curr-substep { display: grid; grid-template-columns: 18px minmax(0, 1fr) 12px; align-items: center; gap: 7px; margin: 2px 8px 7px 28px; padding: 8px 10px; border: 1px solid rgba(236, 255, 22, .13); border-radius: 8px; background: rgba(236, 255, 22, .035); color: #a9b0c0; font-size: .67rem; }
.course-curriculum .curr-substep > i:first-child { color: var(--brand); }
.course-curriculum .curr-substep > i:last-child { color: #656d7e; font-size: .55rem; }
.course-curriculum .curr-substep:hover, .course-curriculum .curr-substep.current { border-color: rgba(236, 255, 22, .3); background: rgba(236, 255, 22, .09); color: #fff; }
.course-curriculum .curr-substep.current { box-shadow: inset 2px 0 var(--brand); }
.course-curriculum .curr-exam { margin-top: 8px; border: 1px solid rgba(236, 255, 22, .15); background: rgba(236, 255, 22, .035); }
.course-curriculum .curr-exam:not(.locked) i { color: var(--brand); }
.course-curriculum .curr-exam.done i { color: var(--green); }
.lesson-workspace { min-width: 0; background: #080a12; }
.lesson-workspace-inner { width: min(100%, 1080px); margin: 0 auto; padding: 46px clamp(26px, 5vw, 68px) 90px; }
.lesson-context { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; color: var(--muted); font-size: .72rem; }
.lesson-context span:first-child { color: var(--brand); font-weight: 700; }
.lesson-workspace h1 { max-width: 880px; margin-bottom: 25px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.lesson-workspace .video-box { border-radius: 12px; box-shadow: none; }
.lesson-reading { min-height: 320px; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .025); color: #c8cedc; }
.lesson-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.lesson-actions-primary { margin-left: auto; }
.lesson-actions .complete-form { margin-top: 0; }
.lesson-actions .btn { border-radius: 11px; padding: 12px 18px; font-size: .84rem; }
.lesson-actions .btn-lg { padding: 14px 20px; }
.lesson-action-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .76rem; }
.lesson-action-note i { color: var(--brand); }
.lesson-status { padding: 11px 14px; font-size: .78rem; }
.lesson-drawer { margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .02); }
.lesson-drawer > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 19px; color: #fff; cursor: pointer; list-style: none; font-size: .86rem; font-weight: 600; }
.lesson-drawer > summary::-webkit-details-marker { display: none; }
.lesson-drawer > summary span { display: flex; align-items: center; gap: 10px; }
.lesson-drawer > summary i { color: var(--brand); }
.lesson-drawer > summary small { color: var(--muted); font-size: .68rem; font-weight: 400; }
.lesson-drawer[open] > summary { border-bottom: 1px solid var(--line); }
.lesson-drawer-body { padding: 20px; }
.lesson-discussion-drawer .comment-list { margin-top: 20px; }
.lesson-workspace .quiz-block { max-width: 900px; margin-top: 0; border-radius: 16px; box-shadow: none; }
.assessment-heading { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: start; gap: 18px; max-width: 900px; margin: 14px 0 30px; }
.assessment-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(236, 255, 22, .22); border-radius: 16px; background: rgba(236, 255, 22, .08); color: var(--brand); font-size: 1.25rem; }
.assessment-heading .eyebrow { display: inline-block; margin-bottom: 6px; }
.assessment-heading h1 { margin-bottom: 9px; }
.assessment-heading p { max-width: 720px; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.assessment-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 900px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.quiz-block { padding: 0; overflow: hidden; background: rgba(16, 19, 30, .82); }
.quiz-head { justify-content: space-between; gap: 18px; margin: 0; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.quiz-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.quiz-head-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(236, 255, 22, .18); border-radius: 12px; background: rgba(236, 255, 22, .07); color: var(--brand); }
.quiz-head-icon i { width: auto; height: auto; border: 0; background: transparent; }
.quiz-head small { display: block; margin-bottom: 2px; color: var(--muted); font-size: .61rem; letter-spacing: .08em; text-transform: uppercase; }
.quiz-head h2 { font-size: 1.05rem; line-height: 1.35; }
.quiz-pass-badge { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(236, 255, 22, .18); border-radius: 999px; background: rgba(236, 255, 22, .055); color: var(--brand); font-size: .65rem; font-weight: 700; }
.quiz-attempt-summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .018); }
.quiz-attempt-summary span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: .66rem; }
.quiz-attempt-summary i { color: var(--brand); }
.quiz-attempt-summary strong { color: #fff; }
.quiz-form { padding: 4px 22px 22px; }
.quiz-q { min-width: 0; margin: 0; padding: 22px 0; border: 0; border-top: 1px solid var(--line); }
.quiz-form .quiz-q:first-of-type { border-top: 0; }
.quiz-q-text { width: 100%; padding: 0; }
.quiz-q-text em { display: block; margin-top: 3px; font-family: var(--font); font-size: .68rem; font-style: normal; }
.quiz-opt { position: relative; min-height: 48px; padding: 12px 14px; background: rgba(255, 255, 255, .018); }
.quiz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-opt .quiz-opt-mark { width: 21px; height: 21px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #434a5a; border-radius: 50%; color: transparent; font-size: .56rem; }
.quiz-opt:has(input:checked) { border-color: rgba(236, 255, 22, .5); background: rgba(236, 255, 22, .065); }
.quiz-opt:has(input:checked) .quiz-opt-mark { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.quiz-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.quiz-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.quiz-submit-row p { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .67rem; }
.quiz-submit-row p i { color: var(--brand); }
.quiz-result { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 15px; margin: 22px; padding: 20px; border: 1px solid rgba(52, 211, 153, .22); border-radius: 14px; background: rgba(52, 211, 153, .07); }
.quiz-result.is-locked { border-color: rgba(250, 204, 21, .22); background: rgba(250, 204, 21, .06); }
.quiz-result-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: rgba(52, 211, 153, .13); color: var(--green); font-size: 1.2rem; }
.quiz-result.is-locked .quiz-result-icon { background: rgba(250, 204, 21, .12); color: #facc15; }
.quiz-result strong { display: block; margin-bottom: 5px; color: #fff; font-size: .92rem; }
.quiz-result p { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.module-exam-row { border-top: 1px solid rgba(236, 255, 22, .14); background: rgba(236, 255, 22, .025); }
.module-exam-row .lesson-name i { color: var(--brand); }
.module-exam-workspace .eyebrow { margin-bottom: 12px; }
.module-exam-workspace h1 { margin-bottom: 12px; }
.module-exam-intro { max-width: 760px; margin: 0 0 28px; color: var(--muted); line-height: 1.7; }
.module-exam-workspace .quiz-block { max-width: 900px; }
.module-exam-actions { display: flex; justify-content: flex-end; max-width: 900px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.curriculum-backdrop { display: none; }

@media (max-width: 1100px) {
    .catalog-search { grid-template-columns: minmax(240px, 1fr) 170px 170px; }
    .catalog-search .btn { grid-column: 1 / -1; }
    .course-detail-hero { grid-template-columns: minmax(0, 1fr) 350px; gap: 40px; }
    .course-detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .learning-home .container { grid-template-columns: 1fr; }
    .home-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-layout { grid-template-columns: 1fr; gap: 22px; }
    .catalog-filter-panel { position: static; }
    .catalog-category-nav { display: flex; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .catalog-category-nav a { flex: 0 0 auto; border: 1px solid var(--line); }
    .filter-panel-head { border-bottom: 0; }
    .course-detail-hero { grid-template-columns: 1fr; }
    .course-detail-intro { max-width: 800px; }
    .course-enroll-card { position: static; display: grid; grid-template-columns: minmax(250px, .8fr) 1fr; }
    .enroll-cover { height: 100%; aspect-ratio: auto; }
    .course-about-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; }
    .learning-shell { display: block; }
    .learn-topbar { grid-template-columns: 44px 56px minmax(0, 1fr) auto; }
    .learn-top-progress { display: none; }
    .curriculum-toggle { display: inline-flex; }
    .course-curriculum { position: fixed; top: 0; left: 0; z-index: 220; width: min(88vw, 360px); height: 100vh; transform: translateX(-102%); transition: transform .25s var(--ease); box-shadow: 28px 0 70px rgba(0, 0, 0, .5); }
    .curriculum-close { display: grid; }
    .curriculum-backdrop { position: fixed; inset: 0; z-index: 210; width: 100%; height: 100%; border: 0; background: rgba(0, 0, 0, .62); }
    .curriculum-open { overflow: hidden; }
    .curriculum-open .course-curriculum { transform: translateX(0); }
    .curriculum-open .curriculum-backdrop { display: block; }
}

@media (max-width: 720px) {
    .learning-home { padding-top: 50px; }
    .learning-home-copy h1 { font-size: clamp(2.2rem, 10vw, 3.25rem); }
    .home-course-search { grid-template-columns: auto minmax(0, 1fr); }
    .home-course-search .btn { grid-column: 1 / -1; width: 100%; }
    .home-category-list { grid-template-columns: 1fr; }
    .catalog-heading { align-items: flex-start; flex-direction: column; }
    .catalog-search { grid-template-columns: 1fr; }
    .catalog-search .btn { grid-column: auto; }
    .catalog-results .course-grid { grid-template-columns: 1fr; }
    .course-enroll-card { display: block; }
    .enroll-cover { aspect-ratio: 16 / 9; }
    .course-detail-content { padding-top: 36px; }
    .detail-panel { padding: 22px; }
    .course-about-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 36px; }
    .course-about-section { width: 100%; min-width: 0; }
    .course-about-section .prose { max-width: none; font-size: .86rem; }
    .course-mentor-profile { width: 100%; min-width: 0; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; padding: 21px; }
    .mentor-profile-copy { min-width: 0; }
    .mentor-profile-visual img, .mentor-profile-avatar { width: 96px; height: 96px; border-radius: 15px; font-size: 1.7rem; }
    .mentor-profile-copy h2 { font-size: 1.25rem; }
    .mentor-profile-bio { font-size: .76rem; }
    .program-heading { align-items: flex-start; flex-direction: column; }
    .program-summary { justify-content: flex-start; }
    .reviews-list { grid-template-columns: 1fr; }
    .learn-topbar { grid-template-columns: 40px 46px minmax(0, 1fr) auto; gap: 9px; padding-inline: 10px; }
    .learn-back { width: 36px; height: 36px; }
    .learn-brand { width: 43px; }
    .curriculum-toggle span { display: none; }
    .lesson-workspace-inner { padding: 30px 16px 70px; }
    .lesson-actions { align-items: stretch; flex-direction: column-reverse; }
    .lesson-actions > div, .lesson-actions .btn, .lesson-actions form { width: 100%; }
    .lesson-actions-primary { margin-left: 0; }
    .lesson-drawer-body { padding: 15px; }
    .toast-region { top: 72px; right: 12px; width: min(390px, calc(100vw - 24px)); }
    .assessment-heading { grid-template-columns: 46px minmax(0, 1fr); gap: 13px; }
    .assessment-icon { width: 46px; height: 46px; border-radius: 13px; }
    .quiz-head { align-items: flex-start; flex-direction: column; padding: 18px; }
    .quiz-attempt-summary { padding-inline: 18px; }
    .quiz-form { padding-inline: 18px; }
    .quiz-opts { padding-left: 0; }
    .quiz-submit-row, .assessment-actions { align-items: stretch; flex-direction: column; }
    .quiz-submit-row .btn, .assessment-actions .btn { width: 100%; }
}

@media (max-width: 430px) {
    .learning-home-copy > p { font-size: .94rem; }
    .home-course-search { margin-top: 24px; }
    .catalog-page { padding-top: 40px; }
    .course-detail-page { padding-top: 22px; }
    .course-detail-hero { padding-top: 18px; }
    .course-detail-intro h1 { font-size: 2.2rem; }
    .course-detail-meta { display: grid; grid-template-columns: 1fr 1fr; }
    .detail-panel .outcomes { grid-template-columns: 1fr; }
    .course-breadcrumbs span, .course-breadcrumbs i:last-of-type { display: none; }
    .course-detail-hero { padding-bottom: 42px; }
    .course-detail-meta > span { padding: 9px; }
    .enroll-features { grid-template-columns: 1fr; }
    .enroll-features span { align-items: center; flex-direction: row; text-align: left; }
    .detail-panel-heading { align-items: flex-start; }
    .detail-panel h2, .detail-section h2 { font-size: 1.22rem; }
    .course-mentor-profile { grid-template-columns: 1fr; }
    .mentor-profile-visual img, .mentor-profile-avatar { width: 92px; height: 92px; }
    .program-progress-note { align-items: flex-start; flex-direction: column; }
    .course-detail-content .course-module > .module-head { grid-template-columns: 42px minmax(0, 1fr) 12px; min-height: 74px; gap: 11px; padding: 14px; }
    .course-detail-content .course-module .module-idx { width: 42px; height: 42px; }
    .module-state { display: none; }
    .program-lesson, .program-module-exam { grid-template-columns: 32px minmax(0, 1fr); padding-inline: 13px; }
    .program-lesson-action, .program-module-exam > :last-child { grid-column: 2; justify-self: start; }
    .program-lesson-copy strong { white-space: normal; }
    .reviews-heading { align-items: flex-start; flex-direction: column; }
    .learn-course-name small { display: none; }
    .learn-course-name strong { font-size: .73rem; }
    .lesson-context { align-items: flex-start; flex-direction: column; gap: 4px; }
    .site-toast { grid-template-columns: 36px minmax(0, 1fr) 26px; gap: 10px; padding-left: 12px; }
    .toast-icon { width: 36px; height: 36px; }
    .quiz-result { grid-template-columns: 1fr; margin: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .site-toast, .site-toast.is-leaving, .toast-timer { animation: none; }
}
