/* ===================================================
   NIHONGO HAJIME - CSS
   Japanese Language Learning App
   =================================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --red: #DC2626;
    --red-dark: #B91C1C;
    --red-light: #FEE2E2;
    --red-medium: #FECACA;
    --red-glow: rgba(220, 38, 38, 0.3);
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --green: #16A34A;
    --green-light: #DCFCE7;
    --yellow: #CA8A04;
    --yellow-light: #FEF9C3;
    --blue: #2563EB;
    --blue-light: #DBEAFE;
    --orange: #EA580C;
    --orange-light: #FFEDD5;
    --purple: #9333EA;
    --purple-light: #F3E8FF;

    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
    --font-jp: 'Noto Sans JP', 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-red: 0 4px 16px rgba(220, 38, 38, 0.25);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--gray-100);
    min-height: 100vh;
    color: var(--gray-800);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- MOBILE CONTAINER --- */
.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--white);
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.08);
}

/* --- UTILITIES --- */
.hidden { display: none !important; }
.active { display: block; }

/* ===================================================
   SPLASH SCREEN
   =================================================== */
.splash-screen {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    z-index: 1000;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: splashIn 0.8s ease-out;
}

@keyframes splashIn {
    from { opacity: 0; transform: scale(0.85) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.splash-circle {
    width: 170px;
    height: 170px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.12);
    animation: pulse 2s infinite;
    padding: 10px;
}

.splash-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-full);
}

.splash-flag { font-size: 52px; }
.splash-title {
    font-family: var(--font-jp);
    font-size: 30px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: 2px;
}
.splash-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
}
.splash-desc {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}
.splash-loader {
    width: 160px;
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 24px;
}
.splash-loader-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--red-dark));
    border-radius: var(--radius-full);
    width: 0%;
    animation: loadBar 1.8s ease-in-out forwards;
}

.splash-footer {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}
.splash-credit-link {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}
.splash-credit-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}
@keyframes loadBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===================================================
   HEADER
   =================================================== */
.app-header {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    padding: 14px 16px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(220, 38, 38, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-back {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: var(--radius-full);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.btn-back:active { background: rgba(255,255,255,0.25); }

.header-title-wrap { flex: 1; overflow: hidden; }
.header-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.header-subtitle {
    font-family: var(--font-jp);
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    line-height: 1;
    margin-top: 2px;
}

.xp-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.xp-badge:hover { background: rgba(255,255,255,0.3); }
.xp-icon { font-size: 14px; }

.header-user-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-profile-header {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--red);
    border: 2px solid rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    padding: 0;
}
.btn-profile-header:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.btn-profile-header:active { transform: scale(0.95); }

.profile-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #DC2626, #991B1B);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    margin: 0 auto 10px;
    box-shadow: 0 4px 16px rgba(220,38,38,0.3);
    border: 3px solid #FEE2E2;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
}
.profile-stat-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 10px 6px;
    text-align: center;
}
.profile-stat-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--gray-800);
    display: block;
}
.profile-stat-lbl {
    font-size: 10px;
    color: var(--gray-500);
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

/* ===================================================
   MAIN CONTENT
   =================================================== */
.main-content {
    padding-bottom: 110px;
}

.page {
    display: none;
    padding: 16px;
    animation: pageIn 0.3s ease-out;
}
.page.active { display: block; }

@keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- WELCOME BANNER --- */
.welcome-banner {
    background: linear-gradient(135deg, #DC2626 0%, #9B1C1C 100%);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    box-shadow: var(--shadow-red);
    position: relative;
    overflow: hidden;
}
.welcome-banner::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    top: -40px;
    right: -30px;
}
.welcome-hi {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}
.welcome-name {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
}
.welcome-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}
.jp-circle {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-jp);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
}

/* --- PROGRESS CARD --- */
.progress-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 10px;
}
.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 14px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #DC2626, #EF4444);
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.stat-item {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 10px 6px;
    border: 1px solid var(--gray-100);
}
.stat-val {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--red);
}
.stat-label {
    font-size: 10px;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 2px;
    display: block;
}

/* --- SECTION HEADER --- */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    margin-top: 4px;
}
.section-line {
    width: 4px;
    height: 20px;
    background: var(--red);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}
