/**
 * GyanBee Kids - Main Stylesheet
 * Font: Poppins everywhere
 * Mobile-first responsive design
 */

/* ===== RESET & TOKENS ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #760AC2;
    --primary-light: #9B4BD8;
    --primary-bg: #F5EEFA;
    --secondary: #110182;
    --accent-orange: #FF8A3D;
    --accent-yellow: #FFD23F;
    --accent-green: #2ECC71;
    --accent-blue: #3B82F6;
    --accent-pink: #F472B6;
    --text: #1E1B2E;
    --text-light: #6B7280;
    --bg: #FDFBFF;
    --white: #FFFFFF;
    --card-shadow: 0 2px 16px rgba(118,10,194,0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font); }

/* ===== BILINGUAL TEXT ===== */
[data-lang="en"] { display: none; }
body.lang-en [data-lang="hi"] { display: none; }
body.lang-en [data-lang="en"] { display: inline-block; }
/* Block-level bilingual overrides */
body.lang-en div[data-lang="en"],
body.lang-en p[data-lang="en"],
body.lang-en h1[data-lang="en"],
body.lang-en h2[data-lang="en"],
body.lang-en h3[data-lang="en"],
body.lang-en h4[data-lang="en"],
body.lang-en blockquote[data-lang="en"],
body.lang-en li[data-lang="en"] { display: block; }
/* Button/link bilingual overrides — preserve original display */
body.lang-en a.btn[data-lang="en"],
body.lang-en a.btn-block[data-lang="en"],
body.lang-en a.btn-white[data-lang="en"],
body.lang-en a.btn-primary[data-lang="en"],
body.lang-en a.btn-outline[data-lang="en"] { display: inline-flex; }

/* Block-level bilingual display */
.bilingual-block [data-lang="en"] { display: none; }
.bilingual-block [data-lang="hi"] { display: block; }
body.lang-en .bilingual-block [data-lang="hi"] { display: none; }
body.lang-en .bilingual-block [data-lang="en"] { display: block; }

/* ===== SKIP NAV ===== */
.skip-nav {
    position: absolute; top: -100%; left: 1rem;
    background: var(--primary); color: var(--white);
    padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
    z-index: 999; font-weight: 600; font-size: 0.85rem;
}
.skip-nav:focus { top: 1rem; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(253,251,255,0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: none;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 24px rgba(118,10,194,0.06);
}

.nav-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 1rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex; align-items: center; gap: 0.4rem;
    font-weight: 800; font-size: 1.2rem; color: var(--primary);
}
.nav-logo .bee { font-size: 1.4rem; }
.nav-logo .kids { color: var(--accent-orange); }

.nav-right { display: flex; align-items: center; gap: 0.5rem; }

/* Hide CTA on mobile — bottom nav handles mobile nav */
.nav-cta { display: none; }

/* Language Toggle */
.lang-toggle {
    display: flex; align-items: center;
    background: var(--primary-bg); border-radius: 50px;
    overflow: hidden; border: 2px solid transparent;
    transition: border-color .2s;
}
.lang-toggle:hover { border-color: var(--primary-light); }
.lang-btn {
    padding: 0.35rem 0.75rem; border: none;
    background: transparent; cursor: pointer;
    font-weight: 700; font-size: 0.75rem;
    color: var(--text-light); transition: all .2s;
}
.lang-btn.active {
    background: var(--primary); color: var(--white);
    border-radius: 50px;
}

.nav-cta {
    background: var(--primary); color: var(--white);
    padding: 0.55rem 1.2rem; border-radius: 50px;
    font-weight: 700; font-size: 0.85rem;
    transition: background .2s, transform .2s;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--secondary); transform: scale(1.03); }

/* Desktop nav links */
.nav-links { display: none; gap: 1.5rem; }
.nav-links a {
    font-size: 0.9rem; font-weight: 600; color: var(--text-light);
    transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }

/* ===== HERO ===== */
.hero {
    padding: 6rem 1.25rem 3rem;
    background: linear-gradient(170deg, #F5EEFA 0%, #EDE4FF 30%, #FFF7ED 80%, #FEF3C7 100%);
    text-align: center;
    position: relative; overflow: hidden;
}

/* Cartoon-style bounce animation */
@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.hero-deco { animation: floatBounce 3s ease-in-out infinite; }
.hero-deco-2 { animation-delay: 1s; }
.hero-deco-3 { animation-delay: 2s; }

/* Floating decorative shapes */
.hero-deco { position: absolute; pointer-events: none; opacity: 0.12; }
.hero-deco-1 { top: 15%; left: -30px; }
.hero-deco-2 { top: 25%; right: -20px; }
.hero-deco-3 { bottom: 10%; left: 10%; }

.hero-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--white); color: var(--primary);
    padding: 0.5rem 1.1rem; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 800; line-height: 1.25;
    color: var(--secondary);
    margin-bottom: 1rem;
}
.hero h1 .highlight { color: var(--primary); position: relative; }
.hero h1 .highlight::after {
    content: ''; position: absolute;
    bottom: 2px; left: 0; width: 100%; height: 6px;
    background: var(--accent-yellow); opacity: 0.5;
    border-radius: 3px;
}

.hero-sub {
    font-size: 1rem; color: var(--text-light);
    max-width: 500px; margin: 0 auto 2rem;
    line-height: 1.75;
}

.hero-illustration { max-width: 280px; margin: 0 auto 2rem; }

/* ===== BUTTONS ===== */
.hero-buttons {
    display: flex; flex-direction: column; gap: 0.85rem;
    max-width: 340px; margin: 0 auto;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1rem 2rem; border-radius: 50px;
    font-weight: 700; font-size: 1rem;
    border: none; cursor: pointer; transition: all .25s;
    min-height: 54px;
}
.btn-primary {
    background: var(--primary); color: var(--white);
    box-shadow: 0 4px 20px rgba(118,10,194,0.3);
}
.btn-primary:hover { background: #5E08A0; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(118,10,194,0.4); }
.btn-outline {
    background: var(--white); color: var(--primary);
    border: 2px solid rgba(118,10,194,0.2);
}
.btn-outline:hover { border-color: var(--primary); background: var(--primary-bg); transform: translateY(-2px); }

/* Hero Trust Badges */
.hero-trust {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; margin-top: 2rem; flex-wrap: wrap;
}
.hero-trust-item {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.8rem; color: var(--text-light); font-weight: 600;
}

/* ===== SECTIONS ===== */
.section { padding: 3.5rem 1.25rem; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .label {
    display: inline-block;
    font-weight: 700; font-size: 0.75rem;
    color: var(--primary); background: var(--primary-bg);
    padding: 0.35rem 1rem; border-radius: 50px;
    margin-bottom: 0.75rem; letter-spacing: 0.3px;
    text-transform: uppercase;
}
.section-head h2 {
    font-size: clamp(1.4rem, 4.5vw, 2rem);
    font-weight: 800; color: var(--secondary);
    line-height: 1.3;
}
.section-head p {
    font-size: 0.95rem; color: var(--text-light);
    margin-top: 0.5rem; max-width: 500px; margin-inline: auto;
    line-height: 1.65;
}

/* ===== CLASS PICKER ===== */
.class-picker { background: var(--white); }
.class-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
    max-width: 500px; margin: 0 auto;
}
.class-card {
    background: var(--bg);
    border: 2.5px solid transparent;
    border-radius: var(--radius);
    padding: 1rem 0.25rem;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
}
.class-card:hover, .class-card.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}
.class-card .emoji { font-size: 2rem; margin-bottom: 0.3rem; }
.class-card .class-name {
    font-weight: 700; font-size: 0.8rem;
    color: var(--secondary);
}

