﻿:root {
    --primary: #e0aa00;
    --secondary: #ffcb05;
    --accent: #111111;
    --accent-soft: #fff7cf;
    --leaf: #ffe486;
    --sunny: #fff7cf;
    --deep-blue: #111111;
    --soft-bg: #fffdf2;
    --mint: #fff1b8;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    margin: 0;
    font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--soft-bg);
    color: var(--deep-blue);
}

.container {
    width: min(1200px, 94%);
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 1.5rem 0;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.main-nav a {
    color: var(--deep-blue);
    text-decoration: none;
    padding: 0.35rem 0.2rem;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--primary);
    background: #fff1f9;
}

.site-header > .btn-login {
    margin-left: auto;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    position: relative;
    z-index: 1210;
}

.header-actions.has-notify-bell {
    gap: 0.75rem;
}

.header-actions > .btn-login {
    margin-left: 0;
}

.header-notify-btn {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-self: center;
    border-radius: 50%;
    background: #fff;
    color: var(--deep-blue);
    border: 2px solid rgba(31, 47, 30, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(26, 21, 16, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-actions.has-notify-bell .header-notify-btn {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin: 0;
    z-index: auto;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.48);
    color: #fff;
    box-shadow: none;
}

.header-notify-btn:hover,
.header-notify-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(0, 127, 0, 0.45);
    box-shadow: 0 12px 24px rgba(0, 127, 0, 0.22);
    color: #006800;
    outline: none;
}

.header-actions.has-notify-bell .header-notify-btn:hover,
.header-actions.has-notify-bell .header-notify-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.72);
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.header-notify-btn.is-active {
    border-color: rgba(0, 127, 0, 0.55);
    color: #006800;
}

.header-actions.has-notify-bell .header-notify-btn.is-active {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.header-notify-btn__icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-notify-btn__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.header-notify-btn__badge {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    padding: 0 5px;
    background: #e53935;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(229, 57, 53, 0.3);
}

.header-notify-btn.has-unread.is-ringing .header-notify-btn__icon {
    animation: header-bell-shake 1.4s ease-in-out infinite;
    transform-origin: top center;
}

.user-menu {
    position: relative;
    min-width: 0;
    z-index: 1211;
}

.user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: none;
    background: var(--deep-blue);
    color: #fff;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 12px 20px rgba(60, 42, 30, 0.18);
    transition: background 0.25s ease, box-shadow 0.25s ease;
    min-width: 0;
    max-width: min(100%, 460px);
}

.header-actions.has-notify-bell .user-toggle {
    padding-left: 1.4rem;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-avatar-fallback {
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.user-toggle:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.user-greeting {
    opacity: 0.72;
    font-size: 0.72rem;
    line-height: 1.05;
    white-space: nowrap;
}

.user-meta {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    min-width: 0;
}

.user-name {
    font-weight: 700;
    display: inline-block;
    max-width: clamp(120px, 16vw, 240px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .header-actions.has-notify-bell .user-toggle {
        padding-left: 3.4rem;
    }

    .header-actions.has-notify-bell .user-name {
        max-width: clamp(120px, 24vw, 205px);
    }
}

.user-caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.user-menu.is-open .user-caret {
    transform: rotate(180deg);
}

.user-menu.is-open {
    z-index: 1216;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    min-width: 180px;
    background: linear-gradient(180deg, rgba(255, 250, 226, 0.98), rgba(255, 243, 190, 0.95));
    padding: 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(224, 170, 0, 0.2);
    box-shadow: 0 18px 40px rgba(224, 170, 0, 0.18);
    display: none;
    z-index: 1217;
}

.user-menu.is-open .user-dropdown {
    display: grid;
    gap: 0.45rem;
}

.user-action {
    display: block;
    text-decoration: none;
    color: var(--deep-blue);
    font-weight: 600;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.42);
    transition: background 0.2s ease, color 0.2s ease;
    text-align: left;
}

.user-action:hover,
.user-action:focus {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.28), rgba(255, 249, 225, 0.96));
    color: var(--deep-blue);
}

.user-action.is-active,
.user-action[aria-current='page'] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.42), rgba(255, 243, 190, 0.96));
    color: var(--deep-blue);
}

.user-action:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.site-logo {
    width: clamp(110px, 13vw, 180px);
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(224, 170, 0, 0.24));
}

.logo-circle {
    width: 64px;
    height: 64px;
    border-radius: 32px;
    background: linear-gradient(135deg, #ffcb05, #fff1b8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 3px solid #fff;
    box-shadow: 0 10px 24px rgba(224, 170, 0, 0.28);
}

.brand {
    font-family: 'Baloo 2', cursive;
    font-size: 1.8rem;
    margin: 0;
}

.tagline {
    margin: 0;
    color: #3F6B35;
    font-size: 0.95rem;
}

.btn-login {
    border: none;
    background: linear-gradient(145deg, #ED1E79, var(--secondary));
    color: #fff;
    font-weight: 700;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 14px 28px rgba(140, 198, 63, 0.25);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn-login:hover,
.btn-login:focus {
    text-decoration: none;
    box-shadow: 0 18px 32px rgba(140, 198, 63, 0.3);
}

.btn-login.ghost {
    background: rgba(60, 42, 30, 0.08);
    color: var(--deep-blue);
    box-shadow: none;
}

.hero {
    background: transparent;
    border-radius: 32px;
    padding: 0;
    margin-bottom: 2rem;
}

.slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 500;
    border-radius: 24px;
    overflow: hidden;
    background: #FFE2D2;
    box-shadow: 0 25px 60px rgba(60, 42, 30, 0.18);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    display: block;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--deep-blue);
    box-shadow: 0 18px 32px rgba(60, 42, 30, 0.2);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-control:hover,
.slider-control:focus {
    background: rgba(140, 198, 63, 0.92);
    color: #fff;
    box-shadow: 0 20px 36px rgba(140, 198, 63, 0.35);
    outline: none;
}

.slider-control:focus-visible {
    box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.4);
}

.slider-control--prev {
    left: 1.25rem;
}

.slider-control--next {
    right: 1.25rem;
}

.slider-control svg {
    width: 22px;
    height: 22px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: rgba(60, 42, 30, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    width: 32px;
    background: var(--primary);
}

.section-heading {
    margin: 3rem 0 1rem;
    text-align: center;
}

.section-heading h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.course-card {
    border-radius: 28px;
    padding: 1.6rem;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 36px rgba(31, 47, 30, 0.14), inset 0 0 0 2px rgba(255, 255, 255, 0.4);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pagination {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    justify-content: center;
}

.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: var(--deep-blue);
    background: rgba(60, 42, 30, 0.08);
    transition: background 0.2s ease, color 0.2s ease;
}

.pagination a:hover,
.pagination a:focus {
    background: var(--deep-blue);
    color: #fff;
}

.pagination span.current {
    background: var(--secondary);
    color: var(--deep-blue);
    cursor: default;
}

.class-section {
    padding: 0;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.class-section .section-heading {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.home-course-section .course-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    justify-items: stretch;
    gap: clamp(1.25rem, 2vw, 2rem);
}

.home-course-section .course-card {
    padding: 1.4rem;
    gap: 0.85rem;
    max-width: none;
    margin: 0;
    height: 100%;
    box-shadow: 0 18px 36px rgba(31, 47, 30, 0.14), inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.home-course-section .course-empty-state {
    text-align: center;
    margin: 2rem auto;
    max-width: 520px;
}

.course-category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: clamp(1.5rem, 3vw, 2.2rem) 0;
}

.course-category-tabs .category-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    background: #fff;
    color: var(--deep-blue);
    text-decoration: none;
    font-weight: 600;
    box-shadow: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.course-category-tabs .category-tab:hover,
.course-category-tabs .category-tab:focus {
    transform: translateY(-1px);
    box-shadow: none;
}

.course-category-tabs .category-tab:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.course-category-tabs .category-tab.is-active {
    background: linear-gradient(145deg, #ED1E79, var(--secondary));
    color: #fff;
    box-shadow: none;
}

.course-category-tabs .category-tab.is-active .category-count {
    background: rgba(255, 255, 255, 0.55);
    color: var(--deep-blue);
}

.course-category-tabs .category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
    height: 1.8rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: rgba(60, 42, 30, 0.08);
    font-size: 0.8rem;
    font-weight: 700;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2.2rem);
}

.class-grid.class-grid--desktop-1 {
    grid-template-columns: 1fr;
}

.class-grid.class-grid--desktop-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.class-grid.class-grid--desktop-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.class-card {
    border-radius: 28px;
    padding: 1.6rem;
    box-shadow: 0 18px 36px rgba(31, 47, 30, 0.14), inset 0 0 0 2px rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.7);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
    display: flex;
    flex-wrap: wrap;
    column-gap: clamp(1.55rem, 2.2vw, 2rem);
    row-gap: 1.25rem;
    min-height: 100%;
    color: var(--deep-blue);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.class-card.restricted {
    border-color: rgba(255, 255, 255, 0.55);
}

.course-card.is-clickable,
.class-card.is-clickable {
    cursor: pointer;
}

.course-card.is-clickable:focus-visible,
.class-card.is-clickable:focus-visible {
    outline: 3px solid rgba(140, 198, 63, 0.58);
    outline-offset: 2px;
}

.class-card-content {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.class-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 0 1px rgba(31, 47, 30, 0.08);
}

.class-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.class-attendance-cta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.class-attendance-cta__btn {
    border: 1px solid rgba(17, 17, 17, 0.9);
    background: linear-gradient(140deg, #111111 0%, #242424 52%, #050505 100%);
    color: #ffcb05;
    border-radius: 999px;
    padding: 0.62rem 0.95rem;
    font-family: 'Nunito', 'Segoe UI', Tahoma, Arial, sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1.2;
    letter-spacing: 0;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.24);
    transition: transform 0.18s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.class-attendance-cta__btn:hover,
.class-attendance-cta__btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.34);
}

.class-attendance-cta__btn.is-completed:hover,
.class-attendance-cta__btn.is-completed:focus-visible {
    box-shadow: 0 14px 30px rgba(224, 170, 0, 0.34);
}

.class-attendance-cta__btn.is-completed {
    border-color: rgba(224, 170, 0, 0.46);
    background: linear-gradient(140deg, #ffe486 0%, #ffcb05 45%, #e0aa00 100%);
    color: #111111;
    box-shadow: 0 10px 22px rgba(224, 170, 0, 0.28);
}

.class-attendance-cta__btn:disabled {
    cursor: not-allowed;
    opacity: 0.9;
    transform: none;
}

.class-attendance-cta__meta {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(30, 53, 95, 0.8);
}

body.random-exam-popup-open {
    overflow: hidden;
}

.attendance-reward-popup {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1500;
    width: min(92vw, 360px);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.attendance-reward-popup[hidden] {
    display: none;
}

.attendance-reward-popup.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.attendance-reward-popup__dialog {
    position: relative;
    width: 100%;
    pointer-events: auto;
    border-radius: 20px;
    border: 1px solid rgba(237, 30, 121, 0.18);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 42%),
        linear-gradient(145deg, rgba(232, 255, 242, 0.98) 0%, rgba(255, 250, 236, 0.98) 58%, rgba(235, 248, 255, 0.98) 100%);
    box-shadow: 0 18px 40px rgba(24, 49, 67, 0.18);
    padding: 0.95rem 1rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
}

.attendance-reward-popup__close {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: rgba(31, 66, 42, 0.86);
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
}

.attendance-reward-popup__thumb {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    overflow: hidden;
}

.attendance-reward-popup__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.12);
    transform-origin: center;
}

.attendance-reward-popup__thumb span {
    font-size: 0.84rem;
    font-weight: 900;
    color: #2a7a43;
}

.attendance-reward-popup__content {
    min-width: 0;
    display: grid;
    gap: 0.25rem;
}

.attendance-reward-popup__title {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.32;
    font-weight: 900;
    color: #1e6d39;
}

.attendance-reward-popup__message {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    font-weight: 700;
    color: rgba(30, 66, 47, 0.9);
}

.random-exam-popup {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    place-items: center;
    padding: clamp(0.8rem, 2.8vw, 1.4rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.random-exam-popup[hidden] {
    display: none;
}

.random-exam-popup.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.random-exam-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
}

.random-exam-popup__dialog {
    position: relative;
    width: min(520px, 92vw);
    border-radius: 24px;
    border: 1px solid rgba(31, 47, 30, 0.14);
    background: linear-gradient(148deg, #fff8fd 0%, #f2fff8 100%);
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    transform: translateY(8px) scale(0.985);
    transition: transform 0.2s ease;
}

.random-exam-popup.is-visible .random-exam-popup__dialog {
    transform: translateY(0) scale(1);
}

.random-exam-popup__dialog::before {
    content: '';
    display: block;
    height: 8px;
    background: linear-gradient(90deg, #ff4d8f 0%, #ed1e79 38%, #ff6f3a 100%);
}

.random-exam-popup__close {
    position: absolute;
    top: 0.7rem;
    right: 0.75rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 47, 30, 0.14);
    background: #fff;
    color: rgba(31, 47, 30, 0.68);
    font-size: 1.3rem;
    line-height: 1;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.random-exam-popup__close:hover,
.random-exam-popup__close:focus-visible {
    outline: none;
    border-color: rgba(237, 30, 121, 0.26);
    background: #fff;
    color: #1f2f1e;
}

.random-exam-popup__content {
    display: grid;
    gap: 0.7rem;
    padding: 1.15rem 1.1rem 1.1rem;
}

.random-exam-popup__title {
    margin: 0;
    padding-right: 3rem;
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.24rem, 2.4vw, 1.45rem);
    line-height: 1.2;
    color: #1f2f1e;
}

.random-exam-popup__message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 700;
    color: rgba(31, 47, 30, 0.72);
}

.random-exam-popup__message[hidden] {
    display: none;
}

.random-exam-popup__actions {
    display: flex;
    justify-content: stretch;
    padding-top: 0.2rem;
}

.random-exam-popup__button {
    width: 100%;
    padding: 0.82rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(237, 30, 121, 0.22);
    background: linear-gradient(135deg, #fff 0%, #ffeaf5 100%);
    color: #6f164a;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.random-exam-popup__button:hover,
.random-exam-popup__button:focus-visible {
    outline: none;
    border-color: rgba(237, 30, 121, 0.4);
    box-shadow: 0 14px 28px rgba(237, 30, 121, 0.12);
    transform: translateY(-1px);
}

@media (max-width: 540px) {
    .attendance-reward-popup {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        width: auto;
    }

    .attendance-reward-popup__dialog {
        padding: 0.9rem 0.95rem;
    }

    .attendance-reward-popup__thumb {
        width: 3rem;
        height: 3rem;
    }

    .random-exam-popup__content {
        padding: 1.3rem 1rem 1rem;
    }

    .random-exam-popup__title {
        padding-right: 2.8rem;
    }

    .random-exam-popup__actions {
        justify-content: stretch;
    }

    .random-exam-popup__button {
        width: 100%;
    }
}

.class-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.class-body h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Baloo 2', cursive;
}

.class-meta {
    margin: 0;
    color: #3F6B35;
    font-weight: 600;
    font-size: 0.9rem;
}

.class-courses-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.class-courses-heading {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(60, 42, 30, 0.7);
}

.class-courses {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.class-courses li a {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(237, 30, 121, 0.24);
    background: linear-gradient(135deg, #ffe8f4 0%, #ffd2e8 100%);
    color: #7f1f56;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.class-courses li a:hover,
.class-courses li a:focus-visible {
    border-color: rgba(237, 30, 121, 0.42);
    background: linear-gradient(135deg, #ffd8eb 0%, #ffc1de 100%);
    color: #6f164a;
}

.class-note {
    margin: 0;
    color: #BB5E35;
    font-weight: 600;
    font-size: 0.9rem;
}

.class-note--muted {
    color: rgba(31, 47, 30, 0.66);
}

.class-todo-home {
    flex: 1 1 280px;
    max-width: none;
    width: 100%;
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 249, 211, 0.72), transparent 54%),
        rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    padding: 1.15rem 1.2rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
    order: 2;
}

.class-todo-home__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.class-todo-home__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.class-todo-home__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.72rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(60, 42, 30, 0.8);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(60, 42, 30, 0.12);
}

.class-todo-home__status {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
}

.class-todo-home__mood {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    padding: 0.48rem 0.58rem;
    border-radius: 14px;
    border: 1px dashed rgba(60, 42, 30, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 253, 240, 0.94));
}

.class-todo-home__mood-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
    color: #111111;
    background: linear-gradient(145deg, #ffd84a, #ffcb05);
    border: 1px solid rgba(224, 170, 0, 0.34);
    box-shadow: 0 10px 18px rgba(224, 170, 0, 0.24), 0 4px 10px rgba(17, 17, 17, 0.08);
    transform-origin: center bottom;
    animation: todoMoodFloat 2.5s ease-in-out infinite;
}

.class-todo-home__mood-icon::before {
    content: '';
    width: 0.96rem;
    height: 0.96rem;
    display: block;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 3.25c.28 0 .54.17.65.43l1.45 4.17 4.17 1.45c.26.11.43.37.43.65s-.17.54-.43.65l-4.17 1.45-1.45 4.17a.7.7 0 0 1-1.3 0l-1.45-4.17-4.17-1.45A.7.7 0 0 1 5.25 10c0-.28.17-.54.43-.65l4.17-1.45 1.45-4.17c.11-.26.37-.43.65-.43Z'/></svg>");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 3.25c.28 0 .54.17.65.43l1.45 4.17 4.17 1.45c.26.11.43.37.43.65s-.17.54-.43.65l-4.17 1.45-1.45 4.17a.7.7 0 0 1-1.3 0l-1.45-4.17-4.17-1.45A.7.7 0 0 1 5.25 10c0-.28.17-.54.43-.65l4.17-1.45 1.45-4.17c.11-.26.37-.43.65-.43Z'/></svg>");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.class-todo-home__mood-text {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(60, 42, 30, 0.86);
    line-height: 1.33;
}

.class-todo-home__mood[data-state='heavy'],
.class-todo-home__mood[data-state^='load-'] {
    border-color: rgba(227, 108, 87, 0.44);
    background: linear-gradient(180deg, rgba(255, 241, 236, 0.96), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 1.05s;
}

.class-todo-home__mood[data-state='heavy'] .class-todo-home__mood-icon,
.class-todo-home__mood[data-state^='load-'] .class-todo-home__mood-icon {
    animation: todoMoodPrompt var(--todo-prompt-speed) ease-in-out infinite;
}

.class-todo-home__mood[data-state='load-3'] {
    border-color: rgba(236, 173, 98, 0.45);
    background: linear-gradient(180deg, rgba(255, 247, 230, 0.96), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 1.2s;
}

.class-todo-home__mood[data-state='load-4'] {
    border-color: rgba(234, 154, 92, 0.45);
    background: linear-gradient(180deg, rgba(255, 243, 230, 0.96), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 1.12s;
}

.class-todo-home__mood[data-state='load-5'] {
    border-color: rgba(230, 137, 88, 0.47);
    background: linear-gradient(180deg, rgba(255, 240, 232, 0.96), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 1.06s;
}

.class-todo-home__mood[data-state='load-6'] {
    border-color: rgba(228, 124, 85, 0.48);
    background: linear-gradient(180deg, rgba(255, 236, 231, 0.96), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 1s;
}

.class-todo-home__mood[data-state='load-7'] {
    border-color: rgba(225, 113, 85, 0.5);
    background: linear-gradient(180deg, rgba(255, 232, 229, 0.96), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 0.95s;
}

.class-todo-home__mood[data-state='load-8'] {
    border-color: rgba(222, 101, 84, 0.5);
    background: linear-gradient(180deg, rgba(255, 228, 227, 0.97), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 0.9s;
}

.class-todo-home__mood[data-state='load-9'] {
    border-color: rgba(218, 90, 82, 0.52);
    background: linear-gradient(180deg, rgba(255, 223, 224, 0.97), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 0.86s;
}

.class-todo-home__mood[data-state='load-10'] {
    border-color: rgba(214, 78, 79, 0.54);
    background: linear-gradient(180deg, rgba(255, 218, 220, 0.97), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 0.82s;
}

.class-todo-home__mood[data-state='load-10-plus'] {
    border-color: rgba(208, 64, 72, 0.56);
    background: linear-gradient(180deg, rgba(255, 210, 214, 0.98), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 0.78s;
}

.class-todo-home__mood[data-state='all-done'] {
    border-color: rgba(76, 175, 80, 0.38);
    background: linear-gradient(180deg, rgba(237, 253, 230, 0.96), rgba(255, 255, 255, 0.93));
}

.class-todo-home__mood[data-state='all-done'] .class-todo-home__mood-icon {
    animation: todoMoodCelebrate 1.2s ease-in-out infinite;
}

.class-todo-home__mood[data-state='almost'] {
    border-color: rgba(244, 193, 67, 0.42);
    background: linear-gradient(180deg, rgba(255, 251, 230, 0.97), rgba(255, 255, 255, 0.92));
}

.class-todo-home__mood[data-state='empty'] {
    border-color: rgba(98, 144, 227, 0.38);
    background: linear-gradient(180deg, rgba(239, 247, 255, 0.95), rgba(255, 255, 255, 0.93));
}

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

@keyframes todoMoodPrompt {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    38% {
        transform: translateY(-1px) scale(1.06);
    }
    62% {
        transform: translateY(0) scale(0.98);
    }
}

@keyframes todoMoodCelebrate {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-4px) rotate(-7deg);
    }
    75% {
        transform: translateY(-4px) rotate(7deg);
    }
}

.class-todo-home__status[data-tone='success'] {
    color: #1e7f37;
}

.class-todo-home__status[data-tone='error'] {
    color: #c0392b;
}

.class-todo-home__groups {
    display: grid;
    gap: 0.7rem;
}

.class-todo-home__group {
    border-radius: 16px;
    border: 1px solid rgba(60, 42, 30, 0.14);
    background: rgba(255, 255, 255, 0.84);
    padding: 0.7rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.52rem;
}

.class-todo-home__group--completed {
    background: linear-gradient(180deg, rgba(242, 252, 236, 0.92), rgba(255, 255, 255, 0.84));
    border-color: rgba(76, 175, 80, 0.28);
}

.class-todo-home__group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.class-todo-home__group-head h5 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(60, 42, 30, 0.82);
}

.class-todo-home__group-count {
    min-width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    padding: 0 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: rgba(60, 42, 30, 0.82);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(60, 42, 30, 0.16);
}

.class-todo-home__empty {
    margin: 0;
    font-weight: 600;
    color: rgba(60, 42, 30, 0.62);
    font-size: 0.85rem;
}

.class-todo-home__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
    max-height: min(200px, 34vh);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.class-todo-home__item {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    border: 1px solid rgba(60, 42, 30, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.52rem;
    align-items: center;
    text-align: left;
    padding: 0.6rem 0.7rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-shadow: none;
    transform: none;
    position: relative;
    overflow: hidden;
}

.class-todo-home__item:hover,
.class-todo-home__item:focus-visible {
    outline: none;
    border-color: rgba(3, 102, 3, 0.45);
    background: linear-gradient(180deg, rgba(241, 255, 239, 0.9), rgba(255, 255, 255, 0.97));
    box-shadow: none;
    transform: none;
    filter: none;
}

.class-todo-home__item.is-updating {
    opacity: 0.72;
    cursor: wait;
}

.class-todo-home__item:disabled:not(.is-updating) {
    opacity: 1;
    cursor: default;
    color: inherit;
}

.class-todo-home__check {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 2px solid rgba(60, 42, 30, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.class-todo-home__check-sticker,
.class-todo-home__check-sticker-fallback {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.class-todo-home__check-sticker {
    object-fit: cover;
    background: #fff;
}

.class-todo-home__check-sticker-fallback {
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(60, 42, 30, 0.86);
    background: rgba(255, 255, 255, 0.98);
}

.class-todo-home__check-mark {
    font-size: 0.84rem;
    line-height: 1;
    font-weight: 800;
    color: transparent;
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.class-todo-home__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.class-todo-home__item-title {
    font-size: 0.93rem;
    font-weight: 700;
    color: rgba(60, 42, 30, 0.9);
    overflow-wrap: anywhere;
}

.class-todo-home__item-date {
    font-size: 0.78rem;
    color: rgba(60, 42, 30, 0.62);
}

.class-todo-home__item.is-completed {
    border-color: rgba(63, 156, 70, 0.42);
    background: linear-gradient(135deg, rgba(238, 252, 234, 0.98), rgba(248, 255, 246, 0.95));
}

.class-todo-home__item.is-completed::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: rgba(63, 156, 70, 0.1);
}

.class-todo-home__item.is-completed > * {
    position: relative;
    z-index: 1;
}

.class-todo-home__item.is-completed .class-todo-home__check {
    border-color: rgba(63, 156, 70, 0.8);
    background: rgba(67, 160, 71, 0.16);
    box-shadow: none;
}

.class-todo-home__item.is-completed .class-todo-home__check-mark {
    color: #fff;
    text-shadow: 0 1px 4px rgba(12, 90, 18, 0.32);
}

.class-todo-home__item.is-completed .class-todo-home__item-title {
    text-decoration: line-through;
    color: rgba(60, 42, 30, 0.56);
}

.class-todo-home__item.is-completed .class-todo-home__check-sticker,
.class-todo-home__item.is-completed .class-todo-home__check-sticker-fallback {
    opacity: 0.38;
    filter: saturate(0.8);
}


.class-notes-panel {
    flex: 1 1 280px;
    max-width: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    padding: 1.4rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    order: 3;
}

.class-notes-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.class-notes-head {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.class-notes-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.24rem;
    border-radius: 999px;
    background: rgba(60, 42, 30, 0.08);
    border: 1px solid rgba(60, 42, 30, 0.14);
}

.class-notes-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: rgba(60, 42, 30, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.class-notes-filter-btn:hover,
.class-notes-filter-btn:focus-visible {
    background: rgba(255, 255, 255, 0.75);
    color: rgba(60, 42, 30, 0.86);
    outline: none;
}

.class-notes-filter-btn.is-active {
    background: linear-gradient(145deg, #ffe486, #ffcb05);
    color: #111111;
    box-shadow: 0 8px 14px rgba(224, 170, 0, 0.28);
}

.class-notes-scroll {
    height: auto;
    max-height: min(360px, 52vh);
    overflow-y: auto;
    padding-right: 0.45rem;
}

.class-notes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    position: relative;
    --timeline-x: 0.6rem;
}

.class-notes-list::before {
    content: '';
    position: absolute;
    left: var(--timeline-x);
    top: 0.3rem;
    bottom: 0.3rem;
    width: 2px;
    background: rgba(60, 42, 30, 0.12);
    transform: translateX(-50%);
}

.class-notes-list li {
    display: flex;
    gap: 0.85rem;
    position: relative;
    padding-left: 1.6rem;
    min-height: 52px;
}

.class-notes-marker {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--primary);
    position: absolute;
    left: var(--timeline-x);
    top: 0.4rem;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(140, 198, 63, 0.18);
}

.class-notes-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.class-note-tag {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(60, 42, 30, 0.08);
    color: rgba(60, 42, 30, 0.75);
}

.class-note-tag.is-member {
    background: rgba(3, 102, 3, 0.15);
    color: #c0392b;
}

.class-notes-list time {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(60, 42, 30, 0.6);
}

.class-notes-list p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(60, 42, 30, 0.85);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-height: 140px;
    overflow-y: auto;
}

.class-notes-list p a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.class-notes-empty {
    margin: 0;
    font-weight: 600;
    color: rgba(60, 42, 30, 0.6);
}

.class-notes-empty--filtered {
    margin-top: 0.45rem;
    padding: 0.72rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(60, 42, 30, 0.22);
    font-size: 0.84rem;
}

.class-arena-panel {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 1.35rem;
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 230, 156, 0.34), transparent 30%),
        radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.82), transparent 24%),
        linear-gradient(145deg, rgba(238, 252, 234, 0.98), rgba(238, 248, 255, 0.95) 58%, rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(59, 138, 68, 0.18);
    box-shadow:
        0 22px 42px rgba(68, 126, 61, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.58);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.class-arena-panel-host {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.class-arena-panel-host:empty {
    display: none;
}

.class-arena-panel::before,
.class-arena-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.class-arena-panel::before {
    top: -90px;
    left: -56px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.44), transparent 70%);
}

.class-arena-panel::after {
    right: -48px;
    bottom: -62px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 208, 112, 0.18), transparent 72%);
}

.class-arena-panel__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.class-arena-panel__head-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.class-arena-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 28px;
    padding: 0.2rem 0.72rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(18, 123, 46, 0.18), rgba(255, 219, 110, 0.26));
    color: #0c7130;
    font-size: 0;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.class-arena-panel__eyebrow::after {
    content: "Đấu trường thi";
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.class-arena-panel__title {
    display: none;
}

.class-arena-panel__subtitle {
    display: none;
}

.class-arena-panel__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.36rem 0.92rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(16, 90, 39, 0.12);
    color: rgba(25, 53, 30, 0.82);
    font-size: 0.84rem;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(49, 88, 44, 0.08);
}

.class-arena-panel__empty {
    margin: 0;
    position: relative;
    z-index: 1;
    padding: 1rem 1.08rem;
    border-radius: 18px;
    border: 1px dashed rgba(31, 47, 30, 0.14);
    background: rgba(255, 255, 255, 0.82);
    color: rgba(31, 47, 30, 0.72);
    font-weight: 700;
}

.class-arena-panel__list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
}

.class-arena-session {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(31, 47, 30, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.97)),
        linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.94));
    padding: 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.82rem;
    box-shadow: 0 18px 34px rgba(31, 47, 30, 0.07);
}

.class-arena-session::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: linear-gradient(180deg, rgba(18, 149, 56, 0.92), rgba(255, 203, 86, 0.78));
}

.class-arena-session.is-open {
    border-color: rgba(15, 143, 47, 0.28);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 228, 140, 0.22), transparent 28%),
        linear-gradient(145deg, rgba(243, 255, 241, 0.98), rgba(255, 255, 255, 0.96));
    box-shadow: 0 24px 42px rgba(15, 132, 45, 0.12);
}

.class-arena-session.is-scheduled {
    border-color: rgba(236, 92, 157, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.74), transparent 24%),
        linear-gradient(145deg, rgba(255, 242, 248, 0.98), rgba(255, 251, 253, 0.96));
}

.class-arena-session.is-closed {
    border-color: rgba(60, 42, 30, 0.14);
    background: linear-gradient(145deg, rgba(250, 250, 250, 0.95), rgba(255, 255, 255, 0.94));
}

.class-arena-session.is-cancelled {
    border-color: rgba(214, 78, 79, 0.2);
    background: linear-gradient(145deg, rgba(255, 244, 244, 0.96), rgba(255, 255, 255, 0.94));
}

.class-arena-session.is-scheduled::before {
    background: linear-gradient(180deg, rgba(236, 80, 145, 0.94), rgba(255, 185, 216, 0.84));
}

.class-arena-session.is-closed::before {
    background: linear-gradient(180deg, rgba(126, 126, 126, 0.84), rgba(208, 208, 208, 0.72));
}

.class-arena-session.is-cancelled::before {
    background: linear-gradient(180deg, rgba(220, 82, 83, 0.92), rgba(255, 183, 183, 0.8));
}

.class-arena-session__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.class-arena-session__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.28rem 0.88rem;
    border-radius: 999px;
    background: rgba(15, 143, 47, 0.14);
    color: #0b7a29;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(11, 122, 41, 0.08);
}

.class-arena-session.is-scheduled .class-arena-session__status {
    background: rgba(237, 77, 145, 0.14);
    color: #c13a78;
}

.class-arena-session.is-closed .class-arena-session__status {
    background: rgba(60, 42, 30, 0.08);
    color: rgba(31, 47, 30, 0.74);
}

.class-arena-session.is-cancelled .class-arena-session__status {
    background: rgba(214, 78, 79, 0.12);
    color: #b73a3c;
}

.class-arena-session__time {
    color: rgba(31, 47, 30, 0.66);
    font-size: 0.82rem;
    font-weight: 800;
}

.class-arena-session__title {
    margin: 0;
    font-size: 1.14rem;
    font-weight: 900;
    color: rgba(22, 42, 27, 0.96);
}

.class-arena-session__meta,
.class-arena-session__my-rank,
.class-arena-session__tie {
    margin: 0;
    color: rgba(31, 47, 30, 0.78);
    font-size: 0.86rem;
    line-height: 1.45;
}

