:root {
    --card: #ffffff;
    --navy: #0a5cb8;
    --navy-600: #084c99;
    --side-bg: linear-gradient(180deg, #1aa3ef 0%, #0e8fdc 100%);
    --bar-bg: linear-gradient(90deg, #12bcc0 0%, #0bb3b8 100%);
    --side-w: 290px;
    --side-mini: 88px;
    --bar-h: 92px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e8eef5;
    --text: #c5d0dc;
    --muted: #8d9db0;
    --soft: #66788d;
    --line: #243244;
    --surface: #152030;
    --surface-2: #0e1621;
    --page: #0e1621;
    --card: #152030;
    --primary-50: rgba(11, 179, 184, .14);
    --accent-50: rgba(14, 165, 233, .15);
    --success-50: rgba(16, 185, 129, .14);
    --danger-50: rgba(239, 68, 68, .14);
    --warning-50: rgba(245, 158, 11, .14);
    --dark-50: rgba(148, 163, 184, .12);
    --side-bg: linear-gradient(180deg, #0f2a44 0%, #0b2238 100%);
    --bar-bg: linear-gradient(90deg, #0d3b4a 0%, #0c3441 100%);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 25px 60px -15px rgba(0, 0, 0, .7);
}
html[data-theme="dark"] .control,
html[data-theme="dark"] .modal__dialog,
html[data-theme="dark"] .modal__head,
html[data-theme="dark"] .toast,
html[data-theme="dark"] .check__box { background: var(--card); }
html[data-theme="dark"] .btn--ghost { --bg: var(--card); }
html[data-theme="dark"] .btn--ghost:hover { --bg: var(--surface-2); }
html[data-theme="dark"] .badge--warning { color: #fbbf24; }
html[data-theme="dark"] .badge--success { color: #34d399; }
html[data-theme="dark"] .badge--danger { color: #f87171; }
html[data-theme="dark"] .badge--primary { color: #5eead4; }

.student-body { background: var(--surface-2); transition: background .3s; }

.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; transition: grid-template-columns .3s var(--ease); }
.app.is-mini { grid-template-columns: var(--side-mini) minmax(0, 1fr); }

.side {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--side-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 18px 16px;
    z-index: 60;
    overflow: hidden;
}
.side__brand { display: flex; align-items: center; justify-content: center; min-height: 70px; margin-bottom: 26px; }
.side__brand .brand img { height: 58px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .12)); }
.side__brand .brand__text { font-size: 34px; }
.side__x { display: none; position: absolute; top: 18px; left: 14px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; }

.side__collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 6px 14px;
    margin-bottom: 20px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
}
.side__collapse i {
    width: 34px; height: 34px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--accent);
    border-radius: 9px;
    font-size: 13px;
    transition: transform .3s var(--ease);
}
.app.is-mini .side__collapse i { transform: rotate(180deg); }

.side__nav { flex: 1; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.side__nav::-webkit-scrollbar { display: none; }
.side__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 18px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.side__link i { width: 28px; text-align: center; font-size: 22px; opacity: .92; flex: 0 0 28px; }
.side__link:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.side__link.is-active { background: #fff; color: var(--accent); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .side__link.is-active { background: rgba(255, 255, 255, .1); color: #7dd3fc; }
.side__sub { display: flex; flex-direction: column; padding: 4px 0 8px; }
.side__sub a {
    color: rgba(255, 255, 255, .82);
    font-size: 14.5px;
    padding: 8px 62px 8px 12px;
    border-radius: 8px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.side__sub a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.side__sub a.is-active { color: #fff; font-weight: 600; background: rgba(255, 255, 255, .16); }
.side__logout { margin-top: 10px; font-size: 15px; font-weight: 500; opacity: .9; }
.side__logout i { font-size: 18px; }

.app.is-mini .side { padding-inline: 12px; }
.app.is-mini .side__brand .brand img { height: 42px; }
.app.is-mini .side__brand .brand__text { font-size: 0; }
.app.is-mini .side__brand .brand__text i { font-size: 28px; }
.app.is-mini .side__collapse { justify-content: center; padding: 6px 0; }
.app.is-mini .side__collapse span,
.app.is-mini .side__link span,
.app.is-mini .side__sub { display: none; }
.app.is-mini .side__link { justify-content: center; padding: 15px 0; }

.side-overlay { display: none; }

.app__main { min-width: 0; display: flex; flex-direction: column; }

.bar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: var(--bar-h);
    padding: 14px 28px;
    background: var(--bar-bg);
    color: #fff;
    box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .5);
}
.bar__menu { display: none; width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 18px; cursor: pointer; }
.bar__title { margin: 0; font-size: 28px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; max-width: 30%; }
.bar__search {
    flex: 1;
    max-width: 560px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .3);
}
html[data-theme="dark"] .bar__search { background: var(--card); }
.bar__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 20px; font-size: 15px; color: var(--ink); }
.bar__search input::placeholder { color: var(--muted); }
.bar__search button { width: 52px; height: 46px; border: 0; background: transparent; color: var(--accent); font-size: 18px; cursor: pointer; }
.bar__tools { display: flex; align-items: center; gap: 14px; }
.bar__icon {
    position: relative;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s;
}
.bar__icon:hover { background: rgba(255, 255, 255, .16); }
.bar__dot { position: absolute; top: 9px; left: 10px; width: 10px; height: 10px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 2px #fff; }
.bar__search-btn { display: none; }
.theme-btn .fa-sun { color: #fde047; font-size: 24px; }
.theme-btn .fa-moon { display: none; color: #e0f2fe; }
html[data-theme="dark"] .theme-btn .fa-sun { display: none; }
html[data-theme="dark"] .theme-btn .fa-moon { display: inline-block; }

.wallet {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--ink);
    padding: 8px 18px 8px 10px;
    border-radius: 30px;
    font-size: 14.5px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px -8px rgba(0, 0, 0, .3);
}
html[data-theme="dark"] .wallet { background: var(--card); }
.wallet:hover { color: var(--ink); transform: translateY(-1px); }
.wallet__ico { width: 30px; height: 26px; display: grid; place-items: center; background: #dcfce7; color: #16a34a; border-radius: 7px; font-size: 13px; }

.avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.avatar-btn .avatar { width: 46px; height: 46px; flex-basis: 46px; background: #fff; color: var(--primary-700); font-size: 19px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.avatar-btn .avatar--female { color: #be185d; }
.avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-50); color: var(--primary-700); font-weight: 600; font-size: 17px; }
.avatar--female { background: #fdf2f8; color: #be185d; }
.avatar--xl { width: 92px; height: 92px; flex-basis: 92px; font-size: 36px; }

.pop { position: relative; }
.pop__panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 230px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .2s var(--ease);
    color: var(--text);
    z-index: 70;
}
.pop__panel--wide { width: 360px; max-width: calc(100vw - 24px); padding: 0; }
.pop.is-open .pop__panel { opacity: 1; visibility: visible; transform: none; }
.pop__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pop__head b { color: var(--ink); font-size: 15px; }
.pop__user { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pop__user b { display: block; color: var(--ink); font-size: 14.5px; }
.pop__user small { color: var(--muted); font-size: 12.5px; }
.pop__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 8px; color: var(--text); font-size: 14px; cursor: pointer; text-align: start; }
.pop__item i { width: 18px; color: var(--muted); }
.pop__item:hover { background: var(--surface-2); color: var(--ink); }
.pop__item--danger:hover { background: var(--danger-50); color: var(--danger); }
.pop__item--danger:hover i { color: var(--danger); }

.notif-list { max-height: 380px; overflow-y: auto; }
.notif { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text); transition: background .2s; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--surface-2); color: var(--text); }
.notif.is-new { background: var(--accent-50); }
.notif__ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.notif__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif__txt b { color: var(--ink); font-size: 14px; font-weight: 600; }
.notif__txt small { font-size: 13px; color: var(--text); line-height: 1.6; }
.notif__txt em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.notif-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 16px; color: var(--muted); font-size: 14px; text-align: center; }
.notif-empty i { font-size: 30px; color: var(--soft); }

.app__content { flex: 1; padding: 30px; }

.panel { background: var(--card); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.panel__title { margin: 0 0 18px; font-size: 22px; font-weight: 700; color: var(--ink); }
.panel__note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.promo {
    position: relative;
    background: var(--card);
    border: 1px solid #b9e6f5;
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 22px;
    overflow: hidden;
}
html[data-theme="dark"] .promo { border-color: rgba(14, 165, 233, .35); }
.promo__slide { display: none; align-items: center; gap: 18px; }
.promo__slide.is-active { display: flex; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.promo__ico {
    width: 62px; height: 62px;
    flex: 0 0 62px;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 26px;
    box-shadow: 0 10px 20px -12px rgba(14, 165, 233, .9);
}
.promo__ico:hover { color: #fff; background: var(--accent-600); }
.promo__txt { flex: 1; min-width: 0; padding-inline-end: 70px; }
.promo__badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-50); color: var(--accent); font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 6px; margin-bottom: 6px; }
.promo__txt h2 { margin: 0 0 6px; font-size: 19px; color: var(--ink); font-weight: 700; }
.promo__txt h2 a { color: inherit; }
.promo__txt h2 a:hover { color: var(--accent); }
.promo__txt p { margin: 0; font-size: 14.5px; color: var(--muted); }
.promo__nav { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; }
.promo__arrow { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--accent); font-size: 16px; cursor: pointer; transition: background .2s; }
.promo__arrow:hover { background: var(--accent-50); }
.promo__dots { display: flex; gap: 5px; }
.promo__dots button { width: 7px; height: 7px; border-radius: 7px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: all .25s; }
.promo__dots button.is-active { width: 18px; background: var(--accent); }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; }
.kpi {
    --c: var(--accent);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    overflow: hidden;
    min-height: 196px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
    color: var(--text);
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.kpi--teal { --c: #16a34a; }
.kpi--blue { --c: #2563eb; }
.kpi--accent { --c: #0a7cc0; }
.kpi__ico {
    width: 60px; height: 60px;
    flex: 0 0 60px;
    border-radius: 14px;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--c);
    font-size: 24px;
    background: var(--card);
    position: relative;
    z-index: 1;
}
.kpi--blue .kpi__ico i { background: var(--c); color: #fff; width: 26px; height: 26px; border-radius: 5px; display: grid; place-items: center; font-size: 15px; }
.kpi__txt { position: relative; z-index: 1; min-width: 0; padding-top: 30px; }
.kpi__txt b { display: block; font-size: 30px; line-height: 1; font-weight: 700; color: var(--c); margin-bottom: 14px; }
.kpi__txt h3 { margin: 0 0 12px; font-size: 25px; font-weight: 500; color: var(--c); }
.kpi__txt p { margin: 0; font-size: 13.5px; color: var(--muted); }
.kpi__bg { position: absolute; left: -10px; top: 50%; transform: translateY(-50%); font-size: 130px; color: var(--c); opacity: .06; pointer-events: none; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-bottom: 30px; align-items: stretch; }
.dash-grid--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.activity { padding: 34px 44px 26px; }
.chart-legend { display: flex; gap: 22px; font-size: 14.5px; color: var(--muted); margin: 6px 0 10px; flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 20px; height: 20px; border-radius: 50%; display: inline-block; }
.line-chart { width: 100%; min-height: 280px; }
.line-chart svg { display: block; overflow: visible; }
.lc-grid { stroke: var(--line); stroke-width: 1; }
.lc-grid--v { opacity: .6; }
.lc-axis { fill: var(--text); font-size: 12.5px; font-family: var(--font); }
.lc-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lc-area { stroke: none; }
.lc-cur.lc-line { stroke: var(--primary); }
.lc-prev.lc-line { stroke: var(--accent); stroke-dasharray: 6 6; }
.lc-cur.lc-area { fill: rgba(11, 179, 184, .1); }
.lc-prev.lc-area { fill: rgba(14, 165, 233, .05); }
.lc-dot { stroke: var(--card); stroke-width: 2.5; cursor: pointer; transition: r .15s; }
.lc-dot:hover { r: 7; }
.lc-cur.lc-dot { fill: var(--primary); }
.lc-prev.lc-dot { fill: var(--accent); }

.progress-card { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; padding: 30px 26px; border-radius: 60px var(--radius-lg) var(--radius-lg) var(--radius-lg); }
.ring { --p: 0; position: relative; width: 170px; height: 170px; margin-bottom: 14px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg) scaleY(-1); }
.ring__bg { fill: none; stroke: var(--surface-2); stroke-width: 14; }
.ring__fg { fill: none; stroke: var(--primary); stroke-width: 14; stroke-linecap: round; stroke-dasharray: calc(var(--p) * 1) 100; transition: stroke-dasharray 1s var(--ease); }
.ring::before { content: ''; position: absolute; inset: 40px; border-radius: 50%; background: var(--primary-50); }
.ring__knob {
    position: absolute;
    top: 50%; left: 50%;
    width: 26px; height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 50%;
    border: 5px solid var(--accent);
    background: var(--card);
    transform: rotate(calc(var(--p) * -3.6deg)) translateY(-71px);
}
.ring__val { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--primary); }
.progress-card__label { margin: 0 0 14px; color: var(--primary); font-size: 17px; font-weight: 700; }
.progress-card__desc { margin: 0 0 18px; font-size: 19px; color: var(--muted); line-height: 1.8; max-width: 330px; }
.progress-card .btn--primary { --bg: #2563eb; border-radius: 6px; min-height: 44px; font-size: 17px; padding: 0 22px; }
.progress-card .btn--primary:hover { --bg: #1d4ed8; }
.progress-card__last { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.progress-card__last small { color: var(--muted); font-size: 14px; }
.progress-card__last a { color: #2563eb; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }
.progress-card__last a i { color: #b45353; font-size: 13px; margin-inline-start: 4px; }

.section { margin-bottom: 34px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section__head h2 { margin: 0; font-size: 21px; color: var(--ink); font-weight: 700; }
.section__head a { font-size: 14px; font-weight: 500; }

.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.course {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 2px solid var(--primary);
    border-radius: 14px;
    padding: 20px;
    transition: transform .2s, box-shadow .2s;
}
.course:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(11, 179, 184, .6); }
.course__media { display: block; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.course__body { display: flex; flex-direction: column; flex: 1; }
.course__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.course__head h3 { flex: 1; margin: 0; font-size: 21px; font-weight: 500; line-height: 1.6; }
.course__head h3 a { color: var(--navy); }
html[data-theme="dark"] .course__head h3 a { color: #7cc4ff; }
.course__head h3 a:hover { color: var(--accent); }
.course__grade { font-size: 20px; color: var(--ink); white-space: nowrap; padding-top: 2px; }
.course__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; margin-bottom: 18px; }
.course__desc p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course__desc.is-open p { -webkit-line-clamp: unset; display: block; }
.course__more { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.course__desc.no-more .course__more { display: none; }
.course__details { display: block; margin-top: 6px; font-size: 14.5px; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.course__details:hover { color: var(--primary); }
.course__dates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.course__dates li { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; }
.course__progress { margin-bottom: 16px; }
.course__progress-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.course__progress-top b { color: var(--primary); }
.bar__track { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width .8s var(--ease); }

.swap { border: 1px solid #86efac; border-radius: 12px; padding: 14px 16px 16px; margin-bottom: 16px; background: linear-gradient(180deg, rgba(16, 185, 129, .05), transparent); }
html[data-theme="dark"] .swap { border-color: rgba(52, 211, 153, .4); }
.swap__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.swap__top b { color: #15803d; font-size: 17px; }
html[data-theme="dark"] .swap__top b { color: #4ade80; }
.swap__tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #15803d; border: 1px solid #86efac; border-radius: 6px; padding: 2px 10px; }
.swap p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.swap p b { color: var(--ink); font-weight: 600; }
.swap .btn { min-height: 46px; font-size: 16px; }

.course__foot { margin-top: auto; }
.btn--navy { --bg: var(--navy); --fg: #fff; min-height: 54px; font-size: 18px; border-radius: 8px; }
.btn--navy:hover { --bg: var(--navy-600); }
.btn--light { --bg: rgba(255, 255, 255, .2); --fg: #fff; }
.btn--light:hover { --bg: rgba(255, 255, 255, .3); }

.empty-state { text-align: center; padding: 50px 20px; }
.empty-state i { font-size: 46px; color: var(--primary); opacity: .35; margin-bottom: 16px; display: block; }
.empty-state h3 { margin: 0 0 8px; color: var(--ink); font-size: 18px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

.pills { display: flex; gap: 10px; margin-bottom: 22px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 30px; background: var(--card); color: var(--text); font-weight: 500; font-size: 14.5px; white-space: nowrap; border: 1px solid var(--line); transition: all .2s; }
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.search-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--accent-50); color: var(--text); padding: 12px 18px; border-radius: 12px; margin-bottom: 22px; font-size: 14.5px; }
.search-note b { color: var(--ink); }
.search-note a { font-size: 13.5px; }

.lesson-list { padding: 8px; display: flex; flex-direction: column; }
.lesson-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; color: var(--text); transition: background .2s; }
a.lesson-row:hover { background: var(--surface-2); color: var(--text); }
.lesson-row + .lesson-row { border-top: 1px solid var(--line); }
.lesson-row.is-current { background: var(--primary-50); }
.lesson-row.is-locked { opacity: .7; }
.lesson-row__num { width: 24px; text-align: center; color: var(--soft); font-weight: 600; font-size: 14px; }
.lesson-row__ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-50); color: var(--accent); font-size: 14px; }
.lesson-row__ico.is-done { background: var(--success); color: #fff; }
.lesson-row__ico.tone-success { background: var(--success-50); color: var(--success); }
.lesson-row__ico.tone-danger { background: var(--danger-50); color: var(--danger); }
.lesson-row__ico.tone-primary { background: var(--primary-50); color: var(--primary); }
.lesson-row.is-locked .lesson-row__ico { background: var(--surface-2); color: var(--soft); }
.lesson-row__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lesson-row__txt b { color: var(--ink); font-weight: 500; font-size: 15px; }
.lesson-row__txt small { color: var(--muted); font-size: 12.5px; }
.lesson-row__mark { color: var(--accent); }
.tx-amount { font-size: 15px; white-space: nowrap; }
.tx-amount.is-pos { color: var(--success); }
.tx-amount.is-neg { color: var(--danger); }

.crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--primary); }
.crumb i { font-size: 9px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.buy { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--surface-2); border-radius: 14px; padding: 16px 20px; }
.buy > div { display: flex; flex-direction: column; }
.buy small { color: var(--muted); font-size: 12.5px; }
.buy b { color: var(--ink); font-size: 20px; }
.buy .btn { margin-inline-start: auto; }
.hint-line { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.hint-line i { color: var(--warning); }

.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-bottom: 30px; }
.player-card { padding: 0; overflow: hidden; }
.player { position: relative; aspect-ratio: 16 / 9; background: #0b1220; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #cbd5e1; text-align: center; padding: 20px; background: radial-gradient(circle at 50% 40%, #12384a, #0b1220 70%); }
.player__empty i { font-size: 46px; color: var(--primary); margin-bottom: 6px; }
.player__empty b { font-size: 18px; color: #fff; }
.player__empty span { font-size: 14px; }
.player-card__body { padding: 22px 24px 24px; }
.player-card__body h2 { margin: 0 0 10px; font-size: 22px; color: var(--ink); }
.player-card__body > p { margin: 0 0 16px; color: var(--text); line-height: 1.8; }
.player-card__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.lesson-side { position: sticky; top: calc(var(--bar-h) + 20px); padding: 20px 14px; max-height: calc(100vh - var(--bar-h) - 40px); overflow-y: auto; }
.lesson-side .panel__title { font-size: 17px; padding-inline: 10px; margin-bottom: 10px; }
.lesson-list--compact { padding: 0; }
.lesson-list--compact .lesson-row { padding: 10px; gap: 10px; }
.lesson-list--compact .lesson-row__ico { width: 32px; height: 32px; flex-basis: 32px; font-size: 12px; }
.lesson-list--compact .lesson-row__txt b { font-size: 14px; }

.profile-top { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; flex-wrap: wrap; }
.profile-top__info { flex: 1; min-width: 220px; }
.profile-top__info h2 { margin: 0 0 12px; font-size: 22px; color: var(--ink); }
.profile-top .chips-row { margin: 0; }
.wallet-card { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-radius: 16px; padding: 18px 22px; min-width: 260px; }
.wallet-card small { opacity: .85; font-size: 13px; }
.wallet-card b { display: block; font-size: 28px; margin: 2px 0 12px; }
.wallet-card__actions { display: flex; gap: 8px; }
.kv { display: flex; flex-direction: column; }
.kv__item { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.kv__item span { color: var(--muted); }
.kv__item b { color: var(--ink); font-weight: 500; text-align: end; word-break: break-word; }

.soon { text-align: center; padding: 60px 24px; max-width: 720px; margin: 20px auto 40px; }
.soon__ico { width: 110px; height: 110px; margin: 0 auto 22px; border-radius: 30px; display: grid; place-items: center; font-size: 44px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--primary)); box-shadow: 0 20px 40px -20px rgba(14, 165, 233, .8); transform: rotate(-6deg); }
.soon__ico i { transform: rotate(6deg); }
.soon h2 { margin: 0 0 10px; font-size: 24px; color: var(--ink); }
.soon p { margin: 0 auto 18px; color: var(--muted); max-width: 480px; line-height: 1.9; }
.soon__actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

.foot { background: var(--card); padding: 50px 30px 40px; margin-top: auto; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 30px; max-width: 1300px; }
.foot__about .brand { justify-content: flex-start; margin-bottom: 18px; }
.foot__about .brand img { height: 70px; }
.foot__about p { margin: 0 0 10px; color: var(--navy); font-size: 16px; line-height: 1.9; max-width: 460px; }
html[data-theme="dark"] .foot__about p { color: #7cc4ff; }
.foot__about b { color: var(--ink); font-size: 15px; }
.foot__col { display: flex; flex-direction: column; gap: 12px; }
.foot__col h4 { margin: 20px 0 6px; color: var(--navy); font-size: 18px; }
html[data-theme="dark"] .foot__col h4 { color: #7cc4ff; }
.foot__col a { color: var(--text); font-size: 16px; display: inline-flex; align-items: center; gap: 10px; }
.foot__col a:hover { color: var(--primary); }
.foot__col a i { font-size: 20px; width: 22px; }

.fabs { position: fixed; bottom: 24px; left: 24px; display: flex; flex-direction: column; gap: 14px; z-index: 40; }
.fab { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; font-size: 26px; cursor: pointer; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); transition: transform .2s; }
.fab:hover { transform: scale(1.08); color: #fff; }
.fab--notes { background: #3b82f6; font-size: 22px; }
.fab--wa { background: #22c55e; width: 72px; height: 72px; font-size: 34px; }

.drawer { position: fixed; inset: 0; z-index: 800; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(400px, 100%); background: var(--card); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .28s var(--ease); box-shadow: var(--shadow-lg); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font-size: 18px; color: var(--ink); display: flex; gap: 10px; align-items: center; }
.drawer__head h3 i { color: var(--primary); }
.drawer__form { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.drawer__list { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 14px 16px 10px; }
html[data-theme="dark"] .note { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .25); }
.note p { margin: 0 0 8px; color: var(--ink); font-size: 14.5px; line-height: 1.8; word-break: break-word; }
.note__foot { display: flex; align-items: center; justify-content: space-between; }
.note__foot small { color: var(--muted); font-size: 12px; }
.note__foot button { border: 0; background: none; color: var(--soft); cursor: pointer; width: 30px; height: 30px; border-radius: 8px; }
.note__foot button:hover { background: var(--danger-50); color: var(--danger); }

@media (max-width: 1400px) {
    .kpi__txt h3 { font-size: 21px; }
    .activity { padding: 28px; }
}
@media (max-width: 1200px) {
    .dash-grid { grid-template-columns: minmax(0, 1fr); }
    .progress-card { border-radius: var(--radius-lg); }
    .lesson-layout { grid-template-columns: minmax(0, 1fr); }
    .lesson-side { position: static; max-height: none; }
    .bar__title { font-size: 22px; }
}
@media (max-width: 992px) {
    .app, .app.is-mini { grid-template-columns: minmax(0, 1fr); }
    .side {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: 290px;
        max-width: 86vw;
        transform: translateX(105%);
        transition: transform .3s var(--ease);
        box-shadow: var(--shadow-lg);
    }
    .app.side-open .side { transform: none; }
    .side__x { display: grid; place-items: center; }
    .side__collapse { display: none; }
    .app.is-mini .side__link span, .app.is-mini .side__sub { display: revert; }
    .app.is-mini .side__link { justify-content: flex-start; padding: 15px 18px; }
    .app.is-mini .side__sub { display: flex; }
    .side-overlay { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 55; opacity: 0; visibility: hidden; transition: opacity .3s; }
    .app.side-open .side-overlay { opacity: 1; visibility: visible; }
    .bar__menu { display: grid; place-items: center; }
    .bar { padding: 12px 16px; gap: 12px; --bar-h: 72px; min-height: 72px; flex-wrap: wrap; }
    .bar__title { font-size: 20px; flex: 1; max-width: none; }
    .bar__search { order: 5; flex-basis: 100%; max-width: none; display: none; }
    .bar.search-open .bar__search { display: flex; }
    .bar__search-btn { display: grid; }
    .bar__tools { gap: 6px; }
    .kpis { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .kpi { min-height: 0; }
    .kpi__txt { padding-top: 0; }
    .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .foot__about { grid-column: 1 / -1; }
    :root { --bar-h: 72px; }
}
@media (max-width: 640px) {
    .app__content { padding: 18px 14px; }
    .panel { padding: 20px 16px; }
    .activity { padding: 22px 14px 18px; }
    .panel__title { font-size: 19px; }
    .wallet { padding: 6px 10px 6px 6px; font-size: 13px; }
    .wallet__ico { width: 26px; height: 22px; }
    .bar__icon { width: 38px; height: 38px; font-size: 17px; }
    .avatar-btn .avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 16px; }
    .bar__title { font-size: 18px; }
    .promo { padding: 18px 16px 44px; }
    .promo__slide { align-items: flex-start; gap: 14px; }
    .promo__ico { width: 48px; height: 48px; flex-basis: 48px; font-size: 20px; }
    .promo__txt { padding: 0; }
    .promo__txt h2 { font-size: 16.5px; }
    .promo__txt p { font-size: 13.5px; }
    .promo__nav { top: auto; bottom: 8px; transform: none; left: 50%; translate: -50% 0; }
    .kpi { padding: 18px 16px; gap: 14px; }
    .kpi__ico { width: 50px; height: 50px; flex-basis: 50px; font-size: 20px; }
    .kpi__txt b { font-size: 26px; margin-bottom: 8px; }
    .kpi__txt h3 { font-size: 19px; margin-bottom: 6px; }
    .kpi__bg { font-size: 100px; }
    .progress-card__desc { font-size: 16px; }
    .courses { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .course { padding: 14px; }
    .course__head h3 { font-size: 18px; }
    .course__meta { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .cover__title { font-size: 24px; }
    .btn--navy { min-height: 50px; font-size: 16px; }
    .buy { gap: 14px; }
    .buy .btn { width: 100%; }
    .foot { padding: 36px 18px 110px; }
    .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .fabs { bottom: 16px; left: 16px; gap: 10px; }
    .fab { width: 52px; height: 52px; font-size: 19px; }
    .fab--wa { width: 58px; height: 58px; font-size: 28px; }
    .pop__panel { position: fixed; top: 78px; left: 12px; right: 12px; width: auto; min-width: 0; }
    .profile-top { flex-direction: column; text-align: center; }
    .profile-top .chips-row { justify-content: center; }
    .wallet-card { width: 100%; }
    .wallet-card__actions .btn { flex: 1; }
    .dash-grid--even { grid-template-columns: minmax(0, 1fr); }
    .lesson-nav .btn span { display: none; }
    .lesson-nav .btn { min-width: 44px; }
}
@media (max-width: 480px) {
    .wallet span:last-child { display: none; }
    .wallet { padding: 6px; }
    .bar__tools { gap: 2px; }
    .section__head h2 { font-size: 18px; }
    .section__head a { white-space: nowrap; }
}

.course { background: var(--card); border-color: var(--primary); }
.course:not(.is-enrolled) { background: var(--surface-2); border-color: transparent; box-shadow: none; }
html[data-theme="dark"] .course:not(.is-enrolled) { background: #111b28; }
.course:not(.is-enrolled):hover { box-shadow: 0 20px 40px -26px rgba(15, 23, 42, .45); }
.course__side { display: flex; flex-direction: column; gap: 8px; }
.course__price { color: var(--primary); font-size: 18px; font-weight: 700; }
.course__foot { display: flex; flex-direction: column; gap: 10px; }
.btn--outline { --bg: transparent; --fg: var(--navy); border: 2px solid var(--navy); min-height: 52px; font-size: 17px; border-radius: 8px; }
.btn--outline:hover { --bg: rgba(10, 92, 184, .06); }
html[data-theme="dark"] .btn--outline { --fg: #7cc4ff; border-color: #3b82c4; }
.btn--buy { --bg: #f43f5e; --fg: #fff; min-height: 54px; font-size: 18px; border-radius: 8px; box-shadow: 0 10px 22px -12px rgba(244, 63, 94, .8); }
.btn--buy:hover { --bg: #e11d48; }

.seg { display: flex; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto 16px; padding: 8px; background: rgba(148, 163, 184, .16); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg__item { padding: 12px 28px; border-radius: 8px; color: var(--muted); font-size: 17px; white-space: nowrap; transition: all .2s; }
.seg__item:hover { color: var(--ink); background: var(--card); }
.seg__item.is-active { background: var(--primary); color: #fff; box-shadow: 0 8px 18px -10px rgba(11, 179, 184, .9); }
.courses-panel { padding: 40px; }
.courses-panel__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.courses-panel__head h2 { margin: 0; font-size: 21px; color: var(--ink); }
.courses-panel__head .search-note { margin: 0; }
.courses-panel .empty-state { padding: 40px 10px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.pager__info { color: var(--text); font-size: 15px; }
.pager__info b { color: var(--navy); }
html[data-theme="dark"] .pager__info b { color: #7cc4ff; }
.pager__links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pager__links a, .pager__links span { min-width: 58px; height: 58px; padding: 0 12px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-50); color: var(--navy); font-size: 18px; transition: all .2s; }
.pager__links a:hover { background: var(--accent); color: #fff; }
.pager__links .is-current { background: var(--navy); color: #fff; }
.pager__links .pager__gap { background: none; min-width: 20px; }
.pager__links .pager__next { background: none; color: var(--muted); min-width: 30px; }

.back-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 16px; margin: 6px 0 26px; }
.back-link i { font-size: 18px; }
.back-link:hover { color: var(--primary); }
.cdetail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 30px; align-items: start; margin-bottom: 30px; }
.cdetail__main { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.cdetail__about { border: 1px solid var(--line); padding: 26px 40px 40px; }
.ctabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 30px; overflow-x: auto; scrollbar-width: none; }
.ctabs__item { border: 0; background: none; padding: 10px 0 12px; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ctabs__item.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.cdetail__title { margin: 0 0 14px; font-size: 34px; line-height: 1.45; color: var(--ink); font-weight: 700; }
.cdetail__desc { color: var(--text); font-size: 17px; line-height: 1.85; margin-bottom: 30px; word-break: break-word; }
.teacher { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.teacher__img { width: 160px; height: 160px; object-fit: cover; border-radius: 6px; margin-bottom: 14px; }
.teacher__img--auto { display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 56px; }
.teacher b { color: var(--ink); font-size: 17px; }
.teacher small { color: var(--muted); font-size: 13.5px; }
.cdetail__lessons { border: 1px solid var(--line); padding: 34px 40px; }
.cdetail__h2 { margin: 0 0 16px; font-size: 32px; color: var(--ink); font-weight: 700; }
.cdetail__soon { margin: 0; text-align: center; font-size: 26px; font-weight: 500; color: var(--ink); line-height: 1.8; }
.cdetail__lessons .lesson-list { padding: 0; }
.cdetail__side { position: sticky; top: calc(var(--bar-h) + 20px); display: flex; flex-direction: column; gap: 18px; padding: 20px; }
.cdetail__side .cover { border-radius: 8px; }
.cdetail__price { text-align: end; font-size: 38px; font-weight: 700; color: var(--primary-700); line-height: 1.2; margin-top: 16px; }
.cdetail__price small { font-size: 15px; color: var(--muted); font-weight: 500; }
html[data-theme="dark"] .cdetail__price { color: #5eead4; }
.cdetail__facts { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--text); margin-bottom: 10px; }
.cdetail__facts b { color: var(--ink); font-weight: 600; }
.cdetail__state { display: flex; align-items: center; gap: 8px; background: var(--success-50); color: var(--success-600); font-weight: 600; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; }
.cdetail__side .swap, .cdetail__side .course__progress { margin: 0; }

@media (max-width: 1200px) {
    .cdetail { grid-template-columns: minmax(0, 1fr); }
    .cdetail__side { position: static; order: -1; max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
    .seg { width: 100%; }
    .seg__item { padding: 10px 16px; font-size: 14.5px; }
    .courses-panel { padding: 16px 12px; }
    .pager { justify-content: center; }
    .pager__links a, .pager__links span { min-width: 44px; height: 44px; font-size: 16px; }
    .cdetail__about, .cdetail__lessons { padding: 20px 16px; }
    .cdetail__title { font-size: 24px; }
    .cdetail__desc { font-size: 15.5px; }
    .cdetail__h2 { font-size: 24px; }
    .cdetail__soon { font-size: 19px; }
    .cdetail__price { font-size: 30px; }
    .teacher__img { width: 120px; height: 120px; }
}

.ctree { display: flex; flex-direction: column; gap: 26px; }
.lec { position: relative; }
.lec__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 16px;
    background: var(--surface-2);
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
    outline: none;
}
.lec__head:focus-visible { box-shadow: 0 0 0 3px rgba(14, 165, 233, .35); }
.lec__head:hover { background: #e9eef3; }
html[data-theme="dark"] .lec__head:hover { background: #1b2839; }
.lec.is-complete:not(.is-open) .lec__head { background: #cffafe; }
html[data-theme="dark"] .lec.is-complete:not(.is-open) .lec__head { background: rgba(34, 211, 238, .12); }
.lec.is-open .lec__head { background: var(--navy); color: #fff; box-shadow: 0 16px 30px -18px rgba(10, 92, 184, .9); }
.lec__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lec__txt > b { font-size: 18px; font-weight: 700; color: var(--ink); }
.lec.is-open .lec__txt > b { color: #fff; }
.lec__sum { font-size: 14px; font-weight: 600; color: var(--text); }
.lec.is-open .lec__sum { color: #e0efff; }
.lec__sum p { margin: 0; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lec__sum.is-open p { display: block; -webkit-line-clamp: unset; }
.lec__more { display: inline-block; margin-top: 2px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: inherit; opacity: .85; padding: 1px 8px; border-radius: 6px; }
.lec.is-open .lec__more { background: rgba(255, 255, 255, .12); }
.lec__sum.no-more .lec__more { display: none; }
.lec__count { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.lec.is-open .lec__count { color: #fff; }
.lec__chev { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center; background: #0d8bf2; color: #fff; font-size: 16px; transition: transform .3s var(--ease); transform: rotate(180deg); }
.lec.is-open .lec__chev { transform: none; }
.lec__dot { position: absolute; top: 8px; left: 8px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.lec__body { display: none; padding: 24px 24px 4px; flex-direction: column; gap: 10px; }
.lec.is-open .lec__body { display: flex; animation: fadeUp .3s var(--ease); }
.here-tag { border: 1.5px solid currentColor; border-radius: 8px; padding: 6px 16px; font-size: 13px; white-space: nowrap; color: var(--navy); background: var(--card); }
.lec.is-open .here-tag { color: #fff; background: transparent; }

.sec { display: flex; flex-direction: column; gap: 8px; }
.sec__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 6px; background: #e3fce5; cursor: pointer; outline: none; }
html[data-theme="dark"] .sec__head { background: rgba(34, 197, 94, .12); }
.sec__head:focus-visible { box-shadow: 0 0 0 3px rgba(34, 197, 94, .35); }
.sec__head b { flex: 1; color: #0a5cb8; font-size: 18px; font-weight: 500; }
html[data-theme="dark"] .sec__head b { color: #7cc4ff; }
.sec__lbl { font-size: 13px; color: var(--muted); }
.sec__hide { display: none; text-decoration: underline; }
.sec.is-open .sec__show { display: none; }
.sec.is-open .sec__hide { display: inline; }
.sec__head > i { color: var(--ink); font-size: 14px; transition: transform .25s; }
.sec.is-open .sec__head > i { transform: rotate(180deg); }
.sec__items { display: none; flex-direction: column; gap: 8px; }
.sec.is-open .sec__items { display: flex; }

.item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; background: var(--surface-2); color: var(--ink); border: 1.5px solid transparent; transition: all .2s; }
a.item:hover { color: var(--ink); background: #e9eef3; box-shadow: 0 6px 14px -10px rgba(15, 23, 42, .35); }
html[data-theme="dark"] a.item:hover { background: #1b2839; }
.item.is-current { border-color: var(--ink); background: var(--card); box-shadow: 0 8px 18px -12px rgba(15, 23, 42, .4); }
.item.is-locked { opacity: .75; }
.item__ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: #06b6d4; font-size: 14px; box-shadow: 0 2px 6px -2px rgba(15, 23, 42, .2); }
.item.is-done .item__ico { background: var(--success); color: #fff; }
.item.is-locked .item__ico { color: var(--soft); }
.item__title { flex: 1; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item__btn { flex: 0 0 auto; min-width: 100px; text-align: center; padding: 8px 14px; border-radius: 6px; background: #06b6d4; color: #fff; font-size: 14px; font-weight: 600; }
.item.is-current .item__btn { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.item.is-locked .item__btn { background: var(--line); color: var(--muted); }
.item.is-gated { position: relative; background: #9aa1ab; color: #fff; cursor: not-allowed; }
html[data-theme="dark"] .item.is-gated { background: #3a4656; }
.item.is-gated .item__ico { background: rgba(255, 255, 255, .25); color: #e11d48; box-shadow: none; font-size: 16px; }
.item.is-gated .item__title { opacity: .55; }
.item__gate { position: absolute; inset-inline-start: 58px; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); background: #fb7185; color: #fff; font-size: 13px; font-weight: 700; border-radius: 20px; padding: 5px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 14px -8px rgba(225, 29, 72, .8); }
.item.is-exam .item__ico { color: #0ea5e9; font-size: 16px; }
.item.is-exam.is-done .item__ico { color: #fff; }
.item__key { color: #f43f5e; font-size: 20px; flex: 0 0 auto; transform: rotate(-35deg); }
.item.is-exam.is-pass:not(.is-current) .item__btn { background: #16a34a; }
.item.is-exam.is-fail:not(.is-current) .item__btn { background: #e11d48; }
.step-nav__btn.is-locked { background: #6b7280; cursor: not-allowed; opacity: .9; }
.step-nav__btn.is-locked:hover { background: #6b7280; transform: none; }
.item-info { padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text); }
.item-info p { margin: 0; display: flex; gap: 8px; align-items: baseline; line-height: 1.7; }
.item-info i { color: #f59e0b; width: 14px; flex: 0 0 14px; }
.item-info p:first-child i { color: #f43f5e; }
.item-info b { color: var(--ink); font-weight: 600; }

.ctree--compact { gap: 16px; }
.ctree--compact .lec__head { padding: 16px; gap: 10px; }
.ctree--compact .lec__txt > b { font-size: 16px; }
.ctree--compact .lec__sum { font-size: 13px; }
.ctree--compact .lec__chev { width: 36px; height: 36px; flex-basis: 36px; font-size: 14px; }
.ctree--compact .lec__body { padding: 16px 12px 0; }
.ctree--compact .sec__head { padding: 10px 14px; }
.ctree--compact .sec__head b { font-size: 16px; }
.ctree--compact .item { padding: 8px 10px; }
.ctree--compact .item__title { font-size: 14px; }
.ctree--compact .item__ico { width: 32px; height: 32px; flex-basis: 32px; font-size: 12px; }
.ctree--compact .item__btn { min-width: 80px; padding: 6px 10px; font-size: 13px; }

.lec-checks b { display: block; color: var(--ink); margin-bottom: 10px; font-size: 15px; }
.lec-checks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.lec-checks li { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: 14.5px; }
html[data-theme="dark"] .lec-checks li { color: #7cc4ff; }
.lec-checks li i { color: var(--soft); font-size: 17px; }
.lec-checks li.is-done i { color: #06b6d4; }

.lesson-page { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 40px; align-items: start; margin-bottom: 30px; }
.lesson-page__main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.lesson-page .back-link { margin: 0; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; }
.step-nav__btn { display: inline-flex; align-items: center; gap: 12px; max-width: 48%; min-height: 50px; padding: 8px 22px; border-radius: 10px; background: #0b0f17; color: #fff; font-size: 16px; transition: background .2s, transform .2s; }
.step-nav__btn span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.step-nav__btn:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
html[data-theme="dark"] .step-nav__btn { background: #243244; }
.swap-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1.5px solid #34d399; border-radius: 12px; background: var(--card); flex-wrap: wrap; }
.swap-bar p { flex: 1; margin: 0; font-size: 14px; color: var(--muted); min-width: 200px; }
.swap-bar p b { color: var(--ink); }
.swap-bar .c-green { color: #15803d; }
.lesson-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.fav-btn, .done-btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 30px; padding: 12px 20px; font: inherit; font-size: 15px; cursor: pointer; transition: all .2s; }
.fav-btn { background: var(--accent-50); color: var(--ink); }
.fav-btn i { color: #0ea5e9; font-size: 19px; }
.fav-btn.is-on i { color: #f43f5e; }
.fav-btn:hover { background: #cdeafd; }
.done-btn { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.done-btn.is-on { background: var(--success); color: #fff; border-color: var(--success); }
.lesson-page .player { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(15, 23, 42, .6); }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.file-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 60px 44px 50px; display: flex; flex-direction: column; gap: 20px; }
.file-box h3 { margin: 0; font-size: 34px; font-weight: 700; color: var(--ink); }
.file-box h3 a { color: #06b6d4; text-decoration: underline; text-underline-offset: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; }
.file-box__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.btn--file { --bg: #2dd4bf; --fg: #fff; min-height: 50px; border-radius: 6px; font-size: 17px; }
.btn--file:hover { --bg: #14b8a6; }
.lesson-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.lesson-title h1 { margin: 0; font-size: 38px; color: #2e3192; font-weight: 700; line-height: 1.4; }
html[data-theme="dark"] .lesson-title h1 { color: #a5b4fc; }
.share-btn { width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; color: #2e3192; font-size: 24px; cursor: pointer; }
.share-btn:hover { background: var(--accent-50); }
.lesson-about { padding: 24px 26px 30px; }
.lesson-about__item { margin: 0 0 12px; font-size: 17px; color: var(--ink); display: flex; gap: 10px; align-items: center; }
.lesson-about__item i { color: #06b6d4; font-size: 14px; }
.lesson-about__txt { font-size: 15.5px; color: var(--text); line-height: 1.9; margin-bottom: 14px; }
.lesson-about__sum { border-top: 1px dashed var(--line); padding-top: 14px; }
.lesson-side { position: sticky; top: calc(var(--bar-h) + 20px); max-height: calc(100vh - var(--bar-h) - 40px); overflow-y: auto; padding: 24px 22px; border: 1px solid var(--line); }
.lesson-side__title { margin: 6px 0 22px; font-size: 32px; color: var(--ink); }

@media (max-width: 1400px) {
    .lesson-page { grid-template-columns: minmax(0, 1fr) 420px; gap: 26px; }
}
@media (max-width: 1200px) {
    .lesson-page { grid-template-columns: minmax(0, 1fr); }
    .lesson-side { position: static; max-height: none; }
}
@media (max-width: 640px) {
    .ctree { gap: 16px; }
    .lec__head { padding: 14px; gap: 10px; }
    .lec__txt > b { font-size: 16px; }
    .lec__chev { width: 34px; height: 34px; flex-basis: 34px; }
    .lec__body { padding: 14px 4px 0; }
    .sec__head b { font-size: 16px; }
    .item { flex-wrap: wrap; }
    .item__title { white-space: normal; font-size: 14.5px; }
    .item__btn { min-width: 0; padding: 6px 12px; font-size: 13px; }
    .item.is-gated { flex-wrap: nowrap; }
    .item__gate { font-size: 11.5px; padding: 4px 10px; inset-inline-start: 48px; }
    .lec-checks ul { grid-template-columns: 1fr; }
    .step-nav__btn { padding: 8px 12px; font-size: 14px; min-height: 44px; }
    .file-box { padding: 30px 18px; }
    .file-box h3 { font-size: 24px; }
    .lesson-title h1 { font-size: 26px; }
    .lesson-side { padding: 18px 12px; }
    .lesson-side__title { font-size: 24px; }
    .fav-btn, .done-btn { flex: 1; justify-content: center; padding: 10px 14px; font-size: 14px; }
}

.invoice { max-width: 1420px; margin: 0 auto 30px; display: flex; flex-direction: column; gap: 16px; }
.invoice .back-link { margin: 0; align-self: flex-start; }
.invoice__title { margin: 10px 0 0; text-align: center; font-size: 34px; font-weight: 700; color: var(--ink); }
.invoice__course { margin: 0 0 20px; text-align: center; color: var(--muted); font-size: 15px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.invoice__course i { color: var(--primary); }
.invoice__table-wrap { overflow-x: auto; }
.invoice__table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 17px; }
.invoice__table th, .invoice__table td { border: 1px solid #9aa4b2; padding: 26px 16px; text-align: center; color: var(--ink); }
html[data-theme="dark"] .invoice__table th, html[data-theme="dark"] .invoice__table td { border-color: var(--line); }
.invoice__table th { background: #d5d9df; font-weight: 700; }
html[data-theme="dark"] .invoice__table th { background: #1d2a3b; }
.invoice__table td b { font-size: 19px; }
.invoice__table td:nth-child(2) { color: var(--danger); }
.coupon { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.coupon label { font-weight: 600; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.coupon label i { color: var(--primary); }
.coupon__row { display: flex; gap: 8px; max-width: 520px; }
.coupon__row .control { flex: 1; }
.coupon__row input[readonly] { color: var(--success); font-weight: 700; }
.coupon__msg { font-size: 13px; min-height: 1em; }
.coupon__msg.is-ok { color: var(--success); }
.coupon__msg.is-err { color: var(--danger); }
.invoice__notes { background: var(--card); border: 1px dashed #b9c2cf; border-radius: 10px; padding: 20px 22px; margin-top: 8px; }
.invoice__notes h3 { margin: 0 0 12px; font-size: 17px; color: var(--ink); }
.invoice__notes div { font-size: 15px; color: var(--ink); line-height: 2; }
.invoice .check--card { padding: 18px 20px; }
.invoice__wallet { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14.5px; color: var(--text); padding: 0 4px; }
.invoice__wallet i { color: #16a34a; }
.invoice__wallet b { color: var(--ink); }
.invoice__wallet span:last-child { color: var(--muted); }
.invoice__short { display: flex; gap: 10px; align-items: flex-start; background: var(--warning-50); color: #92400e; border: 1px solid #fde68a; border-radius: 12px; padding: 14px 16px; font-size: 14.5px; }
html[data-theme="dark"] .invoice__short { color: #fbbf24; border-color: rgba(245, 158, 11, .35); }
.invoice__short i { margin-top: 4px; }
.invoice__short a { font-weight: 600; text-decoration: underline; }
.invoice__actions { display: flex; justify-content: center; margin-top: 4px; }
.btn--pay { --bg: #64748b; --fg: #fff; min-width: 190px; min-height: 52px; border-radius: 6px; font-size: 18px; }
.btn--pay[disabled] { opacity: .75; cursor: not-allowed; pointer-events: auto; }
.btn--pay.is-ready { --bg: var(--navy); box-shadow: 0 12px 24px -12px rgba(10, 92, 184, .8); }
.btn--pay.is-ready:hover { --bg: var(--navy-600); }

@media (max-width: 640px) {
    .invoice__title { font-size: 26px; }
    .invoice__table thead { display: none; }
    .invoice__table, .invoice__table tbody, .invoice__table tr, .invoice__table td { display: block; width: 100%; }
    .invoice__table td { display: flex; justify-content: space-between; padding: 14px 16px; border-width: 0 0 1px; text-align: start; }
    .invoice__table tr { border: 1px solid #9aa4b2; border-radius: 10px; overflow: hidden; }
    .invoice__table td::before { content: attr(data-label); font-weight: 700; color: var(--muted); }
    .invoice__table td:last-child { border-bottom: 0; background: var(--surface-2); }
    .coupon__row { flex-wrap: wrap; }
    .coupon__row .control { flex-basis: 100%; }
    .invoice__notes { padding: 16px; }
    .invoice__notes div { font-size: 14px; }
    .btn--pay { width: 100%; }
}
.lec-exp { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; border-radius: 12px; background: #e0f2fe; color: #075985; font-size: 14px; font-weight: 600; }
.lec-exp > i { font-size: 16px; }
.lec-exp small { font-weight: 500; opacity: .85; margin-inline-start: auto; }
.lec-exp--new { background: var(--surface-2); color: var(--text); }
.lec-exp.is-soon { background: #fef3c7; color: #92400e; }
.lec-exp--expired { background: #ffe4e6; color: #be123c; }
.lec-exp__btn { border: 0; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 16px; border-radius: 999px; background: #e11d48; color: #fff; display: inline-flex; gap: 6px; align-items: center; box-shadow: 0 8px 18px -10px rgba(225, 29, 72, .9); transition: transform .2s; }
.lec-exp__btn:hover { transform: translateY(-1px); }
html[data-theme="dark"] .lec-exp { background: rgba(14, 165, 233, .14); color: #7dd3fc; }
html[data-theme="dark"] .lec-exp--new { background: var(--surface-2); color: var(--text); }
html[data-theme="dark"] .lec-exp.is-soon { background: rgba(245, 158, 11, .15); color: #fcd34d; }
html[data-theme="dark"] .lec-exp--expired { background: rgba(225, 29, 72, .15); color: #fda4af; }
.lec.is-expired:not(.is-open) .lec__head { box-shadow: inset 4px 0 0 #e11d48; }
.lec-validity { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 16px; border-radius: 12px; background: #e0f2fe; color: #075985; font-size: 14px; margin-bottom: 12px; }
.lec-validity small { margin-inline-start: auto; opacity: .85; }
.lec-validity.is-soon { background: #fef3c7; color: #92400e; }
html[data-theme="dark"] .lec-validity { background: rgba(14, 165, 233, .14); color: #7dd3fc; }
html[data-theme="dark"] .lec-validity.is-soon { background: rgba(245, 158, 11, .15); color: #fcd34d; }
.cdetail__state--center { background: #ecfeff; color: #0e7490; }
.teacher__bio { margin: 6px 0 0; font-size: 14px; line-height: 1.8; color: var(--text); max-width: 620px; }
.teacher__more { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }

.subj-tabs { display: flex; gap: 8px; margin: -4px 0 16px; padding: 2px 2px 6px; overflow-x: auto; scrollbar-width: none; }
.subj-tabs::-webkit-scrollbar { display: none; }
.subj-tabs__item { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; background: var(--surface, #fff); border: 1px solid rgba(148, 163, 184, .35); color: var(--ink, #0f172a); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.subj-tabs__item img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.subj-tabs__item i { color: var(--primary, #0d9488); }
.subj-tabs__item:hover { border-color: var(--primary, #0d9488); }
.subj-tabs__item.is-active { background: var(--primary, #0d9488); border-color: var(--primary, #0d9488); color: #fff; }
.subj-tabs__item.is-active i { color: #fff; }
.course__teacher { display: inline-flex; align-items: center; gap: 6px; margin: -2px 0 8px; font-size: 12.5px; font-weight: 600; color: var(--primary, #0d9488); }

.pay-methods { display: grid; gap: 10px; }
.pay-methods h3 { margin: 4px 0 2px; font-size: 16px; color: var(--ink); }
.pay-method { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.pay-method:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.pay-method::after { content: ''; margin-inline-start: auto; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.pay-method:has(input:checked)::after { border-color: var(--primary); box-shadow: inset 0 0 0 4px var(--surface); background: var(--primary); }
.pay-method.is-off { opacity: .5; cursor: not-allowed; }
.pay-method__logos--on { flex-basis: 150px; }
.pay-method__logos--on .pm-brand { font-size: 28px; }
.pay-methods__none { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--primary-50); color: var(--text); font-size: 14px; }
.pay-method__logos { flex: 0 0 132px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pay-method__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-method__txt b { color: var(--ink); font-size: 15px; }
.pay-method__txt small { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.pm-logo { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px; border-radius: 8px; font-weight: 800; font-size: 14px; direction: ltr; }
.pm-logo--wallet { width: 44px; justify-content: center; background: #dcfce7; color: #16a34a; font-size: 18px; }
.pm-logo--fawry { background: #facc15; color: #0c4a6e; letter-spacing: .3px; }
.pm-logo--meeza { background: #0f3d6e; color: #fff; font-size: 12px; height: 28px; }
.pm-brand { font-size: 34px; line-height: 1; }
.pm-brand--visa { color: #1a1f71; }
.pm-brand--mc { color: #eb001b; }
html[data-theme="dark"] .pm-brand--visa { color: #93c5fd; }
.invoice__online { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--text); padding: 0 4px; line-height: 1.8; }
.invoice__online i { color: var(--primary); margin-top: 5px; }
.pay-ref-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #fefce8; border: 1px solid #fde047; color: #713f12; font-size: 14px; line-height: 1.8; }
html[data-theme="dark"] .pay-ref-box { background: rgba(250, 204, 21, .08); color: #fde68a; border-color: rgba(250, 204, 21, .35); }
.pay-ref-box > i { font-size: 20px; margin-top: 4px; color: #ca8a04; }
.pay-ref-box div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pay-ref-box strong { font-size: 26px; letter-spacing: 2px; color: var(--ink); }
@media (max-width: 560px) { .pay-method { flex-wrap: wrap; } .pay-method__logos { flex-basis: 100%; } .pay-method::after { position: absolute; top: 14px; inset-inline-end: 14px; } }

.guest-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 30px; background: var(--navy, #0a5cb8); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; border: 2px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.guest-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(10, 92, 184, .8); }
.guest-btn--line { background: transparent; color: var(--navy, #0a5cb8); border-color: currentColor; }
.guest-btn--line:hover { color: var(--navy, #0a5cb8); background: rgba(10, 92, 184, .06); box-shadow: none; }
html[data-theme="dark"] .guest-btn--line { color: #7cc4ff; }
.guest-lock .btn { margin-top: 14px; }
.guest-cta { position: fixed; bottom: 22px; inset-inline-start: 50%; transform: translateX(50%); z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 40px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 16px 34px -14px rgba(11, 179, 184, .9); white-space: nowrap; animation: guestIn .5s var(--ease) both .6s; transition: transform .25s var(--ease), box-shadow .25s; }
.guest-cta:hover { color: #fff; transform: translateX(50%) translateY(-3px); box-shadow: 0 22px 40px -14px rgba(11, 179, 184, 1); }
@keyframes guestIn { from { opacity: 0; transform: translateX(50%) translateY(24px); } }
.is-guest .item.is-locked { cursor: pointer; }
.is-guest .item.is-locked:hover { border-color: var(--accent); background: var(--card); }
.is-guest .item.is-locked:hover .item__ico { color: var(--accent); }
.need-login .confirm__actions { flex-wrap: wrap; }
.need-login .confirm__actions .btn { flex: 1 1 auto; }
.subj-tabs--grades { margin-bottom: 10px; }
@media (max-width: 600px) {
    .guest-btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
    .guest-btn span { display: none; }
    .guest-btn--line span { display: inline; }
    .guest-cta { bottom: 16px; padding: 12px 20px; font-size: 14px; }
    .is-guest .fabs { bottom: 80px; }
}

@media (hover: hover) and (pointer: fine) {
    .side__link i, .pop__item i, .notif__ico, .item__ico, .lesson-row__ico, .course__teacher i, .bar__icon i, .wallet__ico { transition: transform .25s var(--ease); }
    .side__link:hover i { transform: translateX(-3px) scale(1.08); }
    .pop__item:hover i { transform: translateX(-3px); }
    .pop__item { transition: background .2s, color .2s, padding .2s; }
    .notif:hover .notif__ico { transform: scale(1.1) rotate(-8deg); }
    .bar__icon { transition: transform .2s var(--ease), background .2s, color .2s; }
    .bar__icon:hover { transform: translateY(-2px); }
    .theme-btn:hover i { transform: rotate(25deg); }
    .wallet { transition: transform .2s var(--ease), box-shadow .2s; }
    .wallet:hover { box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .35); }
    .wallet:hover .wallet__ico { transform: scale(1.08); }
    .avatar-btn { transition: transform .2s var(--ease), box-shadow .2s; }
    .avatar-btn:hover { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(11, 179, 184, .2); }
    .item:not(.is-gated):hover { transform: translateX(-4px); }
    .item:not(.is-gated):hover .item__ico { transform: scale(1.12); }
    .lesson-row:hover { transform: translateX(-4px); }
    .lesson-row { transition: background .2s, transform .2s var(--ease); }
    .lesson-row:hover .lesson-row__ico { transform: scale(1.1); }
    .lec__head { transition: background .2s; }
    .lec__head:hover .lec__chev { transform: translateY(2px); }
    .lec__chev { transition: transform .25s var(--ease); }
    .seg__item:hover:not(.is-active) { color: var(--ink); background: var(--surface-2); }
    .subj-tabs__item { transition: background .15s, color .15s, border-color .15s, transform .2s var(--ease), box-shadow .2s; }
    .subj-tabs__item:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 8px 16px -12px rgba(15, 23, 42, .4); }
    .course__teacher:hover i { transform: translateX(-3px); }
    .fab:hover { transform: translateY(-4px) scale(1.05); }
    .teacher__img { transition: transform .35s var(--ease), box-shadow .35s; }
    .teacher:hover .teacher__img { transform: scale(1.05) rotate(-2deg); }
    .promo { transition: transform .3s var(--ease), box-shadow .3s; }
    .promo:hover { transform: translateY(-3px); }
    .cdetail__side .cover img { transition: transform .6s var(--ease); }
    .cdetail__side:hover .cover img { transform: scale(1.04); }
    .foot__col a { transition: color .2s, padding .2s; }
    .foot__col a:hover { padding-inline-start: 4px; }
}
.is-guest .foot { padding-bottom: 90px; }