/* ===== SUBJECTS ===== */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px; margin: 0 auto;
}
.subject-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--card-shadow);
    transition: transform .25s, box-shadow .25s;
    border: 1px solid rgba(118,10,194,0.04);
}
.subject-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(118,10,194,0.12);
}
.subject-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 0.75rem;
}
.si-maths { background: #FFF3E0; }
.si-english { background: #E8F5E9; }
.si-science { background: #E3F2FD; }
.si-hindi { background: #FFF8E1; }
.si-evs { background: #F1F8E9; }
.si-computer { background: #E8EAF6; }
.si-coding { background: #E0F7FA; }
.si-gk { background: #FCE4EC; }
.subject-card h3 {
    font-size: 0.95rem; font-weight: 700;
    color: var(--secondary); margin-bottom: 0.25rem;
}
.subject-card p { font-size: 0.82rem; color: var(--text-light); line-height: 1.55; }

/* ===== CORE PROMISE STRIP ===== */
.promise-strip {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white); text-align: center;
    padding: 0.85rem 1rem; font-weight: 700;
    font-size: 0.85rem; letter-spacing: 0.3px;
}

/* ===== SUBJECT PILLAR TAGS ===== */
.subject-pillars {
    display: flex; flex-wrap: wrap; gap: 0.35rem;
    margin-top: 0.6rem;
}
.subject-pillars span {
    background: var(--primary-bg); color: var(--primary);
    font-size: 0.7rem; font-weight: 600;
    padding: 0.2rem 0.55rem; border-radius: 50px;
}

/* ===== PRICING HIGHLIGHT ===== */
.pricing-highlight {
    background: linear-gradient(135deg, #FFF7ED, #FEF3C7);
    border-radius: var(--radius); padding: 2rem;
    text-align: center; margin-top: 2rem;
    border: 2px dashed var(--accent-orange);
}
.pricing-highlight .price-big {
    font-size: 3rem; font-weight: 900; color: var(--primary);
}
.pricing-highlight .price-big span {
    font-size: 1.1rem; font-weight: 500; color: var(--text-light);
}

/* ===== CLASS AGE BADGE ===== */
.class-age {
    font-size: 0.65rem; color: var(--text-light);
    font-weight: 500; margin-top: 0.15rem;
}

/* ===== FEATURES ===== */
.features { background: var(--white); }
.features-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 1rem; max-width: 600px; margin: 0 auto;
}
.feature-item {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--bg); border-radius: var(--radius);
    padding: 1.25rem;
}
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
    background: var(--primary-bg);
}
.feature-item h3 {
    font-size: 0.9rem; font-weight: 700;
    color: var(--secondary); margin-bottom: 0.2rem;
}
.feature-item p { font-size: 0.85rem; color: var(--text-light); line-height: 1.55; }

/* ===== HOW IT WORKS ===== */
.steps-list {
    max-width: 500px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 1.5rem;
}
.step-item { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem;
}
.step-item h3 {
    font-size: 1rem; font-weight: 700;
    color: var(--secondary); margin-bottom: 0.2rem;
}
.step-item p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--white); }
.testimonial-grid {
    display: flex; flex-direction: column; gap: 1rem;
    max-width: 600px; margin: 0 auto;
}
.testimonial-card {
    background: var(--bg); border-radius: var(--radius);
    padding: 1.5rem; border: 1px solid rgba(118,10,194,0.06);
}
.testimonial-stars { color: var(--accent-yellow); font-size: 1rem; margin-bottom: 0.5rem; }
.testimonial-card blockquote {
    font-size: 0.9rem; color: var(--text);
    line-height: 1.7; font-style: italic; margin-bottom: 1rem;
}
.testimonial-author { display: flex; align-items: center; gap: 0.6rem; }
.t-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
}
.t-name { font-weight: 700; font-size: 0.85rem; }
.t-role { font-size: 0.75rem; color: var(--text-light); }

/* ===== CTA BANNER ===== */
.cta-banner {
    margin: 0 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
    padding: 3rem 1.5rem;
    text-align: center; color: var(--white);
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    top: -60px; right: -40px;
}
.cta-banner h2 {
    font-size: clamp(1.4rem, 4.5vw, 2rem);
    font-weight: 800; margin-bottom: 0.75rem;
    position: relative;
}
.cta-banner p { font-size: 1rem; opacity: 0.9; margin-bottom: 1.5rem; position: relative; }
.btn-white {
    background: var(--white); color: var(--primary);
    font-weight: 700;
    padding: 1rem 2.5rem; border-radius: 50px;
    border: none; font-size: 1rem; cursor: pointer;
    transition: all .25s; position: relative;
    min-height: 54px;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* ===== FOOTER ===== */
.site-footer { padding: 2.5rem 1.25rem 1.5rem; text-align: center; display: none; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo {
    font-weight: 800; font-size: 1.2rem; color: var(--primary);
    margin-bottom: 1rem;
}
.footer-logo .kids { color: var(--accent-orange); }
.footer-links {
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: center; margin-bottom: 1.5rem;
}
.footer-links a {
    font-size: 0.85rem; color: var(--text-light);
    font-weight: 500; transition: color .2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 0.8rem; color: var(--text-light); }

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; max-width: none; justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .subjects-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-illustration { max-width: 320px; }
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .nav-cta { display: inline-flex; }
    .bottom-nav { display: none; }
    .site-footer { display: block; }
    .section { padding: 4.5rem 2rem; }
    .hero { padding: 7rem 2rem 4rem; }
    .class-grid { gap: 1rem; }
    .testimonial-grid { flex-direction: row; }
    .testimonial-grid .testimonial-card { flex: 1; }
}

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .class-grid { max-width: 600px; }
    .subjects-grid { max-width: 750px; }
    .hero-illustration { max-width: 380px; }
}


/* ===== PAGE HERO (for inner pages) ===== */
.page-hero {
    padding: 6.5rem 1.25rem 3rem;
    background: linear-gradient(170deg, #F5EEFA 0%, #EDE4FF 50%, #FFF7ED 100%);
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800; color: var(--secondary);
    line-height: 1.25; margin-bottom: 0.75rem;
}
.page-hero p {
    font-size: 1rem; color: var(--text-light);
    max-width: 540px; margin: 0 auto; line-height: 1.7;
}

/* ===== CONTENT BLOCK ===== */
.content-block {
    max-width: 800px; margin: 0 auto;
    padding: 3rem 1.25rem;
}
.content-block h2 {
    font-size: 1.5rem; font-weight: 700;
    color: var(--secondary); margin-bottom: 0.75rem;
    margin-top: 2rem;
}
.content-block h3 {
    font-size: 1.15rem; font-weight: 700;
    color: var(--text); margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}
.content-block p {
    font-size: 0.95rem; color: var(--text-light);
    line-height: 1.75; margin-bottom: 1rem;
}
.content-block ul, .content-block ol {
    padding-left: 1.5rem; margin-bottom: 1rem;
    list-style: disc;
}
.content-block li {
    font-size: 0.95rem; color: var(--text-light);
    line-height: 1.7; margin-bottom: 0.4rem;
}

/* ===== AUTH PAGES (Login / Register) ===== */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 5rem 1.25rem 3rem;
    background: linear-gradient(170deg, #F5EEFA 0%, #EDE4FF 50%, #FFF7ED 100%);
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 4px 32px rgba(118,10,194,0.1);
    padding: 2.5rem 2rem;
    width: 100%; max-width: 440px;
}
.auth-card .auth-logo {
    text-align: center; margin-bottom: 1.5rem;
    font-weight: 800; font-size: 1.3rem; color: var(--primary);
}
.auth-card .auth-logo .kids { color: var(--accent-orange); }
.auth-card h1 {
    font-size: 1.5rem; font-weight: 800;
    color: var(--secondary); text-align: center;
    margin-bottom: 0.25rem;
}
.auth-card .auth-sub {
    font-size: 0.9rem; color: var(--text-light);
    text-align: center; margin-bottom: 1.5rem;
}
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label {
    font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.form-group input, .form-group select, .form-group textarea {
    padding: 0.85rem 1rem; border-radius: var(--radius-sm);
    border: 2px solid rgba(118,10,194,0.12);
    font-family: var(--font); font-size: 0.95rem;
    color: var(--text); background: var(--bg);
    transition: border-color .2s;
    min-height: 48px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(118,10,194,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.auth-form .btn { width: 100%; justify-content: center; }
.auth-footer {
    text-align: center; margin-top: 1.25rem;
    font-size: 0.85rem; color: var(--text-light);
}
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-errors {
    background: #FEF2F2; border: 1px solid #FECACA;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem; margin-bottom: 0.5rem;
}
.auth-errors li {
    font-size: 0.85rem; color: #DC2626;
    list-style: none;
}
.auth-success {
    background: #F0FDF4; border: 1px solid #BBF7D0;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem; margin-bottom: 0.5rem;
    font-size: 0.85rem; color: #16A34A;
}

/* ===== PRICING ===== */
.pricing-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 1.5rem; max-width: 900px; margin: 0 auto;
}
.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 2px solid transparent;
    text-align: center;
    transition: all .25s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(118,10,194,0.12); }
.pricing-card.popular {
    border-color: var(--primary);
    position: relative;
}
.pricing-card.popular::before {
    content: ''; position: absolute;
    top: -1px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: var(--white);
    padding: 0.25rem 1rem; border-radius: 0 0 8px 8px;
    font-size: 0.75rem; font-weight: 700;
}
.pricing-badge {
    display: inline-block;
    background: var(--primary); color: var(--white);
    padding: 0.25rem 0.75rem; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700;
    margin-bottom: 0.75rem;
}
.pricing-card h3 {
    font-size: 1.3rem; font-weight: 800;
    color: var(--secondary); margin-bottom: 0.5rem;
}
.pricing-price {
    font-size: 2.5rem; font-weight: 800;
    color: var(--primary); margin-bottom: 0.25rem;
}
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-light); }
.pricing-desc {
    font-size: 0.85rem; color: var(--text-light);
    margin-bottom: 1.5rem;
}
.pricing-features {
    text-align: left; margin-bottom: 1.5rem;
}
.pricing-features li {
    font-size: 0.9rem; color: var(--text);
    padding: 0.4rem 0; display: flex; align-items: center; gap: 0.5rem;
}
.pricing-features li::before { content: '✅'; font-size: 0.85rem; }

/* ===== CONTACT FORM ===== */
.contact-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 2rem; max-width: 900px; margin: 0 auto;
    padding: 0 1.25rem;
}
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}
.contact-info-item {
    display: flex; gap: 0.75rem; align-items: flex-start;
    margin-bottom: 1.25rem;
}
.contact-info-item .ci-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--primary-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.contact-info-item h3 {
    font-size: 0.9rem; font-weight: 700;
    color: var(--secondary); margin-bottom: 0.1rem;
}
.contact-info-item p { font-size: 0.85rem; color: var(--text-light); }
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