.class-arena-session__countdown,
.class-arena-session__meta,
.class-arena-session__enter-countdown {
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.class-arena-session__countdown.is-open {
    color: #0b7a29;
    font-weight: 800;
}

.class-arena-session__countdown.is-warning {
    color: #b16b00;
    font-weight: 800;
}

.class-arena-session__countdown.is-closed {
    color: rgba(31, 47, 30, 0.7);
    font-weight: 700;
}

.class-arena-session__enter {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.8rem;
    width: 100%;
    min-height: 88px;
    padding: 0.78rem 1rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-decoration: none;
    border: 1px solid rgba(255, 217, 118, 0.42);
    background:
        linear-gradient(135deg, rgba(255, 246, 193, 0.22), rgba(255, 255, 255, 0) 38%),
        linear-gradient(135deg, #1bc557 0%, #139a3f 42%, #0e7b31 76%, #0a6827 100%);
    color: #fff;
    font-weight: 800;
    box-shadow:
        0 18px 34px rgba(15, 132, 45, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(5, 68, 22, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}

.class-arena-session__enter::before,
.class-arena-session__enter::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.class-arena-session__enter::before {
    inset: 1px;
    border-radius: 19px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
    opacity: 0.95;
}

.class-arena-session__enter::after {
    inset: -35% auto -35% -22%;
    width: 42%;
    transform: rotate(15deg);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
    opacity: 0.78;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.class-arena-session.is-open .class-arena-session__enter:not(.is-disabled) {
    border-color: rgba(255, 224, 135, 0.52);
    background:
        linear-gradient(135deg, rgba(255, 252, 214, 0.3), rgba(255, 255, 255, 0) 34%),
        linear-gradient(135deg, #1eca63 0%, #18a84b 38%, #0f7f34 74%, #0a6528 100%);
    box-shadow:
        0 20px 36px rgba(14, 127, 52, 0.26),
        0 0 0 1px rgba(255, 227, 138, 0.14),
        0 0 24px rgba(255, 208, 87, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(6, 74, 25, 0.3);
}

.class-arena-session.is-scheduled .class-arena-session__enter:not(.is-disabled) {
    border-color: rgba(255, 191, 220, 0.58);
    background:
        linear-gradient(135deg, rgba(255, 244, 249, 0.3), rgba(255, 255, 255, 0) 34%),
        linear-gradient(135deg, #ff72b1 0%, #ef4d95 42%, #d83f80 76%, #bb2f68 100%);
    box-shadow:
        0 18px 34px rgba(206, 54, 118, 0.24),
        0 0 0 1px rgba(255, 204, 227, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(124, 24, 67, 0.26);
}

.class-arena-session__actions {
    display: grid;
    gap: 0.4rem;
}

.class-arena-session__enter-main,
.class-arena-session__enter-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.class-arena-session__enter-label {
    display: block;
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.class-arena-session__enter-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.38rem;
    margin-left: auto;
    min-height: 42px;
    min-width: 10.5ch;
    padding: 0.4rem 0.94rem;
    border-radius: 999px;
    text-align: right;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0.01em;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 8px 20px rgba(7, 89, 30, 0.08);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    contain: content;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.class-arena-session__enter-countdown-label,
.class-arena-session__enter-countdown-value {
    display: block;
}

.class-arena-session__enter-countdown-label {
    opacity: 0.94;
}

.class-arena-session__enter-countdown-value {
    min-width: 8.2ch;
    font-family: Consolas, "SFMono-Regular", ui-monospace, Menlo, Monaco, "Courier New", monospace;
    letter-spacing: 0;
    text-align: right;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.class-arena-session__enter-countdown-value:empty {
    display: none;
}

.class-arena-session__enter-countdown:not(.has-value) {
    gap: 0;
}

.class-arena-session__enter-countdown:not(.has-value) .class-arena-session__enter-countdown-label {
    opacity: 1;
}

.class-arena-session__enter-stats,
.class-arena-session__enter-time-total {
    position: relative;
    z-index: 1;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
}

.class-arena-session__enter-stats {
    color: rgba(255, 255, 255, 0.9);
}

.class-arena-session__enter-time-total {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.42rem;
    text-align: right;
    color: rgba(255, 255, 255, 0.82);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    contain: content;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.class-arena-session__enter-time-main,
.class-arena-session__enter-time-meta {
    display: inline-flex;
    align-items: center;
}

.class-arena-session__enter-time-main {
    gap: 0.28rem;
}

.class-arena-session__enter-time-main-label:empty,
.class-arena-session__enter-time-meta:empty {
    display: none;
}

.class-arena-session__enter-time-meta::before {
    content: "•";
    margin-right: 0.42rem;
    opacity: 0.88;
}

.class-arena-session__enter-time-main-value {
    font-family: Consolas, "SFMono-Regular", ui-monospace, Menlo, Monaco, "Courier New", monospace;
    letter-spacing: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.class-arena-session__enter-progress {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.class-arena-session__enter-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 240, 172, 0.94), rgba(255, 255, 255, 0.98));
    box-shadow: 0 0 14px rgba(255, 234, 167, 0.28);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.class-arena-session__enter-progress-fill.is-open,
.class-arena-session__enter-progress-fill.is-done {
    background: linear-gradient(90deg, rgba(255, 244, 181, 0.94), rgba(255, 255, 255, 0.98));
    box-shadow: 0 0 16px rgba(255, 232, 151, 0.32);
}

.class-arena-session__enter-progress-fill.is-warning {
    background: linear-gradient(90deg, rgba(255, 220, 130, 0.98), rgba(255, 243, 204, 0.98));
    box-shadow: 0 0 16px rgba(255, 207, 91, 0.3);
}

.class-arena-session__enter-progress-fill.is-closed,
.class-arena-session__enter-progress-fill.is-scheduled {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.76));
    box-shadow: none;
}

.class-arena-session__enter-countdown.is-open {
    color: rgba(255, 255, 255, 0.92);
}

.class-arena-session__enter-countdown.is-warning {
    color: #fff4d1;
}

.class-arena-session__enter-countdown.is-closed {
    color: rgba(255, 255, 255, 0.78);
}

.class-arena-session__enter:hover,
.class-arena-session__enter:focus-visible {
    transform: translateY(-2px);
    filter: saturate(1.05);
    box-shadow:
        0 22px 36px rgba(15, 132, 45, 0.28),
        0 0 0 1px rgba(255, 227, 138, 0.16),
        0 0 28px rgba(255, 208, 87, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(6, 74, 25, 0.3);
    outline: none;
}

.class-arena-session__enter:hover::after,
.class-arena-session__enter:focus-visible::after {
    transform: translateX(190%) rotate(15deg);
    opacity: 0.92;
}

.class-arena-session__enter.is-disabled {
    pointer-events: none;
    border-color: rgba(148, 160, 141, 0.24);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
        linear-gradient(135deg, rgba(154, 170, 160, 0.44), rgba(120, 134, 127, 0.36));
    color: rgba(31, 47, 30, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(80, 91, 86, 0.12);
    filter: grayscale(0.04);
}

.class-arena-session__enter.is-disabled .class-arena-session__enter-countdown {
    color: rgba(31, 47, 30, 0.64);
    background: rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(111, 126, 116, 0.12);
}

.class-arena-session__enter.is-disabled .class-arena-session__enter-stats {
    color: rgba(31, 47, 30, 0.72);
}

.class-arena-session__enter.is-disabled .class-arena-session__enter-time-total {
    color: rgba(31, 47, 30, 0.62);
}

.class-arena-session__enter.is-disabled .class-arena-session__enter-progress {
    background: rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(111, 126, 116, 0.12);
}

.class-arena-session.is-scheduled .class-arena-session__enter.is-disabled {
    border-color: rgba(240, 158, 200, 0.34);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
        linear-gradient(135deg, rgba(238, 132, 181, 0.6), rgba(205, 92, 146, 0.54));
    color: #972c63;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(118, 32, 74, 0.16);
}

.class-arena-session.is-scheduled .class-arena-session__enter.is-disabled .class-arena-session__enter-label {
    color: #972c63;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.26);
}

.class-arena-session.is-scheduled .class-arena-session__enter.is-disabled .class-arena-session__enter-countdown {
    color: #a3346c;
    background: rgba(255, 255, 255, 0.56);
    box-shadow: inset 0 0 0 1px rgba(184, 96, 145, 0.18);
}

.class-arena-session.is-scheduled .class-arena-session__enter.is-disabled .class-arena-session__enter-stats {
    color: rgba(151, 44, 99, 0.82);
}

.class-arena-session.is-scheduled .class-arena-session__enter.is-disabled .class-arena-session__enter-time-total {
    color: rgba(163, 52, 108, 0.82);
}

.class-arena-session.is-scheduled .class-arena-session__enter:hover,
.class-arena-session.is-scheduled .class-arena-session__enter:focus-visible {
    box-shadow:
        0 22px 36px rgba(206, 54, 118, 0.28),
        0 0 0 1px rgba(255, 201, 227, 0.18),
        0 0 28px rgba(255, 146, 196, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(124, 24, 67, 0.26);
}

.class-arena-session.is-cancelled .class-arena-session__enter.is-disabled {
    border-color: rgba(235, 155, 155, 0.3);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
        linear-gradient(135deg, rgba(224, 133, 133, 0.52), rgba(188, 101, 101, 0.48));
    color: rgba(255, 255, 255, 0.94);
}

.class-arena-session.is-cancelled .class-arena-session__enter.is-disabled .class-arena-session__enter-countdown,
.class-arena-session.is-closed .class-arena-session__enter.is-disabled .class-arena-session__enter-countdown {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.class-arena-session__meta {
    justify-self: end;
    font-weight: 800;
}

.class-arena-session__leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem 0.95rem 0.92rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(242, 250, 239, 0.86));
    border: 1px solid rgba(55, 121, 62, 0.1);
}

.class-arena-session__leaderboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex-wrap: wrap;
    color: rgba(23, 41, 27, 0.8);
    font-size: 0.82rem;
    font-weight: 800;
}

.class-arena-session__leaderboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.38rem;
}

.class-arena-session__leaderboard-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.52rem 0.68rem;
    border-radius: 14px;
    background: rgba(245, 248, 244, 0.96);
    border: 1px solid rgba(31, 47, 30, 0.08);
    color: rgba(31, 47, 30, 0.84);
    font-size: 0.84rem;
}

.class-arena-session__leaderboard-list li.is-me {
    border-color: rgba(15, 143, 47, 0.2);
    background: rgba(240, 255, 239, 0.96);
}

.class-arena-session__leaderboard-list li strong,
.class-arena-session__leaderboard-list li em {
    min-width: 0;
    font-style: normal;
}

.class-arena-session__leaderboard-list li strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.class-arena-session__leaderboard-list li em {
    font-weight: 800;
    color: #0b7a29;
}

.class-sticker-book {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 24px;
    padding: 1.2rem;
    border: 2px dashed rgba(255, 255, 255, 0.85);
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.7) 0 12%, transparent 13%),
        radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.6) 0 9%, transparent 10%),
        linear-gradient(135deg, rgba(255, 241, 190, 0.58), rgba(255, 255, 255, 0.78) 42%, rgba(255, 214, 228, 0.56));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 14px 28px rgba(60, 42, 30, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    position: relative;
    overflow: hidden;
}

.class-sticker-book__header,
.class-sticker-book__toolbar,
.class-sticker-book__name-filter,
.class-sticker-book__scroll,
.class-sticker-book__list {
    max-width: 100%;
    min-width: 0;
}

.class-sticker-book::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    width: 70px;
    height: 8px;
    border-radius: 999px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.8) 0 7px,
        rgba(255, 153, 179, 0.48) 7px 14px
    );
    opacity: 0.5;
    pointer-events: none;
}

.class-sticker-book__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.class-sticker-book__heading {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.class-sticker-book__title {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: 1.16rem;
    letter-spacing: 0.2px;
}

.class-sticker-book__subtitle {
    margin: 0;
    font-size: 0.84rem;
    color: rgba(60, 42, 30, 0.72);
}

.class-sticker-book__toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.class-sticker-book__filters {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.26rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 16px rgba(60, 42, 30, 0.12);
}

.class-sticker-book__filter-btn {
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(60, 42, 30, 0.82);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.38rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.class-sticker-book__filter-btn:hover,
.class-sticker-book__filter-btn:focus-visible {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
    outline: none;
}

.class-sticker-book__filter-btn.is-active {
    background: linear-gradient(135deg, #ffe486, #ffcb05);
    color: #111111;
    box-shadow: 0 8px 16px rgba(224, 170, 0, 0.22);
}

.class-sticker-book__name-filter {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: min(280px, 100%);
}

.class-sticker-book__name-filter label {
    font-size: 0.77rem;
    font-weight: 700;
    color: rgba(60, 42, 30, 0.8);
    white-space: nowrap;
}

.class-sticker-book__name-filter select {
    min-height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(60, 42, 30, 0.2);
    padding: 0.32rem 0.56rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(60, 42, 30, 0.9);
    background: rgba(255, 255, 255, 0.92);
    width: 100%;
}

.class-sticker-book__name-filter select:focus-visible {
    outline: 2px solid rgba(140, 198, 63, 0.7);
    outline-offset: 1px;
    border-color: rgba(140, 198, 63, 0.8);
}

.class-sticker-book__ranking {
    border-radius: 16px;
    padding: 0.68rem 0.72rem;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 244, 193, 0.7), transparent 46%),
        radial-gradient(circle at 90% 85%, rgba(255, 221, 225, 0.52), transparent 44%),
        rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 16px rgba(60, 42, 30, 0.1);
}

.class-sticker-book__ranking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.class-sticker-book__ranking-title {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: 0.93rem;
    color: rgba(31, 47, 30, 0.9);
}

.class-sticker-book__ranking-summary {
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(60, 42, 30, 0.66);
}

.class-sticker-book__ranking-list {
    list-style: none;
    margin: 0.52rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.46rem;
    grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
}

.class-sticker-book__ranking-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    position: relative;
    overflow: hidden;
    border-radius: 13px;
    padding: 0.34rem 0.45rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.92);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.class-sticker-book__ranking-item.is-top-1 {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 250, 211, 0.98), transparent 36%),
        linear-gradient(135deg, rgba(255, 250, 225, 0.98), rgba(255, 240, 190, 0.96) 58%, rgba(255, 229, 163, 0.94));
    border-color: rgba(255, 190, 60, 0.62);
    box-shadow:
        0 12px 24px rgba(255, 184, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transform: translateY(-1px) scale(1.01);
}

.class-sticker-book__ranking-item.is-top-1::before {
    content: "";
    position: absolute;
    top: -55%;
    left: -18%;
    width: 42%;
    height: 210%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.64), transparent);
    transform: rotate(16deg);
    pointer-events: none;
    animation: class-sticker-top-1-sheen 3.8s ease-in-out infinite;
}

.class-sticker-book__ranking-place {
    width: 1.82rem;
    height: 1.82rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(60, 42, 30, 0.86);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(60, 42, 30, 0.16);
    position: relative;
    z-index: 1;
}