.section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
}

/* --- LESSON GRID (Home) --- */
.lesson-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.lesson-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}
.lesson-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px rgba(220,38,38,0.12);
    transform: translateY(-2px);
}
.lesson-card:active { transform: scale(0.97); }

.lesson-card.completed {
    background: linear-gradient(135deg, #FFF, #FFF5F5);
    border-color: var(--red-medium);
}
.lesson-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.lesson-card-emoji {
    font-size: 30px;
    margin-bottom: 8px;
    display: block;
}
.lesson-card-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.lesson-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.3;
    margin-bottom: 4px;
}
.lesson-card-sub {
    font-size: 11px;
    color: var(--gray-500);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lesson-card-status {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.lesson-card-status.done {
    background: var(--green-light);
    color: var(--green);
}
.lesson-card-status.locked {
    background: var(--gray-100);
    color: var(--gray-400);
}
.lesson-card-status.open {
    background: var(--red-light);
    color: var(--red);
}

/* --- INFO BOX --- */
.info-box {
    background: linear-gradient(135deg, #FEF9C3, #FFFBEB);
    border: 1px solid #FDE68A;
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.info-icon { font-size: 24px; flex-shrink: 0; }
.info-content h4 { font-size: 13px; font-weight: 700; color: var(--yellow); margin-bottom: 3px; }
.info-content p { font-size: 12px; color: var(--gray-600); line-height: 1.5; }

/* ===================================================
   MATERI PAGE
   =================================================== */
.book-header {
    background: linear-gradient(135deg, #DC2626 0%, #7F1D1D 100%);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-red);
}
.book-cover {
    display: flex;
    align-items: center;
    gap: 14px;
}
.book-flag { font-size: 48px; }
.book-info h3 {
    font-family: var(--font-jp);
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
}
.book-info p {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    margin-top: 3px;
}
.book-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Lesson List */
.lesson-list { display: flex; flex-direction: column; gap: 10px; }

.lesson-list-item {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.lesson-list-item:hover {
    border-color: var(--red);
    background: #FFF9F9;
    transform: translateX(3px);
}
.lesson-list-item:active { transform: scale(0.98); }
.lesson-list-item.completed { border-color: var(--red-medium); background: #FFF5F5; }

.lesson-list-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.lesson-list-body { flex: 1; min-width: 0; }
.lesson-list-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lesson-list-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lesson-list-sub {
    font-family: var(--font-jp);
    font-size: 11px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lesson-list-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.lesson-list-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}
.badge-done { background: var(--green-light); color: var(--green); }
.badge-open { background: var(--red-light); color: var(--red); }
.lesson-list-score {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 500;
}

/* ===================================================
   DETAIL MATERI PAGE
   =================================================== */
.detail-content {
    padding-bottom: 10px;
}

.detail-hero {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-red);
}
.detail-hero-emoji { font-size: 48px; margin-bottom: 10px; display: block; }
.detail-hero-num {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.detail-hero-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}
.detail-hero-jp {
    font-family: var(--font-jp);
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 4px;
}
.detail-hero-topic {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* Grammar Points */
.grammar-section { margin-bottom: 20px; }

.grammar-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--red);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
}
.grammar-point-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.grammar-point-title {
    font-family: var(--font-jp);
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}
.grammar-point-desc {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 10px;
}
.grammar-example {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
}
.grammar-ex-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.grammar-ex-item {
    font-family: var(--font-jp);
    font-size: 13px;
    color: var(--gray-800);
    line-height: 1.8;
    padding: 3px 0;
    border-bottom: 1px solid var(--gray-100);
}
.grammar-ex-item:last-child { border-bottom: none; }
.grammar-ex-item .translation {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--gray-500);
    font-style: italic;
    margin-top: 1px;
}

/* Action Buttons */
.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-red);
    width: 100%;
    font-family: var(--font-body);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(220,38,38,0.35); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
    background: var(--white);
    color: var(--red);
    border: 2px solid var(--red);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-family: var(--font-body);
}
.btn-secondary:hover { background: var(--red-light); }
.btn-secondary:active { transform: scale(0.97); }

.btn-full {
    grid-column: 1 / -1;
}

/* ===================================================
   QUIZ / LATIHAN PAGE
   =================================================== */
#quiz-container {
    padding-bottom: 10px;
}

.quiz-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.quiz-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.quiz-question-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
}
.quiz-score-live {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
}
.quiz-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}
.quiz-timer-icon { font-size: 16px; }
.quiz-timer-warning { color: var(--red) !important; animation: timerPulse 0.5s infinite alternate; }
@keyframes timerPulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.quiz-progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red), #F87171);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