/* ===== DASHBOARD ===== */
.dashboard-welcome {
    max-width: 800px; margin: 0 auto;
    padding: 2rem 1.25rem;
}
.dash-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
}
.dash-card h3 {
    font-size: 1rem; font-weight: 700;
    color: var(--secondary); margin-bottom: 0.5rem;
}
.dash-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 1rem;
}
.dash-stat {
    text-align: center; padding: 1.5rem;
    background: var(--bg); border-radius: var(--radius);
}
.dash-stat .stat-num {
    font-size: 2rem; font-weight: 800; color: var(--primary);
}
.dash-stat .stat-label {
    font-size: 0.85rem; color: var(--text-light); font-weight: 500;
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (min-width: 640px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
    .dash-grid { grid-template-columns: repeat(3, 1fr); }
    .page-hero { padding: 8rem 2rem 4rem; }
}

/* ===== BENEFITS SECTION ===== */
.benefits-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 1rem; max-width: 800px; margin: 0 auto;
}
.benefit-card {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--white); border-radius: var(--radius);
    padding: 1.25rem; box-shadow: var(--card-shadow);
    border: 1px solid rgba(118,10,194,0.04);
    transition: transform .25s, box-shadow .25s;
}
.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(118,10,194,0.12);
}
.benefit-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
    background: var(--primary-bg);
}
.benefit-card h3 {
    font-size: 0.95rem; font-weight: 700;
    color: var(--secondary); margin-bottom: 0.2rem;
}
.benefit-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.55; }

/* ===== VIDEO SECTION ===== */
.video-section {
    background: linear-gradient(170deg, var(--primary-bg) 0%, #EDE4FF 100%);
}
.video-wrapper {
    max-width: 700px; margin: 0 auto;
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 8px 40px rgba(118,10,194,0.15);
    aspect-ratio: 16/9; background: #000;
    position: relative;
}
.video-wrapper iframe {
    width: 100%; height: 100%; border: none;
}
.video-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white); text-align: center; padding: 2rem;
    cursor: pointer;
}
.video-placeholder .play-btn {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 1rem;
    transition: transform .25s, background .25s;
}
.video-placeholder:hover .play-btn {
    transform: scale(1.1); background: rgba(255,255,255,0.3);
}
.video-placeholder p { font-weight: 600; font-size: 1rem; }

