/* ============================================
   SUPER TEACHER - Kids Learning App Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent-yellow: #FFE66D;
    --accent-mint: #95E1D3;
    --accent-pink: #F38181;
    --dark: #2C3E50;
    --light: #FEFEFE;
    --bg: #F7F9FC;
    --bg-gradient: linear-gradient(135deg, #F7F9FC 0%, #E8F4F8 100%);

    --font-heading: 'Fredoka One', cursive;
    --font-body: 'Nunito', sans-serif;
    --font-display: 'Comic Neue', cursive;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.2);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-gradient);
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   BACKGROUND ANIMATIONS
   ============================================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float-up linear infinite;
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-duration: 15s;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 20%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 35%;
    animation-duration: 18s;
    animation-delay: 4s;
}

.bubble:nth-child(4) {
    width: 30px;
    height: 30px;
    left: 50%;
    animation-duration: 14s;
    animation-delay: 1s;
}

.bubble:nth-child(5) {
    width: 25px;
    height: 25px;
    left: 65%;
    animation-duration: 16s;
    animation-delay: 3s;
}

.bubble:nth-child(6) {
    width: 45px;
    height: 45px;
    left: 75%;
    animation-duration: 13s;
    animation-delay: 5s;
}

.bubble:nth-child(7) {
    width: 35px;
    height: 35px;
    left: 85%;
    animation-duration: 17s;
    animation-delay: 2s;
}

.bubble:nth-child(8) {
    width: 55px;
    height: 55px;
    left: 95%;
    animation-duration: 19s;
    animation-delay: 0s;
}

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 32px;
    animation: rocket-float 2s ease-in-out infinite;
}

@keyframes rocket-float {

    0%,
    100% {
        transform: translateY(0) rotate(-10deg);
    }

    50% {
        transform: translateY(-8px) rotate(10deg);
    }
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));

    -webkit-text-fill-color: transparent;

}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    color: var(--dark);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
    background: rgba(78, 205, 196, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sound-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.sound-toggle:hover {
    transform: scale(1.2);
    background: rgba(0, 0, 0, 0.05);
}

.user-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accent-mint), var(--secondary));
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.user-area:hover {
    transform: scale(1.05);
}

.user-avatar {
    font-size: 24px;
}

.user-name {
    font-weight: 700;
    color: var(--dark);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent-yellow));

    -webkit-text-fill-color: transparent;

}

.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary);
    animation: typing 3s steps(30) forwards, blink 0.7s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero-subtitle {
    font-size: 22px;
    color: #666;
    margin-bottom: 32px;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 18px;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.5);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-large {
    padding: 20px 48px;
    font-size: 22px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    }

    50% {
        box-shadow: 0 8px 40px rgba(255, 107, 107, 0.6);
    }
}

.btn-icon {
    font-size: 28px;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.btn-math {
    background: #FF9A56;
    color: white;
}

.btn-science {
    background: #4ECDC4;
    color: white;
}

.btn-game {
    background: linear-gradient(135deg, var(--accent-yellow), #FFB347);
    color: var(--dark);
}

/* Hero Mascot (Robot) */
.hero-mascot {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.robo-container {
    position: relative;
    animation: robo-float 3s ease-in-out infinite;
}

@keyframes robo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.robo {
    position: relative;
    width: 180px;
    height: 220px;
}

.robo-head {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 90px;
    background: #F7F9FC;
    border-radius: 20px 20px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.robo-eyes {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.eye {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: relative;
    animation: blink 4s infinite;
}

.eye::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--dark);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes blink {

    0%,
    45%,
    55%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.1);
    }
}

.robo-mouth {
    width: 30px;
    height: 15px;
    background: #666;
    border-radius: 0 0 15px 15px;
    animation: talk 0.5s infinite;
}

@keyframes talk {

    0%,
    100% {
        transform: scaleX(1);
    }

    50% {
        transform: scaleX(1.2);
    }
}

.robo-antenna {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 25px;
    background: #888;
    border-radius: 4px;
}

.antenna-ball {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    animation: glow 1.5s infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px var(--primary);
    }

    50% {
        box-shadow: 0 0 25px var(--primary);
    }
}

.robo-body {
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 100px;
    background: #F7F9FC;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.robo-screen {
    width: 60px;
    height: 40px;
    background: #2C3E50;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.screen-heart {
    font-size: 24px;
    animation: heartbeat 1s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.robo-arms {
    position: absolute;
    width: 100%;
    top: 20px;
}

.arm {
    position: absolute;
    width: 25px;
    height: 60px;
    background: #F7F9FC;
    border-radius: 12px;
}

.arm.left {
    left: -20px;
    transform: rotate(20deg);
    animation: wave 1s infinite;
}

.arm.right {
    right: -20px;
    transform: rotate(-20deg);
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(20deg);
    }

    50% {
        transform: rotate(35deg);
    }
}