.class-sticker-book__ranking-item.is-top-1 .class-sticker-book__ranking-place {
    width: 2rem;
    height: 2rem;
    color: #7a4a00;
    background: linear-gradient(145deg, #ffe082, #ffb300);
    border-color: rgba(255, 160, 0, 0.88);
    box-shadow:
        0 6px 14px rgba(255, 183, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.class-sticker-book__ranking-item.is-top-2 .class-sticker-book__ranking-place {
    background: linear-gradient(140deg, #eceff1, #cfd8dc);
    border-color: rgba(120, 144, 156, 0.42);
}

.class-sticker-book__ranking-item.is-top-3 .class-sticker-book__ranking-place {
    background: linear-gradient(140deg, #e4b08f, #c97d4c);
    border-color: rgba(141, 82, 43, 0.44);
}

.class-sticker-book__ranking-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(31, 47, 30, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.class-sticker-book__ranking-item.is-top-1 .class-sticker-book__ranking-name {
    color: rgba(77, 51, 11, 0.96);
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
}

.class-sticker-book__ranking-score {
    border-radius: 999px;
    padding: 0.2rem 0.46rem;
    background: rgba(140, 198, 63, 0.22);
    color: #3f7633;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.class-sticker-book__ranking-item.is-top-1 .class-sticker-book__ranking-score {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(221, 242, 189, 0.88));
    color: #366a2c;
    border: 1px solid rgba(157, 203, 89, 0.36);
    box-shadow: 0 4px 10px rgba(140, 198, 63, 0.12);
}

.class-sticker-book__ranking-empty {
    margin: 0.48rem 0 0;
    font-size: 0.78rem;
    color: rgba(60, 42, 30, 0.72);
    font-weight: 700;
}

@keyframes class-sticker-top-1-sheen {
    0% {
        transform: translateX(-24%) rotate(16deg);
        opacity: 0;
    }
    18% {
        opacity: 0.9;
    }
    42% {
        transform: translateX(240%) rotate(16deg);
        opacity: 0.35;
    }
    100% {
        transform: translateX(240%) rotate(16deg);
        opacity: 0;
    }
}

.class-sticker-book__stats {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.class-sticker-book__stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: rgba(60, 42, 30, 0.78);
    font-size: 0.74rem;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(60, 42, 30, 0.1);
}

.class-sticker-book__stats strong {
    font-family: 'Baloo 2', cursive;
    font-size: 0.98rem;
    color: #e85b67;
}

.class-sticker-book__empty {
    margin: 0;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.72);
    color: rgba(60, 42, 30, 0.72);
    font-size: 0.9rem;
    font-weight: 600;
}

.class-sticker-book__scroll {
    max-height: 260px;
    overflow: auto;
    padding-right: 0.25rem;
}

.class-sticker-book__scroll::-webkit-scrollbar {
    width: 7px;
}

.class-sticker-book__scroll::-webkit-scrollbar-thumb {
    background: rgba(236, 130, 156, 0.5);
    border-radius: 999px;
}

.class-sticker-book__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
    gap: 0.55rem;
}

.class-sticker-book__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.52rem 0.6rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 16px rgba(60, 42, 30, 0.1);
    animation: sticker-book-in 0.42s ease both;
}

.class-sticker-book__item:nth-child(2n) {
    animation-delay: 0.03s;
}

.class-sticker-book__item:nth-child(3n) {
    animation-delay: 0.06s;
}

.class-sticker-book__thumb {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: none;
}

.class-sticker-book__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.class-sticker-book__thumb-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Baloo 2', cursive;
    font-size: 1rem;
    color: #e5772f;
    letter-spacing: 0.7px;
}

.class-sticker-book__item-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
}

.class-sticker-book__item-meta strong {
    color: rgba(31, 47, 30, 0.9);
    font-size: 0.9rem;
    line-height: 1.2;
}

.class-sticker-book__recipient {
    font-size: 0.76rem;
    color: rgba(60, 42, 30, 0.72);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.class-sticker-book__recipient-line {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-width: 0;
}

.class-sticker-book__recipient-avatar {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(140, 198, 63, 0.18);
    border: 1px solid rgba(61, 129, 42, 0.26);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.class-sticker-book__recipient-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.class-sticker-book__recipient-avatar-fallback {
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(31, 47, 30, 0.78);
}

.class-sticker-book__item-meta time {
    font-size: 0.73rem;
    font-weight: 700;
    color: #4d7f41;
}

.class-sticker-book__filter-empty {
    margin: 0;
    border-radius: 14px;
    padding: 0.72rem 0.85rem;
    background: rgba(255, 255, 255, 0.76);
    color: rgba(60, 42, 30, 0.76);
    font-size: 0.84rem;
    font-weight: 700;
}

@keyframes sticker-book-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.class-toggle {
    align-self: flex-start;
    border: none;
    background: var(--deep-blue);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    box-shadow: 0 12px 20px rgba(60, 42, 30, 0.18);
}

.class-toggle:hover,
.class-toggle:focus {
    transform: translateY(-1px);
}

.class-toggle:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.class-toggle[aria-expanded="true"] {
    background: var(--secondary);
    color: var(--deep-blue);
}

.class-message {
    text-align: center;
    font-weight: 600;
    color: #3F6B35;
    background: rgba(140, 198, 63, 0.12);
    padding: 1.2rem 1.5rem;
    border-radius: 18px;
}

.class-message.error {
    color: #b43d1d;
    background: rgba(3, 102, 3, 0.12);
}

.class-cta {
    margin: 2rem auto 0;
    max-width: min(460px, 100%);
    background: #fff;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(60, 42, 30, 0.12);
    text-align: center;
    display: grid;
    gap: 1rem;
}

.class-cta p {
    margin: 0;
    font-weight: 600;
    color: var(--deep-blue);
}

.course-thumb-wrapper {
    position: relative;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(31, 47, 30, 0.08);
}

.course-thumb {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.course-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-card .course-title {
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    margin: 0;
    font-family: 'Baloo 2', cursive;
    color: var(--deep-blue);
}

.course-level {
    margin: 0;
    color: #3F6B35;
    font-size: 0.95rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #3F6B35;
    font-size: 0.9rem;
}

.course-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--course-button-light, #79AD28), var(--course-button-dark, #007F00));
    color: #fff;
    border: 1px solid var(--course-button-dark, #036603);
    font-weight: 700;
    text-decoration: none;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 14px 28px var(--course-button-shadow, rgba(3, 102, 3, 0.28));
}

.course-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px var(--course-button-shadow, rgba(3, 102, 3, 0.32));
    background: linear-gradient(145deg, var(--course-button-hover-light, var(--course-button-light, #8CC63F)), var(--course-button-hover-dark, var(--course-button-dark, #035A03)));
}

.course-action .course-action-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    display: inline-block;
    font-size: 0;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCc+PHBhdGggZmlsbD0nY3VycmVudENvbG9yJyBkPSdNOCA1djE0bDExLTd6Jy8+PC9zdmc+");
}

.lesson-playground {
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    background: #fff;
    padding: 2.5rem;
    border-radius: 32px;
    box-shadow: 0 35px 80px rgba(60, 42, 30, 0.12);
}

.lesson-video {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-shell {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.4);
    background: #000;
}

.video-shell iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
    display: block;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: clamp(200px, 45vh, 320px);
    width: 100%;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(180deg, #FFF7EE 0%, #FFE5D1 100%);
    color: var(--deep-blue);
    box-shadow: 0 22px 52px rgba(60, 42, 30, 0.14);
}

.video-placeholder.locked {
    border: 2px solid rgba(140, 198, 63, 0.28);
    background: linear-gradient(180deg, #fff1f9 0%, #FFE3CB 100%);
}

.video-placeholder p {
    margin: 0;
    font-weight: 600;
    max-width: 32ch;
    color: inherit;
}

.video-placeholder .btn-primary {
    margin-top: 0.5rem;
    box-shadow: 0 18px 36px rgba(140, 198, 63, 0.28);
    align-self: center;
}

.video-placeholder .placeholder-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(140, 198, 63, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px rgba(140, 198, 63, 0.18);
}

.video-placeholder .placeholder-icon svg {
    width: 48px;
    height: 48px;
}

.video-placeholder .placeholder-copy {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
    max-width: 32ch;
}

.video-placeholder .placeholder-copy h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--deep-blue);
    font-family: 'Baloo 2', cursive;
}

.video-actions {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.video-actions .btn-attachment {
    margin-top: 0;
    margin-right: auto;
}

.video-controls {
    display: flex;
    gap: 0.6rem;
    margin-top: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.video-controls .btn {
    flex: 0 0 auto;
    min-width: 88px;
    border-radius: 999px;
    padding: 0.6rem 1.1rem;
    font-weight: 600;
    background: #FFE9DC;
    color: var(--deep-blue);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.video-controls .btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}


.lesson-content {
    background: linear-gradient(180deg, #FFF7EE, #FFE7D0);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lesson-tag {
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    text-transform: uppercase;
}

.lesson-content h2 {
    margin: 0;
    font-size: 2rem;
}

.lesson-desc {
    margin: 0;
    color: #3F6B35;
}

.btn-primary {
    border: none;
    background: var(--secondary);
    color: var(--deep-blue);
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
}

.class-card .btn-primary,
.class-cta .btn-primary {
    background: linear-gradient(135deg, #111111, #242424);
    box-shadow: 0 16px 30px rgba(17, 17, 17, 0.24);
}

.class-card .btn-primary {
    align-self: stretch;
    width: 100%;
    color: #ffcb05;
}

.class-card .class-learn-now-link {
    background: linear-gradient(135deg, #111111 0%, #242424 46%, #050505 100%);
    color: #ffcb05;
    box-shadow: 0 18px 34px rgba(17, 17, 17, 0.28);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.class-card .class-learn-now-link > * {
    position: relative;
    z-index: 1;
}

.class-card .class-learn-now-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: translateX(-120%);
    animation: class-learn-now-sheen 3.2s ease-in-out infinite;
    pointer-events: none;
}

.class-card .class-learn-now-link:hover,
.class-card .class-learn-now-link:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

@media (min-width: 1025px) {
    body.home-page .class-card .class-learn-now-link {
        width: calc(100% + 2rem);
        min-height: 5rem;
        margin-inline: -1rem;
        padding: 1.35rem 3rem;
        font-size: clamp(1.3rem, 1.14rem + 0.45vw, 1.55rem);
        font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        font-weight: 700;
        line-height: 1.2;
    }
}

.class-card .class-zoom-link {
    background: linear-gradient(135deg, #2d8cff, #0b5ccd);
    box-shadow: 0 16px 30px rgba(11, 92, 205, 0.25);
    transition: transform 0.2s ease, filter 0.2s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    animation: zoom-live-glow 2.6s ease-in-out infinite;
}

.class-card .class-zoom-link > * {
    position: relative;
    z-index: 2;
}

.class-card .class-zoom-link::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    background: #ff4b4b;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.65);
    animation: zoom-live-pulse 1.8s ease-out infinite;
    z-index: 2;
}

.class-card .class-zoom-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: translateX(-120%);
    animation: zoom-live-sheen 3.6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.class-card .class-zoom-link:hover,
.class-card .class-zoom-link:focus {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.class-zoom-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@keyframes zoom-live-glow {
    0%,
    100% {
        box-shadow:
            0 16px 30px rgba(11, 92, 205, 0.25),
            0 0 0 0 rgba(255, 75, 75, 0);
    }
    50% {
        box-shadow:
            0 18px 36px rgba(11, 92, 205, 0.4),
            0 0 0 12px rgba(255, 75, 75, 0.15);
    }
}

@keyframes zoom-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.65);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(255, 75, 75, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 75, 75, 0);
    }
}

@keyframes zoom-live-sheen {
    0% {
        transform: translateX(-120%);
        opacity: 0;
    }
    18% {
        opacity: 0.4;
    }
    40% {
        transform: translateX(120%);
        opacity: 0;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes class-learn-now-sheen {
    0%,
    65%,
    100% {
        transform: translateX(-120%);
    }
    16%,
    40% {
        transform: translateX(120%);
    }
}

.class-cta .btn-primary {
    align-self: center;
    color: #fff;
}

.btn-link {
    border: none;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
}

.site-footer {
    position: relative;
    margin-top: clamp(2.4rem, 4vw, 3.2rem);
    background: linear-gradient(140deg, #77d782 0%, #3db257 52%, #2a8d43 100%);
    padding: clamp(2.1rem, 4vw, 3rem) 0;
    color: #fff;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    right: -140px;
    bottom: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 243, 188, 0.58) 0%, rgba(255, 243, 188, 0) 72%);
    pointer-events: none;
}

.site-footer::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 84px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 100%);
}

.site-footer .footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1rem 1.2rem;
    align-items: stretch;
}

.footer-card {
    border-radius: 24px;
    padding: clamp(1rem, 2.2vw, 1.3rem) clamp(1.1rem, 2.8vw, 1.45rem);
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.footer-card--contact {
    background: linear-gradient(145deg, #fffdf3 0%, #fff5d1 100%);
    color: #243c2a;
    box-shadow: 0 14px 30px rgba(20, 73, 30, 0.24);
}

.footer-card--rights {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.08rem;
    text-align: center;
}

.footer-contact-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(36, 60, 42, 0.7);
}

.footer-contact {
    margin: 0.35rem 0 0;
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.45;
    color: #243c2a;
}

.footer-phone-link {
    color: #17762b;
    text-decoration: none;
    border-bottom: 2px solid rgba(23, 118, 43, 0.3);
}

.footer-phone-link:hover,
.footer-phone-link:focus-visible {
    color: #0f6624;
    border-bottom-color: rgba(15, 102, 36, 0.55);
    outline: none;
}

.footer-contact-name {
    display: inline-block;
    margin-left: 0.2rem;
    color: rgba(36, 60, 42, 0.75);
}

.footer-social-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.8rem 0 0;
    align-items: center;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.42rem 0.75rem 0.42rem 0.44rem;
    border-radius: 999px;
    border: 1px solid rgba(22, 105, 41, 0.2);
    background: rgba(255, 255, 255, 0.82);
    color: #1f5f2d;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    transform: translateY(-1px);
    background: #fff;
    color: #0d772b;
    border-color: rgba(13, 119, 43, 0.4);
    outline: none;
}

.footer-social-text {
    line-height: 1;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.82rem;
    height: 1.82rem;
    border-radius: 50%;
    background: linear-gradient(140deg, #e9f9dc 0%, #d2f1bb 100%);
    color: #136726;
    transition: transform 0.2s ease;
}

.footer-social-link:hover .footer-social-icon,
.footer-social-link:focus-visible .footer-social-icon {
    transform: scale(1.04);
}

.footer-social-icon svg {
    width: 0.98rem;
    height: 0.98rem;
    display: block;
}

.footer-rights-year,
.footer-rights-brand,
.footer-rights {
    margin: 0;
}

.footer-rights-year {
    font-size: 1.06rem;
    font-weight: 800;
    color: #fff;
}

.footer-rights-brand {
    font-family: 'Baloo 2', cursive;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.footer-rights {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
}

@media (max-width: 860px) {
    .site-footer .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-card--rights {
        justify-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 1.85rem 0;
    }

    .footer-card {
        border-radius: 20px;
        padding: 0.92rem 1rem;
    }

    .footer-contact {
        font-size: 1rem;
    }

    .footer-social-link {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Course detail page */
.course-hero {
    margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.course-hero-head {
    padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.course-title {
    font-family: 'Baloo 2', cursive;
    margin: 0;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--deep-blue);
}

.course-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff3fa;
    color: #bb5e35;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(140, 198, 63, 0.18);
    max-width: min(720px, 100%);
}

.course-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
    align-items: flex-start;
}

.course-player,
.lesson-sidebar {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 56px rgba(60, 42, 30, 0.12);
}

.course-player {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    justify-content: flex-start;
}

.btn-attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    background: rgba(60, 42, 30, 0.08);
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(3, 102, 3, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-attachment:hover,
.btn-attachment:focus {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(3, 102, 3, 0.28);
}

.btn-attachment svg {
    width: 18px;
    height: 18px;
}

.lesson-sidebar {
    padding: clamp(1.25rem, 2.5vw, 2rem);
    max-height: clamp(520px, 70vh, 760px);
    overflow-y: auto;
}

.lesson-sidebar h2 {
    margin-top: 0;
    font-family: 'Baloo 2', cursive;
}

.playlist-group + .playlist-group {
    margin-top: 1.5rem;
}

.group-title {
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.playlist-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.playlist-group li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff6fb;
    border-radius: 18px;
    padding: 0.9rem 1.1rem;
    gap: 1rem;
    border: 1px solid transparent;
}

.playlist-group li.active {
    background: #fff1f9;
    border-color: rgba(3, 102, 3, 0.35);
    box-shadow: 0 8px 22px rgba(140, 198, 63, 0.22);
}

.now-playing {
    margin-top: 1.2rem;
    padding: 0.9rem 1.2rem;
    border-radius: 18px;
    background: #fff1f9;
    font-weight: 600;
    color: var(--deep-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.now-playing-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(3, 102, 3, 0.12);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.now-playing-title {
    font-size: 1.05rem;
}

.lesson-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.lesson-attachment {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2e7d32;
}

.lesson-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: var(--deep-blue);
    background: #fff;
    border: 1px solid rgba(60, 42, 30, 0.12);
    box-shadow: 0 10px 18px rgba(60, 42, 30, 0.1);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.lesson-action:hover,
.lesson-action:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(60, 42, 30, 0.14);
}

.lesson-action svg {
    width: 16px;
    height: 16px;
}

.lesson-action.is-active {
    background: var(--secondary);
    color: var(--deep-blue);
    border-color: transparent;
}

.lesson-action.is-active svg {
    color: var(--deep-blue);
}

.playlist-group strong {
    display: block;
    font-size: 1rem;
}

.playlist-group span {
    font-size: 0.85rem;
    color: #3F6B35;
}

.playlist-group button {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
    background: var(--deep-blue);
    color: #fff;
    cursor: pointer;
}

.playlist-group li.active button {
    background: var(--secondary);
    color: var(--deep-blue);
}

@media (max-width: 760px) {
    .course-layout {
        grid-template-columns: 1fr;
    }

    .course-player {
        padding: 1.5rem;
    }

    .lesson-sidebar {
        padding: 1.25rem;
        max-height: clamp(360px, 65vh, 520px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .class-grid,
    .class-grid.class-grid--desktop-1,
    .class-grid.class-grid--desktop-2,
    .class-grid.class-grid--desktop-3 {
        grid-template-columns: 1fr;
    }
    .class-card {
        flex-direction: column;
        min-height: 0;
        height: auto;
        gap: 0.85rem;
        overflow: hidden;
    }

    .class-card-content {
        order: 1;
        flex: 0 1 auto;
        gap: 0.75rem;
    }

    .class-todo-home {
        order: 2;
        max-width: 100%;
        width: 100%;
        margin-top: 0;
        padding: 1rem;
    }

    .class-todo-home__mood {
        align-items: flex-start;
        padding: 0.45rem 0.52rem;
    }

    .class-todo-home__mood-icon {
        width: 1.85rem;
        height: 1.85rem;
        font-size: 1.18rem;
    }

    .class-notes-panel {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 0;
    }

    .class-arena-panel {
        order: 4;
        max-width: 100%;
        width: 100%;
        margin-top: 0;
        padding: 1rem;
    }

    .class-arena-panel__head {
        gap: 0.8rem;
    }

    .class-arena-panel__subtitle {
        font-size: 0.86rem;
    }

    .class-arena-session__actions {
        align-items: stretch;
    }

    .class-arena-session__enter {
        width: 100%;
    }

    .class-arena-session__enter-countdown {
        margin-left: 0;
        min-height: 38px;
        padding: 0.38rem 0.86rem;
        font-size: 1rem;
        justify-content: flex-start;
        text-align: left;
        white-space: normal;
    }

    .class-arena-session__enter-main,
    .class-arena-session__enter-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .class-arena-session__enter-time-total {
        margin-left: 0;
        text-align: left;
    }

    .class-notes-scroll {
        height: auto;
        max-height: 220px;
    }

    .class-notes-filters {
        width: 100%;
    }

    .class-notes-filter-btn {
        flex: 1 1 calc(33.333% - 0.24rem);
        text-align: center;
        justify-content: center;
    }

    .class-sticker-book {
        order: 5;
        width: 100%;
        padding: 1rem;
        border-radius: 20px;
        margin-top: 0;
        max-width: 100%;
    }

    .class-sticker-book__toolbar {
        align-items: stretch;
    }

    .class-sticker-book__filters {
        width: 100%;
        justify-content: space-between;
    }

    .class-sticker-book__filter-btn {
        flex: 1 1 50%;
        justify-content: center;
    }

    .class-sticker-book__name-filter {
        width: 100%;
        min-width: 0;
    }

    .class-sticker-book__ranking-list {
        grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    }

    .class-sticker-book__stats {
        width: 100%;
    }

    .class-sticker-book__stats span {
        justify-content: center;
        flex: 1 1 calc(33.333% - 0.35rem);
    }

    .class-sticker-book__list {
        grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    }

    .class-sticker-book__scroll {
        max-height: 220px;
    }

    .class-body {
        padding: 0;
    }

}

@media (max-width: 1024px) {
    .class-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        height: auto;
        gap: 0.85rem;
        align-items: start;
        overflow: hidden;
    }

    .class-card-content {
        order: 1;
        flex: 0 1 auto;
        gap: 0.75rem;
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .class-todo-home {
        order: 2;
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        margin-top: 0;
        grid-column: 1 / -1;
        min-width: 0;
        padding: 1rem;
    }

    .class-todo-home__mood {
        align-items: flex-start;
    }

    .class-notes-panel {
        order: 3;
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        margin-top: 0;
        grid-column: 1 / -1;
        min-width: 0;
    }

    .class-arena-panel {
        order: 4;
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        margin-top: 0;
        grid-column: 1 / -1;
        min-width: 0;
        padding: 1rem;
    }

    .class-arena-panel__head {
        gap: 0.9rem;
    }

    .class-arena-session__actions {
        align-items: stretch;
    }

    .class-arena-session__enter {
        width: 100%;
    }

    .class-notes-scroll {
        height: auto;
        max-height: 220px;
    }

    .class-notes-filters {
        width: 100%;
    }

    .class-notes-filter-btn {
        flex: 1 1 calc(33.333% - 0.24rem);
        text-align: center;
        justify-content: center;
    }

    .class-sticker-book {
        order: 5;
        flex: 0 0 auto;
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        border-radius: 20px;
        margin-top: 0;
    }

    .class-sticker-book__scroll {
        max-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .class-todo-home__mood-icon {
        animation: none !important;
    }
}

@media (max-width: 520px) {
    .class-notes-filter-btn {
        font-size: 0.74rem;
        padding: 0.3rem 0.45rem;
    }

    .class-arena-session__top,
    .class-arena-session__leaderboard-head {
        align-items: flex-start;
    }

    .class-arena-session__leaderboard-list li {
        grid-template-columns: auto minmax(0, 1fr);
        row-gap: 0.18rem;
    }

    .class-arena-session__leaderboard-list li em {
        grid-column: 2;
        justify-self: start;
    }

    .class-sticker-book__name-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .class-sticker-book__ranking-head {
        align-items: flex-start;
    }

    .class-sticker-book__ranking-list {
        grid-template-columns: 1fr;
    }

    .class-sticker-book__ranking-item {
        grid-template-columns: auto minmax(0, 1fr);
        row-gap: 0.24rem;
    }

    .class-sticker-book__ranking-score {
        grid-column: 2;
        justify-self: start;
    }

    .class-sticker-book__stats span {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .class-sticker-book__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
        padding: 1.08rem clamp(1.4rem, 6.4vw, 1.8rem) 1rem;
        overflow: clip;
    }

    .btn-login,
    .header-actions {
        width: 100%;
    }

    .site-header > .btn-login {
        margin-left: 0;
    }

    .header-actions {
        justify-content: center;
        align-items: center;
        gap: 0.6rem;
        flex-wrap: nowrap;
        min-width: 0;
    }

    .header-actions.has-notify-bell {
        gap: 0.6rem;
        justify-content: center;
    }

    .header-actions.has-notify-bell .user-menu {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .user-menu {
        width: 100%;
        min-width: 0;
    }

    .user-toggle {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }

    .header-actions.has-notify-bell .header-notify-btn {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        left: auto;
        top: auto;
        margin: 0;
        align-self: auto;
        z-index: auto;
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.48);
        color: #fff;
        box-shadow: none;
    }

    .header-actions.has-notify-bell .user-toggle {
        padding: 0.72rem 0.95rem;
    }

    .header-actions.has-notify-bell .header-notify-btn:hover,
    .header-actions.has-notify-bell .header-notify-btn:focus-visible {
        transform: translateY(-1px);
        border-color: rgba(255, 255, 255, 0.72);
        color: #fff;
        background: rgba(255, 255, 255, 0.22);
        box-shadow: none;
    }

    .header-actions.has-notify-bell .header-notify-btn.is-active {
        border-color: rgba(255, 255, 255, 0.7);
        color: #fff;
        background: rgba(255, 255, 255, 0.2);
    }

    .header-actions.has-notify-bell .user-name {
        max-width: 100%;
    }

    .user-dropdown {
        position: static;
        width: 100%;
        margin-top: 0.75rem;
        box-shadow: 0 14px 32px rgba(60, 42, 30, 0.16);
    }

    .user-menu.is-open .user-dropdown {
        position: relative;
        z-index: 1;
    }

    .main-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
        margin-bottom: 0.75rem;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        padding: 0.65rem 0.9rem;
        border-radius: 999px;
        font-weight: 700;
        min-height: 44px;
        box-shadow: 0 10px 20px rgba(31, 47, 30, 0.12);
    }

    .main-nav a:last-child {
        grid-column: 1 / -1;
    }

    .logo-block {
        width: 100%;
        justify-content: center;
        max-width: 100%;
        min-width: 0;
    }

    .logo-link {
        display: inline-flex;
        max-width: 100%;
    }

    .site-logo {
        max-width: 100%;
        width: min(clamp(126px, 36vw, 174px), 100%);
        filter: drop-shadow(0 8px 16px rgba(3, 102, 3, 0.14));
    }

    .lesson-playground,
    .course-player,
    .course-hero-head {
        padding: 1.5rem;
    }

}



.blog-section {
    padding: 3rem 0 2.8rem;
    background: radial-gradient(circle at top, #fff9f3, transparent 58%);
}

.blog-section .section-heading {
    text-align: left;
    max-width: none;
    margin: 0 0 clamp(1.2rem, 2.6vw, 2rem);
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    padding: 1.25rem;
    box-shadow: 0 18px 36px rgba(31, 47, 30, 0.12), inset 0 0 0 2px rgba(255, 255, 255, 0.4);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(31, 47, 30, 0.16), inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.blog-card.pinned {
    border-color: rgba(237, 30, 121, 0.35);
}

.blog-thumb {
    position: relative;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(31, 47, 30, 0.06);
    overflow: hidden;
    background: rgba(140, 198, 63, 0.15);
    aspect-ratio: 16 / 10;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-thumb.is-placeholder {
    background: linear-gradient(135deg, rgba(180, 230, 130, 0.3), rgba(140, 198, 63, 0.18));
    color: rgba(60, 42, 30, 0.55);
}

.blog-thumb-label {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-info {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.blog-info h3 {
    margin: 0;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: #2a2019;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(60, 42, 30, 0.6);
}

.blog-meta span + span::before {
    content: '\2022';
    margin-right: 0.35rem;
    color: rgba(60, 42, 30, 0.35);
}

.blog-info p {
    margin: 0;
    color: rgba(60, 42, 30, 0.7);
    line-height: 1.6;
    font-size: 0.92rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    text-decoration: none;
    margin-top: auto;
    font-size: 0.85rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(3, 102, 3, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-link::after {
    content: '\2192';
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.blog-link:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(3, 102, 3, 0.2);
}

.blog-link:hover::after {
    transform: translateX(4px);
}

.blog-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--primary);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 10px 20px rgba(3, 102, 3, 0.2);
}

.blog-empty {
    text-align: center;
    font-weight: 600;
    color: rgba(60, 42, 30, 0.65);
    background: rgba(140, 198, 63, 0.12);
    padding: 1.25rem 1.6rem;
    border-radius: 18px;
    max-width: 520px;
    margin: 0 auto;
}

.blog-pagination {
    margin-top: clamp(1.4rem, 2.4vw, 2rem);
    text-align: center;
}

.blog-pagination ul {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    font-weight: 600;
    color: rgba(60, 42, 30, 0.7);
    background: #fff;
    box-shadow: 0 10px 24px rgba(60, 42, 30, 0.12);
    text-decoration: none;
    font-size: 0.9rem;
}

.blog-pagination span.current {
    background: var(--primary);
    color: #fff;
}

.blog-pagination a:hover {
    background: rgba(140, 198, 63, 0.15);
}

@media (max-width: 1024px) {
    .blog-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .blog-list {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .blog-card {
        padding: 1.1rem;
    }
}

.post-page {
    background: var(--soft-bg);
    color: var(--deep-blue);
    font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.post-header {
    padding: 2.5rem 0;
    background: radial-gradient(circle at top, #fff5ec, transparent 65%);
}

.post-header .post-back {
    display: inline-flex;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 1rem;
}

.post-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.post-meta {
    margin: 0.75rem 0 0;
    display: flex;
    gap: 0.75rem;
    font-weight: 600;
    color: rgba(60, 42, 30, 0.65);
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.post-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 0;
}

.post-hero img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(60, 42, 30, 0.18);
    margin-bottom: 2rem;
}

.post-video {
    margin: 2rem 0;
}

.post-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(60, 42, 30, 0.16);
}

.post-hero-video {
    margin: 0 0 2rem;
}

.post-video-link {
    margin: 1rem 0 2rem;
    font-weight: 600;
}

.post-video-link a {
    color: var(--primary);
    text-decoration: underline;
}

.post-excerpt {
    font-weight: 600;
    font-size: 1.05rem;
    background: rgba(140, 198, 63, 0.12);
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
}

.post-body {
    margin-top: 2rem;
    line-height: 1.75;
    font-size: 1rem;
}

.post-body img {
    display: block;
    width: 100%;
    max-width: 680px;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 18px;
}

.post-body figure {
    margin: 1.5rem auto;
    max-width: 700px;
}

.post-body iframe {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: 1.5rem auto;
    border-radius: 18px;
}

.post-body figure > img {
    margin: 0 auto;
}

.post-body p {
    margin-bottom: 1.2rem;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.2rem 1.25rem;
    padding-left: 1.25rem;
}

.post-body li {
    margin-bottom: 0.35rem;
}

.post-body a {
    color: var(--primary);
    text-decoration: underline;
}

.post-empty {
    text-align: center;
    font-weight: 600;
    padding: 2rem;
    background: rgba(60, 42, 30, 0.08);
    border-radius: 20px;
}

.post-related {
    padding: 2rem 0 3.5rem;
}

.post-related h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.post-related .blog-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.post-related .blog-card {
    max-width: 100%;
    margin: 0;
}

.post-related .blog-thumb {
    aspect-ratio: 16 / 10;
}

.post-related .blog-info h3 {
    font-size: 1.05rem;
}

.post-related .blog-link {
    font-size: 0.95rem;
}

.course-hero {
    padding: 2.75rem 0 3.25rem;
    background: radial-gradient(circle at top, rgba(180, 230, 130, 0.42), transparent 70%);
}

.course-back {
    display: inline-flex;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    align-items: center;
}

.course-hero-head {
    margin-bottom: 1.75rem;
}

.course-title {
    margin: 0;
    font-size: clamp(1.95rem, 4vw, 2.9rem);
    font-weight: 800;
    color: var(--deep-blue);
}

.course-hero-body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: stretch;
}

.course-hero-player {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 32px 68px rgba(60, 42, 30, 0.15);
    padding: clamp(1.6rem, 3vw, 2.4rem);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.course-player-media {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(60, 42, 30, 0.18);
}

.course-player-media iframe,
.course-player-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}

.course-player-media img {
    object-fit: cover;
}

.course-player-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-player-badge {
    align-self: flex-start;
    padding: 0.35rem 0.9rem;
    background: rgba(140, 198, 63, 0.18);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.course-player-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    color: var(--deep-blue);
}

.course-player-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.course-player-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 16px 32px rgba(3, 102, 3, 0.22);
}

.course-player-action:hover,
.course-player-action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(3, 102, 3, 0.28);
}

.course-player-action--secondary {
    background: rgba(60, 42, 30, 0.08);
    color: var(--primary);
    box-shadow: none;
}

.course-player-action--secondary:hover,
.course-player-action--secondary:focus-visible {
    background: rgba(60, 42, 30, 0.12);
    color: var(--primary);
    box-shadow: none;
}

.course-summary {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.course-summary-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(60, 42, 30, 0.12);
    padding: clamp(1.4rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.course-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-self: flex-start;
}

.course-status.is-live {
    background: rgba(3, 102, 3, 0.16);
    color: var(--primary);
}

.course-status.is-progress {
    background: rgba(54, 119, 246, 0.15);
    color: #1854d1;
}

.course-status.is-draft {
    background: rgba(60, 42, 30, 0.12);
    color: rgba(60, 42, 30, 0.75);
}

.course-summary-meta {
    display: grid;
    gap: 1rem;
}

.course-summary-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: baseline;
    font-weight: 600;
    color: rgba(60, 42, 30, 0.8);
}

.course-summary-item dt {
    font-weight: 700;
    color: rgba(60, 42, 30, 0.65);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.course-summary-item dd {
    margin: 0;
    font-size: 0.95rem;
}

.course-summary-outline h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--deep-blue);
}

.outline-nav-title {
    margin: 1rem 0 0.35rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.outline-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.outline-nav-list li a {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    background: rgba(60, 42, 30, 0.05);
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.outline-nav-list li a span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(60, 42, 30, 0.65);
}

.outline-nav-list li a strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--deep-blue);
}

.outline-nav-list li a:hover,
.outline-nav-list li a:focus-visible {
    background: rgba(140, 198, 63, 0.18);
    transform: translateX(4px);
    color: var(--deep-blue);
}

.course-content {
    padding: 2.75rem 0 3.75rem;
}

.course-outline > h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.course-outline-sections {
    margin-top: 2rem;
    display: grid;
    gap: 2.25rem;
}

.course-outline-section {
    display: grid;
    gap: 1.25rem;
}

.course-outline-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.course-outline-lessons {
    display: grid;
    gap: 1.5rem;
}

.course-lesson {
    background: #fff;
    border-radius: 24px;
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 28px 60px rgba(60, 42, 30, 0.12);
    scroll-margin-top: 140px;
    display: grid;
    gap: 1.1rem;
}

.course-lesson-header {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.course-lesson-index {
    align-self: flex-start;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(140, 198, 63, 0.2);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.course-lesson-heading {
    margin: 0;
    font-size: 1.2rem;
    color: var(--deep-blue);
}

.course-lesson-media {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 46px rgba(60, 42, 30, 0.14);
}

.course-lesson-media iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.course-lesson-link,
.course-lesson-attachment {
    margin: 0;
    font-weight: 600;
}

.course-lesson-link a,
.course-lesson-attachment a {
    color: var(--primary);
    text-decoration: underline;
}

.course-empty {
    text-align: center;
    background: rgba(60, 42, 30, 0.08);
    border-radius: 22px;
    padding: 2.25rem;
    font-weight: 600;
}

@media (max-width: 1080px) {
    .course-hero-body {
        grid-template-columns: 1fr;
    }

    .course-summary {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .course-summary-card {
        flex: 1 1 260px;
    }
}

/* Course detail redesign */
.course-shell {
    background: var(--soft-bg);
    padding-bottom: 4rem;
}

.course-page .course-shell {
    padding-bottom: 1rem;
}

.course-shell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.5rem 0 1.75rem;
}

.course-shell-head .course-title {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.9rem, 2.8vw, 2.6rem);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #ed1e79;
}

.course-shell-head__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.course-todo-trigger {
    border: 1px solid rgba(17, 17, 17, 0.14);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.58), transparent 50%),
        linear-gradient(135deg, rgba(255, 249, 219, 0.98), rgba(255, 237, 162, 0.94));
    border-radius: 22px;
    padding: 0.72rem 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    color: #111111;
    font: inherit;
    cursor: pointer;
    min-width: 220px;
    max-width: 100%;
    box-shadow: 0 18px 34px rgba(17, 17, 17, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course-todo-trigger-placeholder {
    width: 100%;
    height: 0;
    display: none;
    flex: 0 0 auto;
    pointer-events: none;
}

.course-todo-trigger-placeholder.is-active {
    display: block;
}

.course-todo-trigger.is-desktop-sticky {
    position: fixed;
    top: 0.9rem;
    z-index: 1180;
    margin: 0;
    max-width: calc(100vw - 1.5rem);
    box-shadow: 0 20px 40px rgba(17, 17, 17, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.course-todo-trigger:hover,
.course-todo-trigger:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(224, 170, 0, 0.68);
    box-shadow: 0 22px 38px rgba(17, 17, 17, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.course-todo-trigger__icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #111111, #2a2a2a);
    color: #ffcb05;
    box-shadow: 0 12px 22px rgba(17, 17, 17, 0.18);
    flex-shrink: 0;
}

.course-todo-trigger__icon svg {
    width: 1.12rem;
    height: 1.12rem;
    fill: currentColor;
}

.course-todo-trigger__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.course-todo-trigger__label {
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.2;
    color: #111111;
}

.course-todo-trigger__meta {
    font-size: 0.76rem;
    color: rgba(73, 55, 18, 0.78);
    line-height: 1.2;
}

.course-todo-trigger__count {
    margin-left: auto;
    min-width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    background: #ed1e79;
    border: 1px solid rgba(237, 30, 121, 0.34);
    box-shadow: 0 8px 14px rgba(237, 30, 121, 0.2);
}

.course-todo-trigger__count.is-empty {
    color: rgba(73, 55, 18, 0.78);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: none;
}

body.feedback-modal-open {
    overflow: hidden;
}

.feedback-overlay {
    position: fixed;
    inset: 0;
    z-index: 1270;
    background: rgba(24, 19, 12, 0.38);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.feedback-overlay[hidden] {
    display: none !important;
}

.feedback-dialog {
    width: min(560px, 100%);
    max-height: min(82vh, 760px);
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(60, 42, 30, 0.12);
    box-shadow: 0 32px 64px rgba(33, 24, 16, 0.26);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    outline: none;
}

.feedback-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.2rem 0.9rem;
    border-bottom: 1px solid rgba(60, 42, 30, 0.12);
    background: linear-gradient(180deg, rgba(245, 255, 241, 0.9), rgba(255, 255, 255, 0.9));
}

.feedback-dialog__head h2 {
    margin: 0;
    font-size: 1.12rem;
    color: var(--deep-blue);
}

.feedback-dialog__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    color: rgba(60, 42, 30, 0.72);
    line-height: 1.35;
}

.feedback-dialog__close {
    border: 1px solid rgba(60, 42, 30, 0.16);
    background: #fff;
    color: rgba(60, 42, 30, 0.86);
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.feedback-dialog__close:hover,
.feedback-dialog__close:focus-visible {
    outline: none;
    border-color: rgba(3, 102, 3, 0.35);
    background: rgba(243, 255, 240, 0.9);
}

.feedback-dialog__status {
    margin: 0.72rem 1.2rem 0;
    padding: 0.58rem 0.78rem;
    border-radius: 12px;
    border: 1px dashed rgba(60, 42, 30, 0.22);
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
    color: rgba(60, 42, 30, 0.86);
}

.feedback-dialog__status[data-tone='success'] {
    border-color: rgba(111, 191, 75, 0.42);
    background: linear-gradient(180deg, rgba(236, 251, 233, 0.96), rgba(255, 255, 255, 0.96));
    color: rgba(3, 102, 3, 0.92);
}

.feedback-dialog__status[data-tone='error'] {
    border-color: rgba(229, 115, 115, 0.48);
    background: linear-gradient(180deg, rgba(255, 241, 241, 0.96), rgba(255, 255, 255, 0.96));
    color: #b71c1c;
}

.feedback-form {
    display: grid;
    gap: 0.88rem;
    padding: 0.95rem 1.2rem 1.2rem;
}

.feedback-form__field {
    display: grid;
    gap: 0.42rem;
}

.feedback-form__field > span {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(60, 42, 30, 0.82);
}

.feedback-form__hint {
    display: block;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(60, 42, 30, 0.62);
}

.feedback-form__field input,
.feedback-form__field textarea {
    width: 100%;
    font: inherit;
    border: 1px solid rgba(60, 42, 30, 0.2);
    border-radius: 14px;
    padding: 0.64rem 0.78rem;
    color: var(--deep-blue);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-form__field textarea {
    min-height: 112px;
    resize: vertical;
}

.feedback-form__field input[type='file'] {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.feedback-form__field input[type='file']::file-selector-button {
    border: 1px solid rgba(3, 102, 3, 0.25);
    border-radius: 999px;
    background: rgba(140, 198, 63, 0.16);
    color: rgba(3, 102, 3, 0.9);
    font-weight: 700;
    padding: 0.36rem 0.75rem;
    margin-right: 0.55rem;
    cursor: pointer;
}

.feedback-form__field input[type='file']::-webkit-file-upload-button {
    border: 1px solid rgba(3, 102, 3, 0.25);
    border-radius: 999px;
    background: rgba(140, 198, 63, 0.16);
    color: rgba(3, 102, 3, 0.9);
    font-weight: 700;
    padding: 0.36rem 0.75rem;
    margin-right: 0.55rem;
    cursor: pointer;
}

.feedback-form__field input:focus,
.feedback-form__field textarea:focus {
    outline: none;
    border-color: rgba(3, 102, 3, 0.45);
    box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.15);
}

.feedback-form__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.72rem;
    flex-wrap: wrap;
}

.feedback-form__counter {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(60, 42, 30, 0.62);
}

.feedback-form__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.56rem;
}

.feedback-btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.48rem 1rem;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.feedback-btn:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.feedback-btn--ghost {
    border-color: rgba(60, 42, 30, 0.18);
    background: rgba(60, 42, 30, 0.05);
    color: rgba(60, 42, 30, 0.84);
}

.feedback-btn--ghost:hover,
.feedback-btn--ghost:focus-visible {
    outline: none;
    background: rgba(60, 42, 30, 0.12);
}

.feedback-btn--primary {
    background: linear-gradient(145deg, #111111, #242424);
    color: #ffcb05;
    box-shadow: 0 8px 16px rgba(17, 17, 17, 0.25);
}

.feedback-btn--primary:hover,
.feedback-btn--primary:focus-visible {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(17, 17, 17, 0.3);
}

body.course-todo-open {
    overflow: hidden;
}

.course-todo-overlay {
    position: fixed;
    inset: 0;
    z-index: 1260;
    background: rgba(24, 19, 12, 0.44);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem;
}

.course-todo-overlay[hidden] {
    display: none !important;
}

.course-todo-dialog {
    width: min(660px, 100%);
    max-height: min(80vh, 720px);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 42%),
        linear-gradient(180deg, rgba(255, 251, 231, 0.98), rgba(255, 244, 198, 0.94));
    border-radius: 32px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    box-shadow: 0 36px 82px rgba(17, 17, 17, 0.24), 0 14px 34px rgba(224, 170, 0, 0.14);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    outline: none;
}

.course-todo-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.3rem 1rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.7), transparent 42%),
        linear-gradient(180deg, rgba(255, 248, 214, 0.96), rgba(255, 255, 255, 0.68));
}

.course-todo-dialog__head h2 {
    margin: 0;
    font-size: 1.26rem;
    font-family: inherit;
    color: #111111;
}

.course-todo-dialog__subtitle {
    margin: 0.32rem 0 0;
    font-size: 0.84rem;
    color: rgba(73, 55, 18, 0.76);
}

.course-todo-dialog__close {
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: rgba(255, 255, 255, 0.84);
    color: rgba(17, 17, 17, 0.86);
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(17, 17, 17, 0.08);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.course-todo-dialog__close:hover,
.course-todo-dialog__close:focus-visible {
    outline: none;
    border-color: rgba(224, 170, 0, 0.64);
    background: linear-gradient(135deg, rgba(255, 242, 189, 0.98), rgba(255, 233, 151, 0.96));
    box-shadow: 0 14px 24px rgba(17, 17, 17, 0.12);
    transform: translateY(-1px);
}

.course-todo-dialog__status {
    margin: 0;
    padding: 0.7rem 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.56rem;
    border-radius: 18px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    background: rgba(255, 255, 255, 0.76);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
    color: rgba(73, 55, 18, 0.88);
    width: calc(100% - 2.6rem);
    margin-inline: 1.3rem;
    margin-top: 0.12rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.course-todo-dialog__status::before {
    content: 'i';
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
    color: #ffcb05;
    background: linear-gradient(145deg, #111111, #2a2a2a);
    box-shadow: 0 10px 18px rgba(17, 17, 17, 0.18);
    flex-shrink: 0;
}

.course-todo-dialog__status[data-tone='success'] {
    border-color: rgba(224, 170, 0, 0.3);
    background: linear-gradient(180deg, rgba(255, 248, 219, 0.98), rgba(255, 255, 255, 0.9));
    color: rgba(111, 78, 0, 0.92);
}

.course-todo-dialog__status[data-tone='success']::before {
    content: 'OK';
    background: linear-gradient(145deg, #ffe486, #ffcb05);
    color: #111111;
    box-shadow: 0 10px 18px rgba(224, 170, 0, 0.24);
}

.course-todo-dialog__status[data-tone='error'] {
    border-color: rgba(17, 17, 17, 0.14);
    background: linear-gradient(180deg, rgba(255, 243, 235, 0.98), rgba(255, 255, 255, 0.92));
    color: rgba(138, 58, 13, 0.94);
}

.course-todo-dialog__status[data-tone='error']::before {
    content: 'SOS';
    background: linear-gradient(145deg, #111111, #242424);
    box-shadow: 0 10px 18px rgba(17, 17, 17, 0.16);
}

.course-todo-mood {
    margin: 0.48rem 1.3rem 0.12rem;
    width: calc(100% - 2.6rem);
    display: flex;
    align-items: center;
    gap: 0.58rem;
    padding: 0.72rem 0.78rem;
    border-radius: 18px;
    border: 1px dashed rgba(224, 170, 0, 0.46);
    background: linear-gradient(180deg, rgba(255, 250, 233, 0.98), rgba(255, 255, 255, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.course-todo-mood__icon {
    width: 2.24rem;
    height: 2.24rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
    color: #111111;
    background: linear-gradient(145deg, #ffd84a, #ffcb05);
    border: 1px solid rgba(224, 170, 0, 0.34);
    box-shadow: 0 12px 22px rgba(224, 170, 0, 0.26), 0 5px 12px rgba(17, 17, 17, 0.08);
    transform-origin: center bottom;
    animation: todoMoodFloat 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

.course-todo-mood__icon::before {
    content: '';
    width: 1rem;
    height: 1rem;
    display: block;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 3.25c.28 0 .54.17.65.43l1.45 4.17 4.17 1.45c.26.11.43.37.43.65s-.17.54-.43.65l-4.17 1.45-1.45 4.17a.7.7 0 0 1-1.3 0l-1.45-4.17-4.17-1.45A.7.7 0 0 1 5.25 10c0-.28.17-.54.43-.65l4.17-1.45 1.45-4.17c.11-.26.37-.43.65-.43Z'/></svg>");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 3.25c.28 0 .54.17.65.43l1.45 4.17 4.17 1.45c.26.11.43.37.43.65s-.17.54-.43.65l-4.17 1.45-1.45 4.17a.7.7 0 0 1-1.3 0l-1.45-4.17-4.17-1.45A.7.7 0 0 1 5.25 10c0-.28.17-.54.43-.65l4.17-1.45 1.45-4.17c.11-.26.37-.43.65-.43Z'/></svg>");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.course-todo-mood__text {
    margin: 0;
    font-size: 0.83rem;
    font-weight: 700;
    color: rgba(73, 55, 18, 0.88);
    line-height: 1.33;
}

.course-todo-mood[data-state='heavy'],
.course-todo-mood[data-state^='load-'] {
    border-color: rgba(227, 108, 87, 0.44);
    background: linear-gradient(180deg, rgba(255, 241, 236, 0.96), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 1.05s;
}

.course-todo-mood[data-state='heavy'] .course-todo-mood__icon,
.course-todo-mood[data-state^='load-'] .course-todo-mood__icon {
    animation: todoMoodPrompt var(--todo-prompt-speed) ease-in-out infinite;
}

.course-todo-mood[data-state='load-3'] {
    border-color: rgba(236, 173, 98, 0.45);
    background: linear-gradient(180deg, rgba(255, 247, 230, 0.96), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 1.2s;
}

.course-todo-mood[data-state='load-4'] {
    border-color: rgba(234, 154, 92, 0.45);
    background: linear-gradient(180deg, rgba(255, 243, 230, 0.96), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 1.12s;
}

.course-todo-mood[data-state='load-5'] {
    border-color: rgba(230, 137, 88, 0.47);
    background: linear-gradient(180deg, rgba(255, 240, 232, 0.96), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 1.06s;
}

.course-todo-mood[data-state='load-6'] {
    border-color: rgba(228, 124, 85, 0.48);
    background: linear-gradient(180deg, rgba(255, 236, 231, 0.96), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 1s;
}

.course-todo-mood[data-state='load-7'] {
    border-color: rgba(225, 113, 85, 0.5);
    background: linear-gradient(180deg, rgba(255, 232, 229, 0.96), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 0.95s;
}

.course-todo-mood[data-state='load-8'] {
    border-color: rgba(222, 101, 84, 0.5);
    background: linear-gradient(180deg, rgba(255, 228, 227, 0.97), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 0.9s;
}

.course-todo-mood[data-state='load-9'] {
    border-color: rgba(218, 90, 82, 0.52);
    background: linear-gradient(180deg, rgba(255, 223, 224, 0.97), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 0.86s;
}

.course-todo-mood[data-state='load-10'] {
    border-color: rgba(214, 78, 79, 0.54);
    background: linear-gradient(180deg, rgba(255, 218, 220, 0.97), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 0.82s;
}

.course-todo-mood[data-state='load-10-plus'] {
    border-color: rgba(208, 64, 72, 0.56);
    background: linear-gradient(180deg, rgba(255, 210, 214, 0.98), rgba(255, 255, 255, 0.93));
    --todo-prompt-speed: 0.78s;
}

.course-todo-mood[data-state='all-done'] {
    border-color: rgba(76, 175, 80, 0.45);
    background: linear-gradient(180deg, rgba(235, 251, 232, 0.96), rgba(255, 255, 255, 0.93));
}

.course-todo-mood[data-state='all-done'] .course-todo-mood__icon {
    animation: todoMoodCelebrate 1.2s ease-in-out infinite;
}

.course-todo-mood[data-state='almost'] {
    border-color: rgba(141, 190, 80, 0.45);
    background: linear-gradient(180deg, rgba(243, 252, 230, 0.96), rgba(255, 255, 255, 0.93));
}

.course-todo-mood[data-state='empty'] {
    border-color: rgba(92, 160, 194, 0.34);
    background: linear-gradient(180deg, rgba(233, 247, 255, 0.96), rgba(255, 255, 255, 0.93));
}

.course-todo-empty {
    margin: 0 1.3rem 1rem;
    padding: 1rem 1.05rem;
    color: rgba(73, 55, 18, 0.72);
    font-weight: 700;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.course-todo-tabs {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    margin: 0.8rem 1.3rem 0.1rem;
    padding: 0.38rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.course-todo-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(73, 55, 18, 0.86);
    border-radius: 999px;
    padding: 0.46rem 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.course-todo-tab:hover,
.course-todo-tab:focus-visible {
    outline: none;
    border-color: rgba(17, 17, 17, 0.1);
    background: rgba(255, 255, 255, 0.72);
    transform: translateY(-1px);
}

.course-todo-tab.is-active {
    border-color: rgba(224, 170, 0, 0.42);
    background: linear-gradient(135deg, rgba(255, 228, 111, 0.98), rgba(255, 203, 5, 0.96));
    color: #111111;
    box-shadow: 0 14px 24px rgba(224, 170, 0, 0.22);
}

.course-todo-tab__count {
    min-width: 1.9rem;
    min-height: 1.9rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: rgba(73, 55, 18, 0.88);
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.08);
}

.course-todo-tab.is-active .course-todo-tab__count {
    background: rgba(17, 17, 17, 0.1);
    color: #111111;
}

.course-todo-panels {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.course-todo-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.course-todo-empty--panel {
    margin-top: 0.8rem;
    padding: 1rem 1.05rem;
}

.course-todo-list {
    list-style: none;
    margin: 0;
    padding: 0.9rem 1rem 1rem;
    display: grid;
    gap: 0.74rem;
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.course-todo-list::-webkit-scrollbar {
    width: 8px;
}

.course-todo-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.2);
}

.course-todo-item {
    appearance: none;
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
    margin: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.78rem;
    align-items: flex-start;
    padding: 0.82rem 0.88rem;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
    transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.course-todo-item:hover,
.course-todo-item:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(224, 170, 0, 0.44);
    background: linear-gradient(180deg, rgba(255, 250, 233, 0.98), rgba(255, 255, 255, 0.94));
    box-shadow: 0 18px 28px rgba(17, 17, 17, 0.12);
}

.course-todo-item.is-updating {
    opacity: 0.72;
    cursor: wait;
}

.course-todo-item:disabled:not(.is-updating) {
    opacity: 1;
    cursor: default;
    color: inherit;
}

.course-todo-item.is-completed {
    background: linear-gradient(135deg, rgba(255, 249, 223, 0.98), rgba(245, 255, 238, 0.94));
    border-color: rgba(224, 170, 0, 0.24);
}

.course-todo-item__state {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 999px;
    border: 1.5px solid rgba(17, 17, 17, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.08rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.course-todo-item__state-sticker,
.course-todo-item__state-sticker-fallback {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.course-todo-item__state-sticker {
    object-fit: cover;
    background: #fff;
}

.course-todo-item__state-sticker-fallback {
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(60, 42, 30, 0.86);
    background: rgba(255, 255, 255, 0.98);
}

.course-todo-item__state-check {
    font-size: 0.92rem;
    line-height: 1;
    font-weight: 800;
    color: transparent;
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.course-todo-item__state.is-completed {
    border-color: rgba(224, 170, 0, 0.72);
    background: linear-gradient(145deg, #ffe486, #ffcb05);
}

.course-todo-item__state.is-completed .course-todo-item__state-sticker,
.course-todo-item__state.is-completed .course-todo-item__state-sticker-fallback {
    opacity: 0.42;
    filter: saturate(0.82);
}

.course-todo-item__state.is-completed .course-todo-item__state-check {
    color: #fff;
    text-shadow: 0 1px 4px rgba(12, 90, 18, 0.35);
}

.course-todo-item__body {
    min-width: 0;
    display: grid;
    gap: 0.34rem;
}

.course-todo-item__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: rgba(17, 17, 17, 0.94);
    overflow-wrap: anywhere;
}

.course-todo-item.is-completed .course-todo-item__title {
    color: rgba(73, 55, 18, 0.58);
    text-decoration: line-through;
}

.course-todo-item__meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.course-todo-item__meta-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    background: rgba(255, 246, 214, 0.94);
    border: 1px solid rgba(17, 17, 17, 0.08);
    color: rgba(73, 55, 18, 0.82);
    font-size: 0.74rem;
    font-weight: 700;
}

.course-todo-item__reward {
    margin-top: 0.12rem;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border-radius: 999px;
    border: 1px solid rgba(224, 170, 0, 0.34);
    background: linear-gradient(135deg, rgba(255, 247, 208, 0.98), rgba(255, 238, 176, 0.94));
    padding: 0.18rem 0.52rem;
    max-width: 100%;
    width: fit-content;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.course-todo-item__reward img,
.course-todo-item__reward-fallback {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    flex-shrink: 0;
}

.course-todo-item__reward img {
    object-fit: cover;
    border: 1px solid rgba(224, 170, 0, 0.26);
    background: #fff;
}

.course-todo-item__reward-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.64rem;
    font-weight: 800;
    color: rgba(111, 78, 0, 0.9);
    border: 1px solid rgba(224, 170, 0, 0.28);
    background: rgba(255, 255, 255, 0.96);
}

.course-todo-item__reward span {
    min-width: 0;
    max-width: min(260px, 62vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.77rem;
    font-weight: 800;
    color: rgba(111, 78, 0, 0.9);
}

.course-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.2rem;
    background: #fff;
    border-radius: 999px;
    border: 1px solid rgba(60, 42, 30, 0.12);
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course-back:hover,
.course-back:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(3, 102, 3, 0.18);
    border-color: rgba(3, 102, 3, 0.4);
    outline: none;
}

.course-section {
    padding: 0 0 3.5rem;
}

.course-message-card {
    background: #fff;
    border-radius: 28px;
    padding: clamp(2rem, 4vw, 3rem);
    margin: 0 auto;
    max-width: 620px;
    text-align: center;
    box-shadow: 0 32px 64px rgba(60, 42, 30, 0.16);
}

.course-message-card.is-error {
    border: 1px solid rgba(3, 102, 3, 0.5);
}

.course-message-card h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    color: var(--deep-blue);
}

.course-message-card p {
    margin: 0.75rem 0 0;
    color: rgba(60, 42, 30, 0.75);
    font-size: 1rem;
}

.course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: clamp(1.75rem, 3.5vw, 2.75rem);
    align-items: flex-start;
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.course-player-column {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.course-player-card {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 36px 72px rgba(60, 42, 30, 0.15);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: sticky;
    top: clamp(1rem, 3vw, 2rem);
    z-index: 5;
}

.course-player-header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.course-player-badge {
    align-self: flex-start;
    background: rgba(3, 102, 3, 0.15);
    color: var(--primary);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.course-player-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    color: var(--deep-blue);
    line-height: 1.3;
}

.course-video-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(60, 42, 30, 0.05);
    aspect-ratio: var(--course-player-media-ratio, 16 / 9);
    line-height: 0;
    isolation: isolate;
}

.course-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    margin: 0;
    border-radius: inherit;
}

.course-video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    margin: 0;
    background: #000;
    object-fit: contain;
    object-position: center center;
    border-radius: inherit;
}

.course-player-card.is-game-active .course-video-wrapper {
    aspect-ratio: 4 / 3;
    min-height: clamp(520px, 76vh, 900px);
    background: #f4f8f4;
}

.course-player-card.is-wordwall-source:not(.is-game-active) .course-video-wrapper {
    background: linear-gradient(180deg, #fffef8, #fff7ea);
}

.course-player-card.is-game-active .course-video-wrapper iframe {
    background: #fff;
}

.course-player-card.is-game-active .course-video-wrapper video {
    background: #fff;
}

.course-video-fallback,
.course-video-placeholder,
.course-video-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    background: #fff;
    color: var(--deep-blue);
    width: 100%;
    height: 100%;
    min-height: 0;
}

.course-video-fallback.is-game-cta {
    gap: clamp(1rem, 2vw, 1.6rem);
    padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.5vw, 2rem);
    background:
        radial-gradient(circle at 50% 28%, rgba(28, 159, 57, 0.09), rgba(28, 159, 57, 0) 60%),
        linear-gradient(180deg, #ffffff 0%, #f7fcf8 100%);
}

.course-video-fallback.is-game-cta p {
    margin: 0;
    max-width: min(640px, 92%);
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    font-weight: 700;
    line-height: 1.45;
    color: #143a28;
}

.course-video-fallback .course-btn[data-launch-game-overlay='1'] {
    min-height: clamp(56px, 6vw, 68px);
    min-width: clamp(220px, 36vw, 320px);
    padding: 0.95rem 2rem;
    border-radius: 999px;
    border: 0;
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #0d9a2b 0%, #0f7f20 55%, #0a6d1a 100%);
    color: #fff;
    box-shadow:
        0 14px 34px rgba(13, 122, 39, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.course-video-fallback .course-btn[data-launch-game-overlay='1']:hover,
.course-video-fallback .course-btn[data-launch-game-overlay='1']:focus-visible {
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 18px 40px rgba(13, 122, 39, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    filter: saturate(1.06);
}

.course-video-placeholder img {
    width: min(320px, 70%);
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 24px 48px rgba(60, 42, 30, 0.18);
}

.course-video-fallback.is-hidden,
.course-video-placeholder.is-hidden,
.course-video-locked.is-hidden {
    display: none;
}

.course-video-locked p {
    margin: 0;
    font-size: 1.05rem;
    color: rgba(60, 42, 30, 0.82);
}

.course-player-source-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(237, 30, 121, 0.24);
    background: rgba(255, 247, 238, 0.9);
    padding: 0.85rem 1rem;
}

.course-player-source-note.is-hidden,
.course-player-source-note[hidden] {
    display: none;
}

.course-player-source-note__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(237, 30, 121, 0.16);
    color: #b94723;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
    padding: 0.4rem 0.7rem;
    flex: 0 0 auto;
}

.course-player-source-note p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(60, 42, 30, 0.82);
    line-height: 1.45;
}

.course-player-resources {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.course-player-resources[hidden] {
    display: none;
}

.course-player-resource-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.45rem;
    padding-left: 0;
    margin-bottom: -1px;
}

.course-player-resource-tab {
    border: 1px solid #c8d8cf;
    background: #e9f0ec;
    color: #324a52;
    border-radius: 16px 16px 0 0;
    padding: 0.72rem 1.45rem;
    font-family: 'Nunito', 'Segoe UI', Tahoma, Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    line-height: 1.28;
    letter-spacing: 0.005em;
    position: relative;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.course-player-resource-tab:hover,
.course-player-resource-tab:focus-visible {
    outline: none;
    border-color: #b8cfc3;
    background: #eef4f1;
    transform: translateY(-1px);
}

.course-player-resource-tab.is-active {
    background: #fff3dc;
    border-color: #e4c07e;
    border-bottom-color: #f5f8f6;
    color: #b57000;
    z-index: 2;
    transform: translateY(0);
}

.course-player-resource-tab.is-active[data-player-tab='review'] {
    border-bottom-color: #fff3dc;
}

.course-player-resource-tab.is-active[data-player-tab='attachments'] {
    border-bottom-color: #fff3dc;
}

.course-player-resource-panel {
    border: 1px solid #d5e1da;
    background: #f5f8f6;
    border-radius: 0 18px 18px 18px;
    padding: 1rem;
}

.course-player-resource-panel[data-player-panel='review'] {
    border-color: #e4c07e;
    background: #fff3dc;
}

.course-player-resource-panel[data-player-panel='attachments'] {
    border-color: #e4c07e;
    background: #fff3dc;
}

.course-player-resource-panel[hidden] {
    display: none;
}

.course-player-attachments {
    border: 1px solid #d1ddd6;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    background: #f0f4f1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}

.course-player-resource-panel .course-player-attachments {
    margin-top: 0;
}

.course-player-resource-panel[data-player-panel='attachments'] .course-player-attachments {
    border-color: #e7c98a;
    background: #fff8e8;
}

.course-player-resource-panel[data-player-panel='attachments'] .course-player-attachments-title {
    color: #8d630a;
}

.course-player-attachments[hidden] {
    display: none;
}

.course-player-attachments-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #41555f;
}

.course-player-attachments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.course-player-attachments-list li a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-weight: 800;
    color: #138049;
    padding: 0.62rem 1.15rem;
    border-radius: 16px;
    border: 1px solid #d3dfd8;
    background: #dfe6e2;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.course-player-attachments-list li a:hover,
.course-player-attachments-list li a:focus-visible {
    background: #d4ddd8;
    border-color: #c4d3cb;
    color: #0f6e3e;
    outline: none;
}

.course-player-resource-panel[data-player-panel='attachments'] .course-player-attachments-list li a {
    border-color: #ead5a8;
    background: #fff6e3;
    color: #9a6404;
}

.course-player-resource-panel[data-player-panel='attachments'] .course-player-attachments-list li a:hover,
.course-player-resource-panel[data-player-panel='attachments'] .course-player-attachments-list li a:focus-visible {
    border-color: #e2c486;
    background: #fff1d0;
    color: #7d5200;
}

.course-player-review {
    border: 1px solid #d1ddd6;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    background: #f0f4f1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-player-resource-panel[data-player-panel='review'] .course-player-review {
    border-color: #e7c98a;
    background: #fff8e8;
}

.course-player-resource-panel[data-player-panel='review'] .course-player-review-title {
    color: #8d630a;
}

.course-player-resource-panel[data-player-panel='review'] .course-player-review-item {
    border-color: #ead5a8;
    background: #fff6e3;
    color: #6a5432;
}

.course-player-resource-panel[data-player-panel='review'] .course-player-review-item:hover,
.course-player-resource-panel[data-player-panel='review'] .course-player-review-item:focus-visible {
    border-color: #e2c486;
    background: #fff1d0;
}

.course-player-resource-panel[data-player-panel='review'] .course-player-review-item.is-active {
    border-color: #d9b568;
    background: #f8e8bf;
    color: #7d5b00;
}

.course-player-review[hidden] {
    display: none;
}

.course-player-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.course-player-review-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #41555f;
}

.course-player-review-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.course-player-review-reset {
    border: none;
    background: #dfe6e2;
    color: #355060;
    border-radius: 999px;
    padding: 0.42rem 0.88rem;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.course-player-review-reset:hover,
.course-player-review-reset:focus-visible {
    outline: none;
    background: #d4ddd8;
    color: #1f4157;
}

.course-player-review-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.course-player-review-item {
    width: 100%;
    text-align: left;
    border: 1px solid #d3dfd8;
    background: #dfe6e2;
    color: #355060;
    border-radius: 14px;
    padding: 0.6rem 0.92rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    display: grid;
    grid-template-columns: 2.45rem minmax(0, 1fr);
    align-items: center;
    gap: 0.68rem;
    font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.course-player-review-item-thumb {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 12px;
    border: 1px solid rgba(53, 80, 96, 0.2);
    background: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.course-player-review-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-player-review-item-thumb span {
    font-size: 1.1rem;
    line-height: 1;
    color: rgba(53, 80, 96, 0.75);
}

.course-player-review-item-thumb-fallback {
    font-size: 1.1rem;
    line-height: 1;
    color: rgba(53, 80, 96, 0.75);
}

.course-player-review-item-thumb img + .course-player-review-item-thumb-fallback {
    display: none;
}

.course-player-review-item-title {
    min-width: 0;
    display: block;
    font-weight: 700;
    line-height: 1.35;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-player-review-item:hover,
.course-player-review-item:focus-visible {
    outline: none;
    border-color: #c4d3cb;
    background: #d4ddd8;
}

.course-player-review-item.is-active {
    border-color: #c5bc8e;
    background: #f0ead4;
    color: #7d5b00;
}

.course-player-review-item.is-active .course-player-review-item-thumb {
    border-color: rgba(184, 141, 56, 0.38);
    background: rgba(255, 248, 226, 0.95);
}

.course-player-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 1rem;
}

.course-player-controls [data-player-prev] {
    margin-left: auto;
}

.course-player-controls [data-player-next] {
    margin-left: 0;
}

.course-player-watched {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

@keyframes class-notification-focus-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 127, 0, 0.28);
    }
    65% {
        box-shadow: 0 0 0 10px rgba(0, 127, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 127, 0, 0);
    }
}

.class-card.is-notification-focus,
.class-notes-panel.is-notification-focus,
.class-arena-panel.is-notification-focus,
.class-todo-home.is-notification-focus,
.class-notes-list li.is-notification-focus,
.class-arena-session.is-notification-focus,
.class-todo-home__item.is-notification-focus,
.class-attendance-cta.is-notification-focus,
.class-attendance-cta__btn.is-notification-focus {
    outline: 3px solid rgba(0, 127, 0, 0.34);
    outline-offset: 2px;
    animation: class-notification-focus-pulse 1.3s ease-out 2;
}

.course-player-watched-status {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 700;
    color: rgba(31, 47, 30, 0.78);
}

.course-player-watched-status[data-state='watched'] {
    color: #c12c74;
}

.course-player-watched-status[data-state='pending'] {
    color: #0f6c9b;
}

.course-player-watched-status[data-state='error'] {
    color: #b4273c;
}

.course-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(60, 42, 30, 0.2);
    background: #fff;
    color: var(--deep-blue);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.course-btn:hover,
.course-btn:focus-visible {
    background: var(--deep-blue);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 18px 32px rgba(60, 42, 30, 0.2);
    outline: none;
}

.course-btn.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 20px 36px rgba(3, 102, 3, 0.24);
}

.course-btn.primary:hover,
.course-btn.primary:focus-visible {
    background: var(--secondary);
    border-color: var(--secondary);
}

.course-btn.is-watched {
    background: rgba(237, 30, 121, 0.12);
    border-color: rgba(237, 30, 121, 0.42);
    color: #c2186d;
}

.course-btn.is-watched:hover,
.course-btn.is-watched:focus-visible {
    background: #ed1e79;
    border-color: #ed1e79;
    color: #fff;
    box-shadow: 0 18px 32px rgba(237, 30, 121, 0.3);
}

.course-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.course-btn.is-watched[disabled] {
    opacity: 1;
    cursor: default;
}

body.class-course-picker-open {
    overflow: hidden;
}

.class-course-picker {
    --class-picker-ink: #1f3b2f;
    --class-picker-ink-soft: rgba(31, 59, 47, 0.74);
    --class-picker-accent: #e0aa00;
    --class-picker-accent-soft: #ffcb05;
    --class-picker-leaf: #8cc63f;
    --class-picker-surface: linear-gradient(145deg, rgba(255, 251, 234, 0.98), rgba(244, 251, 238, 0.96));
    --class-picker-card: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 249, 224, 0.96) 44%, rgba(239, 249, 232, 0.98) 100%);
    --class-picker-font: 'Baloo 2', 'Nunito', sans-serif;
    position: fixed;
    inset: 0;
    z-index: 1215;
    display: grid;
    place-items: center;
    padding: clamp(0.75rem, 2vw, 1rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.class-course-picker[hidden] {
    display: none;
}

.class-course-picker.is-open {
    opacity: 1;
    pointer-events: auto;
}

.class-course-picker__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 30, 18, 0.42);
    backdrop-filter: blur(8px) saturate(120%);
}

.class-course-picker__dialog {
    position: relative;
    width: min(560px, 92vw);
    border-radius: 28px;
    border: 1px solid rgba(168, 139, 52, 0.24);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.99) 0%, rgba(255, 249, 228, 0.97) 50%, rgba(241, 250, 236, 0.96) 100%);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.24), 0 12px 28px rgba(140, 198, 63, 0.12);
    font-family: var(--class-picker-font);
    transform: translateY(8px) scale(0.985);
    transition: transform 0.2s ease;
    overflow: hidden;
}

.class-course-picker.is-open .class-course-picker__dialog {
    transform: translateY(0) scale(1);
}

.class-course-picker__dialog::before {
    content: '';
    display: block;
    height: 7px;
    background: linear-gradient(90deg, #ffcb05 0%, #f4b400 48%, #8cc63f 100%);
}

.class-course-picker__close {
    position: absolute;
    top: 0.82rem;
    right: 0.82rem;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    border: 1px solid rgba(176, 140, 39, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 215, 0.96));
    color: rgba(31, 59, 47, 0.62);
    font-size: 1.36rem;
    line-height: 1;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.class-course-picker__close:hover,
.class-course-picker__close:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(255, 252, 239, 1), rgba(255, 236, 173, 0.98));
    border-color: rgba(224, 170, 0, 0.42);
    box-shadow: 0 12px 22px rgba(224, 170, 0, 0.18);
    color: var(--class-picker-ink);
    outline: none;
}

.class-course-picker__dialog h3 {
    margin: 0;
    padding: 1.2rem 3.45rem 0.28rem 1.22rem;
    font-family: var(--class-picker-font);
    font-size: clamp(1.42rem, 2.4vw, 1.72rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: 0;
    color: var(--class-picker-ink);
    max-width: 22ch;
}

.class-course-picker__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 1.22rem 0.96rem;
    padding: 0.44rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(176, 140, 39, 0.16);
    background: linear-gradient(135deg, rgba(255, 240, 186, 0.72), rgba(223, 243, 210, 0.76));
    color: rgba(81, 96, 44, 0.96);
    font-family: var(--class-picker-font);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.005em;
    line-height: 1.1;
}

.class-course-picker__list {
    display: grid;
    gap: 0.78rem;
    padding: 0 1.22rem 1.22rem;
    max-height: min(52vh, 360px);
    overflow-y: auto;
}

.class-course-picker__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.65rem;
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(168, 139, 52, 0.22);
    background: var(--class-picker-card);
    color: var(--class-picker-ink);
    font-family: var(--class-picker-font);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0.005em;
    text-decoration: none;
    overflow: hidden;
    overflow-wrap: anywhere;
    padding: 0.96rem 1.02rem 0.96rem 1.06rem;
    box-shadow: 0 10px 24px rgba(31, 47, 30, 0.07);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.class-course-picker__item-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.class-course-picker__item-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(23, 52, 40, 0.1);
    color: #173428;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.class-course-picker__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 56%);
    pointer-events: none;
}

.class-course-picker__item::after {
    content: '→';
    display: inline-grid;
    place-items: center;
    width: 2.12rem;
    height: 2.12rem;
    border-radius: 999px;
    border: 1px solid rgba(224, 170, 0, 0.34);
    background: linear-gradient(145deg, #ffefb1, #ffcb05);
    color: #6d4f00;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(224, 170, 0, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.class-course-picker__item:hover,
.class-course-picker__item:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(140, 198, 63, 0.44);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 250, 227, 0.99) 44%, rgba(236, 248, 227, 0.99) 100%);
    box-shadow: 0 16px 30px rgba(140, 198, 63, 0.18);
    color: #173428;
    outline: none;
}

.class-course-picker__item:hover::after,
.class-course-picker__item:focus-visible::after {
    transform: translateX(2px);
    box-shadow: 0 12px 20px rgba(224, 170, 0, 0.24);
}

.class-course-picker__empty {
    margin: 0;
    border-radius: 18px;
    border: 1px dashed rgba(176, 140, 39, 0.3);
    background: linear-gradient(145deg, rgba(255, 252, 239, 0.9), rgba(241, 250, 236, 0.84));
    color: var(--class-picker-ink-soft);
    font-family: var(--class-picker-font);
    font-weight: 700;
    text-align: center;
    padding: 1rem 0.95rem;
}

body.course-confirm-open {
    overflow: hidden;
}

.course-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1265;
    display: grid;
    place-items: center;
    padding: clamp(0.75rem, 2vw, 1rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.course-confirm-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.course-confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}

.course-confirm-card {
    position: relative;
    width: min(470px, 92vw);
    border-radius: 22px;
    border: 1px solid rgba(31, 47, 30, 0.16);
    background: #fff;
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.24);
    overflow: hidden;
    transform: translateY(8px) scale(0.985);
    transition: transform 0.2s ease;
}

.course-confirm-modal.is-open .course-confirm-card {
    transform: translateY(0) scale(1);
}

.course-confirm-card::before {
    content: '';
    display: block;
    height: 8px;
    background: linear-gradient(90deg, #f857a6 0%, #ff5858 100%);
}

.course-confirm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 1rem 1.1rem 0.75rem;
}

.course-confirm-head h3 {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: 1.22rem;
    line-height: 1.2;
    color: #1f2f1e;
}

.course-confirm-close {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 47, 30, 0.16);
    background: #f6faf4;
    color: rgba(31, 47, 30, 0.72);
    font-size: 1.3rem;
    line-height: 1;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.course-confirm-close:hover,
.course-confirm-close:focus-visible {
    background: #eef6ea;
    color: #1f2f1e;
    outline: none;
}

.course-confirm-desc {
    margin: 0;
    padding: 0 1.1rem 0.95rem;
    color: rgba(31, 47, 30, 0.78);
    font-weight: 600;
    line-height: 1.55;
}

.course-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 0 1.1rem 1.1rem;
}

body.course-review-overlay-open {
    overflow: hidden;
}

.course-review-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    padding: clamp(0.75rem, 2vw, 1.2rem);
    background: rgba(13, 25, 38, 0.42);
    backdrop-filter: blur(3px);
}

.course-review-overlay[hidden] {
    display: none;
}

.course-review-overlay__surface {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(152deg, #fff7fb 0%, #f3fbff 46%, #f3fff7 100%);
    box-shadow: 0 24px 58px rgba(23, 54, 95, 0.28);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.course-review-overlay__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.72rem 0.9rem;
    border-bottom: 1px solid rgba(237, 30, 121, 0.18);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 255, 251, 0.95));
}

.course-review-overlay__heading {
    min-width: 0;
    display: grid;
    gap: 0.14rem;
}

.course-review-overlay__controls {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.course-review-overlay__btn-ic {
    font-size: 0.98rem;
    line-height: 1;
}

.course-review-overlay__btn-label-short {
    display: none;
}

.course-review-overlay__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
    color: #17365f;
}

.course-review-overlay__meta {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 800;
    color: rgba(23, 54, 95, 0.78);
}

.course-review-overlay-back {
    background: linear-gradient(135deg, #f8f3ff 0%, #ffe8f4 100%);
    border-color: rgba(237, 30, 121, 0.3);
    color: #8d1f59;
    box-shadow: 0 8px 16px rgba(190, 24, 93, 0.12);
}

.course-review-overlay-back:hover,
.course-review-overlay-back:focus-visible {
    background: linear-gradient(135deg, #ffeef7 0%, #ffdced 100%);
    color: #7b184c;
    border-color: rgba(237, 30, 121, 0.44);
    box-shadow: 0 10px 18px rgba(190, 24, 93, 0.18);
}

.course-review-overlay-prev {
    background: linear-gradient(135deg, #f0fff6 0%, #dff7ea 100%);
    border-color: rgba(8, 145, 74, 0.34);
    color: #0f5f35;
    box-shadow: 0 8px 16px rgba(8, 145, 74, 0.13);
}

.course-review-overlay-prev.is-ready:hover,
.course-review-overlay-prev.is-ready:focus-visible {
    background: linear-gradient(135deg, #e4f9ee 0%, #cef1df 100%);
    color: #0c5430;
    border-color: rgba(7, 121, 61, 0.5);
    box-shadow: 0 10px 18px rgba(8, 145, 74, 0.18);
}

.course-review-overlay-next.is-ready {
    background: linear-gradient(135deg, #18a955 0%, #0d9448 54%, #ed1e79 100%);
    border-color: rgba(10, 124, 66, 0.6);
    color: #fff;
    box-shadow: 0 16px 30px rgba(14, 117, 59, 0.3);
}

.course-review-overlay-next.is-ready:hover,
.course-review-overlay-next.is-ready:focus-visible {
    background: linear-gradient(135deg, #15974c 0%, #0b7f3f 58%, #d21969 100%);
    border-color: rgba(8, 97, 50, 0.65);
    color: #fff;
}

.course-review-overlay__stage {
    min-height: 0;
    background: linear-gradient(155deg, rgba(255, 249, 253, 0.92) 0%, rgba(239, 249, 255, 0.92) 46%, rgba(240, 255, 246, 0.92) 100%);
}

.course-review-overlay__stage iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
}

.course-game-reward-toast {
    position: fixed;
    right: clamp(0.7rem, 2.2vw, 1.2rem);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.95rem);
    z-index: 1240;
    width: min(92vw, 440px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    border-radius: 18px;
    border: 1px solid rgba(39, 130, 67, 0.3);
    background: linear-gradient(135deg, rgba(242, 255, 235, 0.98) 0%, rgba(255, 252, 235, 0.98) 56%, rgba(245, 255, 248, 0.98) 100%);
    box-shadow: 0 20px 42px rgba(16, 52, 27, 0.24);
    padding: 0.78rem 0.85rem;
    transform: translate3d(0, 12px, 0) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.course-game-reward-toast.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
}

.course-game-reward-toast__thumb {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    overflow: hidden;
}

.course-game-reward-toast__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.12);
    transform-origin: center;
}

.course-game-reward-toast__thumb span {
    font-size: 0.78rem;
    font-weight: 900;
    color: #287b42;
}

.course-game-reward-toast__content {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.course-game-reward-toast__title {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.3;
    font-weight: 900;
    color: #1f6a34;
}

.course-game-reward-toast__message {
    margin: 0;
    font-size: 0.81rem;
    line-height: 1.38;
    font-weight: 700;
    color: rgba(31, 72, 45, 0.86);
}

.video-shell iframe,
.post-video iframe,
.course-lesson-media iframe,
.course-review-overlay__stage iframe {
    display: block;
    width: 100%;
    border: none;
    margin: 0;
    max-width: none;
}

.course-info-card {
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 28px 56px rgba(60, 42, 30, 0.12);
    padding: clamp(1.6rem, 3vw, 2.2rem);
}

.course-info-card h3 {
    margin: 0 0 1.1rem;
    font-size: 1.25rem;
    color: var(--deep-blue);
}

.course-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0;
}

.course-info-item {
    display: grid;
    grid-template-columns: minmax(120px, auto) 1fr;
    gap: 0.65rem;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(60, 42, 30, 0.78);
}

.course-outline-panel {
    background: linear-gradient(180deg, #fffef9 0%, #f5fff3 100%);
    border-radius: 34px;
    border: 1px solid rgba(111, 170, 82, 0.28);
    box-shadow: 0 18px 38px rgba(31, 47, 30, 0.12);
    padding: clamp(1.7rem, 3vw, 2.3rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: clamp(1rem, 3vw, 2rem);
    max-height: calc(100vh - 2.5rem);
    align-self: flex-start;
    height: auto;
    height: min(var(--course-outline-height, 9999px), calc(100vh - 2.5rem));
    overflow: hidden;
    isolation: isolate;
}

.course-outline-panel::before,
.course-outline-panel::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.course-outline-panel::before {
    top: -44px;
    right: -28px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(255, 215, 100, 0.42) 0%, rgba(255, 215, 100, 0) 72%);
}

.course-outline-panel::after {
    left: -36px;
    bottom: -50px;
    width: 155px;
    height: 155px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(157, 220, 130, 0.4) 0%, rgba(157, 220, 130, 0) 72%);
}

.course-outline-panel > * {
    position: relative;
    z-index: 1;
}

.course-outline-sheet {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
    height: 100%;
}

.course-outline-close {
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: 1px solid rgba(49, 116, 46, 0.28);
    border-radius: 999px;
    background: #fff;
    color: #1f7a2f;
    font-weight: 800;
    font-size: 0.82rem;
    line-height: 1;
    padding: 0.44rem 0.82rem;
    cursor: pointer;
}

.course-outline-header-actions {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 0.45rem;
    grid-column: 1 / -1;
    margin-top: -0.2rem;
}

.course-outline-scroll-bottom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: 1px solid rgba(49, 116, 46, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #1f7a2f;
    font-weight: 800;
    font-size: 0.76rem;
    line-height: 1;
    padding: 0.36rem 0.72rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.course-outline-scroll-bottom:hover,
.course-outline-scroll-bottom:focus-visible {
    border-color: rgba(34, 128, 44, 0.58);
    box-shadow: 0 8px 16px rgba(31, 122, 47, 0.16);
    transform: translateY(-1px);
    outline: none;
}

.course-outline-fab {
    display: none;
}

.course-page .course-layout {
    grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr);
    gap: clamp(1.75rem, 3.6vw, 3rem);
    margin-bottom: 0;
    padding-bottom: 1rem;
}

.course-page .course-player-card {
    border-radius: 32px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(180deg, #ffffff 0%, #f9fff4 100%);
    box-shadow: 0 28px 60px rgba(31, 47, 30, 0.16);
}

.course-page .course-video-wrapper {
    border-radius: 10px;
    box-shadow: 0 18px 36px rgba(31, 47, 30, 0.18);
}

.course-page .course-outline-panel {
    border: 2px solid rgba(255, 255, 255, 0.74);
    box-shadow: 0 16px 34px rgba(31, 47, 30, 0.12);
    --course-outline-sticky-top: clamp(5.1rem, 8.2vw, 6rem);
    top: var(--course-outline-sticky-top);
    max-height: calc(100vh - var(--course-outline-sticky-top) - 0.5rem);
    height: min(var(--course-outline-height, 9999px), calc(100vh - var(--course-outline-sticky-top) - 0.5rem));
}


.course-player-card,
.course-outline-panel,
.course-review-overlay {
    font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

@media (max-width: 1100px) {
    .course-page .course-layout {
        grid-template-columns: 1fr;
    }
}

.course-outline-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
}

.course-outline-icon {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff1b8 0%, #ffe082 100%);
    color: #2f5f25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(245, 181, 32, 0.34);
}

.course-outline-icon svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: currentColor;
}

.course-outline-header-copy {
    min-width: 0;
}

.course-outline-header h2 {
    margin: 0;
    font-size: clamp(1.38rem, 2vw, 1.6rem);
    color: #214030;
    line-height: 1.22;
}

.course-outline-note {
    margin: 0.42rem 0 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(45, 59, 45, 0.8);
    background: rgba(255, 255, 255, 0.68);
    border: 1px dashed rgba(111, 170, 82, 0.42);
    border-radius: 14px;
    padding: 0.55rem 0.7rem;
}

.course-outline-summary {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.55rem;
}

.course-outline-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    border-radius: 999px;
    padding: 0.38rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(111, 170, 82, 0.4);
    color: rgba(45, 59, 45, 0.86);
}

button.course-outline-summary-chip {
    font: inherit;
    cursor: pointer;
}

button.course-outline-summary-chip:focus-visible {
    outline: 2px solid rgba(237, 30, 121, 0.45);
    outline-offset: 2px;
}

.course-outline-summary-chip strong {
    font-size: 0.88rem;
    color: #1f7a2f;
}

.course-outline-summary-chip.is-current {
    background: rgba(239, 255, 232, 0.9);
}

.course-outline-summary-chip.is-watched {
    background: rgba(255, 236, 245, 0.92);
    border-color: rgba(236, 104, 164, 0.44);
    color: rgba(134, 34, 83, 0.92);
}

.course-outline-summary-chip.is-watched strong {
    color: #c02672;
}

.course-outline-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.25rem;
    display: grid;
    align-content: start;
    gap: 0.9rem;
}

.course-outline-list::-webkit-scrollbar {
    width: 6px;
}

.course-outline-list::-webkit-scrollbar-thumb {
    background: rgba(73, 140, 52, 0.33);
    border-radius: 999px;
}

.outline-section {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(73, 140, 52, 0.17);
    border-radius: 20px;
    padding: 0.82rem;
}

.outline-section + .outline-section {
    margin-top: 0.25rem;
}

.outline-section-title {
    margin: 0 0 0.72rem;
    font-size: 1.01rem;
    font-weight: 700;
    color: #17852f;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-left: 0.95rem;
    position: relative;
}

.outline-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.44em;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: #8cc63f;
}

.outline-lessons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.outline-lesson {
    border: 1.5px solid rgba(105, 169, 79, 0.36);
    width: 100%;
    text-align: left;
    background: #fff;
    border-radius: 18px;
    padding: 0.8rem 0.9rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem 0.75rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    color: var(--deep-blue);
    min-height: 72px;
    box-shadow: none;
}

.outline-lesson:hover,
.outline-lesson:focus-visible {
    transform: translateY(-1px);
    background: #f6fff1;
    border-color: rgba(45, 146, 53, 0.68);
    outline: none;
}

.outline-lesson.is-active {
    background: linear-gradient(130deg, #31a443 0%, #23953f 100%);
    color: #fff;
    border-color: rgba(35, 149, 63, 0.95);
}

.outline-lesson.is-watched {
    border-color: rgba(233, 112, 165, 0.54);
    background: linear-gradient(180deg, #ffffff 0%, #fff4fa 100%);
}

.outline-lesson.is-watched:not(.is-active):hover,
.outline-lesson.is-watched:not(.is-active):focus-visible {
    background: linear-gradient(180deg, #fff8fc 0%, #ffedf6 100%);
    border-color: rgba(225, 77, 146, 0.72);
}

.outline-lesson.is-active.is-watched {
    background: linear-gradient(130deg, #31a443 0%, #23953f 100%);
    border-color: rgba(35, 149, 63, 0.95);
    color: #fff;
}

.outline-lesson-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.outline-lesson-number {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.56rem;
    border-radius: 999px;
    background: rgba(119, 186, 91, 0.2);
    color: rgba(32, 56, 32, 0.84);
}

.outline-lesson.is-active .outline-lesson-number {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.outline-lesson-title-text {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.outline-lesson-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0.35rem 0.9rem;
    min-width: 86px;
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid currentColor;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
}

.outline-lesson.is-active .outline-lesson-action {
    background: #fff;
    color: var(--primary);
    border-color: rgba(255, 255, 255, 0.8);
}

.outline-lesson-preview-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.3rem 0.68rem;
    border-radius: 999px;
    border: 1px solid rgba(45, 146, 53, 0.4);
    background: rgba(238, 255, 230, 0.95);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.outline-lesson.is-active .outline-lesson-preview-badge {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}

.outline-lesson-tail {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-shrink: 0;
}

.outline-lesson-go {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-family: 'Nunito', sans-serif;
    font-size: 0.98rem;
    line-height: 1;
    font-weight: 900;
    text-align: center;
    border: 1px solid rgba(45, 146, 53, 0.3);
    background: rgba(238, 255, 230, 0.95);
    color: #1f7a2f;
}

.outline-lesson-go[data-go-state='arrow'] {
    transform: translateX(0.04em);
}

.outline-lesson-go[data-go-state='check'] {
    font-size: 0.9rem;
}

.outline-lesson.is-watched:not(.is-active) .outline-lesson-go {
    border-color: rgba(221, 63, 139, 0.42);
    background: rgba(255, 233, 244, 0.95);
    color: #b51f67;
}

.outline-lesson.is-active .outline-lesson-go {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.outline-lesson-attachment-icon {
    width: 1.05rem;
    height: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 203, 5, 0.18);
    color: #8b6500;
    flex-shrink: 0;
}

.outline-lesson-attachment-icon svg {
    width: 0.68rem;
    height: 0.68rem;
    fill: currentColor;
}

.outline-lesson-review-icon {
    width: 1.05rem;
    height: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 203, 5, 0.18);
    color: #8b6500;
    line-height: 1;
    flex-shrink: 0;
}

.outline-lesson-review-icon svg {
    width: 0.72rem;
    height: 0.72rem;
    fill: currentColor;
}

.outline-lesson.is-active .outline-lesson-attachment-icon,
.outline-lesson.is-active .outline-lesson-review-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.outline-lesson-action-label {
    display: inline-block;
    white-space: nowrap;
}

.course-outline-empty {
    margin: 0;
    color: rgba(60, 42, 30, 0.76);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px dashed rgba(111, 170, 82, 0.45);
    border-radius: 16px;
    padding: 0.8rem 0.9rem;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .course-layout {
        grid-template-columns: 1fr;
    }

    .course-outline-panel,
    .course-player-card {
        position: static;
        max-height: none;
        height: auto;
    }

    .course-outline-panel {
        order: 2;
        overflow: visible;
    }

    .course-player-column {
        height: auto;
    }
}

@media (max-width: 768px) {
    .course-shell-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-shell-head__main {
        width: 100%;
    }

    .course-todo-trigger {
        width: 100%;
        min-width: 0;
    }

    .course-todo-trigger.is-mobile-sticky {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 0.45rem);
        left: 0.68rem !important;
        right: 0.68rem;
        width: auto !important;
        max-width: calc(100vw - 1.36rem);
        z-index: 1180;
        margin: 0;
        padding: 0.46rem 0.58rem;
        gap: 0.5rem;
        border-radius: 14px;
        box-shadow: 0 16px 30px rgba(17, 17, 17, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    }

    .course-todo-trigger.is-mobile-sticky .course-todo-trigger__icon {
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 10px;
    }

    .course-todo-trigger.is-mobile-sticky .course-todo-trigger__label {
        font-size: 0.82rem;
    }

    .course-todo-trigger.is-mobile-sticky .course-todo-trigger__meta {
        font-size: 0.67rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .course-todo-trigger.is-mobile-sticky .course-todo-trigger__count {
        min-width: 1.55rem;
        height: 1.55rem;
        font-size: 0.72rem;
    }

    body.course-page.course-game-active .course-todo-trigger.is-mobile-sticky,
    body.course-page.course-review-overlay-open .course-todo-trigger.is-mobile-sticky,
    body.course-page.course-outline-mobile-open .course-todo-trigger.is-mobile-sticky,
    body.course-page.course-todo-open .course-todo-trigger.is-mobile-sticky {
        opacity: 0;
        pointer-events: none;
        transform: translate3d(0, -10px, 0);
    }

    .course-todo-trigger-placeholder.is-active {
        display: block;
    }

    .course-todo-dialog {
        width: min(100%, 680px);
        max-height: min(84vh, 740px);
        border-radius: 28px;
    }

    .course-todo-tabs {
        padding: 0.34rem;
    }

    .course-todo-tab {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
    }

    .course-page .course-layout {
        margin-bottom: 1.25rem;
        padding-bottom: 0;
    }

    .course-page .course-shell {
        padding-bottom: 5.9rem;
    }

    .course-player-column {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .course-player-card {
        position: static;
        top: auto;
        z-index: 25;
        margin-bottom: 0;
    }

    body.course-outline-mobile-lock {
        overflow: hidden;
        touch-action: none;
    }

    .course-outline-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2200;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        max-height: none;
        min-height: 100vh;
        height: 100svh;
        height: 100dvh;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translate3d(0, 16px, 0);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .course-outline-panel::before,
    .course-outline-panel::after {
        display: none;
    }

    body.course-outline-mobile-open .course-outline-panel {
        opacity: 1;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
    }

    .course-outline-sheet {
        margin-top: 0;
        width: 100%;
        max-height: none;
        height: 100dvh;
        border-radius: 0;
        border: none;
        background: linear-gradient(180deg, #fffef9 0%, #f5fff3 100%);
        box-shadow: none;
        padding: max(1rem, calc(env(safe-area-inset-top, 0px) + 0.35rem)) 1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
        gap: 0.8rem;
    }

    .course-outline-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.6rem;
        align-items: center;
    }

    .course-outline-header-actions {
        grid-column: auto;
        gap: 0.38rem;
        margin-top: 0;
    }

    .course-outline-scroll-bottom {
        font-size: 0.76rem;
        padding: 0.4rem 0.72rem;
    }

    .course-outline-close {
        display: inline-flex;
    }

    .course-outline-fab {
        display: none !important;
    }

    .course-outline-fab__label {
        font-family: 'Baloo 2', cursive;
        font-size: 1.05rem;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 0.01em;
        text-shadow: 0 1px 0 rgba(126, 8, 63, 0.35);
        white-space: nowrap;
    }

    .course-outline-fab__count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.65);
        background: linear-gradient(135deg, #fff9fd 0%, #ffe2f0 100%);
        color: #bb145f;
        padding: 0.28rem 0.56rem;
        font-family: 'Baloo 2', cursive;
        font-size: 0.82rem;
        font-weight: 900;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 10px rgba(142, 19, 77, 0.22);
        white-space: nowrap;
    }

    .course-outline-fab__count strong {
        color: #a90f54;
        font-weight: 900;
    }

    body.course-outline-mobile-open .course-outline-fab {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, 16px);
    }

    body.course-page.course-game-active .course-outline-fab,
    body.course-page.course-review-overlay-open .course-outline-fab,
    body.course-page.course-todo-open .course-outline-fab {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, 16px);
    }

    body.course-page .back-to-top {
        bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px));
    }

    body.course-page.course-outline-mobile-open .back-to-top {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate3d(0, 18px, 0) !important;
    }

    .course-outline-icon {
        width: 2.15rem;
        height: 2.15rem;
    }

    .course-outline-summary {
        gap: 0.45rem;
    }

    .course-outline-summary-chip {
        font-size: 0.76rem;
        padding: 0.32rem 0.68rem;
    }

    .course-player-controls {
        align-items: stretch;
    }

    .course-player-watched {
        width: 100%;
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .course-player-watched-status {
        font-size: 0.8rem;
    }

    .course-player-card.is-drive-source:not(.is-game-active) .course-video-wrapper {
        aspect-ratio: 16 / 9;
    }

    .course-player-card.is-game-active .course-video-wrapper {
        aspect-ratio: auto;
        min-height: clamp(300px, 62vh, 560px);
    }

    .course-video-fallback.is-game-cta p {
        font-size: clamp(1rem, 3.8vw, 1.18rem);
    }

    .course-video-fallback .course-btn[data-launch-game-overlay='1'] {
        min-width: min(320px, 94vw);
        width: min(320px, 94vw);
        min-height: 54px;
        font-size: clamp(1rem, 4vw, 1.14rem);
    }

    .course-player-resource-tab {
        flex: 1 1 0;
        width: 100%;
    }

    .course-btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .course-confirm-card {
        width: min(96vw, 460px);
    }

    .course-confirm-actions .course-btn {
        flex: 1 1 calc(50% - 0.3rem);
    }

    .course-player-controls [data-player-next] {
        margin-left: 0;
    }

    .course-player-controls [data-player-prev] {
        margin-left: 0;
    }

    .course-outline-list {
        flex: 1;
        min-height: 0;
        max-height: 100%;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .course-review-overlay {
        padding: 0;
    }

    .course-review-overlay__surface {
        border-radius: 0;
    }

    .course-review-overlay__header {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0.62rem 0.7rem;
    }

    .course-review-overlay__controls {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .course-review-overlay-back,
    .course-review-overlay-prev,
    .course-review-overlay-next {
        width: 100%;
        min-height: 2.2rem;
        padding: 0.52rem 0.64rem;
        gap: 0.34rem;
        font-size: 0.86rem;
    }

    .course-review-overlay-back {
        justify-content: center;
    }

    .course-review-overlay-back .course-review-overlay__btn-label {
        display: none;
    }

    .course-review-overlay-back .course-review-overlay__btn-label-short {
        display: inline;
    }

    .course-review-overlay-prev .course-review-overlay__btn-label,
    .course-review-overlay-next .course-review-overlay__btn-label {
        display: none;
    }

    .course-review-overlay-prev,
    .course-review-overlay-next {
        font-size: 1.05rem;
    }

    .course-review-overlay-prev .course-review-overlay__btn-ic,
    .course-review-overlay-next .course-review-overlay__btn-ic {
        font-size: 1.1rem;
    }

    .course-game-reward-toast {
        right: 0.6rem;
        left: 0.6rem;
        width: auto;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.68rem;
        padding: 0.74rem;
    }
}

@media (max-width: 520px) {
    .course-player-card {
        padding: 1.5rem;
        border-radius: 24px;
    }

    .course-player-card.is-game-active .course-video-wrapper {
        min-height: clamp(260px, 58vh, 460px);
    }

    .course-info-card {
        padding: 1.4rem;
        border-radius: 22px;
    }

    .course-outline-sheet {
        border-radius: 0;
        padding: max(0.9rem, calc(env(safe-area-inset-top, 0px) + 0.3rem)) 0.82rem calc(0.96rem + env(safe-area-inset-bottom, 0px));
        height: 100dvh;
    }

    .course-outline-fab {
        min-width: min(94vw, 310px);
        padding: 0.62rem 0.8rem;
        font-size: 0.82rem;
    }

    .course-outline-fab__count {
        font-size: 0.78rem;
    }

    .course-outline-note {
        font-size: 0.86rem;
        padding: 0.5rem 0.62rem;
    }

    .outline-section {
        border-radius: 16px;
        padding: 0.7rem;
    }

    .outline-section-title {
        font-size: 0.95rem;
    }

    .outline-lesson {
        border-radius: 16px;
        padding: 0.72rem 0.76rem;
        min-height: 66px;
        gap: 0.4rem 0.55rem;
    }

    .outline-lesson-title-text {
        font-size: 0.92rem;
    }

    .outline-lesson-number {
        font-size: 0.64rem;
        padding: 0.2rem 0.5rem;
    }

    .outline-lesson-go {
        width: 1.7rem;
        height: 1.7rem;
        font-size: 0.88rem;
    }

    .outline-lesson-preview-badge {
        font-size: 0.68rem;
        padding: 0.26rem 0.58rem;
    }
}

@media (max-width: 420px) {
    .course-page .container {
        width: calc(100% - 10px);
    }

    .course-player-card {
        padding: 0.9rem;
        border-radius: 20px;
        gap: 1rem;
    }

    .course-outline-fab {
        min-width: calc(100vw - 28px);
        bottom: calc(0.56rem + env(safe-area-inset-bottom, 0px));
    }

    .course-player-title {
        font-size: clamp(1.15rem, 7vw, 1.7rem);
    }

    .course-video-wrapper {
        border-radius: 12px;
        width: 100%;
        min-inline-size: 0;
        margin-inline: 0;
    }
}

@media (max-width: 392px) {
    .course-page .container {
        width: calc(100% - 6px);
    }

    .course-player-card {
        padding: 0.72rem;
        gap: 0.85rem;
    }

    body.course-page .course-video-wrapper {
        width: 100%;
        margin-inline: 0;
    }

    .course-player-card.is-drive-preview .course-video-wrapper iframe {
        inset: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }
}

@media (max-width: 1024px) {
    .post-related .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .post-related .blog-grid {
        grid-template-columns: 1fr;
    }
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3d83, #ff007a);
    box-shadow: 0 12px 24px rgba(255, 0, 122, 0.3);
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 999;
}

.back-to-top:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

body.course-game-active .back-to-top {
    bottom: 88px;
}

body.course-review-overlay-open .back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(0, 18px, 0) !important;
}

.back-to-top span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.back-to-top svg {
    width: 1em;
    height: 1em;
    display: block;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    body.course-game-active .back-to-top {
        bottom: 96px;
    }
}

/* Kids-friendly refresh */
body.home-page {
    position: relative;
    overflow-x: hidden;
    --home-sticky-offset: 6rem;
    background: linear-gradient(180deg, #F4FFF2 0%, #FFF7EE 100%);
}

body.home-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 5%, rgba(140, 198, 63, 0.18), transparent 45%),
        radial-gradient(circle at 85% 8%, rgba(237, 30, 121, 0.12), transparent 55%),
        radial-gradient(circle at 80% 75%, rgba(140, 198, 63, 0.12), transparent 55%);
    z-index: -1;
    pointer-events: none;
}

.site-header {
    background: linear-gradient(180deg, #fff9e2 0%, #fff2c7 100%);
    border-radius: 30px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 18px 40px rgba(122, 94, 16, 0.12);
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1rem;
}

body.home-page .site-header {
    position: sticky;
    top: 0.75rem;
    z-index: 200;
}

.logo-block {
    gap: 0.75rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand {
    color: var(--primary);
    font-size: 1.6rem;
}

.tagline {
    color: rgba(31, 47, 30, 0.7);
    font-size: 0.9rem;
}

.main-nav {
    background: var(--mint);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    gap: 0.4rem;
    flex-wrap: nowrap;
    margin-left: auto;
    margin-right: auto;
}

.main-nav a {
    padding: 0.5rem 0.95rem;
    font-weight: 700;
    border-radius: 999px;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus {
    background: #fff;
    color: var(--accent);
}

.header-actions {
    gap: 0.8rem;
    margin-left: 0;
    flex-shrink: 0;
}

.btn-login {
    background: linear-gradient(135deg, var(--accent), #FF6FAE);
    box-shadow: 0 16px 32px rgba(237, 30, 121, 0.25);
}

.btn-login:hover,
.btn-login:focus {
    box-shadow: 0 20px 36px rgba(237, 30, 121, 0.32);
}

.btn-login.ghost {
    background: rgba(31, 47, 30, 0.08);
}

.user-toggle {
    background: var(--primary);
    box-shadow: 0 12px 20px rgba(3, 102, 3, 0.18);
}

.user-action {
    background: rgba(31, 47, 30, 0.06);
}

.user-action:hover,
.user-action:focus {
    background: var(--primary);
}

@media (min-width: 1025px) and (max-width: 1360px) {
    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.9rem 1rem;
        padding: 1rem 1.15rem;
    }

    .logo-block {
        min-width: 0;
    }

    .main-nav {
        grid-column: 1 / -1;
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 0;
        flex-wrap: wrap;
        row-gap: 0.5rem;
        padding: 0.4rem 0.7rem;
    }

    .main-nav a {
        padding: 0.48rem 0.82rem;
    }

    .header-actions {
        justify-self: end;
        margin-left: 0;
        max-width: min(100%, 360px);
    }

    .header-actions.has-notify-bell .user-menu,
    .user-menu {
        min-width: 0;
        max-width: 100%;
    }

    .user-toggle {
        max-width: min(100%, 360px);
    }

    .header-actions.has-notify-bell .user-name,
    .user-name {
        max-width: clamp(92px, 14vw, 160px);
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    box-shadow: 0 18px 32px rgba(3, 102, 3, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    box-shadow: 0 22px 40px rgba(3, 102, 3, 0.28);
}

.btn-ghost {
    border: 2px solid rgba(3, 102, 3, 0.25);
    background: #fff;
    color: var(--primary);
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 14px 28px rgba(3, 102, 3, 0.18);
}

.home-hero {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 2rem;
}

.hero-slider {
    display: grid;
    gap: 1rem;
}

.hero-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    align-self: flex-start;
}

.hero-title {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.15;
    color: var(--deep-blue);
}

.hero-lead {
    margin: 0;
    color: rgba(31, 47, 30, 0.75);
    font-size: 1.05rem;
    max-width: 46ch;
}

.hero-cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.hero-feature {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    padding: 0.75rem 0.9rem;
    box-shadow: 0 14px 30px rgba(3, 102, 3, 0.12);
}

.hero-feature strong {
    display: block;
    font-size: 0.95rem;
}

.hero-feature span {
    font-size: 0.82rem;
    color: rgba(31, 47, 30, 0.65);
}

.hero-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-feature-icon::after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 8px;
    background: currentColor;
}

.hero-feature-icon--play {
    color: var(--primary);
    background: rgba(140, 198, 63, 0.2);
}

.hero-feature-icon--music {
    color: var(--accent);
    background: rgba(237, 30, 121, 0.16);
}

.hero-feature-icon--care {
    color: var(--leaf);
    background: rgba(121, 173, 40, 0.2);
}

.hero-media {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.home-hero .slider {
    aspect-ratio: 1920 / 500;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(140, 198, 63, 0.2), rgba(237, 30, 121, 0.12));
    box-shadow: 0 28px 60px rgba(3, 102, 3, 0.15);
}

.home-hero .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero .slider-control {
    width: 46px;
    height: 46px;
}

.home-hero .slider-control:hover,
.home-hero .slider-control:focus {
    background: rgba(237, 30, 121, 0.92);
    box-shadow: 0 20px 36px rgba(237, 30, 121, 0.35);
    color: #fff;
}

.home-hero .slider-dot {
    background: rgba(31, 47, 30, 0.2);
}

.home-hero .slider-dot.active {
    background: var(--accent);
}

.home-hero--slider-only {
    padding-top: clamp(0.75rem, 2vw, 1.25rem);
}

.home-hero--slider-only .hero-shell {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
}

.home-hero--slider-only .hero-media {
    grid-column: 1 / -1;
    width: 100%;
}

.home-hero--slider-only .hero-slider--full {
    width: 100%;
}

.home-hero--slider-only .slider {
    border-radius: 0;
    aspect-ratio: 1920 / 560;
    box-shadow: none;
}

.home-hero--slider-only .slider-dots {
    margin-top: 0.85rem;
    padding-inline: 1rem;
}

.hero-sticker {
    position: absolute;
    top: -16px;
    right: 18px;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 16px 32px rgba(237, 30, 121, 0.3);
    animation: floaty 3.2s ease-in-out infinite;
}

.hero-art {
    background: #fff;
    border-radius: 28px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 22px 46px rgba(3, 102, 3, 0.14);
}

.hero-art--wide {
    aspect-ratio: 1920 / 500;
    display: grid;
    place-items: center;
    gap: 0.6rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-art img {
    width: min(220px, 70%);
    height: auto;
}

.hero-art p {
    margin: 1rem 0 0;
    font-weight: 600;
    color: rgba(31, 47, 30, 0.7);
}

.hero-strip {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.hero-strip li {
    background: #fff;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 10px 24px rgba(3, 102, 3, 0.1);
}

.home-main,
.home-main--guest {
    display: flex;
    flex-direction: column;
}

.home-main .class-section,
.home-main--guest .class-section {
    order: 1;
}

.home-main .home-courses,
.home-main--guest .home-courses {
    order: 2;
}

.home-main .home-shop,
.home-main--guest .home-shop {
    order: 3;
}

.home-main .home-exams,
.home-main--guest .home-exams--guest-showcase {
    order: 4;
}

.home-main .home-games,
.home-main--guest .home-games {
    order: 5;
}

.home-main .blog-section,
.home-main--guest .blog-section {
    order: 6;
}

.home-main .home-gallery,
.home-main--guest .home-gallery {
    order: 7;
}

.home-section {
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
    scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 8rem);
}

body.home-page .home-main > .home-section + .home-section {
    padding-top: 0;
}

body.home-page .home-main > .home-section + .home-section > .container > .section-heading {
    margin-top: 0;
}

.section-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    text-align: left;
}

.section-text {
    max-width: 560px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    background: var(--mint);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-intro h2 {
    margin: 0.5rem 0 0.4rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-intro p {
    margin: 0;
    color: rgba(31, 47, 30, 0.7);
}

.section-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.section-search {
    width: min(360px, 100%);
}

.home-search {
    padding: 0 0 1rem;
}

.home-search + .home-main .home-section:first-child {
    padding-top: 1.5rem;
}

.home-search + .home-main .home-section:first-child .section-heading {
    margin-top: 1.5rem;
}

.home-search .section-search {
    width: min(520px, 100%);
    margin: 0 auto;
}

.home-search .global-search-feedback {
    text-align: center;
}

.global-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(31, 47, 30, 0.12);
    box-shadow: 0 12px 24px rgba(3, 102, 3, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.global-search:focus-within {
    border-color: rgba(0, 127, 0, 0.5);
    box-shadow: 0 16px 32px rgba(3, 102, 3, 0.18);
    transform: translateY(-1px);
}

.global-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--primary);
    flex-shrink: 0;
}

.global-search-icon svg {
    width: 18px;
    height: 18px;
}

.global-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--deep-blue);
    width: 100%;
}

.global-search input::placeholder {
    color: rgba(31, 47, 30, 0.55);
    font-weight: 500;
}

.global-search-clear {
    border: none;
    background: var(--accent-soft);
    color: var(--accent);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.global-search-clear:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(237, 30, 121, 0.2);
}

.global-search.is-empty .global-search-clear {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

.global-search-feedback {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: rgba(31, 47, 30, 0.7);
    min-height: 1.1rem;
}

.global-search-feedback.is-empty {
    color: #b8433a;
}

.stat-pill {
    background: #fff;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(3, 102, 3, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-weight: 700;
}

.stat-pill strong {
    font-size: 1.05rem;
}

.stat-pill span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(31, 47, 30, 0.65);
}

.stat-pill--accent {
    background: var(--accent);
    color: #fff;
}

.stat-pill--accent span {
    color: rgba(255, 255, 255, 0.8);
}

body.home-page .course-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

body.home-page .course-layout.no-filter {
    margin-top: 1.1rem;
}

body.home-page .course-filter {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem 1rem;
    position: static;
}

body.home-page .filter-title {
    margin: 0;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.outline-lesson-watched-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.3rem 0.68rem;
    border-radius: 999px;
    border: 1px solid rgba(221, 63, 139, 0.42);
    background: rgba(255, 233, 244, 0.95);
    color: #b51f67;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.outline-lesson-watched-badge.is-hidden {
    display: none;
}

.outline-lesson.is-active .outline-lesson-watched-badge {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

body.home-page .course-category-tabs,
body.home-page .home-exams-categories {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.2rem 0.02rem 0.35rem;
    scrollbar-width: thin;
}

body.home-page .course-category-tabs {
    margin: 0;
}

body.home-page .home-exams-categories {
    margin-top: 0.7rem;
}

body.home-page .class-showcase-card__practice-filters {
    margin-top: 0;
    margin-bottom: 0.42rem;
    padding-bottom: 0.08rem;
    gap: 0.34rem;
}

body.home-page .class-showcase-card__practice-filters .exam-category-pill {
    min-height: 32px;
    gap: 0.28rem;
    padding: 0.26rem 0.64rem;
    font-size: 0.72rem;
    font-weight: 780;
}

body.home-page .class-showcase-card__practice-filters .exam-category-pill span {
    min-width: 0.98rem;
    height: 0.98rem;
    font-size: 0.6rem;
    padding: 0 0.24rem;
}

body.home-page .course-category-tabs::-webkit-scrollbar,
body.home-page .home-exams-categories::-webkit-scrollbar {
    height: 8px;
}

body.home-page .course-category-tabs::-webkit-scrollbar-thumb,
body.home-page .home-exams-categories::-webkit-scrollbar-thumb {
    background: rgba(31, 47, 30, 0.24);
    border-radius: 999px;
}

body.home-page .course-category-tabs .category-tab,
body.home-page .exam-category-pill {
    flex: 0 0 auto;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 47, 30, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(31, 47, 30, 0.76);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.34rem 0.76rem;
    box-shadow: none;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

body.home-page .course-category-tabs .category-tab:hover,
body.home-page .course-category-tabs .category-tab:focus,
body.home-page .exam-category-pill:hover,
body.home-page .exam-category-pill:focus {
    transform: translateY(-1px);
    border-color: rgba(3, 102, 3, 0.3);
    box-shadow: none;
}

body.home-page .course-category-tabs .category-tab:focus-visible,
body.home-page .exam-category-pill:focus-visible {
    outline: 2px solid rgba(140, 198, 63, 0.65);
    outline-offset: 2px;
}

body.home-page .course-category-tabs .category-tab.is-active,
body.home-page .exam-category-pill.is-active {
    color: #fff;
    background: linear-gradient(135deg, #8ac63f, #21973d);
    border-color: rgba(17, 112, 39, 0.44);
    box-shadow: none;
}

body.home-page .course-category-tabs .category-count,
body.home-page .exam-category-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.16rem;
    height: 1.16rem;
    border-radius: 999px;
    background: rgba(31, 47, 30, 0.1);
    color: rgba(31, 47, 30, 0.75);
    font-size: 0.64rem;
    font-weight: 800;
    padding: 0 0.26rem;
}

body.home-page .course-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

body.home-page .course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
    align-items: stretch;
}

body.home-page .course-grid.course-grid--desktop-1 {
    grid-template-columns: 1fr;
}

body.home-page .course-grid.course-grid--desktop-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.home-page .course-grid.course-grid--desktop-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.home-page .course-grid > .course-empty-state {
    grid-column: 1 / -1;
}

body.home-page .course-card {
    --home-card-bleed: 1rem;
    border-radius: 24px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 34px rgba(31, 47, 30, 0.13), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.93) 0%, rgba(235, 247, 224, 0.8) 100%);
    min-height: 100%;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    transform-origin: center center;
}

body.home-page .course-card:hover,
body.home-page .course-card:focus-within {
    transform: translateY(-4px) scale(1.012);
    box-shadow: 0 24px 40px rgba(31, 47, 30, 0.16), inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

body.home-page .course-card::after {
    content: '';
    position: absolute;
    top: -24px;
    right: -18px;
    width: 70px;
    height: 70px;
    background: rgba(140, 198, 63, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

body.home-page .course-thumb-wrapper {
    width: calc(100% + (var(--home-card-bleed) * 2));
    margin: calc(var(--home-card-bleed) * -1) calc(var(--home-card-bleed) * -1) 0;
    border-radius: 22px 22px 0 0;
    border-bottom: 1px solid rgba(31, 47, 30, 0.1);
    box-shadow: none;
    overflow: hidden;
}

body.home-page .course-thumb {
    display: block;
    width: 100%;
    height: 100%;
}

body.home-page .course-body {
    flex: 1;
}

body.home-page .course-card__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

body.home-page .course-card__source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(47, 128, 90, 0.16), rgba(47, 128, 90, 0.08));
    border: 1px solid rgba(35, 110, 76, 0.18);
    color: #1f6b47;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

body.home-page .course-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

body.home-page .course-level,
body.home-page .course-meta {
    color: rgba(31, 47, 30, 0.7);
}

body.home-page .course-meta {
    margin-top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 0.7rem;
}

body.home-page .course-meta span:last-child {
    text-align: right;
    white-space: nowrap;
}

body.home-page .course-action {
    --course-button-light: #9bdc6a;
    --course-button-dark: #2a8a1d;
    --course-button-hover-light: #b1e786;
    --course-button-hover-dark: #1e6f15;
    --course-button-shadow: rgba(3, 102, 3, 0.24);
    margin-top: 0.45rem;
    width: 100%;
    min-height: 44px;
}

body.home-page .home-shop {
    background:
        radial-gradient(circle at 10% 14%, rgba(255, 236, 184, 0.52), rgba(255, 236, 184, 0) 46%),
        radial-gradient(circle at 88% 18%, rgba(255, 246, 220, 0.9), rgba(255, 246, 220, 0) 42%),
        linear-gradient(180deg, rgba(255, 252, 244, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.home-page .home-shop__stats {
    align-items: center;
}

body.home-page .home-shop__cta {
    min-height: 46px;
    padding-inline: 1.15rem;
    white-space: nowrap;
}

body.home-page .home-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
    margin-top: 1.45rem;
}

body.home-page .home-shop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(214, 173, 58, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 238, 0.98) 100%);
    box-shadow: 0 18px 36px rgba(91, 71, 20, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

body.home-page .home-shop-card:hover,
body.home-page .home-shop-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(214, 173, 58, 0.34);
    box-shadow: 0 24px 42px rgba(91, 71, 20, 0.14);
}

body.home-page .home-shop-card__media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7da, #fff1c4);
}

body.home-page .home-shop-card__media-link {
    display: block;
    aspect-ratio: 16 / 11;
    color: inherit;
    text-decoration: none;
}

body.home-page .home-shop-card__media img,
body.home-page .home-shop-card__media-fallback {
    display: block;
    width: 100%;
    height: 100%;
}

body.home-page .home-shop-card__media img {
    object-fit: cover;
}

body.home-page .home-shop-card__media-fallback {
    display: grid;
    place-items: center;
    padding: 1rem;
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2rem, 6vw, 2.8rem);
    color: rgba(131, 92, 0, 0.88);
    letter-spacing: 0.06em;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 54%),
        linear-gradient(135deg, #ffeeb6, #ffd96a);
}

body.home-page .home-shop-card__stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.8rem;
    padding: 0.22rem 0.72rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

body.home-page .home-shop-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.05rem 1.05rem 1.15rem;
}

body.home-page .home-shop-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

body.home-page .home-shop-card__meta {
    margin: 0;
    color: rgba(108, 78, 9, 0.74);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.home-page .home-shop-card__stock {
    background: rgba(244, 191, 66, 0.14);
    border: 1px solid rgba(214, 173, 58, 0.18);
    color: #8f6500;
}

body.home-page .home-shop-card h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.35;
}

body.home-page .home-shop-card__title-link {
    color: #1f2f1e;
    text-decoration: none;
}

body.home-page .home-shop-card__title-link:hover,
body.home-page .home-shop-card__title-link:focus-visible {
    color: #8f6500;
    outline: none;
}

body.home-page .home-shop-card__desc {
    margin: 0;
    color: rgba(31, 47, 30, 0.74);
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.home-page .home-shop-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: auto;
}

body.home-page .home-shop-card__price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.36rem;
    min-width: 0;
    color: #1f2f1e;
}

body.home-page .home-shop-card__price strong {
    font-size: 1.3rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

body.home-page .home-shop-card__price span {
    color: rgba(31, 47, 30, 0.62);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.home-page .home-shop-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd966 0%, #f6c21f 100%);
    color: #2b2100;
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(244, 189, 26, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.home-page .home-shop-card__action:hover,
body.home-page .home-shop-card__action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 22px rgba(244, 189, 26, 0.22);
    outline: none;
}

.class-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0 1.5rem;
}

.class-ribbon span {
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 12px 24px rgba(3, 102, 3, 0.12);
}

body.home-page .class-section {
    background: linear-gradient(180deg, rgba(140, 198, 63, 0.1), transparent 60%);
}

body.home-page .class-card {
    --home-card-bleed: 1.6rem;
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 20px 40px rgba(31, 47, 30, 0.14), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
    background-image:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.5), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    row-gap: 1.35rem;
}

body.home-page .class-card-content,
body.home-page .class-todo-home,
body.home-page .class-notes-panel,
body.home-page .class-arena-panel-host,
body.home-page .class-arena-panel,
body.home-page .class-sticker-book {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

body.home-page .class-card-content {
    order: 1;
}

body.home-page .class-arena-panel-host {
    order: 2;
}

body.home-page .class-arena-panel {
    order: 2;
}

body.home-page .class-todo-home {
    order: 3;
}

body.home-page .class-notes-panel {
    order: 4;
}

body.home-page .class-sticker-book {
    order: 5;
}

body.home-page .class-card:hover,
body.home-page .class-card:focus-within {
    transform: translateY(-4px) scale(1.012);
    box-shadow: 0 26px 44px rgba(31, 47, 30, 0.18), inset 0 0 0 2px rgba(255, 255, 255, 0.42);
    border-color: rgba(255, 255, 255, 0.9);
}

body.home-page .class-cover {
    width: calc(100% + (var(--home-card-bleed) * 2));
    margin: calc(var(--home-card-bleed) * -1) calc(var(--home-card-bleed) * -1) 0;
    border-radius: 26px 22px 0 0;
    border: none;
    border-bottom: 1px solid rgba(31, 47, 30, 0.12);
    box-shadow: none;
}

body.home-page .class-notes-panel {
    background: rgba(255, 255, 255, 0.85);
}

body.home-page .home-exams {
    padding-top: clamp(2.2rem, 4vw, 3.1rem);
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 228, 237, 0.6), rgba(255, 228, 237, 0) 52%),
        radial-gradient(circle at 88% 18%, rgba(210, 239, 191, 0.58), rgba(210, 239, 191, 0) 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(252, 255, 248, 0.9) 74%);
}

body.home-page .home-games .home-exams-guest-copy {
    display: none;
}

body.home-page .home-exams--guest-showcase .section-intro {
    align-items: flex-start;
}

body.home-page .home-exams--guest-showcase .section-text > :not(.home-exams-guest-copy) {
    display: none;
}

body.home-page .home-exams-guest-copy {
    display: grid;
    gap: 0.55rem;
    max-width: 58rem;
}

body.home-page .home-exams-guest-copy .section-kicker {
    width: fit-content;
}

body.home-page .home-exams--guest-showcase .section-stats {
    align-items: center;
    justify-content: flex-end;
}

body.home-page .home-courses .section-stats .stat-pill:nth-of-type(-n + 2),
body.home-page .home-courses .home-exams-guest-cta {
    display: none;
}

body.home-page .home-exams--guest-showcase .section-stats .stat-pill:last-of-type {
    order: -1;
}

body.home-page .home-exams-guest-cta {
    order: 10;
    min-height: 46px;
    padding-inline: 1.1rem;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.16);
}

.exam-resume-bar {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.9rem);
    transform: translateX(-50%);
    width: min(880px, calc(100% - 2rem));
    margin: 0;
    border-radius: 18px;
    border: 1px solid rgba(31, 47, 30, 0.16);
    background: linear-gradient(130deg, rgba(255, 249, 236, 0.94), rgba(255, 255, 255, 0.98));
    box-shadow: 0 14px 28px rgba(31, 47, 30, 0.13);
    padding: 0 0.95rem 0.9rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.72rem;
    flex-wrap: wrap;
    overflow: hidden;
    z-index: 980;
}

.exam-resume-bar__notice {
    width: calc(100% + 1.9rem);
    margin: 0 -0.95rem 0.34rem;
    border-radius: 18px 18px 0 0;
    border: none;
    background: linear-gradient(135deg, #f24f9e, #e5318a);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    padding: 0.58rem 0.95rem 0.54rem;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.24);
}

.exam-resume-bar__text {
    display: grid;
    gap: 0.18rem;
    min-width: min(340px, 100%);
}

.exam-resume-bar__text strong {
    font-size: 1rem;
    color: #2a412d;
}

.exam-resume-bar__text span {
    font-size: 0.82rem;
    color: rgba(31, 47, 30, 0.74);
    font-weight: 700;
}

.exam-resume-bar__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.exam-resume-btn {
    border: none;
    text-decoration: none;
    border-radius: 999px;
    min-height: 40px;
    padding: 0.45rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.exam-resume-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #8ac63f, #2a9b43);
    box-shadow: 0 10px 18px rgba(42, 136, 61, 0.24);
}

.exam-resume-btn--ghost {
    color: rgba(31, 47, 30, 0.76);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 47, 30, 0.18);
}

body.exam-resume-visible {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 5.5rem);
}

body.exam-resume-visible .back-to-top {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 6.4rem);
}

body.exam-resume-visible .pwa-install-btn {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10.6rem);
}

body.home-page .exam-resume-bar {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.9rem);
    transform: translateX(-50%);
    width: min(880px, calc(100% - 2rem));
    margin: 0;
    border-radius: 18px;
    border: 1px solid rgba(31, 47, 30, 0.16);
    background: linear-gradient(130deg, rgba(255, 249, 236, 0.94), rgba(255, 255, 255, 0.98));
    box-shadow: 0 14px 28px rgba(31, 47, 30, 0.13);
    padding: 0 0.95rem 0.9rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.72rem;
    flex-wrap: wrap;
    overflow: hidden;
    z-index: 980;
}

body.home-page .exam-resume-bar__text {
    display: grid;
    gap: 0.18rem;
    min-width: min(340px, 100%);
}

body.home-page .exam-resume-bar__text strong {
    font-size: 1rem;
    color: #2a412d;
}

body.home-page .exam-resume-bar__text span {
    font-size: 0.82rem;
    color: rgba(31, 47, 30, 0.74);
    font-weight: 700;
}

body.home-page .exam-resume-bar__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

body.home-page .exam-resume-btn {
    border: none;
    text-decoration: none;
    border-radius: 999px;
    min-height: 40px;
    padding: 0.45rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.home-page .exam-resume-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #8ac63f, #2a9b43);
    box-shadow: 0 10px 18px rgba(42, 136, 61, 0.24);
}

body.home-page .exam-resume-btn--ghost {
    color: rgba(31, 47, 30, 0.76);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 47, 30, 0.18);
}

body.home-page.home-exam-resume-visible {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 5.5rem);
}

body.home-page.home-exam-resume-visible .back-to-top {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 6.4rem);
}

body.home-page.home-exam-resume-visible .pwa-install-btn {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10.6rem);
}

body.home-page .home-exams-toolbar {
    margin-top: 0.95rem;
    display: grid;
    gap: 0.38rem;
    width: min(520px, 100%);
}

body.home-page .home-exams-search {
    display: flex;
    align-items: center;
    gap: 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 47, 30, 0.18);
    background: #fff;
    box-shadow: 0 12px 22px rgba(31, 47, 30, 0.1);
    padding: 0.52rem 0.78rem;
}

body.home-page .home-exams-search span {
    color: rgba(31, 47, 30, 0.54);
    font-size: 0.95rem;
    line-height: 1;
}

body.home-page .home-exams-search input {
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    color: #1f2f1e;
    width: 100%;
}

body.home-page .home-exams-search input::placeholder {
    color: rgba(31, 47, 30, 0.52);
}

body.home-page .home-exams-status {
    margin: 0;
    min-height: 1.1rem;
    font-size: 0.82rem;
    color: rgba(31, 47, 30, 0.72);
    font-weight: 700;
}

body.home-page .course-category-tabs .category-tab.is-active .category-count,
body.home-page .exam-category-pill.is-active span {
    background: rgba(255, 255, 255, 0.45);
    color: #1F2F1E;
}

body.home-page .exam-random-card {
    margin-top: 0.62rem;
    border-radius: 26px;
    border: 2px solid rgba(255, 255, 255, 0.84);
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 42%),
        linear-gradient(140deg, rgba(255, 248, 223, 0.95), rgba(255, 255, 255, 0.98) 55%, rgba(228, 248, 220, 0.94));
    box-shadow: 0 16px 34px rgba(31, 47, 30, 0.14);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}

body.home-page .exam-random-card__content {
    display: grid;
    gap: 0.34rem;
    min-width: min(520px, 100%);
}

body.home-page .exam-random-card__kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.82);
    color: #8f5f0f;
}

body.home-page .exam-random-card h3 {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.12rem, 2vw, 1.42rem);
    color: #2a3f2a;
}

body.home-page .exam-random-card p {
    margin: 0;
    color: rgba(31, 47, 30, 0.72);
    font-size: 0.88rem;
    font-weight: 600;
}

body.home-page .exam-random-card__meta {
    margin-top: 0.18rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

body.home-page .exam-random-card__meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 47, 30, 0.16);
    background: rgba(255, 255, 255, 0.86);
    padding: 0.2rem 0.66rem;
    font-size: 0.76rem;
    font-weight: 800;
    color: rgba(31, 47, 30, 0.73);
}

body.home-page .exam-random-card__meta-pill strong {
    font-weight: 900;
}

body.home-page .exam-random-card__meta-pill em {
    font-style: normal;
    font-weight: 700;
    opacity: 0.86;
}

body.home-page .exam-random-card__meta-pill--starters {
    border-color: rgba(234, 135, 179, 0.56);
    background: rgba(255, 230, 243, 0.92);
    color: #b72168;
}

body.home-page .exam-random-card__meta-pill--movers {
    border-color: rgba(107, 170, 138, 0.54);
    background: rgba(229, 248, 236, 0.94);
    color: #177e55;
}

body.home-page .exam-random-card__meta-pill--flyers {
    border-color: rgba(85, 101, 222, 0.62);
    background: rgba(236, 240, 255, 0.92);
    color: #4f5fd8;
}

body.home-page .exam-random-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-width: 290px;
}

body.home-page .exam-random-card__level-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem;
}

body.home-page .exam-random-card__level-actions .exam-random-card__action {
    min-width: 118px;
}

body.home-page .exam-random-card__form {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

body.home-page .exam-random-card__field {
    display: grid;
    gap: 0.16rem;
    min-width: 114px;
}

body.home-page .exam-random-card__field--duration {
    min-width: 148px;
}

body.home-page .exam-random-card__field span {
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(31, 47, 30, 0.74);
}

body.home-page .exam-random-card__field input {
    width: 100%;
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(31, 47, 30, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: #1f2f1e;
    font-size: 0.86rem;
    font-weight: 800;
    padding: 0.42rem 0.68rem;
}

body.home-page .exam-random-card__field input:focus {
    outline: none;
    border-color: rgba(40, 158, 67, 0.7);
    box-shadow: 0 0 0 3px rgba(143, 216, 87, 0.24);
}

body.home-page .exam-random-card__hint {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(31, 47, 30, 0.62);
    text-align: right;
}

body.home-page .exam-random-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(3, 102, 3, 0.34);
    background: linear-gradient(135deg, #8ac63f, #289e43);
    box-shadow: 0 12px 22px rgba(28, 126, 53, 0.24);
    color: #fff;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 800;
    font-family: inherit;
    padding: 0.52rem 1.02rem;
}

body.home-page .exam-random-card__level-actions .exam-random-card__action {
    box-shadow: none;
}

body.home-page .exam-random-card__action--starters {
    border-color: rgba(234, 135, 179, 0.56);
    background: rgba(255, 230, 243, 0.92);
    color: #b72168;
}

body.home-page .exam-random-card__action--movers {
    border-color: rgba(107, 170, 138, 0.54);
    background: rgba(229, 248, 236, 0.94);
    color: #177e55;
}

body.home-page .exam-random-card__action--flyers {
    border-color: rgba(85, 101, 222, 0.7);
    background: linear-gradient(135deg, #727ce7, #5f6ade);
    color: #fff;
    box-shadow: 0 10px 20px rgba(84, 99, 220, 0.28);
}

body.home-page .exam-random-card__action--login {
    border-color: rgba(31, 47, 30, 0.22);
    background: #fff;
    color: rgba(31, 47, 30, 0.78);
    box-shadow: none;
}

body.home-page .exam-random-card__action.is-disabled {
    border-color: rgba(31, 47, 30, 0.2);
    background: rgba(255, 255, 255, 0.72);
    color: rgba(31, 47, 30, 0.5);
    box-shadow: none;
    cursor: not-allowed;
}

body.home-page .home-exams-grid {
    margin-top: 0.92rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

body.home-page .exam-home-card {
    --exam-card-border: rgba(255, 255, 255, 0.8);
    --exam-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 250, 227, 0.83));
    --exam-card-shadow: rgba(31, 47, 30, 0.13);
    --exam-card-shadow-hover: rgba(31, 47, 30, 0.17);
    --exam-card-thumb-sep: rgba(31, 47, 30, 0.1);
    --exam-card-accent: rgba(31, 47, 30, 0.65);
    --exam-card-strong: #1e6a32;
    border-radius: 24px;
    border: 2px solid var(--exam-card-border);
    background: var(--exam-card-bg);
    box-shadow: 0 18px 34px var(--exam-card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    transform-origin: center center;
}

body.home-page .exam-home-card:hover,
body.home-page .exam-home-card:focus-within {
    transform: translateY(-4px) scale(1.012);
    box-shadow: 0 24px 40px var(--exam-card-shadow-hover);
}

body.home-page .exam-home-card.exam-home-card--starters {
    --exam-card-border: rgba(234, 135, 179, 0.58);
    --exam-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 236, 246, 0.9));
    --exam-card-shadow: rgba(183, 33, 104, 0.15);
    --exam-card-shadow-hover: rgba(183, 33, 104, 0.2);
    --exam-card-thumb-sep: rgba(183, 33, 104, 0.2);
    --exam-card-accent: #b72168;
    --exam-card-strong: #b72168;
}

body.home-page .exam-home-card.exam-home-card--movers {
    --exam-card-border: rgba(107, 170, 138, 0.58);
    --exam-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(233, 248, 238, 0.9));
    --exam-card-shadow: rgba(23, 126, 85, 0.14);
    --exam-card-shadow-hover: rgba(23, 126, 85, 0.2);
    --exam-card-thumb-sep: rgba(23, 126, 85, 0.18);
    --exam-card-accent: #177e55;
    --exam-card-strong: #177e55;
}

body.home-page .exam-home-card.exam-home-card--flyers {
    --exam-card-border: rgba(85, 101, 222, 0.72);
    --exam-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 240, 255, 0.92));
    --exam-card-shadow: rgba(84, 99, 220, 0.18);
    --exam-card-shadow-hover: rgba(84, 99, 220, 0.26);
    --exam-card-thumb-sep: rgba(84, 99, 220, 0.24);
    --exam-card-accent: #4f5fd8;
    --exam-card-strong: #4f5fd8;
}

body.home-page .exam-home-card__thumb {
    border-bottom: 1px solid var(--exam-card-thumb-sep);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

body.home-page .exam-home-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.home-page .exam-home-card__body {
    padding: 0.88rem;
    display: grid;
    gap: 0.5rem;
    flex: 1;
}

body.home-page .exam-home-card h3 {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    color: #233827;
}

body.home-page .exam-home-card p {
    margin: 0;
    font-size: 0.84rem;
    color: rgba(31, 47, 30, 0.7);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.9em;
}

body.home-page .exam-home-card__tags {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

body.home-page .exam-home-tag {
    border-radius: 999px;
    padding: 0.16rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(31, 47, 30, 0.1);
    color: rgba(31, 47, 30, 0.72);
}

body.home-page .exam-home-tag.is-free {
    background: rgba(46, 160, 59, 0.2);
    color: #2f7d31;
}

body.home-page .exam-home-tag.is-vip {
    background: rgba(255, 174, 0, 0.2);
    color: #8f5c08;
}

body.home-page .exam-home-card__info {
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.26rem 0.7rem;
    min-height: 1.25rem;
}

body.home-page .exam-home-card__info span {
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(31, 47, 30, 0.72);
}

body.home-page .exam-home-card__info strong {
    color: var(--exam-card-strong);
    font-size: 0.8rem;
}

body.home-page .home-exams-lock {
    margin: 0 0 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(233, 30, 99, 0.18);
    background: linear-gradient(135deg, rgba(255, 241, 247, 0.96), rgba(255, 255, 255, 0.98));
    box-shadow: 0 14px 28px rgba(31, 47, 30, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

body.home-page .home-exams-lock__text {
    display: grid;
    gap: 0.18rem;
    color: rgba(31, 47, 30, 0.8);
}

body.home-page .home-exams-lock__text strong {
    color: #c6286d;
    font-size: 0.96rem;
}

body.home-page .home-exams-lock__text span {
    font-size: 0.84rem;
    font-weight: 700;
}

body.home-page .exam-home-card__footer {
    padding: 0 0.88rem 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

body.home-page .exam-home-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(3, 102, 3, 0.35);
    background: linear-gradient(135deg, #90ce47, #279a42);
    color: #fff;
    padding: 0.43rem 0.86rem;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(34, 126, 56, 0.22);
}

body.home-page .exam-home-action.is-login-required {
    border-color: rgba(31, 47, 30, 0.21);
    background: #fff;
    color: rgba(31, 47, 30, 0.76);
    box-shadow: none;
}

body.home-page .exam-home-action.is-resume {
    background: linear-gradient(135deg, #111111, #242424);
    border-color: rgba(17, 17, 17, 0.5);
    color: #ffcb05;
}

body.home-page .exam-home-action.is-locked {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.72;
    background: rgba(31, 47, 30, 0.12);
    border-color: rgba(31, 47, 30, 0.16);
    color: rgba(31, 47, 30, 0.56);
    box-shadow: none;
}

body.home-page .exam-home-duration {
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--exam-card-accent);
}

body.home-page .home-exams-empty {
    margin: 0.88rem 0 0;
    border-radius: 16px;
    padding: 0.8rem 0.95rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px dashed rgba(31, 47, 30, 0.24);
    color: rgba(31, 47, 30, 0.66);
    font-weight: 700;
}

body.home-page .class-showcase-card__practice-empty {
    margin-top: 0.72rem;
}

body.home-page .home-exams-load-more {
    margin-top: 0.8rem;
    text-align: center;
}

body.home-page .home-exams-load-more .btn-ghost {
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.5);
    background: linear-gradient(135deg, #111111, #242424);
    color: #ffcb05;
    padding: 0.42rem 1rem;
    font-family: 'Baloo 2', Nunito, sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 18px rgba(17, 17, 17, 0.24);
    cursor: pointer;
}

body.home-page .home-exams-load-more .btn-ghost:hover,
body.home-page .home-exams-load-more .btn-ghost:focus-visible {
    border-color: rgba(17, 17, 17, 0.72);
    box-shadow: 0 14px 24px rgba(17, 17, 17, 0.3);
    transform: translateY(-1px);
}

body.home-page .blog-section {
    padding-top: clamp(2.8rem, 5vw, 3.8rem);
    background:
        radial-gradient(circle at 10% 8%, rgba(255, 243, 191, 0.62) 0%, rgba(255, 243, 191, 0) 52%),
        radial-gradient(circle at 92% 16%, rgba(200, 242, 179, 0.5) 0%, rgba(200, 242, 179, 0) 46%),
        linear-gradient(180deg, rgba(209, 239, 183, 0.38) 0%, rgba(255, 255, 255, 0) 72%);
}

body.home-page .blog-list {
    gap: clamp(1.15rem, 2.2vw, 1.6rem);
}

body.home-page .blog-card {
    --home-card-bleed: 0.95rem;
    border-radius: 30px;
    border: 1.5px solid rgba(121, 184, 95, 0.38);
    box-shadow: 0 16px 32px rgba(39, 74, 35, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f7fff0 100%);
    padding: 0.95rem;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    transform-origin: center center;
}

body.home-page .blog-card:hover,
body.home-page .blog-card:focus-within {
    transform: translateY(-4px) scale(1.012);
    box-shadow: 0 22px 40px rgba(39, 74, 35, 0.18);
    border-color: rgba(58, 146, 63, 0.52);
}

body.home-page .blog-card:focus-visible {
    outline: 3px solid rgba(140, 198, 63, 0.55);
    outline-offset: 2px;
}

body.home-page .blog-card.pinned {
    border-color: rgba(239, 107, 158, 0.5);
    background: linear-gradient(180deg, #ffffff 0%, #fff4f9 100%);
}

body.home-page .blog-thumb {
    background: linear-gradient(145deg, rgba(186, 231, 159, 0.38), rgba(162, 219, 131, 0.22));
    width: calc(100% + (var(--home-card-bleed) * 2));
    margin: calc(var(--home-card-bleed) * -1) calc(var(--home-card-bleed) * -1) 0.85rem;
    border: none;
    border-bottom: 1px solid rgba(112, 180, 84, 0.3);
    border-radius: 28px 28px 0 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

body.home-page .blog-thumb img {
    transition: transform 0.45s ease;
}

body.home-page .blog-card:hover .blog-thumb img {
    transform: scale(1.03);
}

body.home-page .blog-badge {
    top: 0.68rem;
    left: 0.68rem;
    background: linear-gradient(135deg, #ff7cac, #ff4b8b);
    box-shadow: 0 8px 18px rgba(233, 71, 135, 0.28);
}

body.home-page .blog-info {
    gap: 0.72rem;
}

body.home-page .blog-info h3 {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.16rem, 1.9vw, 1.42rem);
    line-height: 1.28;
    color: #21392a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.home-page .blog-meta {
    gap: 0.45rem;
}

body.home-page .blog-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.62rem;
    border-radius: 999px;
    background: rgba(140, 198, 63, 0.17);
    color: #3f6f34;
    font-size: 0.78rem;
    font-weight: 700;
}

body.home-page .blog-meta span + span::before {
    content: none;
}

body.home-page .blog-excerpt {
    color: rgba(37, 53, 39, 0.76);
    line-height: 1.56;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.68em;
}

body.home-page .blog-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.6rem 0.95rem;
    border-radius: 14px;
    font-size: 1.02rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1b9f35, #0f7f20);
    border: 1px solid rgba(9, 103, 22, 0.42);
    box-shadow: 0 10px 20px rgba(16, 111, 35, 0.2);
}

body.home-page .blog-link::after {
    width: 1.45rem;
    height: 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

body.home-page .blog-link:hover {
    box-shadow: 0 13px 24px rgba(14, 99, 31, 0.28);
}

body.home-page .blog-empty {
    background: rgba(140, 198, 63, 0.18);
    color: rgba(31, 47, 30, 0.74);
}

@media (max-width: 1024px) {
    .home-main--guest .home-exams--guest-showcase .section-stats {
        justify-content: flex-start;
    }

    body.home-page .home-exams-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home-page .exam-random-card {
        border-radius: 22px;
        padding: 0.9rem 0.95rem;
    }

    body.home-page .exam-random-card__content {
        min-width: 100%;
    }

    body.home-page .exam-random-card__actions {
        width: 100%;
        justify-content: flex-start;
    }

    body.home-page .exam-random-card__level-actions {
        justify-content: flex-start;
    }

    body.home-page .exam-random-card__form {
        justify-content: flex-start;
    }

    body.home-page .blog-card {
        border-radius: 24px;
        padding: 0.88rem;
    }

    body.home-page .blog-info h3 {
        font-size: clamp(1.1rem, 2.4vw, 1.28rem);
    }
}

@media (max-width: 640px) {
    body.home-page .home-exams-guest-cta {
        width: 100%;
        justify-content: center;
    }

    body.home-page .exam-random-card {
        border-radius: 18px;
        gap: 0.8rem;
    }

    body.home-page .exam-random-card__meta {
        width: 100%;
    }

    body.home-page .exam-random-card__actions {
        justify-content: flex-start;
    }

    body.home-page .exam-random-card__level-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.44rem;
    }

    body.home-page .exam-random-card__level-actions .exam-random-card__action {
        min-width: 0;
        width: 100%;
        padding: 0.46rem 0.45rem;
    }

    body.home-page .exam-random-card__form {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home-page .exam-random-card__field {
        min-width: 0;
    }

    body.home-page .exam-random-card__field--duration {
        grid-column: 1 / -1;
    }

    body.home-page .exam-random-card__action {
        width: 100%;
    }

    body.home-page .exam-random-card__hint {
        text-align: left;
    }

    body.home-page .exam-home-card__info {
        gap: 0.24rem 0.54rem;
    }

    body.home-page .blog-section {
        padding-top: 2.2rem;
    }

    body.home-page .blog-card {
        border-radius: 20px;
        padding: 0.76rem;
    }

    body.home-page .blog-thumb {
        border-radius: 16px;
        margin-bottom: 0.72rem;
    }

    body.home-page .blog-meta span {
        font-size: 0.74rem;
        padding: 0.18rem 0.55rem;
    }

    body.home-page .blog-excerpt {
        min-height: 0;
    }

    body.home-page .blog-link {
        font-size: 0.95rem;
        padding: 0.54rem 0.82rem;
    }
}

.back-to-top {
    background: linear-gradient(135deg, #FF6FAE, var(--accent));
    box-shadow: 0 12px 24px rgba(237, 30, 121, 0.3);
}

.pwa-install-btn {
    position: fixed;
    right: 18px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 88px);
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 0.46rem;
    border: none;
    border-radius: 999px;
    padding: 0.58rem 0.96rem 0.58rem 0.7rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #22a63f 0%, #0f8625 52%, #26b148 100%);
    background-size: 180% 180%;
    box-shadow: 0 8px 18px rgba(14, 100, 30, 0.22);
    cursor: pointer;
    transform-origin: center;
    isolation: isolate;
    overflow: hidden;
    transition:
        transform 0.22s ease,
        filter 0.22s ease,
        background-position 0.4s ease,
        box-shadow 0.22s ease;
}

.pwa-install-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 2%, rgba(255, 255, 255, 0.28) 44%, transparent 74%);
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
}

.pwa-install-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
}

.pwa-install-btn.is-attention {
    animation: pwa-install-pulse 1.9s ease-in-out infinite;
}

.pwa-install-btn.is-attention::before {
    animation: pwa-install-shine 1.9s ease-in-out infinite;
}

.pwa-install-btn.is-attention::after {
    animation: pwa-install-ring 1.9s ease-in-out infinite;
}

.pwa-install-btn__icon {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.pwa-install-btn.is-attention .pwa-install-btn__icon {
    animation: pwa-install-icon-bob 0.95s ease-in-out infinite;
}

.pwa-install-btn__icon svg {
    width: 0.94rem;
    height: 0.94rem;
    display: block;
}

.pwa-install-btn__text {
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.pwa-install-btn:hover,
.pwa-install-btn:focus-visible {
    transform: translateY(-2px) scale(1.02);
    filter: saturate(1.07);
    background-position: 100% 50%;
    box-shadow: 0 10px 20px rgba(14, 100, 30, 0.18);
    outline: none;
}

.pwa-install-tip {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    transform: translateX(-50%);
    z-index: 1100;
    max-width: min(92vw, 460px);
    background: rgba(30, 47, 30, 0.92);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
    border-radius: 14px;
    padding: 0.62rem 0.86rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes pwa-install-pulse {
    0%,
    100% {
        transform: scale(1);
        filter: saturate(1);
    }
    50% {
        transform: scale(1.04);
        filter: saturate(1.08);
    }
}

@keyframes pwa-install-shine {
    0%,
    24% {
        opacity: 0;
        transform: translateX(-120%);
    }
    44%,
    100% {
        opacity: 0.85;
        transform: translateX(130%);
    }
}

@keyframes pwa-install-ring {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    35% {
        opacity: 0.68;
        transform: scale(1.02);
    }
    100% {
        opacity: 0;
        transform: scale(1.08);
    }
}

@keyframes pwa-install-icon-bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1px) scale(1.08);
    }
}

@media (max-width: 640px) {
    .pwa-install-btn {
        right: 12px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 78px);
        padding: 0.52rem 0.8rem 0.52rem 0.62rem;
        font-size: 0.84rem;
    }

    .pwa-install-btn__icon {
        width: 1.32rem;
        height: 1.32rem;
    }

    .pwa-install-tip {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    body.course-page .pwa-install-btn {
        right: 12px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 128px);
    }

    body.course-page.course-game-active .pwa-install-btn,
    body.course-page.course-review-overlay-open .pwa-install-btn,
    body.course-page.course-outline-mobile-open .pwa-install-btn,
    body.course-page.course-todo-open .pwa-install-btn {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, 18px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pwa-install-btn,
    .pwa-install-btn::before,
    .pwa-install-btn::after,
    .pwa-install-btn__icon {
        animation: none !important;
        transition: none !important;
    }
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-hero .hero-copy {
    animation: fadeUp 0.6s ease both;
}

.home-hero .hero-media {
    animation: fadeUp 0.6s ease 0.12s both;
}

.hero-strip li {
    animation: fadeUp 0.6s ease both;
}

.hero-strip li:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-strip li:nth-child(2) {
    animation-delay: 0.18s;
}

.hero-strip li:nth-child(3) {
    animation-delay: 0.26s;
}

body.home-page .course-card {
    animation: fadeUp 0.5s ease backwards;
}

body.home-page .course-card:nth-child(1) {
    animation-delay: 0.05s;
}

body.home-page .course-card:nth-child(2) {
    animation-delay: 0.1s;
}

body.home-page .course-card:nth-child(3) {
    animation-delay: 0.15s;
}

body.home-page .course-card:nth-child(4) {
    animation-delay: 0.2s;
}

body.home-page .course-card:nth-child(5) {
    animation-delay: 0.25s;
}

body.home-page .course-card:nth-child(6) {
    animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
    .home-hero .hero-copy,
    .home-hero .hero-media,
    .hero-strip li,
    body.home-page .course-card,
    .hero-sticker,
    .class-sticker-book__item,
    .profile-sticker-book__item,
    .class-card .class-learn-now-link::after,
    .class-card .class-zoom-link,
    .class-card .class-zoom-link::before,
    .class-card .class-zoom-link::after {
        animation: none;
    }
}

@media (max-width: 1024px) {
    .hero-shell {
        grid-template-columns: 1fr;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    body.home-page .course-layout {
        gap: 1rem;
    }

    body.home-page .course-filter {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .section-intro {
        align-items: flex-start;
    }

    .section-search {
        width: 100%;
    }

    .home-search .section-search {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .home-hero--slider-only .slider {
        aspect-ratio: 4 / 3;
    }

    .exam-resume-bar {
        border-radius: 16px;
        padding: 0 0.78rem 0.72rem;
        width: calc(100% - 1rem);
        bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
    }

    .exam-resume-bar__notice {
        width: calc(100% + 1.56rem);
        margin: 0 -0.78rem 0.3rem;
        border-radius: 16px 16px 0 0;
        font-size: 0.73rem;
        line-height: 1.25;
        padding: 0.5rem 0.72rem 0.46rem;
    }

    body.exam-resume-visible {
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 6rem);
    }

    body.exam-resume-visible .back-to-top {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 7.2rem);
    }

    body.exam-resume-visible .pwa-install-btn {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 11.3rem);
    }

    body.home-page .exam-resume-bar {
        border-radius: 16px;
        padding: 0 0.78rem 0.72rem;
        width: calc(100% - 1rem);
        bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
    }

    body.home-page.home-exam-resume-visible {
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 6rem);
    }

    body.home-page.home-exam-resume-visible .back-to-top {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 7.2rem);
    }

    body.home-page.home-exam-resume-visible .pwa-install-btn {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 11.3rem);
    }

    body.home-page .home-exams-toolbar {
        width: 100%;
    }

    body.home-page .home-exams-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    body.home-page .exam-home-card {
        border-radius: 20px;
    }

    body.home-page .exam-home-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    body.home-page .exam-home-action {
        width: 100%;
    }

    body.home-page .exam-home-duration {
        text-align: center;
    }

    .site-header {
        padding: 1.08rem clamp(1.4rem, 6.4vw, 1.8rem) 1rem;
        overflow: clip;
    }

    .site-logo {
        max-width: 100%;
        width: min(clamp(126px, 36vw, 174px), 100%);
        filter: drop-shadow(0 8px 16px rgba(3, 102, 3, 0.14));
    }

    body.home-page .course-grid,
    body.home-page .course-grid.course-grid--desktop-1,
    body.home-page .course-grid.course-grid--desktop-2,
    body.home-page .course-grid.course-grid--desktop-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    body.home-page .course-filter {
        padding: 0;
    }

    body.home-page .site-header {
        position: static;
        top: auto;
    }

    .main-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
        margin-bottom: 0.75rem;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        padding: 0.65rem 0.9rem;
        border-radius: 999px;
        font-weight: 700;
        min-height: 44px;
        box-shadow: 0 10px 20px rgba(31, 47, 30, 0.12);
    }

    .main-nav a:last-child {
        grid-column: 1 / -1;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 0.6rem;
        flex-wrap: nowrap;
        min-width: 0;
        max-width: 100%;
    }

    .header-actions.has-notify-bell {
        gap: 0.6rem;
        justify-content: center;
    }

    .header-actions.has-notify-bell .user-menu {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: 100%;
    }

    .header-actions.has-notify-bell .header-notify-btn {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        left: auto;
        top: auto;
        margin: 0;
        align-self: auto;
        z-index: auto;
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.48);
        color: #fff;
        box-shadow: none;
    }

    .header-actions.has-notify-bell .user-toggle {
        padding: 0.72rem 0.95rem;
    }

    .header-actions.has-notify-bell .header-notify-btn:hover,
    .header-actions.has-notify-bell .header-notify-btn:focus-visible {
        transform: translateY(-1px);
        border-color: rgba(255, 255, 255, 0.72);
        color: #fff;
        background: rgba(255, 255, 255, 0.22);
        box-shadow: none;
    }

    .header-actions.has-notify-bell .header-notify-btn.is-active {
        border-color: rgba(255, 255, 255, 0.7);
        color: #fff;
        background: rgba(255, 255, 255, 0.2);
    }

    .header-actions.has-notify-bell .user-name {
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-ghost {
        width: 100%;
    }

    .hero-strip {
        grid-template-columns: 1fr;
    }

    .hero-sticker {
        top: -10px;
        right: 8px;
    }
}

@media (max-width: 640px) {
    body.home-page .course-grid {
        grid-template-columns: 1fr;
    }

    body.home-page .home-shop-grid {
        grid-template-columns: 1fr;
    }

    body.home-page .course-meta {
        grid-template-columns: 1fr;
    }

    body.home-page .course-meta span:last-child {
        text-align: left;
    }

    body.home-page .home-shop__stats {
        width: 100%;
        justify-content: flex-start;
    }

    body.home-page .home-shop-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    body.home-page .home-shop-card__action {
        width: 100%;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    body.home-page .home-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .hero-feature {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-feature-icon {
        width: 36px;
        height: 36px;
    }

    .global-search {
        padding: 0.5rem 0.6rem;
    }

    .global-search-icon,
    .global-search-clear {
        width: 28px;
        height: 28px;
    }

    .global-search-clear {
        font-size: 1rem;
    }
}

.profile-page {
    background:
        radial-gradient(circle at 15% 12%, rgba(140, 198, 63, 0.18), transparent 36%),
        radial-gradient(circle at 85% 8%, rgba(237, 30, 121, 0.12), transparent 34%),
        var(--soft-bg);
}

.profile-main {
    padding: 0.8rem 0 3.2rem;
}

.profile-shell {
    background: #fff;
    border-radius: 28px;
    border: 2px solid rgba(140, 198, 63, 0.28);
    box-shadow: 0 20px 44px rgba(31, 47, 30, 0.12);
    padding: clamp(1.2rem, 2.6vw, 2rem);
}

.profile-head h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.profile-head p {
    margin: 0.45rem 0 0;
    color: rgba(31, 47, 30, 0.8);
}

.profile-page-tabs {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.profile-page-tab {
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(31, 47, 30, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(31, 47, 30, 0.86);
    font-size: 0.9rem;
    font-weight: 800;
    min-height: 40px;
    padding: 0.45rem 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-page-tab:hover,
.profile-page-tab:focus-visible {
    border-color: rgba(42, 136, 61, 0.46);
    color: rgba(9, 89, 35, 0.94);
    box-shadow: 0 8px 18px rgba(42, 136, 61, 0.16);
    outline: none;
}

.profile-page-tab.is-active,
.profile-page-tab[aria-current='page'] {
    border-color: rgba(42, 136, 61, 0.46);
    background: linear-gradient(135deg, #8ac63f, #2a9b43);
    color: #fff;
    box-shadow: 0 10px 20px rgba(42, 136, 61, 0.24);
}

.profile-alert {
    margin-top: 1rem;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    font-weight: 700;
}

.profile-alert.error {
    background: rgba(220, 53, 69, 0.12);
    color: #8a1f2b;
}

.profile-alert.success {
    background: rgba(0, 127, 0, 0.12);
    color: #0d5a12;
}

.profile-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.3rem;
}

.profile-avatar-panel {
    background: linear-gradient(180deg, #f6fff0, #f4fff2);
    border: 1px solid rgba(140, 198, 63, 0.28);
    border-radius: 20px;
    padding: 1rem;
}

.profile-avatar-preview {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 12px 26px rgba(31, 47, 30, 0.16);
    background: #e8f5e0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.profile-avatar-help {
    margin: 0.75rem 0 0;
    font-size: 0.86rem;
    color: rgba(31, 47, 30, 0.75);
    text-align: center;
}

.profile-upload-input {
    margin-top: 0.9rem;
    width: 100%;
}

.profile-remove-label {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: rgba(31, 47, 30, 0.85);
}

.profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem 1rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-field--full {
    grid-column: 1 / -1;
}

.profile-field span {
    font-size: 0.87rem;
    font-weight: 700;
    color: rgba(31, 47, 30, 0.82);
}

.profile-password-panel {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
    margin-top: 0.35rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(140, 198, 63, 0.26);
    background: linear-gradient(130deg, rgba(244, 255, 239, 0.9), rgba(255, 247, 234, 0.82));
}

.profile-password-panel__text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.profile-password-panel__text h2 {
    margin: 0;
    font-size: 1.03rem;
    font-family: 'Baloo 2', cursive;
    color: rgba(3, 102, 3, 0.9);
}

.profile-password-panel__text p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(31, 47, 30, 0.74);
}

.profile-password-panel__status {
    font-weight: 700;
}

.profile-password-panel__status.is-ready {
    color: rgba(7, 101, 43, 0.95);
}

.profile-password-panel__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
}

.profile-password-panel__open {
    white-space: nowrap;
}

.profile-password-panel__clear {
    border: none;
    background: transparent;
    color: rgba(31, 47, 30, 0.78);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.profile-password-panel__clear:hover,
.profile-password-panel__clear:focus-visible {
    color: rgba(3, 102, 3, 0.92);
    outline: none;
}

.profile-password-modal-open {
    overflow: hidden;
}

.profile-password-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.profile-password-modal[hidden] {
    display: none;
}

.profile-password-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 28, 20, 0.48);
    backdrop-filter: blur(2px);
}

.profile-password-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    border-radius: 20px;
    border: 1px solid rgba(31, 47, 30, 0.18);
    background: #fff;
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.24);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.profile-password-modal__close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(31, 47, 30, 0.18);
    background: #fff;
    color: rgba(31, 47, 30, 0.84);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.profile-password-modal__close:hover,
.profile-password-modal__close:focus-visible {
    color: rgba(3, 102, 3, 0.92);
    border-color: rgba(3, 102, 3, 0.45);
    outline: none;
}

.profile-password-modal__dialog h3 {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    color: rgba(31, 47, 30, 0.95);
}

.profile-password-modal__desc {
    margin: -0.3rem 0 0;
    color: rgba(31, 47, 30, 0.7);
    font-size: 0.88rem;
}

.profile-password-modal__error {
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.38);
    background: rgba(220, 53, 69, 0.1);
    color: #8a1f2b;
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.profile-password-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.profile-password-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 0.9rem;
}

.profile-password-modal__grid .profile-field--full {
    grid-column: 1 / -1;
}

.profile-password-modal .profile-field input.is-invalid {
    border-color: rgba(220, 53, 69, 0.68);
    outline: 2px solid rgba(220, 53, 69, 0.24);
    outline-offset: 1px;
}

.profile-password-input-wrap {
    position: relative;
    display: block;
}

.profile-password-input-wrap input {
    padding-right: 3rem;
}

.profile-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(31, 47, 30, 0.62);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-password-toggle:hover,
.profile-password-toggle:focus-visible {
    background: rgba(140, 198, 63, 0.12);
    color: rgba(3, 102, 3, 0.92);
    outline: none;
}

.profile-password-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-password-toggle__icon svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

.profile-password-toggle[data-visible="true"] .profile-password-toggle__icon--show,
.profile-password-toggle[data-visible="false"] .profile-password-toggle__icon--hide {
    display: none;
}

.profile-password-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.profile-field input,
.profile-field textarea {
    width: 100%;
    border: 1px solid rgba(31, 47, 30, 0.22);
    background: #fff;
    border-radius: 12px;
    padding: 0.68rem 0.78rem;
    font: inherit;
    color: var(--deep-blue);
}

.profile-field input[readonly] {
    background: rgba(31, 47, 30, 0.05);
    color: rgba(31, 47, 30, 0.76);
}

.profile-field textarea {
    min-height: 96px;
    resize: vertical;
}

.profile-field input:focus-visible,
.profile-field textarea:focus-visible {
    outline: 2px solid rgba(140, 198, 63, 0.65);
    outline-offset: 1px;
    border-color: rgba(140, 198, 63, 0.8);
}

.profile-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.profile-meta {
    margin-top: 0.8rem;
    font-size: 0.84rem;
    color: rgba(31, 47, 30, 0.7);
}

.profile-shortcut-card {
    margin-top: 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(31, 47, 30, 0.12);
    background: #fff;
    box-shadow: 0 10px 24px rgba(31, 47, 30, 0.08);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.profile-shortcut-card__content h2 {
    margin: 0;
    font-size: 1.08rem;
    font-family: 'Baloo 2', cursive;
    color: rgba(31, 47, 30, 0.95);
}

.profile-shortcut-card__content p {
    margin: 0.3rem 0 0;
    color: rgba(31, 47, 30, 0.75);
    font-size: 0.9rem;
}

.profile-shortcut-card__stats {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    font-size: 0.84rem;
}

.profile-shortcut-card__stats strong {
    font-size: 0.95rem;
    color: rgba(31, 47, 30, 0.95);
}

.profile-shortcut-card__stats.is-empty {
    color: rgba(31, 47, 30, 0.62);
}

.profile-shortcut-card__action {
    flex-shrink: 0;
}

.profile-sticker-book {
    margin-top: 1.35rem;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background:
        radial-gradient(circle at 8% 14%, rgba(255, 255, 255, 0.85) 0 12%, transparent 13%),
        radial-gradient(circle at 95% 12%, rgba(255, 255, 255, 0.75) 0 10%, transparent 11%),
        linear-gradient(140deg, rgba(255, 236, 188, 0.85), rgba(239, 255, 236, 0.86) 45%, rgba(255, 220, 236, 0.82));
    box-shadow: 0 16px 34px rgba(31, 47, 30, 0.11), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.profile-sticker-book__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.profile-sticker-book__heading h2 {
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.32rem);
    font-family: 'Baloo 2', cursive;
    color: rgba(31, 47, 30, 0.95);
}

.profile-sticker-book__heading p {
    margin: 0.2rem 0 0;
    font-size: 0.86rem;
    color: rgba(31, 47, 30, 0.7);
}

.profile-sticker-book__filterbar {
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 0.58rem;
    align-items: end;
}

.profile-sticker-book__filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
    min-width: 0;
}

.profile-sticker-book__filter-field > span {
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(31, 47, 30, 0.76);
}

.profile-sticker-book__filter-field select,
.profile-sticker-book__filter-field input {
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(31, 47, 30, 0.2);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.35rem 0.6rem;
    font: inherit;
    font-size: 0.82rem;
    color: rgba(31, 47, 30, 0.9);
    width: 100%;
}

.profile-sticker-book__filter-field input::placeholder {
    color: rgba(31, 47, 30, 0.55);
}

.profile-sticker-book__filter-field select:focus-visible,
.profile-sticker-book__filter-field input:focus-visible {
    outline: 2px solid rgba(140, 198, 63, 0.65);
    outline-offset: 1px;
    border-color: rgba(140, 198, 63, 0.82);
}

.profile-sticker-book__filter-status {
    margin: -0.05rem 0 0;
    font-size: 0.8rem;
    color: rgba(31, 47, 30, 0.72);
    font-weight: 700;
}

.profile-sticker-book__stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-sticker-book__stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    border-radius: 999px;
    padding: 0.34rem 0.65rem;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 16px rgba(31, 47, 30, 0.1);
    color: rgba(31, 47, 30, 0.78);
    font-size: 0.76rem;
    font-weight: 700;
}

.profile-sticker-book__stats strong {
    font-family: 'Baloo 2', cursive;
    color: #ea5d68;
    font-size: 1rem;
}

.profile-sticker-book__empty {
    margin: 0;
    border-radius: 16px;
    padding: 0.95rem;
    background: rgba(255, 255, 255, 0.72);
    color: rgba(31, 47, 30, 0.76);
    font-weight: 600;
}

.profile-sticker-book__scroll {
    max-height: 320px;
    overflow: auto;
    padding-right: 0.2rem;
}

.profile-sticker-book__scroll::-webkit-scrollbar {
    width: 7px;
}

.profile-sticker-book__scroll::-webkit-scrollbar-thumb {
    background: rgba(237, 30, 121, 0.34);
    border-radius: 999px;
}

.profile-sticker-book__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.7rem;
}

