:root {
    --primary: #152238;
    --primary-dark: #0B1426;
    --secondary: #F97316;
    --accent: #F97316;
    --yellow: #F59E0B;
    --orange: #F97316;
    --green: #10B981;
    --purple: #1A2942;
    --bg: #F3F2EF;
    --white: #FFFFFF;
    --text: #0B1426;
    --text-light: #64748B;
    --shadow: 0 4px 20px rgba(21, 34, 56, 0.12);
    --shadow-lg: 0 8px 40px rgba(21, 34, 56, 0.16);
    --radius: 20px;
    --radius-sm: 12px;
    --font: 'Tajawal', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background shapes */
.bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 10%;
    left: -80px;
    animation-delay: -3s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 40%;
    left: 60%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Navbar — see premium.css for full responsive nav */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
}

.logo-text strong {
    color: var(--primary);
}

/* Main content */
.main-content {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero-mascot {
    animation: wave 2s ease-in-out infinite;
    display: inline-flex;
    margin-bottom: 0.5rem;
}

.hero-mascot .icon-box {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(21, 34, 56, 0.12), rgba(249, 115, 22, 0.12));
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 1rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
/* Icon system */
.icon-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--icon-color, var(--primary)) 12%, white);
    color: var(--icon-color, var(--primary));
}

.icon-box-lg {
    width: 72px;
    height: 72px;
    border-radius: 20px;
}

.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.icon-star {
    color: #FFD93D;
    fill: #FFD93D;
}

.icon-text span {
    line-height: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
}

/* Section */
.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Age cards */
.age-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.age-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.age-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--card-color, var(--primary));
}

.age-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--card-color, var(--primary));
}

.age-card .icon {
    margin-bottom: 1rem;
    display: block;
}

.age-card .icon-box {
    width: 72px;
    height: 72px;
    border-radius: 20px;
}

.age-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.age-card .range {
    color: var(--card-color, var(--primary));
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.age-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Subject cards */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}

.subject-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: 2px solid transparent;
}

.subject-card:hover {
    transform: scale(1.05);
    border-color: var(--card-color, var(--primary));
}

.subject-card .icon {
    margin-bottom: 0.75rem;
    display: block;
}

.subject-card h4 {
    font-size: 1rem;
    font-weight: 700;
}

/* Feature cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.feature-card .icon {
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Stats bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    color: white;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

.stat-item .label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Page header */
.page-header {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Lesson / Game cards */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding-bottom: 3rem;
}

