/* =============================================
   PYKIDS — Global Design System
   ============================================= */

:root {
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --purple-dark: #5b21b6;
    --yellow: #fbbf24;
    --yellow-light: #fde68a;
    --pink: #ec4899;
    --pink-light: #f9a8d4;
    --teal: #0d9488;
    --teal-light: #5eead4;
    --orange: #f97316;
    --green: #22c55e;
    --navy: #0f172a;
    --navy2: #1e293b;
    --card-bg: #1e1b4b;
    --card-border: rgba(167, 139, 250, 0.25);
    --text-light: #e2d9f3;
    --text-muted: #9ca3af;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 8px 40px rgba(124, 58, 237, 0.25);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
    --transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--navy);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============ FLOATING BG ============ */
.bg-floaters {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-floaters span {
    position: absolute;
    font-size: clamp(1rem, 3vw, 2.5rem);
    opacity: 0.06;
    animation: floatUp 12s infinite linear;
}

.bg-floaters span:nth-child(1) {
    left: 5%;
    animation-delay: 0s;
    animation-duration: 11s;
}

.bg-floaters span:nth-child(2) {
    left: 12%;
    animation-delay: 1.5s;
    animation-duration: 14s;
}

.bg-floaters span:nth-child(3) {
    left: 22%;
    animation-delay: 3s;
    animation-duration: 10s;
}

.bg-floaters span:nth-child(4) {
    left: 35%;
    animation-delay: 0.8s;
    animation-duration: 13s;
}

.bg-floaters span:nth-child(5) {
    left: 48%;
    animation-delay: 2.2s;
    animation-duration: 12s;
}

.bg-floaters span:nth-child(6) {
    left: 60%;
    animation-delay: 4s;
    animation-duration: 9s;
}

.bg-floaters span:nth-child(7) {
    left: 72%;
    animation-delay: 1s;
    animation-duration: 15s;
}

.bg-floaters span:nth-child(8) {
    left: 82%;
    animation-delay: 3.5s;
    animation-duration: 11s;
}

.bg-floaters span:nth-child(9) {
    left: 90%;
    animation-delay: 0.3s;
    animation-duration: 13s;
}

.bg-floaters span:nth-child(10) {
    left: 18%;
    animation-delay: 5s;
    animation-duration: 10s;
}

.bg-floaters span:nth-child(11) {
    left: 55%;
    animation-delay: 2.8s;
    animation-duration: 14s;
}

.bg-floaters span:nth-child(12) {
    left: 75%;
    animation-delay: 6s;
    animation-duration: 12s;
}

@keyframes floatUp {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.06;
    }

    90% {
        opacity: 0.06;
    }

    100% {
        transform: translateY(-15vh) rotate(360deg);
        opacity: 0;
    }
}

/* ============ NAVBAR ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    animation: wiggle 3s ease-in-out infinite;
}

.nav-title {
    font-family: 'Baloo 2', cursive;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-light), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--purple-light);
}

.nav-score {
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    color: var(--navy);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    min-height: 90vh;
    padding: 4rem 4rem 2rem;
    background: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid var(--card-border);
    color: var(--purple-light);
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    width: fit-content;
}

.hero-title {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.highlight {
    background: linear-gradient(135deg, var(--yellow), var(--orange), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    font-weight: 800;
    color: var(--yellow);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-images {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-mascot {
    width: 220px;
    filter: drop-shadow(0 15px 40px rgba(124, 58, 237, 0.5));
}

.hero-kids {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius);
    border: 2px solid var(--card-border);
    box-shadow: var(--shadow-card);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
    background: rgba(167, 139, 250, 0.15);
    border: 2px solid var(--purple-light);
    color: var(--purple-light);
}

.btn-secondary:hover {
    background: rgba(167, 139, 250, 0.3);
    transform: translateY(-2px);
}

.btn-hint {
    background: rgba(251, 191, 36, 0.15);
    border: 2px solid var(--yellow);
    color: var(--yellow);
}

.btn-hint:hover {
    background: rgba(251, 191, 36, 0.25);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* ============ SECTIONS ============ */