.robo-legs {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.leg {
    width: 25px;
    height: 40px;
    background: #F7F9FC;
    border-radius: 0 0 10px 10px;
}

/* ============================================
   GRADE SELECTOR
   ============================================ */
.grade-section {
    text-align: center;
    padding: 40px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--dark);
}

.grade-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.grade-btn {
    width: 60px;
    height: 60px;
    font-family: var(--font-heading);
    font-size: 24px;
    border: 3px solid var(--secondary);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
}

.grade-btn:hover {
    transform: scale(1.15);
    background: var(--secondary);
    color: white;
}

.grade-btn.active {
    background: linear-gradient(135deg, var(--secondary), var(--accent-mint));
    border-color: transparent;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(78, 205, 196, 0.4);
}

.current-grade {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

/* ============================================
   SUBJECT CARDS
   ============================================ */
.subjects-section {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 40px 24px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.subject-card {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.math-card::before {
    background: #FF9A56;
}

.science-card::before {
    background: #4ECDC4;
}

.subject-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 72px;
    margin-bottom: 16px;
    animation: icon-bounce 2s infinite;
}

@keyframes icon-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.subject-card h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--dark);
}

.subject-card p {
    font-size: 18px;
    color: #666;
    margin-bottom: 16px;
}

.card-stars {
    font-size: 20px;
    margin-bottom: 20px;
}

.subject-card .btn {
    width: 100%;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 60px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-card p {
    font-size: 16px;
    color: #666;
}

/* ============================================
   LESSON & GAMES PAGES
   ============================================ */
.page-header {
    text-align: center;
    padding: 40px 24px;
    background: rgba(78, 205, 196, 0.1);
}

.page-header h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 12px;
    background: var(--secondary);

    -webkit-text-fill-color: transparent;

}

.page-header p {
    font-size: 20px;
    color: #666;
}

.lessons-grid,
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.lesson-card,
.game-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.lesson-card:hover,
.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.lesson-icon,
.game-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.lesson-card h4,
.game-card h4 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--dark);
}

.lesson-card p,
.game-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
}

.lesson-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.lesson-badge {
    background: linear-gradient(135deg, var(--accent-yellow), #FFB347);
    padding: 6px 14px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
}

.lesson-status {
    font-size: 20px;
}

/* ============================================
   PROGRESS PAGE
   ============================================ */
.progress-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

.level-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.level-section h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 24px;
    text-align: center;
}

.level-display {
    display: flex;
    align-items: center;
    gap: 24px;
}

.level-badge {
    font-size: 80px;
    animation: level-glow 2s infinite;
}

@keyframes level-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(78, 205, 196, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(78, 205, 196, 0.8));
    }
}

.level-info {
    flex: 1;
}

.level-name {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--secondary);
    display: block;
    margin-bottom: 12px;
}

.xp-bar {
    height: 24px;
    background: #E8E8E8;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent-mint));
    border-radius: 12px;
    transition: width 0.5s ease;
}

.xp-text {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

.achievements-section h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 24px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.achievement-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    opacity: 0.5;
    filter: grayscale(1);
    transition: var(--transition);
}

.achievement-card.unlocked {
    opacity: 1;
    filter: grayscale(0);
}

.achievement-card:hover {
    transform: scale(1.05);
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.achievement-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
}

/* ============================================
   MODALS (Quiz & Games)
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

/* Lesson Modal Styles */
.lesson-modal-content {
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

#lessonContent {
    margin-bottom: 20px;
}

.lesson-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.lesson-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.lesson-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.lesson-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.lesson-section h3 {
    color: #555;
    margin-bottom: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-section p {
    color: #666;
    line-height: 1.7;
    font-size: 16px;
}

.example-box {
    background: #fff;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin: 12px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.example-box .problem {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.example-box .solution {
    color: #667eea;
    font-weight: 600;
}

.example-box .solution::before {
    content: '✓ ';
    color: #4CAF50;
}

.key-points-list {
    list-style: none;
    padding: 0;
}

.key-points-list li {
    padding: 10px 15px;
    margin: 8px 0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.key-points-list li::before {
    content: '⭐';
}

.tip-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.tip-box h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-box ul {
    margin: 0;
    padding-left: 20px;
}

.tip-box li {
    margin: 8px 0;
    line-height: 1.5;
}

.lesson-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    margin-top: 20px;
}

#startQuizBtn {
    padding: 15px 40px;
    font-size: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 600;
}

#startQuizBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Quiz Modal */
.quiz-content {
    padding: 32px;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.quiz-info {
    display: flex;
    gap: 16px;
}

.quiz-subject {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--secondary);
}

.quiz-timer {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    animation: timer-pulse 1s infinite;
}

@keyframes timer-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.quiz-score {
    font-size: 20px;
    font-weight: 700;
}

.quiz-question {
    font-family: var(--font-heading);
    font-size: 28px;
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: #f9f9f9;
    border-radius: var(--radius-md);
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quiz-option {
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
    border: 3px solid #e0e0e0;
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.quiz-option:hover {
    border-color: var(--secondary);
    background: rgba(78, 205, 196, 0.1);
    transform: scale(1.02);
}

.quiz-option.correct {
    border-color: #4CAF50;
    background: #E8F5E9;
    animation: correct-pulse 0.5s;
}

.quiz-option.wrong {
    border-color: var(--primary);
    background: #FFEBEE;
    animation: wrong-shake 0.5s;
}

@keyframes correct-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes wrong-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.quiz-feedback {
    text-align: center;
    padding: 20px;
    font-size: 24px;
    font-weight: 700;
    margin-top: 20px;
    display: none;
}

.quiz-feedback.show {
    display: block;
    animation: feedback-pop 0.5s ease;
}

.quiz-feedback.correct {
    color: #4CAF50;
}

.quiz-feedback.wrong {
    color: var(--primary);
}

@keyframes feedback-pop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Game Modal */
.game-content {
    max-width: 800px;
    padding: 32px;
}

.game-area {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Number Bond Game */
.number-bond-game {
    text-align: center;
}

.bond-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}

.bond-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent-mint));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 36px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.bond-circle:hover {
    transform: scale(1.1);
}

.bond-circle.user-input {
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
}

.bond-operator {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
}

/* Solar System Game */
.solar-system-game {
    position: relative;
    width: 100%;
    height: 400px;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #FFD700, #FFA500);
    border-radius: 50%;
    box-shadow: 0 0 40px #FFD700;
    animation: sun-glow 2s infinite;
}

@keyframes sun-glow {

    0%,
    100% {
        box-shadow: 0 0 40px #FFD700;
    }

    50% {
        box-shadow: 0 0 60px #FFD700;
    }
}

.planet {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.planet:hover {
    transform: scale(1.3);
}

.planet-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: orbit-rotate linear infinite;
}

.planet-name {
    position: absolute;
    color: white;
    font-size: 12px;
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 8px;
}

/* ============================================
   CONFETTI
   ============================================ */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   USER MODAL
   ============================================ */

.user-content {
    max-width: 450px;
    text-align: center;
    padding: 40px;
}

.user-content h2 {
    margin-bottom: 30px;
    color: var(--primary);
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    max-height: 300px;
    overflow-y: auto;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.user-card:hover {
    transform: translateY(-2px);
    border-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.user-card.active {
    border-color: var(--primary);
    background: #F7F9FC;
}

.user-avatar-large {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border-radius: 50%;
}

.user-info h4 {
    margin: 0;
    font-size: 18px;
    color: var(--dark);
}

.user-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--secondary);
}

.add-user-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-user-section input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--secondary);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-body);
}

.add-user-section input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================================
   PARENT DASHBOARD
   ============================================ */

.dashboard-content {
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
}

.dashboard-content h2 {
    margin-bottom: 30px;
    color: var(--primary);
    text-align: center;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-stats .stat-card {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent2) 100%);
    color: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
}