/* Quiz Card */
.quiz-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.quiz-category-badge {
    display: inline-block;
    background: var(--red-light);
    color: var(--red);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.quiz-question {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.6;
    margin-bottom: 6px;
}

.quiz-instruction {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 16px;
    font-style: italic;
    line-height: 1.5;
}

/* Quiz Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
    font-family: var(--font-body);
    text-align: left;
    width: 100%;
}
.quiz-option:hover:not(:disabled) {
    border-color: var(--red);
    background: var(--red-light);
}
.quiz-option:active:not(:disabled) { transform: scale(0.98); }

.quiz-option-key {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    flex-shrink: 0;
    transition: all 0.2s;
}
.quiz-option-text {
    font-size: 13px;
    color: var(--gray-700);
    font-family: var(--font-jp);
    line-height: 1.4;
}

.quiz-option.selected {
    border-color: var(--red);
    background: var(--red-light);
}
.quiz-option.selected .quiz-option-key {
    background: var(--red);
    color: var(--white);
}
.quiz-option.correct {
    border-color: var(--green);
    background: var(--green-light);
}
.quiz-option.correct .quiz-option-key {
    background: var(--green);
    color: var(--white);
}
.quiz-option.wrong {
    border-color: var(--red);
    background: #FEE2E2;
}
.quiz-option.wrong .quiz-option-key {
    background: var(--red);
    color: var(--white);
}
.quiz-option:disabled { cursor: not-allowed; }

/* Fill-in-the-blank */
.quiz-fill-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-family: var(--font-jp);
    font-size: 15px;
    color: var(--gray-800);
    outline: none;
    transition: border-color 0.2s;
    background: var(--white);
}
.quiz-fill-input:focus { border-color: var(--red); }
.quiz-fill-input.correct-input { border-color: var(--green); background: var(--green-light); }
.quiz-fill-input.wrong-input { border-color: var(--red); background: #FEE2E2; }

/* Feedback */
.quiz-feedback {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
}
.quiz-feedback.correct-fb {
    background: var(--green-light);
    border: 1px solid #86EFAC;
    color: #166534;
}
.quiz-feedback.wrong-fb {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}
.quiz-feedback-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.quiz-feedback-text { flex: 1; }
.quiz-feedback-answer { font-weight: 700; font-family: var(--font-jp); }

/* Quiz Navigation */
.quiz-nav {
    position: fixed;
    bottom: 74px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
    padding: 12px 16px 16px;
    background: linear-gradient(to top, white 80%, transparent);
    z-index: 50;
}
.btn-quiz-next {
    width: 100%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-red);
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-quiz-next:hover { transform: translateY(-1px); }
.btn-quiz-next:active { transform: scale(0.97); }
.btn-quiz-next:disabled {
    background: var(--gray-300);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* ===================================================
   HASIL (RESULT) PAGE
   =================================================== */
.hasil-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.hasil-hero {
    text-align: center;
    margin-bottom: 24px;
}
.hasil-trophy {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    margin: 0 auto 16px;
    animation: trophyBounce 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes trophyBounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.2); }
    60% { transform: scale(0.95); }
    80% { transform: scale(1.05); }
}
.hasil-trophy.excellent { background: linear-gradient(135deg, #FEF9C3, #FDE68A); }
.hasil-trophy.good { background: var(--green-light); }
.hasil-trophy.fair { background: var(--blue-light); }
.hasil-trophy.poor { background: var(--red-light); }

.hasil-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 6px;
}
.hasil-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Score Card */
.score-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 20px;
    width: 100%;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.score-big {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}
.score-num {
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}
.score-num.excellent { color: var(--yellow); }
.score-num.good { color: var(--green); }
.score-num.fair { color: var(--blue); }
.score-num.poor { color: var(--red); }

.score-label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}
.score-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.score-detail-item {
    text-align: center;
    padding: 10px 4px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}