.profile-sticker-book__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 18px rgba(31, 47, 30, 0.1);
    padding: 0.62rem 0.66rem;
    animation: profile-sticker-in 0.35s ease both;
}

.profile-sticker-book__item:nth-child(2n) {
    animation-delay: 0.03s;
}

.profile-sticker-book__item:nth-child(3n) {
    animation-delay: 0.06s;
}

.profile-sticker-book__thumb {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.profile-sticker-book__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.profile-sticker-book__thumb-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Baloo 2', cursive;
    color: #ea7b2b;
    letter-spacing: 0.06em;
    font-size: 1rem;
}

.profile-sticker-book__item-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.profile-sticker-book__item-meta strong {
    font-size: 0.91rem;
    line-height: 1.2;
    color: rgba(31, 47, 30, 0.92);
}

.profile-sticker-book__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.34rem;
}

.profile-sticker-book__chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.16rem 0.45rem;
    background: rgba(140, 198, 63, 0.2);
    color: rgba(31, 47, 30, 0.8);
    font-size: 0.72rem;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.profile-sticker-book__chip.is-teacher {
    background: rgba(237, 30, 121, 0.14);
    color: #9f2f69;
}

.profile-sticker-book__item-meta time {
    font-size: 0.73rem;
    color: #3f6b35;
    font-weight: 700;
}

