/* ── LKG Adventurer Visual Styles ── */
:root {
    --bg-light: #f7f9fc;
    --card-bg-light: #ffffff;
    --text-light: #1e293b;
    --border-light: #e2e8f0;
    --shadow-premium: 0 20px 40px rgba(16, 185, 129, 0.06), 0 1px 3px rgba(0,0,0,0.02);
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --coral-400: #fb7185;
    --coral-500: #f43f5e;
    --lavender-400: #a78bfa;
    --lavender-500: #8b5cf6;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --accent-color: #3fa34d;
    --accent-color-rgb: 63,163,77;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dashboard {
    font-family: 'Poppins', 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    background: #f0fdf4;
    color: var(--muted);
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
    position: relative;
}

@supports not (zoom: 1) {
    body.dashboard {
        width: 125%;
        min-height: 125vh;
        transform: scale(0.8);
        transform-origin: top left;
    }
}

/* .page styles handled by sidebar.css */

/* ── Hero Section – LKG Adventurer ── */
.lkg-hero {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: left;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 25%, #fef3c7 55%, #fce7f3 85%, #ede9fe 100%);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 24px 32px !important;
    text-align: center;
    box-shadow: 0 30px 60px rgba(16, 185, 129, 0.12);
    margin-top: 15px !important;
    margin-bottom: 25px !important;
    overflow: hidden;
}

.lkg-hero .hero-content {
    padding: 0 !important;
    max-width: 100% !important;

/* Drifting decorations in hero background */
.decor {
    position: absolute;
    user-select: none;
    pointer-events: none;
    z-index: -1;
}

.float-cloud-1 {
    font-size: 5rem;
    top: 15%;
    left: -10%;
    opacity: 0.25;
    animation: floatCloud 25s linear infinite;
}

.float-cloud-2 {
    font-size: 6rem;
    bottom: 20%;
    right: -15%;
    opacity: 0.2;
    animation: floatCloudReverse 30s linear infinite;
}

.float-rocket-1 {
    font-size: 4.5rem;
    top: 25%;
    right: 15%;
    opacity: 0.8;
    filter: drop-shadow(0 15px 25px rgba(16, 185, 129, 0.15));
    animation: floatRocket 7s ease-in-out infinite;
}

.float-sparkle-1 {
    font-size: 2.2rem;
    top: 45%;
    left: 12%;
    opacity: 0.7;
    animation: floatSparkle 5s ease-in-out infinite;
}

.welcome {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ff6b00, #ff1493, #4338ca, #ff6b00);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: welcomeShine 4s ease infinite;
    margin-bottom: 16px;
}

.welcome .line {
    width: clamp(20px, 3vw, 40px);
    height: 4px;
    border-radius: 20px;
    background: linear-gradient(90deg, #ff6b00, #ff1493);
    animation: lineGlow 3s ease-in-out infinite;
}

.class-title {
    position: relative;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    cursor: default;
    user-select: none;
    outline-offset: 6px;
    display: inline-block;
    margin: 15px auto 25px;
}
.class-title:focus-visible {
    outline: 2px solid var(--accent-color);
}

@media (prefers-reduced-motion: reduce) {
    .class-title, .class-title * {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes waveX {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes welcomeShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes lineGlow {
  0%, 100% { width: clamp(20px, 3vw, 40px); opacity: 0.7; }
  50% { width: clamp(30px, 5vw, 60px); opacity: 1; filter: drop-shadow(0 0 5px rgba(255,107,0,0.5)); }
}

/* ---- Nature Theme ---- */
.style-12 {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: clamp(20px, 3.8vw, 28px);
    color: var(--text);
    padding: 16px 36px;
    background: linear-gradient(160deg, #eafbea, #d7f2df);
    border-radius: 22px 8px 22px 8px;
    border: 2px solid color-mix(in srgb, var(--accent-color) 55%, #2f6f4a);
    box-shadow: 0 10px 22px rgba(47, 111, 74, 0.18);
    transition: transform 0.3s ease;
}
.style-12:hover, .style-12:focus-visible {
    transform: translateY(-3px);
}

.style-12 .leaf {
    position: absolute;
    font-size: 18px;
    animation: waveX 3s ease-in-out infinite;
}
.style-12 .leaf.l1 { top: -10px; left: 14px; }
.style-12 .leaf.l2 { bottom: -10px; right: 14px; animation-delay: 0.4s; }

.hero-title {
    font-family: 'Fredoka One', 'Poppins', sans-serif;
    font-size: 4.2rem;
    font-weight: 900;
    color: var(--muted);
    line-height: 1.1;
    margin: 10px 0 20px 0;
    filter: drop-shadow(0 4px 8px rgba(6, 78, 59, 0.06));
}

.hero-title span {
    color: #10b981;
}

.hero-mascot-container {
    position: relative;
    height: 150px;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-emoji {
    font-size: 6rem;
    animation: mascotBounce 3.5s ease-in-out infinite;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
    cursor: pointer;
    transition: transform 0.2s;
}

.mascot-emoji:hover {
    transform: scale(1.15) rotate(10deg);
}

.mascot-emoji.toggled {
    animation: mascotSpin 0.6s ease-out;
}

.toy-emoji {
    position: absolute;
    font-size: 2.8rem;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.06));
}

.toy-emoji.t1 {
    top: 10px;
    left: calc(50% - 130px);
    animation: floatToy1 4.5s ease-in-out infinite;
}

.toy-emoji.t2 {
    bottom: 10px;
    right: calc(50% - 130px);
    animation: floatToy2 5.5s ease-in-out infinite;
}

.toy-emoji.t3 {
    top: 50px;
    right: calc(50% - 170px);
    animation: floatToy3 6.5s ease-in-out infinite;
}

.hero-points {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.hero-badge {
    background: linear-gradient(160deg, #eafbea, #d7f2df);
    border: 1px solid color-mix(in srgb, var(--accent-color) 30%, #d7f2df);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    color: var(--muted);
    box-shadow: 0 4px 12px rgba(47, 111, 74, 0.1);
}

.hero-points .hero-badge:nth-child(2) {
    color: #16a34a;
}

.hero-points .hero-badge:nth-child(3) {
    color: #f97316;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto 35px auto;
    line-height: 1.6;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.hero-btn {
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.hero-btn:hover {
    transform: translateY(-4px) scale(1.05);
}

.hero-btn.learn-btn { background: #fce4ec; color: var(--muted); box-shadow: 0 10px 25px rgba(233, 30, 99, 0.15); }
.hero-btn.practice-btn { background: #d1fae5; color: var(--muted); box-shadow: 0 10px 25px rgba(4, 120, 87, 0.15); }
.hero-btn.evs-btn { background: #fef3c7; color: var(--muted); box-shadow: 0 10px 25px rgba(180, 83, 9, 0.15); }
.hero-btn.activity-btn { background: #ede7f6; color: var(--muted); box-shadow: 0 10px 25px rgba(124, 77, 255, 0.15); }


/* ── Subjects Section ── */
.subjects {
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Fredoka One', 'Poppins', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    text-align: center;
    color: var(--muted);
    background: none !important;
    -webkit-text-fill-color: initial !important;
    -webkit-background-clip: initial !important;
    margin: 45px auto;
    padding: 10px 32px;
    position: relative;
    display: flex;
    width: fit-content;
    max-width: 90%;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 3px dashed #34d399;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    background-color: rgba(255, 255, 255, 0.4) !important;
    text-shadow: 2px 2px 0px #d1fae5;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

/* Floating decorative sparkles & stars on sides */
.section-title::before {
    content: '🖍️';
    position: absolute;
    left: -28px;
    font-size: 1.35rem;
    animation: SnFloatSparkle 3s ease-in-out infinite alternate;
}

.section-title::after {
    content: '🎨';
    position: absolute;
    right: -28px;
    font-size: 1.35rem;
    animation: SnFloatSparkle 3s ease-in-out infinite alternate 1.5s;
}

@keyframes SnFloatSparkle {
    0% { transform: translateY(0) scale(1) rotate(0deg); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05)); }
    50% { transform: translateY(-6px) scale(1.12) rotate(15deg); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); }
    100% { transform: translateY(4px) scale(0.92) rotate(-10deg); filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05)); }
}

.section-title:hover {
    transform: scale(1.04);
    border-color: var(--muted);
    background-color: rgba(255, 255, 255, 0.6) !important;
    text-shadow: 3px 3px 0px #34d399;
}

body[data-theme="dark"] .section-title {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    -webkit-background-clip: initial !important;
    border-color: #34d399 !important;
    background-color: rgba(30, 41, 59, 0.55) !important;
    text-shadow: 2.5px 2.5px 0px #059669 !important;
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.15) !important;
}
body[data-theme="dark"] .section-title:hover {
    border-color: #34d399 !important;
    background-color: rgba(30, 41, 59, 0.75) !important;
    text-shadow: 3.5px 3.5px 0px #065f46 !important;
    box-shadow: 0 12px 30px rgba(52, 211, 153, 0.25) !important;
}

body[data-theme="dark"] .style-12 {
    background: linear-gradient(160deg, #132018, #0e1712);
    color: #d8f5df;
}

body[data-theme="dark"] .hero-badge {
    background: linear-gradient(160deg, #132018, #0e1712);
    border: 1px solid rgba(63, 163, 77, 0.2);
    color: #f472b6;
}

body[data-theme="dark"] .hero-points .hero-badge:nth-child(2) {
    color: #34d399;
}

body[data-theme="dark"] .hero-points .hero-badge:nth-child(3) {
    color: #fb923c;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.65rem !important;
        padding: 8px 24px !important;
        gap: 8px !important;
    }
    .section-title::before {
        left: -24px !important;
        font-size: 1.1rem !important;
    }
    .section-title::after {
        right: -24px !important;
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.35rem !important;
        padding: 8px 18px !important;
        border-width: 2px !important;
        margin: 30px auto !important;
        white-space: normal !important;
        width: fit-content !important;
        max-width: 90vw !important;
    }
    .section-title::before,
    .section-title::after {
        display: none !important;
    }
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (min-width: 1025px) {
    .subject-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.subject-card-link {
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.subject-card {
    border-radius: 40px;
    padding: 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

.subject-card-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.subject-card-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.subject-card:hover .subject-card-banner img {
    transform: scale(1.05);
}

.subject-card-content {
    padding: 20px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.subject-card-content > a {
    margin-top: auto;
}

.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border-radius: 14px;
    padding: 8px 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chapter-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.04);
}

.chapter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-family: 'Fredoka One', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    color: #ffffff;
    flex-shrink: 0;
}

.chapter-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
}

.start-learning-btn {
    margin-top: auto;
    width: 100%;
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.15rem;
    font-weight: bold;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.start-learning-btn .arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.start-learning-btn:hover .arrow {
    transform: translateX(4px);
}

/* Custom subject card palettes — LKG */
.sc-english {
    background-color: #FFEAF2;
    border: 2px solid #FFD3E3;
}
.sc-english:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(233, 30, 99, 0.15);
    border-color: #F8BBD0;
}
.sc-english .chapter-icon {
    background-color: var(--muted);
}
.sc-english .start-learning-btn {
    background-color: var(--muted);
}
.sc-english .start-learning-btn:hover {
    background-color: var(--muted);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(233, 30, 99, 0.25);
}

.sc-maths {
    background-color: #ECFDF5;
    border: 2px solid #A7F3D0;
}
.sc-maths:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(4, 120, 87, 0.15);
    border-color: #6EE7B7;
}
.sc-maths .chapter-icon {
    background-color: var(--muted);
}
.sc-maths .start-learning-btn {
    background-color: var(--muted);
}
.sc-maths .start-learning-btn:hover {
    background-color: var(--muted);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(4, 120, 87, 0.25);
}

.sc-evs {
    background-color: #FFFBEB;
    border: 2px solid #FDE68A;
}
.sc-evs:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(180, 83, 9, 0.12);
    border-color: #FCD34D;
}
.sc-evs .chapter-icon {
    background-color: var(--muted);
}
.sc-evs .start-learning-btn {
    background-color: var(--muted);
}
.sc-evs .start-learning-btn:hover {
    background-color: var(--muted);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(180, 83, 9, 0.22);
}

.sc-coding {
    background-color: #F5F2FC;
    border: 2px solid #E1D5F5;
}
.sc-coding:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(124, 77, 255, 0.15);
    border-color: #D1C4E9;
}
.sc-coding .chapter-icon {
    background-color: var(--muted);
}
.sc-coding .start-learning-btn {
    background-color: var(--muted);
}
.sc-coding .start-learning-btn:hover {
    background-color: var(--muted);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(124, 77, 255, 0.25);
}


/* ── Stats Section: Lego Building Blocks ── */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.toy-block {
    position: relative;
    border-radius: 20px;
    padding: 35px 20px 25px 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.03);
    border-bottom: 8px solid rgba(0,0,0,0.15);
    transition: all 0.25s ease;
}

.toy-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.06);
}

.block-top-peg {
    position: absolute;
    top: -10px;
    left: calc(50% - 18px);
    width: 36px;
    height: 12px;
    border-radius: 8px 8px 0 0;
    box-shadow: inset 0 2px rgba(255,255,255,0.4);
}

/* Custom lego block styles — LKG Emerald/Coral/Lavender/Gold */
.block-coral {
    background: #fb7185;
    color: #ffffff;
}
.block-coral .block-top-peg { background: #fb7185; }
.block-coral p { color: #ffe4e8; }
.block-coral h2 { color: #ffffff !important; }

.block-teal {
    background: #10b981;
    color: #ffffff;
}
.block-teal .block-top-peg { background: #10b981; }
.block-teal p { color: #d1fae5; }
.block-teal h2 { color: #ffffff !important; }

.block-lavender {
    background: #a78bfa;
    color: #ffffff;
}
.block-lavender .block-top-peg { background: #a78bfa; }
.block-lavender p { color: #ede9fe; }
.block-lavender h2 { color: #ffffff !important; }

.block-mint {
    background: #f59e0b;
    color: #ffffff;
}
.block-mint .block-top-peg { background: #f59e0b; }
.block-mint p { color: #fef3c7; }
.block-mint h2 { color: #ffffff !important; }

.stat-card h2 {
    font-family: 'Fredoka One', sans-serif;
    font-size: 2.5rem;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-card p {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
}

/* ── Progress Section ── */
.learning-progress {
    background: var(--card);
    border-radius: 35px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(16,185,129,0.08);
}

.progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 15px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--muted);
}

.progress-bar {
    height: 16px;
    background: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.progress-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1);
}

.progress-fill.english { background: linear-gradient(90deg, #f48fb1, #ec407a); }
.progress-fill.maths { background: linear-gradient(90deg, #6ee7b7, #059669); }
.progress-fill.evs { background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.progress-fill.coding { background: linear-gradient(90deg, #b39ddb, #7c4dff); }

/* ── Achievements Section: Medal/Badge Overhaul ── */
.achievement-section {
    margin-bottom: 50px;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.badge-item {
    background: var(--card);
    border-radius: 30px;
    padding: 40px 20px 30px;
    text-align: center;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.01);
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-item:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 20px 40px rgba(16,185,129,0.1);
}

.medal-ribbon {
    position: absolute;
    top: 0;
    left: calc(50% - 15px);
    width: 30px;
    height: 25px;
    background: linear-gradient(90deg, #e74c3c 50%, #c0392b 50%);
    border-radius: 0 0 4px 4px;
    z-index: 1;
}

.badge-item:hover .medal-ribbon {
    height: 30px;
}

.medal-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 12px;
    z-index: 2;
    position: relative;
    animation: SnFloatMedal 4s ease-in-out infinite alternate;
}

/* Custom medal shades — LKG palette */
.medal-gold { border-color: #fde68a; background: linear-gradient(135deg, #ffffff, #fffbeb); }
.medal-gold .medal-ribbon { background: linear-gradient(90deg, #f1c40f 50%, #f39c12 50%); }

.medal-silver { border-color: #e2e8f0; background: linear-gradient(135deg, #ffffff, #f8fafc); }
.medal-silver .medal-ribbon { background: linear-gradient(90deg, #bdc3c7 50%, #95a5a6 50%); }

.medal-bronze { border-color: #fed7aa; background: linear-gradient(135deg, #ffffff, #fff7ed); }
.medal-bronze .medal-ribbon { background: linear-gradient(90deg, #e67e22 50%, #d35400 50%); }

.medal-teal { border-color: #a7f3d0; background: linear-gradient(135deg, #ffffff, #ecfdf5); }
.medal-teal .medal-ribbon { background: linear-gradient(90deg, #10b981 50%, #059669 50%); }

.achievement-card h3 {
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.25rem;
    color: var(--muted);
    margin: 12px 0 6px 0;
}

.achievement-card p {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
    font-weight: 600;
}

/* ── Streak Section ── */
.streak-section {
    background: var(--card);
    border-radius: 35px;
    padding: 40px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(16, 185, 129, 0.08);
}

.streak-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.day {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--muted);
    font-size: 1.05rem;
    border: 2px solid #e2e8f0;
    transition: all 0.25s ease;
}

.day.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border-color: var(--muted);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    transform: scale(1.08) rotate(5deg);
}

.streak-section h2 {
    font-family: 'Fredoka One', sans-serif;
    color: var(--muted);
    font-size: 1.8rem;
    margin: 10px 0 0 0;
}

/* ── Footer ── */
footer {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: #d1fae5;
    padding: 50px 40px 30px 40px;
    border-radius: 35px 35px 0 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

footer h2 {
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 12px;
}

footer h3 {
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.2rem;
    color: #6ee7b7;
    margin-bottom: 14px;
}

footer p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.85;
    font-weight: 500;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    font-size: 1rem;
    padding: 5px 0;
    font-weight: 600;
    opacity: 0.85;
}

.copyright {
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.6;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* ── Keyframes & Animations ── */
@keyframes floatCloud {
    0% { transform: translateX(0); }
    100% { transform: translateX(120vw); }
}

@keyframes floatCloudReverse {
    0% { transform: translateX(0); }
    100% { transform: translateX(-120vw); }
}

@keyframes floatRocket {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}

@keyframes floatSparkle {
    0%, 100% { transform: scale(1) rotate(0); opacity: 0.7; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 1; }
}

@keyframes mascotBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-16px) scale(1.05); }
}

@keyframes mascotSpin {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

@keyframes floatToy1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(12deg); }
}

@keyframes floatToy2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-12deg); }
}

@keyframes floatToy3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(8deg); }
}

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

@keyframes sn-float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(10deg); }
}

/* ── Responsive Overrides ── */
@media (max-width: 1024px) {
    .subject-grid {
        gap: 20px;
    }
}

@media (max-width: 820px) {
    .lkg-hero {
        min-height: 180px !important;
        padding: 16px 24px !important;
        margin-top: 10px !important;
        margin-bottom: 16px !important;
    }
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .lkg-hero {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 12px 16px !important;
        min-height: auto;
        margin-top: 8px !important;
        margin-bottom: 12px !important;
        box-sizing: border-box;
        width: 100%;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    .lkg-hero .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .welcome {
        justify-content: center !important;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-desc {
        font-size: 1.1rem;
    }
    .subject-grid {
        grid-template-columns: 1fr;
    }
    .stats-section {
        grid-template-columns: 1fr;
    }
    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 40px 20px;
    }
    footer {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem !important;
    }
    .stats-section {
        grid-template-columns: 1fr !important;
    }
    .subject-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    body.dashboard {
        zoom: 100% !important;
    }
    @supports not (zoom: 1) {
        body.dashboard {
            width: 100% !important;
            min-height: 100vh !important;
            transform: none !important;
        }
    }
}


/* Hero Background Images */
body[data-theme^="light"] .hero, 
body:not([data-theme^="dark"]) .hero {
  background-image: url('../../assets/backgrounds/light.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

body[data-theme^="dark"] .hero {
  background-image: url('../../assets/backgrounds/dark.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