.content-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.content-card-header {
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-alt {
    background: rgba(255,255,255,0.5);
}

.text-muted {
    color: var(--text-light);
}

.card-heading {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-text {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.empty-text {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

.content-card-body {
    padding: 1.5rem;
}

.content-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.content-card-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.content-card-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-easy { background: #D4EDDA; color: #155724; }
.badge-medium { background: #FFF3CD; color: #856404; }
.badge-hard { background: #F8D7DA; color: #721C24; }

/* Interactive lesson area */
.lesson-area {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    min-height: 400px;
}

.lesson-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* Quiz */
.quiz-question {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-question h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.quiz-display {
    font-size: 4rem;
    margin: 1.5rem 0;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.quiz-option {
    padding: 1.25rem;
    border: 3px solid #E2E8F0;
    border-radius: var(--radius-sm);
    background: white;
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: #F0F4FF;
    transform: scale(1.05);
}

.quiz-option.correct {
    border-color: var(--green);
    background: #D4EDDA;
    animation: pop 0.5s ease;
}

.quiz-option.wrong {
    border-color: #E53E3E;
    background: #FED7D7;
    animation: shake 0.5s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Score display */
.score-display {
    text-align: center;
    padding: 2rem;
}

.score-display .score-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.score-display h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stars {
    font-size: 2.5rem;
    margin: 1rem 0;
    letter-spacing: 0.5rem;
}

/* Profile */
.profile-card {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    cursor: pointer;
    transition: transform 0.3s;
    color: white;
}

.profile-avatar .icon-box {
    background: transparent;
    color: white;
    width: 56px;
    height: 56px;
}

.profile-avatar:hover {
    transform: scale(1.1);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    text-align: right;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.achievement {
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: #F7FAFC;
    transition: all 0.3s;
}

.achievement.unlocked {
    background: linear-gradient(135deg, #FFF9DB, #FFE066);
    transform: scale(1);
}

.achievement.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

.achievement .icon .icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin: 0 auto;
}

.achievement .name {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

/* Story reader */
.story-reader {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.story-illustration {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.story-illustration .icon-box {
    width: 120px;
    height: 120px;
    border-radius: 28px;
}

.loading-text {
    text-align: center;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.game-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.icon-svg.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

.stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.score-display .score-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.story-text {
    font-size: 1.3rem;
    line-height: 2;
    text-align: center;
    color: var(--text);
}

.story-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Color game */
.color-palette {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.color-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
}

.color-btn:hover {
    transform: scale(1.15);
}

.color-btn.selected {
    border-color: var(--text);
    transform: scale(1.2);
}

/* Alphabet grid */
.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
}

.letter-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    border: 3px solid #E2E8F0;
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font);
}

.letter-btn:hover,
.letter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Filter tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-tab {
    padding: 0.6rem 1.5rem;
    border: 2px solid #E2E8F0;
    border-radius: 50px;
    background: white;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.4s ease;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.footer-premium {
    background: linear-gradient(180deg, #F3F2EF 0%, #E8E6E1 100%);
    padding: 0 0 1.5rem;
    overflow: hidden;
}

.footer-wave {
    height: 4px;
    background: linear-gradient(90deg, #152238, #F97316, #0EA5E9, #152238);
    background-size: 300% 100%;
    animation: footerGradient 6s ease infinite;
}

@keyframes footerGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(21, 34, 56, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1.25rem;
    transition: opacity 0.2s;
}

.footer-logo:hover { opacity: 0.85; }

.footer-logo-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(21, 34, 56, 0.15);
}

.footer-logo-icon .mascot-svg {
    width: 52px;
    height: 52px;
}

.footer-brand strong {
    display: block;
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
    max-width: 280px;
}

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: white;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4A5568;
    border: 1px solid rgba(21, 34, 56, 0.1);
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1A202C;
    margin: 0 0 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #4A5568;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.5rem;
}

.footer-copy,
.footer-made {
    color: var(--text-light);
    font-size: 0.82rem;
    margin: 0;
}

.footer-made {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #A0AEC0;
}

/* Legacy footer compat */
.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.child-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.child-card:hover {
    border-color: rgba(21, 34, 56, 0.2);
}

.child-avatar {
    margin-bottom: 0.75rem;
}

.child-info h3 {
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
}

.child-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.child-stats {
    display: flex;
    gap: 1.25rem;
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid #EDF2F7;
    border-bottom: 1px solid #EDF2F7;
}

.child-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.child-stat small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-light);
}

.child-badges {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFF9DB;
    color: #D69E2E;
}

.badge-count, .no-badges {
    font-size: 0.8rem;
    color: var(--text-light);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state h3 {
    margin: 1rem 0 0.5rem;
}

.empty-state p {
    color: var(--text-light);
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.avatar-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.avatar-option {
    cursor: pointer;
}

.avatar-option input {
    display: none;
}

.avatar-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid #E2E8F0;
    color: var(--text-light);
    transition: all 0.2s;
}

.avatar-option input:checked + span {
    border-color: var(--primary);
    background: rgba(21, 34, 56, 0.1);
    color: var(--primary);
}

.child-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.child-select-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: 2px solid #E2E8F0;
    border-radius: 50px;
    background: white;
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.child-select-btn.active,
.child-select-btn:hover {
    border-color: var(--primary);
    background: rgba(21, 34, 56, 0.08);
    color: var(--primary);
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 2.5rem 0 2rem;
    }

    .stats-bar {
        gap: 1.5rem;
    }

    .stat-item .number {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