.profile-sticker-book__filter-empty {
    margin: 0;
    border-radius: 14px;
    padding: 0.72rem 0.9rem;
    background: rgba(255, 255, 255, 0.74);
    color: rgba(31, 47, 30, 0.74);
    font-size: 0.84rem;
    font-weight: 700;
}

.exam-history-page .profile-shell {
    overflow: hidden;
}

.exam-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.exam-history-last {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.36rem 0.72rem;
    background: rgba(140, 198, 63, 0.16);
    border: 1px solid rgba(140, 198, 63, 0.34);
    color: rgba(31, 47, 30, 0.86);
    font-size: 0.8rem;
    font-weight: 700;
}

.exam-history-mode-tabs {
    margin-top: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.exam-history-mode-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
    min-height: 40px;
    border-radius: 999px;
    padding: 0.52rem 0.9rem;
    border: 1px solid rgba(31, 47, 30, 0.14);
    background: rgba(255, 255, 255, 0.94);
    color: rgba(31, 47, 30, 0.78);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(31, 47, 30, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.exam-history-mode-tab:hover,
.exam-history-mode-tab:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(31, 47, 30, 0.12);
}

.exam-history-mode-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    min-height: 1.6rem;
    border-radius: 999px;
    padding: 0 0.42rem;
    background: rgba(31, 47, 30, 0.08);
    color: rgba(31, 47, 30, 0.72);
    font-size: 0.74rem;
    font-weight: 900;
}