.dashboard-stats .stat-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.dashboard-stats .stat-value {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.dashboard-stats .stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.dashboard-content h3 {
    color: var(--dark);
    margin-bottom: 20px;
}

.student-table-container {
    overflow-x: auto;
}

.student-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.student-table th {
    background: var(--primary);
    color: white;
    padding: 15px;
    text-align: left;
    font-family: var(--font-heading);
}

.student-table td {
    padding: 15px;
    border-bottom: 1px solid var(--background);
}

.student-table tr:last-child td {
    border-bottom: none;
}

.student-table tr:hover {
    background: #f9f9f9;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-reset {
    background: #e74c3c;
    color: white;
}

.btn-reset:hover {
    background: #c0392b;
}

/* ============================================
   AI INSIGHTS
   ============================================ */
.ai-insights-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.ai-insights-card {
    background: #667eea;
    border-radius: 16px;
    padding: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ai-insights-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ai-stat {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-label {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.ai-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-section h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.ai-tag.strength {
    background: rgba(46, 204, 113, 0.3);
    border: 1px solid #2ecc71;
}

.ai-tag.weakness {
    background: rgba(231, 76, 60, 0.3);
    border: 1px solid #e74c3c;
}

.ai-learning-path {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-learning-path li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.ai-learning-path .priority {
    font-size: 1.2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 40px 24px;
    margin-top: 60px;
}

.footer-content p {
    font-size: 18px;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--accent-mint);
}

.copyright {
    font-size: 14px;
    margin-top: 12px;
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-mascot {
        flex: none;
    }

    .robo {
        transform: scale(0.85);
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-content {
        max-width: 100%;
    }

    .grade-selector {
        gap: 10px;
    }

    .subjects-section {
        padding: 30px 20px;
    }

    .subject-card {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .lessons-grid,
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 30px 20px;
    }

    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .level-badge {
        font-size: 70px;
    }

    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tablet navigation */
    .nav {
        gap: 4px;
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 14px;
    }

    /* Tablet modals */
    .modal-content {
        max-width: 85%;
        padding: 24px;
    }

    .lesson-modal-content {
        max-width: 90%;
    }

    .quiz-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }

    .nav.active {
        display: flex;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-link {
        padding: 16px 24px;
        font-size: 18px;
        text-align: center;
        border-radius: var(--radius-md);
        margin: 4px 0;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(78, 205, 196, 0.15);
    }

    .menu-toggle {
        display: block;
    }

    .header-content {
        padding: 10px 16px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .logo-icon {
        font-size: 28px;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 16px;
    }

    .hero-mascot {
        flex: none;
    }

    .robo {
        transform: scale(0.7);
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%;
    }

    .grade-selector {
        gap: 8px;
        justify-content: center;
    }

    .grade-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .subjects-section {
        padding: 24px 16px;
        gap: 20px;
    }

    .subject-card {
        min-width: 100%;
        padding: 24px 20px;
    }

    .card-icon {
        font-size: 56px;
    }

    .subject-card h3 {
        font-size: 26px;
    }

    .lesson-card,
    .game-card {
        padding: 20px;
    }

    .lesson-icon,
    .game-icon {
        font-size: 40px;
    }

    .lessons-grid,
    .games-grid {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 16px;
    }

    .quiz-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quiz-option {
        padding: 16px;
        font-size: 18px;
    }

    .quiz-question {
        font-size: 22px;
        padding: 16px;
    }

    /* Modal fixes for mobile */
    .modal-content {
        max-width: 95%;
        max-height: 90vh;
        margin: 10px;
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .lesson-modal-content {
        max-width: 95%;
        padding: 16px;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    /* Progress page mobile */
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        font-size: 32px;
    }

    .stat-value {
        font-size: 28px;
    }

    .level-display {
        flex-direction: column;
        text-align: center;
    }

    .level-badge {
        font-size: 60px;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* User modal mobile */
    .user-content {
        padding: 24px 16px;
    }

    .user-list {
        max-height: 200px;
    }

    .add-user-section {
        flex-direction: column;
    }

    .add-user-section input {
        width: 100%;
    }

    .add-user-section .btn {
        width: 100%;
    }

    /* Parent dashboard mobile */
    .dashboard-content {
        padding: 20px 16px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .student-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .student-table {
        font-size: 14px;
        min-width: 600px;
    }

    .student-table th,
    .student-table td {
        padding: 10px 8px;
    }

    /* Game modal mobile */
    .game-content {
        padding: 16px;
    }

    .game-area {
        min-height: 300px;
    }

    .bond-display {
        flex-wrap: wrap;
    }

    /* AI insights mobile */
    .ai-stats {
        grid-template-columns: 1fr 1fr;
    }

    /* Main content padding for mobile */
    .main-content {
        padding-top: 70px;
    }

    /* Make buttons touch-friendly */
    .btn {
        min-height: 48px;
        min-width: 48px;
        touch-action: manipulation;
    }

    /* Form inputs touch-friendly */
    input[type="text"] {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 14px 16px;
    }

    /* Footer mobile */
    .footer {
        padding: 24px 16px;
    }

    .footer-content p {
        font-size: 14px;
    }

    /* Features section mobile */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 20px 16px;
    }

    /* Page headers mobile */
    .page-header {
        padding: 24px 16px;
    }

    .page-header h2 {
        font-size: 28px;
    }

    /* Better touch scrolling */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Remove hover effects on touch devices */
    @media (hover: none) {
        .btn:active {
            transform: scale(0.98);
        }

        .grade-btn:active {
            transform: scale(0.95);
        }

        .subject-card:active {
            transform: scale(0.98);
        }

        .lesson-card:active,
        .game-card:active {
            transform: scale(0.98);
        }
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 8px 12px;
    }

    .logo h1 {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 24px;
    }

    .header-right {
        gap: 8px;
    }

    .user-area {
        padding: 6px 10px;
    }

    .user-avatar {
        font-size: 18px;
    }

    .user-name {
        font-size: 12px;
        display: none;
    }

    .sound-toggle {
        font-size: 20px;
        padding: 6px;
    }

    .menu-toggle {
        font-size: 24px;
    }

    .hero {
        padding: 30px 12px;
    }

    .robo {
        transform: scale(0.55);
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .grade-selector {
        gap: 6px;
    }

    .grade-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .current-grade {
        font-size: 16px;
    }

    .subject-card {
        padding: 20px 16px;
    }

    .card-icon {
        font-size: 48px;
    }

    .subject-card h3 {
        font-size: 22px;
    }

    .subject-card p {
        font-size: 14px;
    }

    .btn {
        font-size: 16px;
        padding: 12px 20px;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 15px;
    }

    .lesson-card,
    .game-card {
        padding: 16px;
    }

    .lesson-icon,
    .game-icon {
        font-size: 36px;
    }

    .lesson-card h4,
    .game-card h4 {
        font-size: 18px;
    }

    .page-header h2 {
        font-size: 24px;
    }

    .page-header p {
        font-size: 16px;
    }

    .stats-overview {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-icon {
        font-size: 28px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .level-section {
        padding: 20px;
    }

    .level-badge {
        font-size: 50px;
    }

    .level-name {
        font-size: 22px;
    }

    .achievements-section h3 {
        font-size: 22px;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .achievement-card {
        padding: 14px;
    }

    .achievement-icon {
        font-size: 32px;
    }

    /* Mobile modals */
    .modal-content {
        max-width: 98%;
        max-height: 85vh;
        margin: 8px;
        padding: 16px;
        border-radius: var(--radius-sm);
    }

    .quiz-header {
        flex-direction: column;
        gap: 8px;
    }

    .quiz-question {
        font-size: 18px;
        padding: 12px;
    }

    .quiz-option {
        padding: 14px;
        font-size: 16px;
    }

    .quiz-feedback {
        font-size: 18px;
    }

    /* User modal */
    .user-content h2 {
        font-size: 24px;
    }

    .user-list {
        max-height: 180px;
    }

    .user-card {
        padding: 12px;
    }

    .user-avatar-large {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .user-info h4 {
        font-size: 16px;
    }

    .user-info p {
        font-size: 12px;
    }

    .add-user-section input {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Dashboard */
    .dashboard-content h2 {
        font-size: 24px;
    }

    .dashboard-stats {
        gap: 12px;
    }

    .student-table th,
    .student-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    /* Game area */
    .game-area {
        min-height: 250px;
    }

    .bond-circle {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .bond-operator {
        font-size: 28px;
    }

    /* AI Insights */
    .ai-stats {
        grid-template-columns: 1fr;
    }

    .ai-insights-card h3 {
        font-size: 1.2rem;
    }

    /* Footer */
    .footer {
        padding: 20px 12px;
    }

    .footer-content p {
        font-size: 12px;
    }

    /* Feature cards */
    .feature-card {
        padding: 16px 12px;
    }

    .feature-icon {
        font-size: 36px;
    }

    .feature-card h4 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 13px;
    }

    /* Lesson modal */
    .lesson-header h2 {
        font-size: 22px;
    }

    .lesson-section {
        padding: 14px;
    }

    .lesson-section h3 {
        font-size: 16px;
    }

    .lesson-section p,
    .example-box,
    .key-points-list li {
        font-size: 14px;
    }

    /* Tooltips and hints */
    .lesson-badge {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* Make sure interactive elements have enough touch space */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Create User Modal specific styles */
    .user-content {
        padding: 20px 16px;
    }

    .btn-small {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Timer for quiz - smaller on mobile */
    .quiz-timer {
        font-size: 18px;
    }

    /* Solar system game - adjust for small screens */
    .solar-system-game {
        height: 280px;
    }

    /* Fraction match game - smaller cards */
    .fraction-match-game .quiz-option,
    .game-area .quiz-option {
        height: 60px;
        font-size: 24px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}