.score-detail-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-800);
    display: block;
}
.score-detail-lbl {
    font-size: 10px;
    color: var(--gray-500);
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

/* XP Earned Banner */
.xp-earned-banner {
    background: linear-gradient(135deg, #FEF9C3, #FDE68A);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
}
.xp-earned-icon { font-size: 28px; }
.xp-earned-text h4 { font-size: 13px; font-weight: 700; color: var(--yellow); }
.xp-earned-text p { font-size: 12px; color: var(--gray-600); }

/* Result Actions */
.hasil-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding-bottom: 20px;
}

/* ===================================================
   PROGRESS PAGE
   =================================================== */
.progress-page { padding-bottom: 10px; }
.progress-hero {
    text-align: center;
    margin-bottom: 20px;
}
.trophy-circle {
    font-size: 56px;
    margin-bottom: 12px;
    display: block;
}
.progress-hero h2 { font-size: 20px; font-weight: 800; color: var(--gray-800); }
.progress-hero p { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* XP Card */
.xp-card {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: var(--radius-xl);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
    box-shadow: var(--shadow-red);
}
.xp-item {
    flex: 1;
    text-align: center;
}
.xp-num {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
}
.xp-lbl {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    margin-top: 2px;
}
.xp-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

/* Level Card */
.level-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.level-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.level-icon { font-size: 32px; }
.level-title { font-size: 16px; font-weight: 700; color: var(--gray-800); }
.level-sub { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.level-next { font-size: 12px; color: var(--gray-500); }

/* Chapter Progress List */
.chapter-progress-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.chapter-progress-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chapter-progress-icon { font-size: 22px; flex-shrink: 0; }
.chapter-progress-body { flex: 1; min-width: 0; }
.chapter-progress-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chapter-progress-score {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 3px;
}
.chapter-progress-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

/* Reset Button */
.btn-reset {
    width: 100%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}
.btn-reset:hover { border-color: var(--red); color: var(--red); }

/* ===================================================
   BOTTOM NAVIGATION
   =================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
    border-radius: 18px 18px 0 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    text-decoration: none;
    color: var(--gray-400);
    font-size: 10px;
    font-weight: 600;
    transition: color 0.2s;
    flex: 1;
}
.nav-item.active { color: var(--red); }
.nav-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}
.nav-item:hover .nav-icon, .nav-item.active .nav-icon { transform: scale(1.1); }

.nav-center-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    padding-bottom: 2px;
}
.nav-center-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border: none;
    border-radius: var(--radius-full);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(220,38,38,0.4);
    transform: translateY(-10px);
    transition: all 0.2s;
}
.nav-center-btn svg { width: 22px; height: 22px; }
.nav-center-btn:hover { transform: translateY(-14px); box-shadow: 0 6px 20px rgba(220,38,38,0.5); }
.nav-center-btn:active { transform: translateY(-10px) scale(0.95); }

/* ===================================================
   MODAL / SETTINGS
   =================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-sheet {
    background: var(--white);
    border-radius: 24px 24px 0 0;
    padding: 20px 20px 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 auto;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.modal-handle {
    width: 40px;
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    margin: 0 auto 20px;
}
.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 20px;
    text-align: center;
}
.settings-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    display: block;
    margin-bottom: 8px;
}
.settings-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 15px;
    color: var(--gray-800);
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 12px;
}
.settings-input:focus { border-color: var(--red); }
.settings-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 20px 0;
}
.settings-about { margin-bottom: 20px; }
.about-title { font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }
.about-desc { font-size: 12px; color: var(--gray-500); line-height: 1.6; margin-bottom: 8px; }
.about-version { font-size: 11px; color: var(--gray-400); }
.btn-close-modal {
    width: 100%;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-lg);
    padding: 13px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    font-family: var(--font-body);
}
.btn-close-modal:hover { background: var(--gray-200); }

/* ===================================================
   TOAST
   =================================================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    max-width: 90%;
    background: var(--gray-800);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    z-index: 999;
    animation: toastIn 0.3s ease-out;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===================================================
   RESPONSIVE & SCROLLBAR
   =================================================== */

/* ===================================================
   KELAS ONLINE (ONLINE CLASSES) STYLES
   =================================================== */

/* Live Banner on Home */
.online-live-card {
    background: linear-gradient(135deg, #1E1E24 0%, #2B2D42 100%);
    border-radius: var(--radius-xl);
    padding: 16px;
    margin-bottom: 20px;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.online-live-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}
.online-live-card:active { transform: scale(0.98); }

.online-live-badge {
    display: inline-block;
    background: #EF4444;
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.03); }
}

.online-live-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.online-live-text h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}
.online-live-text p {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}
.btn-join-live {
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.btn-join-live:hover { background: var(--red-dark); }

/* Kelas Hero & Page */
.kelas-hero {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    border-radius: var(--radius-xl);
    padding: 20px;
    color: var(--white);
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}
.kelas-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
}
.kelas-hero h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}
.kelas-hero p {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

/* Filters */
.kelas-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    scrollbar-width: none;
}
.kelas-filters::-webkit-scrollbar { display: none; }