.exam-history-mode-tab.is-active {
    border-color: rgba(140, 198, 63, 0.42);
    background: linear-gradient(135deg, rgba(240, 255, 231, 0.98), rgba(255, 247, 233, 0.94));
    color: rgba(3, 102, 3, 0.95);
    box-shadow: 0 16px 28px rgba(140, 198, 63, 0.18);
}

.exam-history-mode-tab.is-active span {
    background: rgba(140, 198, 63, 0.16);
    color: rgba(3, 102, 3, 0.92);
}

.exam-history-empty {
    margin-top: 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(140, 198, 63, 0.28);
    background: linear-gradient(135deg, rgba(246, 255, 240, 0.95), rgba(255, 244, 233, 0.82));
    padding: 1.1rem;
}

.exam-history-empty h2 {
    margin: 0;
    font-size: 1.14rem;
    font-family: 'Baloo 2', cursive;
    color: rgba(31, 47, 30, 0.94);
}

.exam-history-empty p {
    margin: 0.4rem 0 0.95rem;
    color: rgba(31, 47, 30, 0.78);
}

.exam-history-summary {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.66rem;
}

.exam-history-summary-card {
    border-radius: 18px;
    border: 1px solid rgba(140, 198, 63, 0.28);
    background: #fff;
    box-shadow: 0 12px 22px rgba(31, 47, 30, 0.08);
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
}