.section {
    position: relative;
    z-index: 1;
    padding: 5rem 4rem;
}

.section-alt {
    background: rgba(30, 27, 75, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ============ LESSONS ============ */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.lesson-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.lesson-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--card-color, var(--purple)), transparent);
    opacity: 0.08;
    transition: opacity 0.3s;
}

.lesson-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--purple-light);
    box-shadow: var(--shadow);
}

.lesson-card:hover::before {
    opacity: 0.2;
}

.lesson-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.lesson-card.locked:hover {
    transform: none;
    box-shadow: none;
}

.lesson-card.completed {
    border-color: var(--green);
}

.lesson-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

.lesson-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.lesson-title {
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.lesson-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.lesson-status {
    font-size: 0.8rem;
    font-weight: 700;
}

.lesson-status.done {
    color: var(--green);
}

.lesson-status.locked {
    color: var(--text-muted);
}

.lesson-status.open {
    color: var(--yellow);
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

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

.modal {
    background: var(--navy2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(167, 139, 250, 0.15);
    border: none;
    color: var(--text-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(167, 139, 250, 0.3);
}

.lesson-modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.lesson-modal-title {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 0.5rem;
}

.lesson-modal-intro {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.lesson-step {
    background: rgba(167, 139, 250, 0.07);
    border-left: 4px solid var(--purple-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}

.lesson-step h4 {
    color: var(--purple-light);
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.lesson-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.code-block {
    background: #0d1117;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #a5f3fc;
    margin: 0.8rem 0;
    white-space: pre-wrap;
    line-height: 1.7;
}

.code-block .kw {
    color: var(--purple-light);
}

.code-block .str {
    color: var(--yellow-light);
}

.code-block .fn {
    color: var(--teal-light);
}

.code-block .co {
    color: #6b7280;
    font-style: italic;
}

.lesson-complete-btn {
    display: block;
    width: 100%;
    margin-top: 2rem;
}

/* ============ QUIZ ============ */
.quiz-container {
    max-width: 720px;
    margin: 0 auto;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.quiz-tag {
    background: rgba(167, 139, 250, 0.15);
    color: var(--purple-light);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.quiz-progress-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.quiz-score-display {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--yellow);
}

.quiz-progress-bar {
    height: 8px;
    background: rgba(167, 139, 250, 0.15);
    border-radius: 999px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    border-radius: 999px;
    transition: width 0.5s ease;
    width: 0%;
}

.quiz-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2rem;
    min-height: 300px;
}

.quiz-question {
    font-family: 'Baloo 2', cursive;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.quiz-opt {
    background: rgba(167, 139, 250, 0.08);
    border: 2px solid rgba(167, 139, 250, 0.2);
    color: var(--text-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    text-align: left;
    font-family: 'Nunito', sans-serif;
}

.quiz-opt:hover:not(:disabled) {
    background: rgba(167, 139, 250, 0.2);
    border-color: var(--purple-light);
    transform: translateY(-2px);
}

.quiz-opt.correct {
    background: rgba(34, 197, 94, 0.15);
    border-color: var(--green);
    color: var(--green);
}

.quiz-opt.wrong {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

.quiz-feedback {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.quiz-feedback.correct {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--green);
    color: var(--green);
}

.quiz-feedback.wrong {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.quiz-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.quiz-result {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    margin-top: 1.5rem;
    animation: slideUp 0.3s ease;
}

.quiz-result h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.result-score {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
}

.result-stars {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.quiz-category-picker {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.quiz-category-picker p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.category-btns {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cat-btn {
    background: rgba(167, 139, 250, 0.08);
    border: 1.5px solid rgba(167, 139, 250, 0.2);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Nunito', sans-serif;
}

.cat-btn:hover,
.cat-btn.active {
    background: rgba(167, 139, 250, 0.2);
    border-color: var(--purple-light);
    color: var(--purple-light);
}

/* ============ PLAYGROUND ============ */
.playground-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.challenge-cards {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.challenge-chip {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.challenge-chip:hover,
.challenge-chip.active {
    border-color: var(--purple-light);
    background: rgba(167, 139, 250, 0.1);
}

.challenge-chip.active {
    border-left: 4px solid var(--purple-light);
}

.challenge-chip-icon {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.challenge-chip-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
}

.challenge-chip-diff {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.code-area {
    display: flex;
    flex-direction: column;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--navy2);
    border: 1px solid var(--card-border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 0.8rem 1.2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.code-header span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--purple-light);
}

.code-actions {
    display: flex;
    gap: 0.5rem;
}

.code-editor {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    background: #0d1117;
    color: #a5f3fc;
    border: 1px solid var(--card-border);
    border-bottom: none;
    padding: 1.2rem;
    min-height: 180px;
    resize: vertical;
    line-height: 1.7;
    outline: none;
}

.code-editor:focus {
    border-color: var(--purple-light);
}

.output-header {
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid var(--card-border);
    border-bottom: none;
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.code-output {
    background: #0d1117;
    border: 1px solid var(--card-border);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 1rem 1.2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #86efac;
    min-height: 80px;
    white-space: pre-wrap;
    word-break: break-word;
}

.code-output.error {
    color: #f87171;
}

.code-output.success {
    color: var(--green);
}

.hint-box {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    margin-top: 0.6rem;
    color: var(--yellow);
    font-size: 0.9rem;
}

/* ============ BADGES ============ */
.avatars-img {
    display: block;
    margin: 0 auto 2.5rem;
    max-width: 420px;
    width: 100%;
    border-radius: var(--radius);
    border: 2px solid var(--card-border);
    box-shadow: var(--shadow-card);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}

.badge-card {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
}

.badge-card:not(.locked-badge):hover {
    transform: translateY(-5px);
    border-color: var(--purple-light);
    box-shadow: var(--shadow);
}

.badge-card.locked-badge {
    opacity: 0.4;
    filter: grayscale(80%);
}

.badge-card.earned {
    border-color: var(--yellow);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.badge-emoji {
    font-size: 2.8rem;
    margin-bottom: 0.6rem;
    display: block;
}

.badge-name {
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.badge-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge-earned-tag {
    margin-top: 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--yellow);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--navy2);
    border-top: 1px solid var(--card-border);
    padding: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-mascot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-mascot p {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--purple-light);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(-8deg);
    }

    75% {
        transform: rotate(8deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(124, 58, 237, 0.7);
    }
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

.pop-anim {
    animation: pop 0.4s ease;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .hero-content {
        align-items: center;
    }

    .hero-images {
        order: -1;
    }

    .hero-mascot {
        width: 160px;
    }

    .hero-kids {
        display: none;
    }

    .section {
        padding: 3.5rem 1.5rem;
    }

    .playground-container {
        grid-template-columns: 1fr;
    }

    .challenge-cards {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .challenge-chip {
        flex: 1;
        min-width: 140px;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .quiz-options {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1rem;
    }

    .nav-score {
        font-size: 0.85rem;
        padding: 0.3rem 0.7rem;
    }
}

/* ============ PRICING ============ */
.pricing-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 0.6rem;
}

/* Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 2.5rem;
}

.toggle-label {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.toggle-label.active {
    color: #fff;
}

.save-badge {
    background: linear-gradient(135deg, var(--green), var(--teal));
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-weight: 800;
}

.toggle-btn {
    width: 52px;
    height: 28px;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
    flex-shrink: 0;
}

.toggle-btn.annual {
    background: var(--purple);
    border-color: var(--purple);
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-btn.annual .toggle-thumb {
    left: calc(100% - 22px);
    background: #fff;
}

/* Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 2.5rem;
    align-items: start;
}

/* Cards */
.price-card {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.price-card-popular {
    border-color: var(--purple-light);
    background: linear-gradient(160deg, rgba(124, 58, 237, 0.12) 0%, var(--card-bg) 60%);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.2);
}

.price-card-lifetime {
    border-color: var(--yellow);
    background: linear-gradient(160deg, rgba(251, 191, 36, 0.08) 0%, var(--card-bg) 60%);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* Price display */
.price-icon {
    font-size: 2.4rem;
}

.price-tier {
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0.2rem 0;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.price-num {
    font-family: 'Baloo 2', cursive;
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    transition: all 0.3s;
}

.price-period {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.price-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -0.3rem;
}

/* Features */
.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.price-features li {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 600;
}

.price-features li.muted {
    color: var(--text-muted);
}

/* Buttons */
.price-btn {
    width: 100%;
    justify-content: center;
}

.btn-lifetime {
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    color: var(--navy);
    font-weight: 800;
}

.btn-lifetime:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

.price-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: -0.5rem;
}

.nav-link-cta {
    color: var(--yellow) !important;
}

/* Guarantee */
.pricing-guarantee {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(34, 197, 94, 0.07);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius);
    padding: 1.2rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.pricing-guarantee span {
    font-size: 2rem;
    flex-shrink: 0;
}

.pricing-guarantee strong {
    color: #fff;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.2rem;
}

.pricing-guarantee p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

@media (max-width: 860px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--navy);
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 3px;
}

/* ============ AUTH ============ */
#nav-auth-area {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-user-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(167, 139, 250, 0.12);
    border: 1.5px solid var(--card-border);
    border-radius: 999px;
    padding: 0.3rem 1rem 0.3rem 0.4rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-light);
}

.nav-user-pill:hover {
    background: rgba(167, 139, 250, 0.22);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-avatar-initial {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
}

.nav-username {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--navy2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    min-width: 200px;
    padding: 0.8rem;
    z-index: 200;
    box-shadow: var(--shadow-card);
    animation: slideUp 0.2s ease;
}

.user-menu-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 0.4rem 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-warning {
    font-size: 0.75rem;
    color: var(--yellow);
    padding: 0.3rem 0.4rem;
    background: rgba(251, 191, 36, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 0.4rem;
}

.user-menu-sep {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 0.4rem 0;
}

.user-menu-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-light);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.5rem 0.4rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.user-menu-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.auth-modal-inner {
    max-width: 440px;
    padding: 2rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.auth-logo-text {
    font-family: 'Baloo 2', cursive;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-light), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-tabs {
    display: flex;
    background: rgba(167, 139, 250, 0.08);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

.social-btns {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px solid var(--card-border);
}

.social-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.social-google {
    background: #fff;
    color: #1f1f1f;
}

.social-google:hover:not(:disabled) {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.social-facebook {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.social-facebook:hover:not(:disabled) {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.4);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.auth-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.auth-field input {
    background: rgba(167, 139, 250, 0.07);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    color: var(--text-light);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    outline: none;
}

.auth-field input:focus {
    border-color: var(--purple-light);
}

.auth-field input::placeholder {
    color: var(--text-muted);
}

.auth-submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.auth-forgot {
    background: none;
    border: none;
    color: var(--purple-light);
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.8rem;
    display: block;
}

.auth-forgot:hover {
    text-decoration: underline;
}

.auth-error {
    color: #f87171;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.5rem;
}

.auth-terms {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.8rem;
}

.auth-terms a {
    color: var(--purple-light);
}

.verification-banner {
    text-align: center;
    padding: 1.5rem 1rem;
}

.vb-icon {
    font-size: 3.5rem;
    margin-bottom: 0.8rem;
}

.verification-banner h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.verification-banner p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.verification-banner a {
    color: var(--purple-light);
}

.firebase-config-note {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: var(--yellow);
}

.firebase-config-note code {
    background: rgba(251, 191, 36, 0.15);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-size: 0.78rem;
}

/* ─── CHATBOT ─────────────────────────────────────────────── */
.chat-window.chat-minimized .chat-messages,
.chat-window.chat-minimized .chat-quick-replies,
.chat-window.chat-minimized .chat-input-row {
    display: none !important;
}

.chat-window.chat-minimized {
    max-height: none;
    border-radius: 1rem;
}

.chat-window.chat-minimized .chat-header {
    border-radius: 1rem;
}

/* Restore icon — shown when chat is dismissed */
.chat-restore-icon {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9001;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    padding: 10px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.55);
    animation: chat-pulse 2.5s ease-in-out infinite;
    transition: transform 0.2s;
}

.chat-restore-icon:hover {
    transform: scale(1.12);
}

/* Drag handle dot grid */
.chat-drag-handle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 2px;
    cursor: grab;
    user-select: none;
    letter-spacing: -1px;
}

/* chat-header grab cursor */
.chat-header {
    cursor: grab;
}

.chat-header:active {
    cursor: grabbing;
}

/* chat-main inner wrapper */
.chat-main-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}


.chat-dismiss-x {
    background: rgba(0, 0, 0, 0.35);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 4px;
}

.chat-dismiss-x:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.chat-wrapper {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

/* Floating toggle button */
.chat-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.25rem 0.75rem 0.9rem;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    animation: chat-pulse 2.5s ease-in-out infinite;
}

.chat-toggle:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.65);
}

.chat-toggle.chat-open {
    animation: none;
    background: linear-gradient(135deg, #5b21b6, #be185d);
}

.chat-toggle-icon {
    font-size: 1.35rem;
}

.chat-toggle-label {
    font-size: 0.9rem;
}

.chat-unread {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
}

@keyframes chat-pulse {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
    }

    50% {
        box-shadow: 0 8px 48px rgba(236, 72, 153, 0.7);
    }
}

/* Chat window */
.chat-window {
    width: 360px;
    max-width: calc(100vw - 2rem);
    background: var(--surface);
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 520px;
    animation: chat-open-anim 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom right;
}

@keyframes chat-open-anim {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header */
.chat-header {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-avatar {
    font-size: 1.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-info {
    flex: 1;
}

.chat-header-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

.chat-header-status {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Messages area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 280px;
    scrollbar-width: thin;
}

.chat-msg {
    display: flex;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s;
}

.chat-msg.visible {
    opacity: 1;
    transform: none;
}

.chat-msg-bot {
    justify-content: flex-start;
}

.chat-msg-user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.6rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
}

.chat-bubble-bot {
    background: var(--card-bg);
    color: var(--text);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

.chat-bubble-bot code {
    background: rgba(124, 58, 237, 0.15);
    border-radius: 4px;
    padding: 0.1em 0.35em;
    font-size: 0.82em;
    font-family: monospace;
    color: var(--purple-light);
}

.chat-bubble-user {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.typing-indicator .chat-bubble {
    padding: 0.65rem 1rem;
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dot {
    width: 7px;
    height: 7px;
    background: var(--purple-light);
    border-radius: 50%;
    animation: typing-bounce 1.2s ease-in-out infinite;
    display: inline-block;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }
}

/* Quick replies */
.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-top: 1px solid var(--border);
    max-height: 72px;
    overflow-y: auto;
}

.quick-reply-btn {
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--purple-light);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.quick-reply-btn:hover {
    background: rgba(124, 58, 237, 0.25);
    transform: translateY(-1px);
}

/* Input row */
.chat-input-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.chat-input {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: var(--purple);
}

.chat-send-btn {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, opacity 0.15s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .chat-wrapper {
        bottom: 1rem;
        right: 1rem;
    }

    .chat-window {
        width: calc(100vw - 2rem);
        max-height: 420px;
    }

    .chat-toggle-label {
        display: none;
    }

    .chat-toggle {
        padding: 0.75rem;
    }
}