.kelas-filter-btn {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.kelas-filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.kelas-filter-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Kelas List & Cards */
.kelas-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kelas-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    cursor: pointer;
}
.kelas-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.kelas-card:active { transform: scale(0.98); }

.kelas-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.kelas-status-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}
.tag-live { background: #FEE2E2; color: #DC2626; animation: livePulse 1.5s infinite; }
.tag-upcoming { background: #DBEAFE; color: #2563EB; }
.tag-recorded { background: #F3E8FF; color: #9333EA; }

.kelas-category-tag {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
}

.kelas-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.3;
    margin-bottom: 4px;
}
.kelas-card-sub {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
    line-height: 1.4;
}

.kelas-sensei-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-50);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}
.sensei-avatar { font-size: 20px; }
.sensei-name { font-size: 12px; font-weight: 600; color: var(--gray-700); }
.sensei-role { font-size: 10px; color: var(--gray-400); }

.kelas-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--gray-500);
}
.kelas-time { display: flex; align-items: center; gap: 4px; font-weight: 600; color: var(--gray-700); }

/* Modal Content for Kelas Detail */
.modal-kelas-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 6px;
    line-height: 1.3;
}
.modal-kelas-sub {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 16px;
}
.modal-kelas-info {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 16px;
}
.modal-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.modal-info-item:last-child { margin-bottom: 0; }
.modal-info-icon { font-size: 16px; width: 22px; text-align: center; }

.modal-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.modal-topics-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
.modal-topics-list li {
    font-size: 12px;
    color: var(--gray-600);
    padding: 4px 0 4px 20px;
    position: relative;
}
.modal-topics-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===================================================
   GUEST MODE & AUTHENTICATION MODAL STYLES
   =================================================== */

.btn-auth-header {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}
.btn-auth-header:hover { background: rgba(255,255,255,0.3); }

.guest-banner {
    background: linear-gradient(135deg, #FEF9C3, #FEF3C7);
    border: 1.5px solid #FDE68A;
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.guest-banner-icon { font-size: 22px; flex-shrink: 0; }
.guest-banner-text h4 { font-size: 13px; font-weight: 700; color: #854D0E; margin-bottom: 2px; }
.guest-banner-text p { font-size: 11px; color: #713F12; line-height: 1.4; }
.btn-guest-action {
    background: #CA8A04;
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

/* Auth Prompt Modal */
.auth-prompt-content {
    text-align: center;
    padding: 10px 0 20px;
}
.auth-prompt-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.auth-prompt-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 8px;
}
.auth-prompt-desc {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
}
.auth-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-bottom: 20px;
}
.auth-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}
.auth-tab-btn.active {
    background: var(--white);
    color: var(--red);
    box-shadow: var(--shadow-sm);
}

/* Responsive & Scrollbar adjustment */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-full); }

@media (max-width: 380px) {
    .lesson-grid { grid-template-columns: repeat(2, 1fr); }
    .lesson-card-title { font-size: 12px; }
}