.exam-history-summary-card__label {
    color: rgba(31, 47, 30, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
}

.exam-history-summary-card__value {
    font-family: 'Baloo 2', cursive;
    color: rgba(3, 102, 3, 0.92);
    font-size: 1.42rem;
    line-height: 1.05;
}

.exam-history-summary-card__value small {
    font-family: 'Nunito', sans-serif;
    font-size: 0.72rem;
    color: rgba(31, 47, 30, 0.62);
    margin-left: 0.08rem;
}

.exam-history-list-card {
    margin-top: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(140, 198, 63, 0.26);
    background: #fff;
    padding: 0.9rem;
}

.exam-history-list-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 0.72rem;
}

.exam-history-list-head h2 {
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Baloo 2', cursive;
    color: rgba(31, 47, 30, 0.95);
}

.exam-history-list-head p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(31, 47, 30, 0.68);
}

.exam-history-list {
    list-style: none;
    margin: 0;
    padding: 0 0.2rem 0 0;
    display: grid;
    gap: 0.62rem;
    max-height: 510px;
    overflow: auto;
}

.exam-history-list::-webkit-scrollbar {
    width: 7px;
}

.exam-history-list::-webkit-scrollbar-thumb {
    background: rgba(140, 198, 63, 0.45);
    border-radius: 999px;
}

.exam-history-item {
    border-radius: 14px;
    border: 1px solid rgba(31, 47, 30, 0.12);
    background: linear-gradient(135deg, #ffffff, rgba(248, 255, 245, 0.9));
    padding: 0.75rem 0.82rem;
}

.exam-history-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
}

.exam-history-item__main {
    min-width: 0;
}

.exam-history-item__main strong {
    display: block;
    color: rgba(31, 47, 30, 0.94);
    font-size: 0.95rem;
    line-height: 1.35;
}

.exam-history-item__meta {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem 0.44rem;
}

.exam-history-item__meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(31, 47, 30, 0.07);
    color: rgba(31, 47, 30, 0.74);
    padding: 0.15rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
}

.exam-history-item__score {
    min-width: 108px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    text-align: right;
}

.exam-history-item__score-value {
    color: #0f7f25;
    font-family: 'Baloo 2', cursive;
    font-size: 1.18rem;
    line-height: 1;
}

.exam-history-item__score-value small {
    margin-left: 0.08rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.72rem;
    color: rgba(31, 47, 30, 0.62);
}

.exam-history-grade {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.13rem 0.56rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.exam-history-grade.is-excellent {
    background: rgba(25, 167, 73, 0.15);
    color: #0f7f25;
}

.exam-history-grade.is-good {
    background: rgba(32, 149, 210, 0.16);
    color: #0e5f93;
}

.exam-history-grade.is-pass {
    background: rgba(240, 176, 60, 0.2);
    color: #956017;
}

.exam-history-grade.is-fail {
    background: rgba(220, 53, 69, 0.14);
    color: #8a1f2b;
}

.exam-history-grade.is-pending {
    background: rgba(31, 47, 30, 0.12);
    color: rgba(31, 47, 30, 0.72);
}

.exam-history-item__metrics {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.exam-history-item__metrics span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(140, 198, 63, 0.15);
    color: rgba(31, 47, 30, 0.78);
    padding: 0.15rem 0.48rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.exam-history-item__metrics--sections {
    margin-top: 0.46rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
}

.exam-history-item__metrics--sections span {
    border-radius: 12px;
    border: 1px solid rgba(31, 47, 30, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 252, 241, 0.92));
    padding: 0.42rem 0.48rem;
    display: grid;
    gap: 0.14rem;
    justify-items: start;
}

.exam-history-item__metrics--sections span em {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: rgba(31, 47, 30, 0.64);
}

.exam-history-item__metrics--sections span strong {
    font-size: 0.86rem;
    line-height: 1.15;
    color: rgba(31, 47, 30, 0.9);
}

.exam-history-item__metrics--sections span small {
    font-size: 0.7rem;
    color: rgba(31, 47, 30, 0.65);
    font-weight: 700;
}

.exam-history-item__bar {
    margin-top: 0.58rem;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(31, 47, 30, 0.12);
}

.exam-history-item__bar-fill {
    display: block;
    height: 100%;
    width: var(--exam-progress, 0%);
    background: linear-gradient(90deg, #ffcb05, #e0aa00);
}

@keyframes profile-sticker-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.class-sticker-book__item,
.profile-sticker-book__item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.22s ease;
}

.class-sticker-book__item:hover,
.profile-sticker-book__item:hover {
    transform: translateY(-1px);
    filter: saturate(1.04);
}

.class-sticker-book__item:active,
.profile-sticker-book__item:active {
    transform: scale(0.985);
}

.class-sticker-book__thumb,
.profile-sticker-book__thumb {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.22s ease;
}

.class-sticker-book__thumb:hover,
.profile-sticker-book__thumb:hover {
    transform: translateY(-1px) scale(1.02);
    filter: saturate(1.06);
}

.class-sticker-book__thumb:active,
.profile-sticker-book__thumb:active {
    transform: scale(0.92) rotate(-2deg);
}

.sticker-fireworks-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1305;
}

.sticker-firework {
    position: absolute;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
}

.sticker-firework__ring {
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border: 3px solid #ffd54f;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0.85;
    filter: drop-shadow(0 0 12px rgba(255, 232, 133, 0.7));
    animation: sticker-firework-ring 660ms ease-out forwards;
}

.sticker-firework__spark {
    position: absolute;
    left: 0;
    top: 0;
    background: var(--spark-color, #ffcf48);
    border-radius: 999px;
    transform: translate(-50%, -50%) rotate(var(--spark-angle, 0deg)) translateX(0);
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    animation: sticker-firework-spark 820ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--spark-delay, 0ms);
}

.sticker-confetti {
    position: absolute;
    top: -24px;
    opacity: 0;
    transform: translate3d(0, -18px, 0) rotate(0deg);
    box-shadow: 0 2px 6px rgba(31, 47, 30, 0.14);
    animation-name: sticker-confetti-fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.sticker-fx-shape {
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--shape-color, #fff176);
    border-radius: 3px;
    transform: translate(-50%, -50%) rotate(calc(var(--shape-rot-start, 0deg) + var(--shape-tilt, 0deg)));
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
    animation: sticker-shape-fly 1120ms cubic-bezier(0.2, 0.84, 0.26, 1) forwards;
    animation-delay: var(--shape-delay, 0ms);
}

.sticker-fx-shape.is-star {
    border-radius: 0;
    clip-path: polygon(50% 0%, 62% 36%, 100% 36%, 69% 57%, 81% 100%, 50% 74%, 19% 100%, 31% 57%, 0% 36%, 38% 36%);
}

.sticker-fx-shape.is-heart {
    --shape-tilt: 45deg;
    border-radius: 2px;
}

.sticker-fx-shape.is-heart::before,
.sticker-fx-shape.is-heart::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--shape-color, #f06292);
    border-radius: 999px;
}

.sticker-fx-shape.is-heart::before {
    left: -50%;
    top: 0;
}

.sticker-fx-shape.is-heart::after {
    left: 0;
    top: -50%;
}

.sticker-fx-shape.is-bubble {
    background: transparent;
    border: 2px solid var(--shape-color, #81d4fa);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.sticker-fx-shape.is-candy {
    border-radius: 4px;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.38),
        0 1px 4px rgba(31, 47, 30, 0.18);
}

.sticker-fx-shape.is-balloon {
    border-radius: 50% 50% 45% 45%;
    filter: drop-shadow(0 2px 6px rgba(31, 47, 30, 0.24));
}

.sticker-fx-shape.is-balloon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 10px;
    background: rgba(60, 42, 30, 0.5);
    transform: translateX(-50%);
}

.sticker-fx-shape.is-floating {
    animation-name: sticker-shape-float;
    animation-duration: 2600ms;
}

.sticker-fx-ray {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--ray-distance, 120px);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ray-color, #ffd54f), rgba(255, 255, 255, 0));
    transform: translate(-50%, -50%) rotate(var(--ray-angle, 0deg)) scaleX(0.1);
    transform-origin: 0 50%;
    opacity: 0;
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.72));
    animation: sticker-ray-spin 760ms ease-out forwards;
    animation-delay: var(--ray-delay, 0ms);
}

.sticker-fx-comet {
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 4px;
    border-radius: 999px;
    background: var(--comet-color, #fff176);
    transform: translate(-50%, -50%) rotate(var(--comet-rot, 0deg));
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.74));
    animation: sticker-comet-fly 920ms cubic-bezier(0.24, 0.8, 0.28, 1) forwards;
    animation-delay: var(--comet-delay, 0ms);
}

.sticker-fx-comet::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    width: 46px;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--comet-color, #fff176));
}

@keyframes sticker-firework-ring {
    from {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0.95;
    }
    to {
        transform: translate(-50%, -50%) scale(4.9);
        opacity: 0;
    }
}

@keyframes sticker-firework-spark {
    0% {
        transform: translate(-50%, -50%) rotate(var(--spark-angle, 0deg)) translateX(0) scale(0.95);
        opacity: 0;
    }
    18% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(var(--spark-angle, 0deg)) translateX(var(--spark-distance, 120px)) scale(0.25);
        opacity: 0;
    }
}

@keyframes sticker-confetti-fall {
    0% {
        opacity: 0;
        transform: translate3d(0, -22px, 0) rotate(0deg) scale(0.95);
    }
    10% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--confetti-drift, 0px), var(--confetti-drop, 760px), 0) rotate(var(--confetti-spin, 360deg)) scale(0.78);
    }
}

@keyframes sticker-shape-fly {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(calc(var(--shape-rot-start, 0deg) + var(--shape-tilt, 0deg))) scale(0.4);
    }
    15% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(
                calc(-50% + var(--shape-x, 0px)),
                calc(-50% + var(--shape-y, -120px))
            )
            rotate(calc(var(--shape-rot-end, 280deg) + var(--shape-tilt, 0deg)))
            scale(var(--shape-scale-end, 0.72));
    }
}

@keyframes sticker-shape-float {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-8deg) scale(0.8);
    }
    12% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(
                calc(-50% + var(--shape-float-x, 0px)),
                calc(-50% + var(--shape-float-y, -640px))
            )
            rotate(10deg)
            scale(1.05);
    }
}

@keyframes sticker-ray-spin {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--ray-angle, 0deg)) scaleX(0.1);
    }
    22% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(calc(var(--ray-angle, 0deg) + var(--ray-rotate, 72deg))) scaleX(1);
    }
}