/* ===== ANIMATED DEMO VIDEO PLAYER ===== */
.demo-video-player {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    gap: 1.5rem; padding: 1.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative; overflow: hidden;
}
/* Animated bg particles */
.demo-video-player::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(118,10,194,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,138,61,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Phone Mockup */
.demo-phone {
    width: 200px; min-width: 200px;
    background: #000; border-radius: 28px;
    padding: 8px; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 0 0 2px rgba(255,255,255,0.1);
    z-index: 2;
}
.demo-phone-notch {
    width: 60px; height: 6px; background: #000;
    border-radius: 99px; margin: 2px auto 4px;
    position: relative; z-index: 3;
}
.demo-phone-screen {
    background: #FDFBFF; border-radius: 20px;
    overflow: hidden; position: relative;
    height: 340px;
}

/* Demo Scenes */
.demo-scene {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    opacity: 0; transform: scale(0.95);
    transition: opacity .5s ease, transform .5s ease;
    pointer-events: none;
}
.demo-scene.active {
    opacity: 1; transform: scale(1);
    pointer-events: auto;
}

/* Demo Screen Elements */
.demo-phone-status {
    font-size: 0.45rem; font-weight: 600; color: #6B7280;
    padding: 4px 8px 2px; text-align: center;
    background: transparent;
}
.ds-header {
    padding: 0.5rem 0.6rem; display: flex;
    align-items: center; justify-content: space-between;
}
.ds-logo { font-size: 0.65rem; font-weight: 800; color: #fff; }
.ds-streak {
    font-size: 0.6rem; font-weight: 700; color: #FCD34D;
    background: rgba(255,255,255,0.15); padding: 2px 8px;
    border-radius: 50px;
}
.ds-body { padding: 0.5rem 0.6rem; flex: 1; }
.ds-greeting { font-size: 0.85rem; font-weight: 800; color: #110182; }
.ds-sub { font-size: 0.55rem; color: #6B7280; margin-bottom: 0.5rem; }
.ds-subjects-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem; margin-bottom: 0.35rem;
}
.ds-subj {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; font-size: 0.45rem; font-weight: 700; color: #110182;
}
.ds-subj-icon {
    width: 32px; height: 32px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}

/* Scene 2: Lesson */
.demo-bubble {
    background: #fff; border-radius: 14px;
    padding: 0.6rem 0.8rem; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem; max-width: 160px;
}
.demo-char-mini {
    margin-top: 0.5rem;
    animation: charFloat 2s ease-in-out infinite;
}
@keyframes charFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Scene 3: Quiz */
.demo-quiz-options {
    display: flex; gap: 0.4rem; margin-bottom: 0.5rem;
}
.demo-qopt {
    padding: 0.4rem 0.8rem; border-radius: 12px;
    background: rgba(255,255,255,0.9); font-size: 0.8rem;
    font-weight: 800; color: #1E1B2E;
    transition: all .3s;
}
.demo-qopt.correct {
    background: #DEF7EC; border: 2px solid #059669;
    animation: quizPop .5s ease;
}
@keyframes quizPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.demo-quiz-fb {
    background: rgba(5,150,105,0.8); color: #fff;
    padding: 0.35rem 0.7rem; border-radius: 10px;
    font-size: 0.55rem; font-weight: 700;
    animation: fbSlide .4s ease-out;
}
@keyframes fbSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scene 4: Rewards */
.demo-trophy {
    font-size: 2.5rem;
    animation: trophyBounce 1.5s ease infinite;
}
.demo-rewards-row {
    display: flex; gap: 0.5rem; margin-top: 0.5rem;
}
.demo-reward-badge {
    text-align: center; font-size: 1.2rem;
    background: rgba(255,255,255,0.2); padding: 0.3rem 0.5rem;
    border-radius: 12px;
}
.demo-reward-badge span { font-size: 0.5rem; font-weight: 700; color: #fff; }

/* Scene 5: AI Chat */
.demo-chat-bubble {
    max-width: 85%; padding: 0.4rem 0.6rem;
    border-radius: 12px; font-size: 0.55rem;
    font-weight: 600; line-height: 1.5;
    margin-bottom: 0.4rem;
    animation: chatIn .4s ease-out;
}
@keyframes chatIn {
    from { opacity: 0; transform: translateY(6px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.demo-chat-ai {
    background: #fff; color: #1E1B2E;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
.demo-chat-ai b { color: #760AC2; }
.demo-chat-user {
    background: #760AC2; color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}
.demo-typing { animation-delay: .3s; }

/* Side Captions */
.demo-captions {
    display: none; /* shown on desktop */
    flex-direction: column; gap: 0.6rem;
    z-index: 2; max-width: 200px;
}
.demo-caption {
    display: flex; align-items: flex-start; gap: 0.5rem;
    opacity: 0.4; transform: translateX(10px);
    transition: opacity .4s, transform .4s;
    padding: 0.5rem 0;
}
.demo-caption.active {
    opacity: 1; transform: translateX(0);
}
.dc-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800; flex-shrink: 0;
    transition: background .3s, color .3s;
}
.demo-caption.active .dc-num {
    background: #760AC2; color: #fff;
}
.dc-title { font-size: 0.85rem; font-weight: 700; color: #fff; }
.dc-desc { font-size: 0.7rem; color: rgba(255,255,255,0.6); line-height: 1.4; }

/* Play/Pause Button */
.demo-play-pause {
    position: absolute; bottom: 12px; right: 12px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 0.9rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 5; transition: background .2s;
}
.demo-play-pause:hover { background: rgba(255,255,255,0.25); }

/* Progress Dots */
.demo-dots {
    position: absolute; bottom: 16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 5;
}
.demo-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: all .3s;
}
.demo-dot.active {
    background: #FCD34D; width: 20px; border-radius: 99px;
}

/* Override video wrapper for demo */
.video-wrapper {
    aspect-ratio: auto; min-height: 400px;
}

/* Desktop layout: phone + captions side by side */
@media (min-width: 640px) {
    .demo-captions { display: flex; }
    .demo-phone { width: 220px; min-width: 220px; }
    .demo-phone-screen { height: 380px; }
    .video-wrapper { min-height: 440px; }
}
@media (min-width: 768px) {
    .demo-video-player { gap: 2.5rem; padding: 2rem; }
    .demo-phone { width: 240px; min-width: 240px; }
    .demo-phone-screen { height: 420px; }
    .dc-title { font-size: 1rem; }
    .dc-desc { font-size: 0.8rem; }
    .demo-captions { max-width: 240px; }
}

/* ===== TRUST SECTION ===== */
.trust-section { background: var(--white); }
.trust-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1rem; max-width: 600px; margin: 0 auto;
}
.trust-item {
    text-align: center; padding: 1.5rem 1rem;
    background: var(--bg); border-radius: var(--radius);
}
.trust-item .trust-num {
    font-size: 2rem; font-weight: 900; color: var(--primary);
    line-height: 1;
}
.trust-item .trust-label {
    font-size: 0.8rem; color: var(--text-light); font-weight: 600;
    margin-top: 0.3rem;
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
    max-width: 700px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 0.75rem;
}
.faq-item {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--card-shadow); overflow: hidden;
    border: 1px solid rgba(118,10,194,0.06);
}
.faq-question {
    width: 100%; padding: 1.1rem 1.25rem;
    background: transparent; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font); font-size: 0.95rem; font-weight: 700;
    color: var(--secondary); text-align: left;
    transition: color .2s;
}
.faq-question:hover { color: var(--primary); }
.faq-question .faq-icon {
    font-size: 1.2rem; flex-shrink: 0; margin-left: 1rem;
    transition: transform .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-answer {
    max-height: 300px;
}
.faq-answer-inner {
    padding: 0 1.25rem 1.1rem;
    font-size: 0.9rem; color: var(--text-light); line-height: 1.7;
}

/* ===== HOMEPAGE PRICING PREVIEW ===== */
.home-pricing {
    background: linear-gradient(170deg, #F5EEFA 0%, #EDE4FF 40%, #FFF7ED 80%, #FEF3C7 100%);
    position: relative; overflow: hidden;
}
.home-pricing::before {
    content: ''; position: absolute; top: -80px; right: -80px;
    width: 250px; height: 250px; border-radius: 50%;
    background: rgba(118,10,194,0.04); pointer-events: none;
}
.home-pricing::after {
    content: ''; position: absolute; bottom: -60px; left: -60px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,138,61,0.04); pointer-events: none;
}
.home-pricing-cards {
    display: grid; grid-template-columns: 1fr;
    gap: 1.25rem; max-width: 500px; margin: 0 auto;
    position: relative; z-index: 2;
}
.home-price-card {
    background: var(--white); border-radius: 20px;
    padding: 2rem 1.5rem; text-align: center;
    box-shadow: 0 4px 20px rgba(118,10,194,0.08);
    border: 2px solid transparent;
    transition: transform .3s, box-shadow .3s;
    position: relative; overflow: hidden;
}
.home-price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(118,10,194,0.15);
}
.price-card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.home-price-card .price-tag {
    font-size: 2.2rem; font-weight: 900; color: var(--primary);
    margin: 0.5rem 0 0.25rem;
}
.home-price-card .price-tag span {
    font-size: 0.9rem; font-weight: 500; color: var(--text-light);
}
.home-price-card .price-currency {
    font-size: 1.4rem !important; font-weight: 700 !important; color: var(--primary) !important;
    vertical-align: top;
}
.home-price-card .price-amount {
    font-size: 3rem; font-weight: 900; color: var(--primary); line-height: 1;
}
.home-price-card .price-period {
    font-size: 0.9rem !important; font-weight: 500 !important; color: var(--text-light) !important;
}
.price-tag-label {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 0.25rem;
}
.price-per-day {
    font-size: 0.8rem; font-weight: 600; color: var(--accent-green);
    margin-bottom: 0.5rem;
}
.price-features {
    list-style: none; padding: 0; margin: 1.25rem 0;
    text-align: left; font-size: 0.85rem; line-height: 1.5;
    color: var(--secondary);
}
.price-features li {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(118,10,194,0.04);
}
.price-features li:last-child { border-bottom: none; }
.pf-check {
    width: 20px; height: 20px; border-radius: 50%;
    background: #DEF7EC; color: #059669;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 900; flex-shrink: 0;
}
.price-save {
    background: #DEF7EC; color: #03543F; font-weight: 700;
    padding: 0.3rem 0.75rem; border-radius: 999px;
    display: inline-block; font-size: 0.8rem; margin-top: 0.25rem;
}
.btn-block { display: inline-block; width: 100%; text-align: center; }
.home-price-card.popular {
    border: 2px solid var(--primary);
    position: relative;
    background: linear-gradient(180deg, #F9F3FF 0%, var(--white) 100%);
    box-shadow: 0 8px 40px rgba(118,10,194,0.18);
    transform: scale(1.03);
}
.home-price-card.popular:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 12px 48px rgba(118,10,194,0.25);
}
.popular-ribbon {
    position: absolute; top: 16px; right: -30px;
    background: var(--primary); color: #fff;
    padding: 0.3rem 2.5rem; font-size: 0.7rem; font-weight: 700;
    transform: rotate(35deg); transform-origin: center;
    box-shadow: 0 2px 8px rgba(118,10,194,0.3);
}
.pricing-trust-bar {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: center; gap: 1rem;
    margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(118,10,194,0.06);
    position: relative; z-index: 2;
}
.pricing-trust-bar span {
    font-size: 0.8rem; font-weight: 600; color: var(--text-light);
}

/* ===== REVIEW SLIDER ===== */
.review-slider-wrap {
    max-width: 800px; margin: 0 auto;
    position: relative;
}
.review-slider {
    overflow: hidden; border-radius: var(--radius);
}
.review-slider-track {
    display: flex;
    transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.review-slide {
    min-width: 100%; flex-shrink: 0;
    background: var(--white); border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 24px rgba(118,10,194,0.08);
    border: 1px solid rgba(118,10,194,0.06);
}
.review-slide blockquote {
    font-size: 1rem; line-height: 1.8;
    font-style: italic; color: var(--text);
    margin-bottom: 1.25rem;
    position: relative; padding-left: 1.5rem;
}
.review-slide blockquote::before {
    content: '"'; position: absolute; left: 0; top: -0.25rem;
    font-size: 2rem; font-weight: 900; color: var(--primary);
    opacity: 0.3; line-height: 1;
}
.review-slider-controls {
    display: flex; align-items: center;
    justify-content: center; gap: 0.75rem;
    margin-top: 1.25rem;
}
.review-arrow {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--white); border: 2px solid rgba(118,10,194,0.12);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); cursor: pointer;
    transition: all .2s;
}
.review-arrow:hover {
    background: var(--primary); color: var(--white);
    border-color: var(--primary);
}
.review-dots {
    display: flex; gap: 6px; align-items: center;
}
.review-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(118,10,194,0.15);
    cursor: pointer; transition: all .3s;
}
.review-dot.active {
    background: var(--primary); width: 24px; border-radius: 99px;
}
.video-caption {
    margin-top: 0.5rem; font-size: 0.85rem; opacity: 0.9;
}
.video-placeholder svg {
    width: 100%; max-width: 400px; margin-bottom: 1rem;
    border-radius: 12px;
}

/* ===== RESPONSIVE: New sections ===== */
@media (min-width: 640px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
    .home-pricing-cards { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
    .review-slide { padding: 2.5rem 2rem; }
    .review-slide blockquote { font-size: 1.1rem; }
}
@media (min-width: 768px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== BOTTOM NAVIGATION (Mobile App Style) ===== */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(118,10,194,0.08);
    display: flex; align-items: stretch; justify-content: space-around;
    height: 62px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
}
/* Pull handle indicator */
.bottom-nav::before {
    content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 4px; border-radius: 99px;
    background: rgba(118,10,194,0.12);
}
.bottom-nav a {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    flex: 1; gap: 3px;
    font-size: 0; font-weight: 600;
    color: #9CA3AF;
    text-decoration: none;
    transition: color .2s, transform .15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.bottom-nav a:active { transform: scale(0.92); }
.bottom-nav a:hover,
.bottom-nav a.active { color: var(--primary); }
/* Active indicator dot */
.bottom-nav a.active::before {
    content: '';
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px; border-radius: 0 0 3px 3px;
    background: var(--primary);
}
.bottom-nav .bnav-icon {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
}
.bottom-nav .bnav-icon svg {
    width: 24px; height: 24px;
    stroke-width: 1.8;
    fill: none; stroke: currentColor;
    transition: stroke-width .2s;
}
.bottom-nav a.active .bnav-icon svg {
    stroke-width: 2.4;
}
.bottom-nav .bnav-label {
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 64px; text-align: center; line-height: 1;
}
/* CTA button in bottom nav */
.bottom-nav .bnav-cta {
    background: var(--primary); color: var(--white) !important;
    border-radius: 16px; margin: 6px 6px;
    gap: 2px;
}
.bottom-nav .bnav-cta:active { transform: scale(0.94); }
.bottom-nav .bnav-cta::before { display: none; }
.bottom-nav .bnav-cta .bnav-icon svg { stroke: #fff; }
.bottom-nav .bnav-cta .bnav-label { color: var(--white); }

/* Bottom padding for body so content isn't hidden behind bottom nav */
body { padding-bottom: 78px; }

@media (min-width: 768px) {
    body { padding-bottom: 0; }
}

/* ============================================================
   CHILD LEARNING DASHBOARD
   ============================================================ */

/* ===== GAMIFICATION HERO ===== */
.dash-hero {
    background: linear-gradient(135deg, #760AC2 0%, #4A0E8F 50%, #110182 100%);
    padding: 5rem 1.25rem 2rem; color: var(--white);
    position: relative; overflow: hidden;
}
.dash-hero::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 24h1200C1200 10.745 1065.68 0 900 0H300C134.315 0 0 10.745 0 24z' fill='%23FDFBFF'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}
.dash-hero-inner { max-width: 800px; margin: 0 auto; }
.dash-greeting h1 {
    font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 800;
    margin-bottom: 0.25rem;
}
.dash-subtitle { font-size: 1rem; opacity: 0.85; margin-bottom: 1.25rem; }

/* Gamification bar */
.gamification-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.gam-item {
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    border-radius: 14px; padding: 0.6rem 0.4rem;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 2px;
}
.gam-icon { font-size: 1.3rem; }
.gam-num { font-size: 1.1rem; font-weight: 800; display: block; }
.gam-label { font-size: 0.55rem; opacity: 0.7; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.gam-item.streak .gam-num { color: #FCD34D; }
.gam-item.level .gam-num { font-size: 0.85rem; }
.xp-bar {
    width: 100%; height: 5px; background: rgba(255,255,255,0.2);
    border-radius: 99px; margin-top: 3px; overflow: hidden;
}
.xp-fill {
    height: 100%; background: linear-gradient(90deg, #FCD34D, #F59E0B);
    border-radius: 99px; transition: width .6s ease;
}

/* ===== DASH CONTAINER ===== */
.dash-container { max-width: 800px; margin: 0 auto; padding: 0 1rem; }

/* ===== DASH SECTIONS ===== */
.dash-section { margin-bottom: 1.5rem; }
.dash-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.75rem;
}
.dash-section-head h2 {
    font-size: 1.1rem; font-weight: 800; color: var(--secondary);
}
.dash-plan-time {
    background: var(--primary-bg); color: var(--primary);
    padding: 0.25rem 0.75rem; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700;
}

/* ===== 1. TODAY'S PLAN ===== */
.today-plan-list { display: flex; flex-direction: column; gap: 0.5rem; }
.plan-card {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--white); border-radius: 14px; padding: 0.85rem 1rem;
    box-shadow: var(--card-shadow); transition: transform .2s;
}
.plan-card:active { transform: scale(0.98); }
.plan-card.done { opacity: 0.6; }
.plan-card.done .plan-name { text-decoration: line-through; }
.plan-check { font-size: 1.2rem; flex-shrink: 0; }
.plan-icon { font-size: 1.4rem; flex-shrink: 0; }
.plan-info { flex: 1; }
.plan-name {
    font-size: 0.9rem; font-weight: 700; color: var(--secondary);
    display: block;
}
.plan-time { font-size: 0.75rem; color: var(--text-light); }
.plan-play-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    border: none; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .2s, transform .15s;
}
.plan-play-btn:active { transform: scale(0.9); }
.plan-play-btn:hover { background: var(--secondary); }
.plan-progress {
    margin-top: 0.75rem; text-align: center;
    font-size: 0.8rem; font-weight: 600; color: var(--text-light);
}
.plan-progress-bar {
    height: 8px; background: #E5E7EB; border-radius: 99px;
    margin-top: 0.4rem; overflow: hidden;
}
.plan-progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--accent-green), #059669);
    border-radius: 99px; transition: width .5s ease;
}

/* ===== 2. CONTINUE LEARNING ===== */
.continue-list { display: flex; flex-direction: column; gap: 0.6rem; }
.continue-card {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--white); border-radius: 14px; padding: 0.85rem 1rem;
    box-shadow: var(--card-shadow);
}
.continue-icon { font-size: 1.5rem; flex-shrink: 0; }
.continue-info { flex: 1; }
.continue-name {
    font-size: 0.85rem; font-weight: 700; color: var(--secondary);
    display: block; margin-bottom: 0.3rem;
}
.continue-bar {
    height: 7px; background: #E5E7EB; border-radius: 99px; overflow: hidden;
}
.continue-fill {
    height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 99px; transition: width .5s ease;
}
.continue-pct {
    font-size: 0.8rem; font-weight: 800; color: var(--primary);
    flex-shrink: 0; min-width: 36px; text-align: right;
}
.continue-play {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary-bg); color: var(--primary);
    border: none; font-size: 0.9rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .2s;
}
.continue-play:hover { background: var(--primary); color: var(--white); }

/* ===== 3. DAILY REWARDS ===== */
.reward-week {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
}
.reward-day {
    text-align: center; display: flex; flex-direction: column;
    align-items: center; gap: 4px;
}
.reward-day-label {
    font-size: 0.6rem; font-weight: 700; color: var(--text-light);
    text-transform: uppercase;
}
.reward-circle {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--bg); border: 2px solid #E5E7EB;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; transition: transform .2s;
}
.reward-day.claimed .reward-circle {
    background: #DEF7EC; border-color: #6EE7B7;
}
.reward-day.today .reward-circle {
    border-color: var(--primary); border-width: 3px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(118,10,194,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(118,10,194,0); }
}
.reward-check { font-size: 1.1rem; }
.reward-gift { font-size: 1rem; }
.reward-amount { font-size: 0.55rem; font-weight: 700; color: var(--primary); }
.reward-msg {
    text-align: center; margin-top: 0.75rem;
    font-size: 0.85rem; font-weight: 700; color: var(--accent-orange);
}

/* ===== 4. SUBJECT CARDS ===== */
.dash-subjects-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}
.dash-subject-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.4rem; padding: 1rem 0.5rem;
    background: var(--white); border-radius: 16px;
    box-shadow: var(--card-shadow); text-align: center;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}
.dash-subject-card:active { transform: scale(0.95); }
.dash-subject-card:hover { box-shadow: 0 4px 20px rgba(118,10,194,0.15); }
.dash-subject-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.dash-subject-name {
    font-size: 0.75rem; font-weight: 700; color: var(--secondary);
}
/* Subject icon backgrounds */
.dash-subject-card.si-english .dash-subject-icon { background: #DBEAFE; }
.dash-subject-card.si-maths .dash-subject-icon { background: #FEF3C7; }
.dash-subject-card.si-science .dash-subject-icon { background: #D1FAE5; }
.dash-subject-card.si-gk .dash-subject-icon { background: #E8D5F5; }
.dash-subject-card.si-hindi .dash-subject-icon { background: #FCE7F3; }
.dash-subject-card.si-computer .dash-subject-icon { background: #E0E7FF; }

/* ===== 5. WEEKLY TEST ===== */
.weekly-test-card {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-radius: 16px; padding: 1.25rem;
    box-shadow: var(--card-shadow);
}
.wt-left { display: flex; align-items: center; gap: 0.75rem; }
.wt-icon { font-size: 2.2rem; }
.wt-info h3 { font-size: 1rem; font-weight: 800; color: #92400E; }
.wt-info p { font-size: 0.8rem; color: #B45309; }
.wt-countdown { text-align: center; }
.wt-days {
    font-size: 2.5rem; font-weight: 900; color: #92400E;
    line-height: 1; display: block;
}
.wt-label { font-size: 0.7rem; font-weight: 700; color: #B45309; }

/* ===== 6. ACHIEVEMENTS / BADGES ===== */
.badges-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}
.badge-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.3rem; padding: 0.85rem 0.5rem;
    background: var(--white); border-radius: 16px;
    box-shadow: var(--card-shadow); text-align: center;
    position: relative;
}
.badge-card.locked { opacity: 0.45; filter: grayscale(0.6); }
.badge-icon { font-size: 1.8rem; }
.badge-name { font-size: 0.7rem; font-weight: 700; color: var(--secondary); }
.badge-lock {
    position: absolute; top: 6px; right: 6px;
    font-size: 0.7rem; opacity: 0.7;
}
.badge-card.earned { animation: badgeShine 3s infinite; }
@keyframes badgeShine {
    0%, 100% { box-shadow: var(--card-shadow); }
    50% { box-shadow: 0 0 12px rgba(255,210,63,0.4); }
}

/* ===== 7. AI TEACHER ===== */
.ai-teacher-card {
    background: linear-gradient(135deg, #F5EEFA, #E8D5F5);
    border-radius: 20px; padding: 1.5rem;
    box-shadow: var(--card-shadow);
}
.ai-avatar {
    width: 64px; height: 64px; margin: 0 auto 0.75rem;
}
.ai-avatar svg { width: 100%; height: 100%; }
.ai-info { text-align: center; margin-bottom: 1rem; }
.ai-info h3 { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.ai-info p { font-size: 0.85rem; color: var(--text-light); }
.ai-input-row {
    display: flex; gap: 0.5rem; margin-bottom: 0.75rem;
}
.ai-input {
    flex: 1; padding: 0.75rem 1rem;
    border: 2px solid rgba(118,10,194,0.15); border-radius: 14px;
    font-family: var(--font); font-size: 0.9rem;
    background: var(--white); color: var(--text);
    transition: border-color .2s;
    outline: none;
}
.ai-input:focus { border-color: var(--primary); }
.ai-send-btn {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--primary); color: var(--white);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .2s, transform .15s;
}
.ai-send-btn:active { transform: scale(0.9); }
.ai-send-btn:hover { background: var(--secondary); }
.ai-send-btn svg { width: 20px; height: 20px; }
.ai-quick-questions {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.ai-chip {
    padding: 0.45rem 0.85rem; border-radius: 50px;
    background: var(--white); border: 1.5px solid rgba(118,10,194,0.15);
    font-family: var(--font); font-size: 0.75rem; font-weight: 600;
    color: var(--primary); cursor: pointer;
    transition: background .2s, border-color .2s;
}
.ai-chip:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== DASHBOARD RESPONSIVE ===== */
@media (min-width: 640px) {
    .gamification-bar { gap: 0.75rem; }
    .gam-item { padding: 0.85rem 0.6rem; }
    .gam-num { font-size: 1.3rem; }
    .dash-subjects-grid { grid-template-columns: repeat(6, 1fr); }
    .badges-grid { grid-template-columns: repeat(6, 1fr); }
    .reward-circle { width: 52px; height: 52px; font-size: 1.2rem; }
}
@media (min-width: 768px) {
    .dash-hero { padding: 6rem 2rem 2.5rem; }
    .dash-container { padding: 0 2rem; }
    .dash-section { margin-bottom: 2rem; }
}

/* ============================================================
   CARTOON LESSON PLAYER
   ============================================================ */

/* Lesson Listing Page */
.lesson-list-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 1rem; max-width: 700px; margin: 0 auto;
}
.lesson-list-card {
    display: flex; align-items: center; gap: 1rem;
    background: var(--white); border-radius: var(--radius);
    padding: 1.25rem; box-shadow: var(--card-shadow);
    text-decoration: none; transition: transform .2s;
}
.lesson-list-card:hover { transform: translateY(-2px); }
.lesson-list-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; flex-shrink: 0;
}
.lesson-list-card.maths .lesson-list-icon { background: #FEF3C7; }
.lesson-list-card.english .lesson-list-icon { background: #DBEAFE; }
.lesson-list-card.science .lesson-list-icon { background: #D1FAE5; }
.lesson-list-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--secondary); }
.lesson-list-meta {
    display: flex; gap: 0.75rem; font-size: 0.75rem;
    color: var(--text-light); font-weight: 600; margin-top: 0.3rem;
}
@media (min-width: 640px) { .lesson-list-grid { grid-template-columns: 1fr 1fr; } }

/* Full-Screen Lesson Player */
.lesson-player {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; flex-direction: column;
    background: #1a1a2e; overflow: hidden;
}

/* Top Bar */
.lesson-topbar {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.3); z-index: 10;
    flex-shrink: 0;
}
.lesson-back {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,255,255,0.15); border: none;
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lesson-progress-wrap { flex: 1; }
.lesson-progress-bar {
    height: 8px; background: rgba(255,255,255,0.2);
    border-radius: 99px; overflow: hidden;
}
.lesson-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #FCD34D, #F59E0B);
    border-radius: 99px; transition: width .5s ease;
}
.lesson-step {
    font-size: 0.7rem; color: rgba(255,255,255,0.7);
    font-weight: 600; display: block; text-align: center; margin-top: 2px;
}
.lesson-sound {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,255,255,0.15); border: none;
    color: #fff; font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* Scene Stage */
.scene-stage {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 1rem; position: relative;
    transition: background .6s ease;
    overflow: hidden;
}

/* Animated Character */
.lesson-character {
    width: 90px; height: 120px;
    position: absolute; bottom: 22%; left: 12px;
    animation: charBounce 2s ease-in-out infinite;
    z-index: 3;
}
@keyframes charBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.char-arm-l { animation: armWaveL 1.5s ease-in-out infinite; transform-origin: right center; }
.char-arm-r { animation: armWaveR 1.5s ease-in-out infinite 0.5s; transform-origin: left center; }
@keyframes armWaveL { 0%,100%{transform:rotate(0)} 50%{transform:rotate(-12deg)} }
@keyframes armWaveR { 0%,100%{transform:rotate(0)} 50%{transform:rotate(12deg)} }
.char-eye { animation: blink 3s ease-in-out infinite; }
@keyframes blink { 0%,45%,55%,100%{transform:scaleY(1)} 50%{transform:scaleY(0.1)} }

/* Speech Bubble */
.speech-bubble {
    position: relative; background: #fff;
    border-radius: 20px; padding: 1.25rem 1.5rem;
    max-width: 90%; width: 340px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 4; margin-bottom: 1rem;
    animation: bubbleIn .4s ease-out;
}
.speech-bubble::after {
    content: ''; position: absolute;
    bottom: -10px; left: 40px;
    width: 0; height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #fff;
}
@keyframes bubbleIn {
    from { opacity: 0; transform: scale(0.8) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.speech-text {
    font-size: 1rem; font-weight: 600; line-height: 1.6;
    color: #1E1B2E; text-align: center;
}
.speech-text b { color: #760AC2; }

/* Scene Visual */
.scene-visual {
    font-size: 2rem; text-align: center;
    padding: 0.5rem; z-index: 2;
    animation: visualPop .5s ease-out .2s both;
}
@keyframes visualPop {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Quiz Area */
.scene-quiz {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.75rem; width: 100%; max-width: 320px; z-index: 5;
}
.quiz-q {
    font-size: 1.8rem; font-weight: 900; color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}
.quiz-options { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.quiz-option {
    padding: 0.85rem 1.5rem; border-radius: 16px;
    background: rgba(255,255,255,0.95); border: 3px solid transparent;
    font-family: var(--font); font-size: 1.2rem; font-weight: 800;
    color: #1E1B2E; cursor: pointer;
    transition: all .2s; min-width: 80px; text-align: center;
}
.quiz-option:hover { border-color: #760AC2; transform: scale(1.05); }
.quiz-option:active { transform: scale(0.95); }
.quiz-option.correct {
    background: #DEF7EC; border-color: #059669;
    animation: correctPulse .5s ease;
}
.quiz-option.wrong {
    background: #FEE2E2; border-color: #DC2626;
    animation: shake .4s ease;
}
@keyframes correctPulse {
    0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); }
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
.quiz-feedback {
    font-size: 0.95rem; font-weight: 700; color: #fff;
    text-align: center; padding: 0.75rem;
    background: rgba(0,0,0,0.2); border-radius: 14px;
    margin-top: 0.5rem; animation: bubbleIn .3s ease-out;
}

/* Bottom Controls */
.lesson-bottom {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.3);
    flex-shrink: 0; z-index: 10;
}
.lesson-btn {
    width: 52px; height: 52px; border-radius: 50%;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.lesson-btn:active { transform: scale(0.9); }
.lesson-prev, .lesson-next {
    background: rgba(255,255,255,0.2); color: #fff;
}
.lesson-prev:disabled { opacity: 0.3; cursor: default; }
.lesson-prev:not(:disabled):hover, .lesson-next:hover { background: rgba(255,255,255,0.3); }
.lesson-play {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
    color: #1E1B2E; font-size: 1.4rem; font-weight: 800;
    box-shadow: 0 4px 20px rgba(252,211,77,0.4);
}
.lesson-play:hover { transform: scale(1.05); }

/* Scene Type Label */
.scene-type-label {
    position: absolute; top: 70px; right: 12px;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
    color: #fff; padding: 0.3rem 0.75rem; border-radius: 50px;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; z-index: 10;
}

/* Completion Overlay */
.lesson-complete {
    position: absolute; inset: 0; z-index: 100;
    background: linear-gradient(135deg, #760AC2 0%, #110182 100%);
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn .5s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.complete-content { text-align: center; color: #fff; padding: 2rem; }
.complete-trophy {
    font-size: 5rem;
    animation: trophyBounce 1s ease infinite;
}
@keyframes trophyBounce {
    0%,100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(-5deg); }
    75% { transform: translateY(-15px) rotate(5deg); }
}
.complete-content h2 {
    font-size: 1.6rem; font-weight: 900; margin: 1rem 0 0.5rem;
}
.complete-content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 0.5rem; }
.complete-stars {
    font-size: 2rem; margin: 1rem 0 1.5rem;
    animation: starsGlow 2s ease infinite;
}
@keyframes starsGlow {
    0%,100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}
.complete-buttons { display: flex; flex-direction: column; gap: 0.75rem; }
.complete-buttons .btn { min-height: 48px; }
.complete-buttons .btn-outline {
    border-color: rgba(255,255,255,0.5); color: #fff;
}

/* Responsive adjustments for lesson player */
@media (min-width: 640px) {
    .lesson-character { width: 120px; height: 160px; left: 24px; bottom: 18%; }
    .speech-bubble { width: 400px; }
    .speech-text { font-size: 1.15rem; }
    .quiz-option { font-size: 1.4rem; padding: 1rem 2rem; }
    .quiz-q { font-size: 2.2rem; }
}
@media (min-width: 768px) {
    .lesson-player { max-width: 600px; margin: 0 auto; border-radius: 24px; }
}