@keyframes sticker-comet-fly {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--comet-rot, 0deg)) scale(0.8);
    }
    16% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(
                calc(-50% + var(--comet-x, 120px)),
                calc(-50% + var(--comet-y, 0px))
            )
            rotate(var(--comet-rot, 0deg))
            scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .class-sticker-book__item,
    .profile-sticker-book__item,
    .class-sticker-book__thumb,
    .profile-sticker-book__thumb {
        transition: none;
    }

    .sticker-firework__ring,
    .sticker-firework__spark,
    .sticker-confetti,
    .sticker-fx-shape,
    .sticker-fx-ray,
    .sticker-fx-comet {
        animation: none !important;
    }
}

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

    .profile-avatar-panel {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 0.95rem;
    }

    .profile-avatar-preview {
        margin: 0;
        width: 94px;
        height: 94px;
    }

    .profile-avatar-help {
        text-align: left;
    }

    .profile-sticker-book__list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .profile-sticker-book__filterbar {
        grid-template-columns: 1fr 1fr;
    }

    .profile-sticker-book__filter-field--search {
        grid-column: 1 / -1;
    }

    .profile-shortcut-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .exam-history-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .exam-history-item__head {
        flex-direction: column;
    }

    .exam-history-item__score {
        min-width: 0;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 700px) {
    .profile-page-tabs {
        gap: 0.45rem;
    }

    .profile-page-tab {
        flex: 1 1 calc(50% - 0.23rem);
    }

    .profile-fields {
        grid-template-columns: 1fr;
    }

    .profile-password-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-password-panel__actions {
        align-items: stretch;
    }

    .profile-password-panel__open {
        width: 100%;
    }

    .profile-password-modal__grid {
        grid-template-columns: 1fr;
    }

    .profile-password-modal__actions .btn-login,
    .profile-password-modal__actions .btn-ghost {
        width: 100%;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions .btn-login,
    .profile-actions .btn-ghost {
        width: 100%;
    }

    .profile-shortcut-card__action {
        width: 100%;
        text-align: center;
    }

    .profile-sticker-book {
        padding: 0.95rem;
    }

    .profile-sticker-book__stats {
        width: 100%;
    }

    .profile-sticker-book__stats span {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
    }

    .profile-sticker-book__filterbar {
        grid-template-columns: 1fr;
    }

    .profile-sticker-book__list {
        grid-template-columns: 1fr;
    }

    .exam-history-summary {
        grid-template-columns: 1fr;
    }

    .exam-history-list {
        max-height: none;
    }

    .exam-history-item__meta span {
        width: 100%;
        justify-content: flex-start;
    }

    .exam-history-item__metrics--sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .profile-page-tab {
        flex-basis: 100%;
    }

    .profile-sticker-book__stats span {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .exam-history-last {
        width: 100%;
        justify-content: flex-start;
    }
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(3, 102, 3, 0.1);
    color: var(--deep-blue);
    cursor: pointer;
}

.mobile-nav-toggle:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.mobile-nav-toggle__line {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

@media (max-width: 768px) {
    body.mobile-nav-ready .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo menu"
            "nav nav"
            "actions actions";
        align-items: center;
        gap: 0rem 1rem;
        padding: 0.72rem clamp(1.2rem, 5.2vw, 1.5rem);
        background: rgba(255, 255, 255, 0.96) !important;
        border-radius: 0 !important;
        box-shadow: 0 18px 36px rgba(19, 19, 19, 0.08) !important;
        overflow: visible;
    }

    body.mobile-nav-ready .logo-block {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
        grid-area: logo;
        max-width: 100%;
        min-width: 0;
        padding-left: 0;
    }

    body.mobile-nav-ready .site-logo {
        width: min(32vw, 130px);
        max-width: 100%;
    }

    body.mobile-nav-ready .header-actions {
        display: none;
        grid-area: actions;
        margin-top: 0;
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: flex-start;
        align-items: center;
        gap: 0.55rem;
        flex-wrap: nowrap;
    }

    body.mobile-nav-ready .main-nav.is-open ~ .header-actions {
        display: flex;
    }

    body.mobile-nav-ready .header-actions.has-notify-bell .user-menu {
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        width: auto;
        max-width: 100%;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    body.mobile-nav-ready .mobile-nav-toggle {
        display: inline-flex;
        grid-area: menu;
        justify-self: end;
        flex-shrink: 0;
        margin-right: 0.18rem;
        width: 3.35rem;
        height: 3.35rem;
        border-radius: 1.15rem;
        background: rgba(226, 239, 228, 0.96);
        box-shadow: none;
    }

    body.mobile-nav-ready .main-nav {
        display: none;
        grid-area: nav;
    }

    body.mobile-nav-ready .main-nav.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        margin: 0;
        padding: 0;
        grid-column: 1 / -1;
    }

    body.mobile-nav-ready .main-nav a {
        min-height: 42px;
        padding: 0.58rem 0.8rem;
        font-size: 0.98rem;
        text-decoration: none !important;
        border-bottom: 0 !important;
        background-image: none !important;
        box-shadow: none !important;
    }

    body.mobile-nav-ready .main-nav a::before,
    body.mobile-nav-ready .main-nav a::after {
        content: none !important;
    }

    body.mobile-nav-ready .main-nav a[href*='#khoa-hoc'] {
        background: linear-gradient(135deg, #ffcb05, #e0aa00);
        color: #111111;
    }

    body.mobile-nav-ready .main-nav a[href*='#lop-hoc'] {
        background: linear-gradient(135deg, #111111, #242424);
        color: #ffcb05;
    }

    body.mobile-nav-ready .main-nav a[href*='#khoa-hoc']:hover,
    body.mobile-nav-ready .main-nav a[href*='#khoa-hoc']:focus,
    body.mobile-nav-ready .main-nav a[href*='#lop-hoc']:hover,
    body.mobile-nav-ready .main-nav a[href*='#lop-hoc']:focus {
        color: inherit;
        filter: brightness(1.04);
    }

    body.mobile-nav-ready .main-nav a:last-child {
        grid-column: auto;
        width: min(220px, 100%);
        justify-self: center;
    }

    body.mobile-nav-ready .mobile-nav-toggle[aria-expanded='true'] .mobile-nav-toggle__line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.mobile-nav-ready .mobile-nav-toggle[aria-expanded='true'] .mobile-nav-toggle__line:nth-child(2) {
        opacity: 0;
    }

    body.mobile-nav-ready .mobile-nav-toggle[aria-expanded='true'] .mobile-nav-toggle__line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    body.mobile-nav-ready .header-actions.has-notify-bell .user-menu,
    body.mobile-nav-ready .user-menu {
        width: auto;
        min-width: 0;
        max-width: 100%;
    }

    body.mobile-nav-ready .user-dropdown {
        width: min(calc(100vw - 1.5rem), 24rem) !important;
        min-width: 0 !important;
        right: 0 !important;
        left: auto !important;
        margin-top: 0.15rem !important;
    }
}






.class-note-sticker-gift {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed rgba(60, 42, 30, 0.15);
    border-radius: 14px;
    width: fit-content;
}

.class-note-sticker-gift__thumb {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.class-note-sticker-gift__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.class-note-sticker-gift__fallback {
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    background: var(--primary);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.class-note-sticker-gift__label {
    font-size: 0.85rem;
    color: rgba(60, 42, 30, 0.8);
}

.class-note-sticker-gift__label strong {
    color: var(--deep-blue);
}

@keyframes header-bell-shake {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(16deg); }
    30% { transform: rotate(-13deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-8deg); }
    75% { transform: rotate(4deg); }
}

.notifications-main {
    padding-top: 0.85rem;
    padding-bottom: 2.4rem;
}

.notifications-shell {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(31, 47, 30, 0.08);
    box-shadow: 0 18px 40px rgba(22, 17, 11, 0.08);
    padding: 1.35rem;
}

.notifications-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.notifications-head h1 {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.notifications-head p {
    margin: 0.42rem 0 0;
    color: rgba(31, 47, 30, 0.72);
}

.notifications-head__actions {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    flex-wrap: nowrap;
    flex: 0 0 auto;
}

.notifications-tablist {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.28rem;
    border-radius: 999px;
    background: rgba(140, 198, 63, 0.12);
    border: 1px solid rgba(0, 127, 0, 0.12);
}

.notifications-tab {
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(31, 47, 30, 0.78);
    padding: 0.58rem 0.9rem;
    font: inherit;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.notifications-tab:hover,
.notifications-tab:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary);
}

.notifications-tab.is-active {
    background: linear-gradient(135deg, #0f8f2f, #51b84d);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 143, 47, 0.18);
}

.notifications-tab__count {
    flex: 0 0 auto;
    min-width: 1.65rem;
    min-height: 1.65rem;
    padding: 0 0.38rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    color: #0b6a2b;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.notifications-tab.is-active .notifications-tab__count {
    background: #ffffff;
    color: #0f8f2f;
    box-shadow: 0 8px 16px rgba(15, 143, 47, 0.16);
}

.notifications-tab-panel[hidden] {
    display: none !important;
}

.notifications-unread-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    min-width: 265px;
    min-height: 42px;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: #e8f6ef;
    border: 1px solid rgba(0, 127, 0, 0.14);
    color: #0b6a2b;
    font-weight: 700;
    box-sizing: border-box;
    white-space: nowrap;
}

.notifications-unread-chip strong {
    flex: 0 0 auto;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.notifications-head__actions .btn-ghost {
    min-width: 265px;
    min-height: 42px;
    padding: 0.72rem 1rem;
    box-sizing: border-box;
}

.guardian-notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.guardian-notification-item {
    border-radius: 16px;
    border: 1px solid rgba(31, 47, 30, 0.12);
    background: #fff;
    padding: 0.8rem 0.95rem;
    display: grid;
    gap: 0.45rem;
}

.guardian-notification-item.is-unread {
    border-color: rgba(0, 127, 0, 0.35);
    background: linear-gradient(145deg, #f8fff7, #ffffff);
}

.guardian-notification-item.is-read {
    opacity: 0.92;
}

.guardian-notification-item__meta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: rgba(31, 47, 30, 0.7);
}

.guardian-notification-item__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: #0f8f2f;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.guardian-notification-item h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--deep-blue);
}

.guardian-notification-item p {
    margin: 0;
    color: rgba(31, 47, 30, 0.82);
}

.guardian-notification-item__thumb {
    width: min(100%, 152px);
    padding: 0;
    border: 1px solid rgba(31, 47, 30, 0.12);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 18px rgba(31, 47, 30, 0.08);
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guardian-notification-item__thumb:hover,
.guardian-notification-item__thumb:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(31, 47, 30, 0.12);
    border-color: rgba(15, 143, 47, 0.24);
    outline: none;
}

.guardian-notification-item__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.guardian-notification-item__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.guardian-notification-item__action-btn {
    min-height: 32px;
    padding: 0.38rem 0.8rem;
    border-width: 1px;
    font-size: 0.88rem;
    line-height: 1.1;
    box-shadow: none;
}

.guardian-notification-item__action-btn:hover,
.guardian-notification-item__action-btn:focus-visible {
    box-shadow: 0 8px 16px rgba(3, 102, 3, 0.12);
}

.guardian-notification-item__action-btn--muted {
    border-color: rgba(31, 47, 30, 0.2);
    color: rgba(31, 47, 30, 0.86);
}

.guardian-notification-empty {
    margin: 0.8rem 0 0;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px dashed rgba(31, 47, 30, 0.26);
    color: rgba(31, 47, 30, 0.75);
    background: #f9fff8;
}

.notifications-image-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(9, 17, 20, 0.72);
    backdrop-filter: blur(6px);
}

.notifications-image-modal__dialog {
    position: relative;
    width: min(92vw, 920px);
    max-height: min(88vh, 920px);
    padding: 1rem;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 48px rgba(9, 17, 20, 0.28);
    display: grid;
    gap: 0.75rem;
}

.notifications-image-modal__dialog img {
    display: block;
    width: 100%;
    max-height: calc(88vh - 5.5rem);
    object-fit: contain;
    border-radius: 18px;
    background: #f7fbf6;
}

.notifications-image-modal__caption {
    margin: 0;
    text-align: center;
    color: rgba(31, 47, 30, 0.8);
    font-weight: 700;
}

.notifications-image-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #11381f;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(31, 47, 30, 0.14);
}

body.is-notification-image-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .notifications-shell {
        border-radius: 18px;
        padding: 1rem;
    }

    .notifications-head {
        flex-direction: column;
    }

    .notifications-head__actions {
        width: 100%;
        align-items: stretch;
    }

    .notifications-head__actions .btn-ghost,
    .notifications-unread-chip {
        width: 100%;
        min-width: 0;
    }

    .notifications-head__actions .btn-ghost {
        justify-content: center;
    }

    .notifications-tablist {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notifications-tab {
        justify-content: center;
    }

    .guardian-notification-item__thumb {
        width: min(100%, 132px);
    }

    .notifications-image-modal__dialog {
        width: min(96vw, 96vw);
        padding: 0.8rem;
        border-radius: 18px;
    }
}

/* BeeBee yellow-black theme */
:root {
    --bee-gold-050: #fffdf2;
    --bee-gold-100: #fff7cf;
    --bee-gold-200: #ffe486;
    --bee-gold-300: #ffcb05;
    --bee-gold-400: #e0aa00;
    --bee-gold-500: #b98400;
    --bee-ink: #111111;
    --bee-ink-soft: #242424;
    --bee-muted: rgba(17, 17, 17, 0.72);
    --bee-border: rgba(17, 17, 17, 0.14);
    --bee-shadow: 0 18px 40px rgba(17, 17, 17, 0.12);
    --bee-shadow-strong: 0 24px 52px rgba(17, 17, 17, 0.18);

    --primary: var(--bee-gold-400);
    --secondary: var(--bee-gold-300);
    --accent: var(--bee-ink);
    --accent-soft: var(--bee-gold-100);
    --leaf: var(--bee-gold-200);
    --sunny: var(--bee-gold-100);
    --deep-blue: var(--bee-ink);
    --soft-bg: var(--bee-gold-050);
    --mint: #fff9e2;
}

body {
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.72), transparent 28%),
        radial-gradient(circle at 86% 10%, rgba(255, 203, 5, 0.2), transparent 30%),
        radial-gradient(circle at 80% 82%, rgba(17, 17, 17, 0.08), transparent 34%),
        linear-gradient(180deg, #fffef7 0%, #fff7d0 44%, #f7df8b 100%);
    color: var(--bee-ink);
}

body.home-page::before {
    background:
        radial-gradient(circle at center, rgba(255, 203, 5, 0.24) 0%, rgba(255, 203, 5, 0) 70%);
}

:where(.site-header, body.home-page .site-header, .course-page .site-header) {
    background: linear-gradient(135deg, rgba(255, 232, 128, 0.98), rgba(255, 203, 5, 0.95));
    border: 1px solid rgba(17, 17, 17, 0.18);
    border-radius: 24px;
    box-shadow: var(--bee-shadow-strong);
    padding-inline: 1.25rem;
}

.main-nav a {
    color: var(--bee-ink);
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--bee-ink);
    background: rgba(17, 17, 17, 0.08);
}

.header-notify-btn,
.mobile-nav-toggle {
    background: rgba(17, 17, 17, 0.06);
    color: var(--bee-ink);
    border-color: rgba(17, 17, 17, 0.14);
}

.header-notify-btn:hover,
.header-notify-btn:focus-visible,
.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible {
    border-color: rgba(17, 17, 17, 0.24);
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.16);
    color: var(--bee-ink);
}

.user-toggle,
.header-actions.has-notify-bell .user-toggle,
.btn-login,
.btn-primary,
.course-btn.primary,
.class-attendance-cta__btn,
.class-arena-session__enter,
.exam-home-action,
.exam-random-card__action,
.profile-shortcut-card__action,
.profile-password-panel__open,
.pwa-install-btn,
.back-to-top {
    background: linear-gradient(135deg, #111111 0%, #2c2c2c 100%) !important;
    color: var(--bee-gold-300) !important;
    border: 1px solid rgba(255, 203, 5, 0.36) !important;
    box-shadow: 0 14px 28px rgba(17, 17, 17, 0.2) !important;
}

body.mobile-nav-ready .user-toggle,
body.mobile-nav-ready .header-actions.has-notify-bell .user-toggle {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.user-toggle:hover,
.user-toggle:focus-visible,
.btn-login:hover,
.btn-login:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible,
.course-btn.primary:hover,
.course-btn.primary:focus-visible,
.class-attendance-cta__btn:hover,
.class-attendance-cta__btn:focus-visible,
.class-arena-session__enter:hover,
.class-arena-session__enter:focus-visible,
.exam-home-action:hover,
.exam-home-action:focus-visible,
.exam-random-card__action:hover,
.exam-random-card__action:focus-visible,
.profile-shortcut-card__action:hover,
.profile-shortcut-card__action:focus-visible,
.profile-password-panel__open:hover,
.profile-password-panel__open:focus-visible,
.pwa-install-btn:hover,
.pwa-install-btn:focus-visible,
.back-to-top:hover,
.back-to-top:focus-visible {
    background: linear-gradient(135deg, #202020 0%, #000000 100%) !important;
    color: #ffe486 !important;
    box-shadow: 0 18px 34px rgba(17, 17, 17, 0.24) !important;
}

:where(
    .btn-login.ghost,
    .btn-ghost,
    .btn-attachment,
    .btn-link,
    .course-btn:not(.primary),
    .profile-page-tab,
    .notifications-tab,
    .class-notes-filter-btn,
    .class-sticker-book__filter-btn,
    .notifications-head__actions .btn-ghost,
    .guardian-notification-item__action-btn,
    .profile-remove-label,
    .profile-password-panel__clear,
    .class-toggle,
    body.home-page .course-category-tabs .category-tab,
    body.home-page .exam-category-pill,
    .exam-random-card__meta-pill,
    .course-player-action--secondary,
    .course-player-resource-tab,
    .course-player-action
) {
    background: rgba(255, 250, 225, 0.96) !important;
    color: var(--bee-ink) !important;
    border-color: rgba(17, 17, 17, 0.16) !important;
    box-shadow: 0 10px 20px rgba(17, 17, 17, 0.08);
}

:where(
    .btn-login.ghost,
    .btn-ghost,
    .btn-attachment,
    .btn-link,
    .course-btn:not(.primary),
    .profile-page-tab,
    .notifications-tab,
    .class-notes-filter-btn,
    .class-sticker-book__filter-btn,
    .notifications-head__actions .btn-ghost,
    .guardian-notification-item__action-btn,
    .profile-remove-label,
    .profile-password-panel__clear,
    .class-toggle,
    body.home-page .course-category-tabs .category-tab,
    body.home-page .exam-category-pill,
    .exam-random-card__meta-pill,
    .course-player-action--secondary,
    .course-player-resource-tab,
    .course-player-action
):hover,
:where(
    .btn-login.ghost,
    .btn-ghost,
    .btn-attachment,
    .btn-link,
    .course-btn:not(.primary),
    .profile-page-tab,
    .notifications-tab,
    .class-notes-filter-btn,
    .class-sticker-book__filter-btn,
    .notifications-head__actions .btn-ghost,
    .guardian-notification-item__action-btn,
    .profile-remove-label,
    .profile-password-panel__clear,
    .class-toggle,
    body.home-page .course-category-tabs .category-tab,
    body.home-page .exam-category-pill,
    .exam-random-card__meta-pill,
    .course-player-action--secondary,
    .course-player-resource-tab,
    .course-player-action
):focus-visible,
:where(
    .profile-page-tab.is-active,
    .notifications-tab.is-active,
    .class-notes-filter-btn.is-active,
    .class-sticker-book__filter-btn.is-active,
    body.home-page .course-category-tabs .category-tab.is-active,
    body.home-page .exam-category-pill.is-active
) {
    background: linear-gradient(135deg, #ffe178 0%, #ffcb05 100%) !important;
    color: var(--bee-ink) !important;
    border-color: rgba(17, 17, 17, 0.24) !important;
    box-shadow: 0 14px 28px rgba(17, 17, 17, 0.14);
}

:where(
    .hero-shell,
    .hero-copy,
    .hero-media,
    body.home-page .course-card,
    body.home-page .class-card,
    body.home-page .class-card-content,
    body.home-page .class-todo-home,
    body.home-page .class-notes-panel,
    body.home-page .class-arena-panel-host,
    body.home-page .class-arena-panel,
    body.home-page .class-sticker-book,
    body.home-page .exam-random-card,
    body.home-page .exam-home-card,
    body.home-page .blog-card,
    .profile-shell,
    .profile-avatar-panel,
    .profile-password-panel,
    .profile-shortcut-card,
    .profile-sticker-book,
    .notifications-shell,
    .guardian-notification-item,
    .guardian-notification-empty,
    .notifications-image-modal__dialog,
    .post-header,
    .post-content,
    .post-related,
    .course-shell,
    .course-shell-head,
    .course-player-card,
    .course-player-source-note,
    .class-course-picker__dialog,
    .class-note-sticker-gift
) {
    background: linear-gradient(180deg, rgba(255, 252, 236, 0.98), rgba(255, 239, 177, 0.96));
    border-color: var(--bee-border) !important;
    box-shadow: var(--bee-shadow);
}

:where(
    body.home-page .course-card:hover,
    body.home-page .course-card:focus-within,
    body.home-page .class-card:hover,
    body.home-page .class-card:focus-within,
    body.home-page .exam-home-card:hover,
    body.home-page .exam-home-card:focus-within,
    body.home-page .blog-card:hover,
    body.home-page .blog-card:focus-within,
    .guardian-notification-item:hover,
    .guardian-notification-item:focus-within,
    .class-todo-home__item:hover,
    .class-todo-home__item:focus-visible,
    .class-arena-session:hover,
    .class-arena-session:focus-within,
    .class-sticker-book__item:hover,
    .profile-sticker-book__item:hover
) {
    border-color: rgba(255, 203, 5, 0.72) !important;
    box-shadow: 0 24px 48px rgba(17, 17, 17, 0.16) !important;
}

:where(
    .course-level,
    .course-player-badge,
    .course-player-source-note__badge,
    .course-player-watched-status,
    .class-ribbon span,
    .blog-badge,
    .exam-home-tag,
    .notifications-unread-chip,
    .notifications-tab__count,
    .profile-sticker-book__chip,
    .class-note-tag,
    .class-todo-home__status,
    .class-arena-session__status,
    .profile-password-panel__status
) {
    background: linear-gradient(135deg, rgba(255, 225, 120, 0.95), rgba(255, 203, 5, 0.96));
    color: var(--bee-ink) !important;
    border: 1px solid rgba(17, 17, 17, 0.14);
}

.hero-kicker,
.hero-title,
.hero-lead,
.tagline,
.course-title,
.profile-head h1,
.notifications-head h1,
.post-header h1,
.section-heading h2 {
    color: var(--bee-ink);
}

:where(
    .course-level,
    .course-meta,
    .blog-meta,
    .exam-home-card p,
    .exam-random-card p,
    .notifications-head p,
    .profile-head p,
    .post-meta,
    .post-excerpt,
    .class-note,
    .class-note--muted,
    .course-player-source-note p,
    .course-player-info,
    .course-player-title + p
) {
    color: var(--bee-muted);
}

:where(
    .home-exams-search,
    .profile-field input,
    .profile-field textarea,
    .profile-sticker-book__filter-field select,
    .profile-sticker-book__filter-field input,
    .class-sticker-book__name-filter select,
    .course-player-resource-tabs,
    .profile-password-modal__dialog,
    .notifications-image-modal__dialog img
) {
    border-color: rgba(17, 17, 17, 0.14) !important;
}

:where(
    .home-exams-search input,
    .profile-field input,
    .profile-field textarea,
    .profile-sticker-book__filter-field select,
    .profile-sticker-book__filter-field input,
    .class-sticker-book__name-filter select
) {
    background: rgba(255, 252, 238, 0.98);
    color: var(--bee-ink);
    border-color: rgba(17, 17, 17, 0.16) !important;
}

:where(
    .home-exams-search input,
    .profile-field input,
    .profile-field textarea,
    .profile-sticker-book__filter-field select,
    .profile-sticker-book__filter-field input,
    .class-sticker-book__name-filter select
):focus-visible {
    border-color: rgba(224, 170, 0, 0.92) !important;
    box-shadow: 0 0 0 4px rgba(255, 203, 5, 0.22);
}

.pwa-install-btn::before,
.pwa-install-btn::after {
    background: rgba(255, 203, 5, 0.2);
}

body.mobile-nav-ready .main-nav a[href*='#khoa-hoc'],
body.mobile-nav-ready .main-nav a[href*='#lop-hoc'] {
    background: linear-gradient(135deg, #111111 0%, #2c2c2c 100%) !important;
    color: var(--bee-gold-300) !important;
    box-shadow: none !important;
    text-decoration: none !important;
    border-bottom: 0 !important;
    background-image: linear-gradient(135deg, #111111 0%, #2c2c2c 100%) !important;
}

body.mobile-nav-ready .main-nav a[href*='#khoa-hoc']:hover,
body.mobile-nav-ready .main-nav a[href*='#khoa-hoc']:focus,
body.mobile-nav-ready .main-nav a[href*='#lop-hoc']:hover,
body.mobile-nav-ready .main-nav a[href*='#lop-hoc']:focus {
    color: #ffe486 !important;
}

/* BeeBee yellow-black cleanup for remaining legacy user states */
.btn-login,
.class-card .class-learn-now-link,
.course-review-overlay-next.is-ready,
.course-outline-fab,
body.home-page .exam-home-action.is-resume,
body.home-page .home-exams-load-more .btn-ghost {
    background: linear-gradient(145deg, #111111, #242424) !important;
    color: var(--bee-gold-300) !important;
    border-color: rgba(17, 17, 17, 0.72) !important;
    box-shadow: 0 14px 28px rgba(17, 17, 17, 0.24) !important;
}

.course-category-tabs .category-tab.is-active,
.class-notes-filter-btn.is-active,
.class-sticker-book__filter-btn.is-active,
.class-attendance-cta__btn.is-completed,
.course-todo-dialog__status[data-tone='success']::before,
.course-todo-item__state.is-completed,
.course-todo-trigger__count,
.course-btn.is-watched,
.course-outline-summary-chip.is-current,
.exam-history-grade.is-excellent {
    background: linear-gradient(145deg, #ffe486, #ffcb05) !important;
    color: #111111 !important;
    border-color: rgba(224, 170, 0, 0.5) !important;
    box-shadow: 0 10px 22px rgba(224, 170, 0, 0.22) !important;
}

.class-attendance-cta__btn.is-completed:hover,
.class-attendance-cta__btn.is-completed:focus-visible,
.course-btn.is-watched:hover,
.course-btn.is-watched:focus-visible {
    background: linear-gradient(145deg, #ffe486, #e0aa00) !important;
    color: #111111 !important;
    border-color: rgba(224, 170, 0, 0.66) !important;
    box-shadow: 0 14px 28px rgba(224, 170, 0, 0.3) !important;
}

.random-exam-popup__dialog::before,
.class-course-picker__dialog::before {
    background: linear-gradient(90deg, #ffcb05 0%, #e0aa00 100%) !important;
}

body .class-course-picker__dialog {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.99) 0%, rgba(255, 249, 228, 0.97) 50%, rgba(241, 250, 236, 0.96) 100%) !important;
    border-color: rgba(168, 139, 52, 0.24) !important;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.24), 0 12px 28px rgba(140, 198, 63, 0.12) !important;
}

body .class-course-picker__dialog::before {
    background: linear-gradient(90deg, #ffcb05 0%, #f4b400 48%, #8cc63f 100%) !important;
}

.lesson-attachment,
.course-shell-head .course-title,
.course-outline-close,
.course-outline-scroll-bottom,
.course-outline-summary-chip strong,
.exam-history-item__score-value,
.outline-lesson-attachment-icon,
.outline-lesson-review-icon,
.outline-lesson-go,
.outline-section-title::before {
    color: #8b6500 !important;
}

.outline-lesson-attachment-icon,
.outline-lesson-review-icon,
.outline-lesson-go,
.course-outline-close,
.course-outline-scroll-bottom {
    background: rgba(255, 247, 207, 0.96) !important;
    border-color: rgba(224, 170, 0, 0.28) !important;
}

.outline-section-title::before {
    background: #ffcb05 !important;
}

.course-outline-summary-chip.is-watched {
    background: rgba(17, 17, 17, 0.92) !important;
    color: var(--bee-gold-300) !important;
    border-color: rgba(17, 17, 17, 0.44) !important;
}

.course-todo-dialog__status[data-tone='error']::before {
    background: linear-gradient(145deg, #111111, #242424) !important;
    color: var(--bee-gold-300) !important;
    box-shadow: 0 8px 14px rgba(17, 17, 17, 0.22) !important;
}

.exam-history-item__bar-fill {
    background: linear-gradient(90deg, #ffcb05, #e0aa00) !important;
}

body.home-page .course-card,
body.home-page .class-card,
body.home-page .class-card-content,
body.home-page .exam-home-card,
body.home-page .blog-card {
    background: linear-gradient(180deg, rgba(255, 251, 232, 0.98), rgba(255, 241, 184, 0.96)) !important;
    border-color: rgba(17, 17, 17, 0.12) !important;
    box-shadow: 0 20px 40px rgba(17, 17, 17, 0.14), inset 0 0 0 2px rgba(255, 255, 255, 0.28) !important;
}

body.home-page .course-card::after {
    background: rgba(255, 203, 5, 0.18) !important;
}

body.home-page .class-section,
body.home-page .blog-section {
    background:
        radial-gradient(circle at 10% 8%, rgba(255, 243, 191, 0.64) 0%, rgba(255, 243, 191, 0) 52%),
        radial-gradient(circle at 92% 16%, rgba(255, 225, 120, 0.28) 0%, rgba(255, 225, 120, 0) 46%),
        linear-gradient(180deg, rgba(255, 247, 207, 0.42) 0%, rgba(255, 255, 255, 0) 72%) !important;
}

body.home-page .exam-home-tag.is-free,
body.home-page .blog-meta span {
    background: rgba(255, 203, 5, 0.2) !important;
    color: #8b6500 !important;
}

body.home-page .exam-home-card h3,
body.home-page .blog-info h3,
.footer-card--contact,
.footer-contact,
.footer-phone-link,
.footer-contact-name,
.footer-social-list,
.footer-social-link,
.footer-social-icon {
    color: #111111 !important;
}

body.home-page .blog-link,
.footer-card--rights {
    background: linear-gradient(145deg, #111111, #242424) !important;
    color: var(--bee-gold-300) !important;
    border-color: rgba(17, 17, 17, 0.42) !important;
    box-shadow: 0 16px 30px rgba(17, 17, 17, 0.2) !important;
}

.footer-card--contact {
    background: linear-gradient(145deg, #fff9dd 0%, #ffe486 100%) !important;
    box-shadow: 0 14px 30px rgba(224, 170, 0, 0.2) !important;
}

.footer-phone-link {
    border-bottom-color: rgba(17, 17, 17, 0.24) !important;
}

.footer-social-link {
    background: rgba(255, 250, 230, 0.92) !important;
    border-color: rgba(17, 17, 17, 0.16) !important;
}

.footer-social-icon {
    background: linear-gradient(140deg, #ffcb05 0%, #ffe486 100%) !important;
}

.course-player-badge {
    background: rgba(255, 203, 5, 0.18) !important;
    color: #111111 !important;
    border-color: rgba(224, 170, 0, 0.28) !important;
}

.course-player-source-note__badge {
    background: rgba(17, 17, 17, 0.92) !important;
    color: var(--bee-gold-300) !important;
    border-color: rgba(17, 17, 17, 0.2) !important;
}

.outline-section {
    background: rgba(255, 251, 232, 0.92) !important;
    border-color: rgba(224, 170, 0, 0.22) !important;
}

.outline-section-title {
    color: #8b6500 !important;
}

.outline-lesson {
    background: #fffdf2 !important;
    border-color: rgba(224, 170, 0, 0.28) !important;
}

.outline-lesson.is-active,
.outline-lesson.is-watched,
.outline-lesson.is-active.is-watched {
    background: linear-gradient(145deg, #ffe486, #ffcb05) !important;
    border-color: rgba(224, 170, 0, 0.42) !important;
    color: #111111 !important;
}

.outline-lesson-preview-badge {
    background: rgba(17, 17, 17, 0.92) !important;
    color: var(--bee-gold-300) !important;
    border-color: rgba(17, 17, 17, 0.22) !important;
}

.exam-resume-bar {
    background: linear-gradient(145deg, #111111, #242424) !important;
    border-color: rgba(17, 17, 17, 0.42) !important;
    box-shadow: 0 18px 36px rgba(17, 17, 17, 0.24) !important;
}

.exam-resume-bar__notice {
    background: linear-gradient(145deg, #ffcb05, #ffe486) !important;
    color: #111111 !important;
}

.exam-resume-bar__text,
.exam-resume-bar__text strong,
.exam-resume-bar__text span {
    color: var(--bee-gold-300) !important;
}

body.home-page .exam-resume-bar__text,
body.home-page .exam-resume-bar__text strong {
    color: #111111 !important;
}

body.home-page .exam-resume-bar__text span {
    color: rgba(17, 17, 17, 0.82) !important;
}

.exam-resume-btn--primary {
    background: linear-gradient(145deg, #ffcb05, #e0aa00) !important;
    color: #111111 !important;
    border-color: rgba(224, 170, 0, 0.42) !important;
}

.exam-resume-btn--ghost {
    background: rgba(255, 251, 232, 0.96) !important;
    color: #111111 !important;
    border-color: rgba(224, 170, 0, 0.28) !important;
}

[aria-label='Nội dung khóa học'] h2 {
    color: #111111 !important;
}

@media (max-width: 768px) {
    .site-header {
        overflow: visible;
    }

    .header-actions.has-notify-bell {
        padding-top: 0.28rem;
    }

    .header-actions.has-notify-bell .header-notify-btn {
        position: relative;
        overflow: visible;
        z-index: 2;
    }

    .header-notify-btn__badge {
        top: -6px;
        right: -6px;
        z-index: 3;
    }
}
