:root {
    --color-brand-primary: #ec4899;
    --color-brand-primary-rgb: 236, 72, 153;
    --color-brand-secondary: #6366f1;
    --color-brand-accent: #667eea;
    --color-brand-accent-light: #FBB6CE;
    
    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    
    --color-bg-body: #f8fafc;
    --color-bg-surface: #ffffff;
    --color-border: #e2e8f0;
    
    --color-success: #10b981;
    --color-success-rgb: 16, 185, 129;
    --color-success-light: #f0fff4;
    
    --color-error: #ef4444;
    --color-error-light: #fff5f5;
    
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    
    /* Kid Palette */
    --color-kid-primary: #FFD93D;
    --color-kid-secondary: #6BCB77;
    --color-kid-accent: #FF6B6B;
    --color-kid-info: #4D96FF;
    
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    
    --font-sans: 'Nunito', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --font-display: 'ZCOOL KuaiLe', cursive, sans-serif;

    /* Spacing System */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* Education Module Colors */
/* Yuwen Colors */
--color-yuwen-1: #FF9A9E; /* Pinyin - Pink */
--color-yuwen-2: #4FACFE; /* Shizi - Blue */
--color-yuwen-3: #43E97B; /* Ciyu - Green */
--color-yuwen-4: #FA709A; /* Juzi - Rose */
--color-yuwen-5: #FEE140; /* Kouyu - Yellow */
--color-yuwen-6: #A18CD1; /* Xiguan - Purple */

/* Math Colors */
    --color-math-1: #4D96FF; /* Blue */
    --color-math-2: #6BCB77; /* Green */
    --color-math-3: #FFD93D; /* Yellow */
    --color-math-4: #FF6B6B; /* Red */
    --color-math-5: #9D4EDD; /* Purple */
    --color-math-6: #FF9F43; /* Orange */
    --color-math-7: #0ABde3; /* Cyan */

    /* English Colors */
    --color-eng-1: #FF9A9E; /* Greetings */
    --color-eng-2: #4FACFE; /* Numbers */
    --color-eng-3: #43E97B; /* Colors */
    --color-eng-4: #FA709A; /* Family */
    --color-eng-5: #FEE140; /* Body */
    --color-eng-6: #A18CD1; /* Animals */
}
/* =========================================
   Batch 23: Components Fixes (Images & Layouts)
   ========================================= */
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.user-avatar-sm { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.testimonial-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-right: 15px; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-right: 15px; }
.product-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.cart-img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-md); cursor: pointer; }
.gallery-item img { width: 100%; height: 150px; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-icon { color: white; font-size: 1.5rem; }

/* Global image safety: do not let any single image exceed viewport height */
img {
    max-height: 80vh;
}

.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: 1rem; }
.carousel-item { flex: 0 0 80%; scroll-snap-align: center; position: relative; border-radius: var(--radius-lg); overflow: hidden; display: block; }
.carousel-item img { width: 100%; height: 250px; object-fit: cover; }
.carousel-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: white; }

.rounded { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }

/* Size Utilities (px-based) */
.w-1px { width: 1px; }
.w-12px { width: 12px; }
.w-100 { width: 100%; }
.w-20px { width: 20px; }
.w-24px { width: 24px; }
.w-30px { width: 30px; }
.w-32px { width: 32px; }
.w-40px { width: 40px; }
.w-60px { width: 60px; }
.w-80px { width: 80px; }
.w-100px { width: 100px; }
.w-200px { width: 200px; }
.w-300px { width: 300px; }
.w-80 { width: 80px; }
.w-150 { width: 150px; }
.w-3rem { width: 3rem; }

.h-20px { height: 20px; }
.h-24px { height: 24px; }
.h-30px { height: 30px; }
.h-40px { height: 40px; }
.h-50px { height: 50px; }
.h-60px { height: 60px; }
.h-80px { height: 80px; }
.h-100px { height: 100px; }
.h-120px { height: 120px; }
.h-150px { height: 150px; }
.h-200px { height: 200px; }
.h-300px { height: 300px; }
.h-80 { height: 80px; }
.h-150 { height: 150px; }
.h-3rem { height: 3rem; }

.h-space-1 { height: var(--space-1); }
.h-space-2 { height: var(--space-2); }
.h-space-3 { height: var(--space-3); }
.h-space-4 { height: var(--space-4); }
.h-space-5 { height: var(--space-5); }
.h-space-6 { height: var(--space-6); }
.h-space-8 { height: var(--space-8); }
.h-space-10 { height: var(--space-10); }
.h-space-12 { height: var(--space-12); }

.object-fit-contain { object-fit: contain; }
.object-fit-cover { object-fit: cover; }
.d-block { display: block; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.align-items-start { align-items: flex-start; }
.fw-bold { font-weight: 700; }
.flex-column { flex-direction: column; }
.gap-30px { gap: 30px; }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.gap-10px { gap: 10px; }
.gap-20px { gap: 20px; }
.grid-cols-auto-fit-180 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid-cols-auto-fit-250 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-cols-auto-fit-300 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.mt-10px { margin-top: 10px; }
.mt-5px { margin-top: 5px; }
.mt-15px { margin-top: 15px; }
.mb-10px { margin-bottom: 10px; }
.mb-15px { margin-bottom: 15px; }
.mb-5px { margin-bottom: 5px; }
.mb-20px { margin-bottom: 20px; }
.mb-40px { margin-bottom: 40px; }
.pb-3 { padding-bottom: 0.75rem; }
.pl-15px { padding-left: 15px; }
.pl-20px { padding-left: 20px; }
.border { border: 1px solid var(--color-border); }
.border-bottom { border-bottom: 1px solid var(--color-border); }
.z-0 { z-index: 0; }
.top-10px { top: 10px; }
.top-30px { top: 30px; }
.top-50px { top: 50px; }
.top-70px { top: 70px; }
.left-15p { left: 15%; }
.left-30p { left: 30%; }
.left-45p { left: 45%; }
.left-60p { left: 60%; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.p-30px { padding: 30px; }
.p-4 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.ps-5 { padding-left: 2.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.rounded-md { border-radius: var(--radius-md); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.bg-white { background: #ffffff; }
.start-3 { left: 0.75rem; }
.top-50 { top: 50%; }
.translate-middle-y { transform: translateY(-50%); }
.text-secondary { color: var(--color-brand-secondary); }

.text-muted { color: var(--color-text-muted); }
.text-white { color: #ffffff; }
.text-main { color: var(--color-text-main); }
.text-brand { color: var(--color-brand-primary); }
.text-brand-accent { color: var(--color-brand-accent); }
.text-kid-primary { color: var(--color-kid-primary); }
.text-uppercase { text-transform: uppercase; }
.font-bold { font-weight: 700; }
.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: var(--font-mono); }
.font-serif { font-family: serif; }
.fs-lg { font-size: 1.125rem; }
.fs-xl { font-size: 1.25rem; }
.fs-2xl { font-size: 1.5rem; }
.fs-sm { font-size: 0.875rem; }
.fs-xs { font-size: 0.75rem; }
.opacity-90 { opacity: 0.9; }
.opacity-80 { opacity: 0.8; }
.fst-italic { font-style: italic; }
.text-justify { text-align: justify; }

.bg-brand-primary { background: var(--color-brand-primary); }
.bg-brand-secondary { background: var(--color-brand-secondary); }
.bg-brand-accent { background: var(--color-brand-accent); }
.bg-brand-accent-light { background: var(--color-brand-accent-light); }
.bg-primary { background: var(--color-brand-primary); }
.bg-secondary { background: var(--color-brand-secondary); }
.bg-accent { background: var(--color-brand-accent); }
.bg-success { background: var(--color-success); }
.bg-success-light { background: var(--color-success-light); }
.bg-error { background: var(--color-error); }
.bg-error-light { background: var(--color-error-light); }
.bg-warning { background: var(--color-warning); }
.bg-info { background: var(--color-info); }
.bg-text-main { background: var(--color-text-main); }
.bg-text-muted { background: var(--color-text-muted); }
.bg-text-light { background: var(--color-text-light); }
.bg-body { background: var(--color-bg-body); }
.bg-border { background: var(--color-border); }
.bg-surface { background: var(--color-bg-surface); }
.bg-paper { background: #ffffff; border: 1px solid var(--color-border); }
.bg-kid-primary { background: var(--color-kid-primary); }
.bg-kid-secondary { background: var(--color-kid-secondary); }
.bg-kid-accent { background: var(--color-kid-accent); }
.bg-kid-info { background: var(--color-kid-info); }
.bg-white-15 { background: rgba(255, 255, 255, 0.15); }
.bg-gradient-brand { background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary)); }
.bg-gradient-sunny { background: linear-gradient(135deg, #fde047, #fb7185); }
.bg-gradient-fresh { background: linear-gradient(135deg, #34d399, #60a5fa); }
.tracking-tight { letter-spacing: -0.05em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.1em; }
.tracking-widest { letter-spacing: 0.2em; }
.lh-12 { line-height: 1.2; }
.lh-16 { line-height: 1.6; }
.lh-20 { line-height: 2; }
.list-pl-20 { padding-left: 20px; }
.writing-vertical { writing-mode: vertical-rl; text-orientation: upright; }
.lang-toggle { display: flex; gap: 0.5rem; background: var(--color-bg-body); padding: 0.35rem; border-radius: 999px; border: 1px solid var(--color-border); }
.toggle-btn { border: none; background: transparent; padding: 0.35rem 0.9rem; border-radius: 999px; font-weight: 700; color: var(--color-text-muted); cursor: pointer; transition: all 0.2s; }
.toggle-btn.active { background: white; color: var(--color-brand-primary); box-shadow: var(--shadow-sm); }
.code-block { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: var(--radius-md); overflow-x: auto; }
.code-block code { color: inherit; }
.type-scale-row { display: flex; align-items: center; gap: 2rem; padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.type-scale-row:last-child { border-bottom: none; }
.type-meta { width: 160px; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; }
.type-preview { flex: 1; }

.border-l-4-brand { border-left: 4px solid var(--color-brand-primary); }

.color-card { background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; }
.color-card-large { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.color-card .color-swatch { height: 110px; }
.color-var { font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-text-muted); }

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
body { margin: 0; font-family: var(--font-sans); color: var(--color-text-main); background: var(--color-bg-body); line-height: 1.5; display: flex; flex-direction: column; min-height: 100vh; }
.text-accent { color: var(--color-brand-accent); }
.en-only { display: none; }
.cn-only { display: none; }
.lang-cn .cn-only { display: block; }
.lang-en .en-only { display: block; }

h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
a { color: var(--color-brand-primary); text-decoration: none; }

/* Layout */
.guide-layout { display: flex; min-height: 100vh; }
.guide-sidebar { width: 250px; background: var(--color-bg-surface); border-right: 1px solid var(--color-border); padding: 2rem 1rem; position: fixed; height: 100vh; overflow-y: auto; }
.guide-content { margin-left: 250px; flex: 1; padding: 3rem; max-width: 1200px; }
.guide-section { margin-bottom: 4rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.guide-section:first-of-type { border-top: none; }
.example-box { background: var(--color-bg-surface); padding: 2rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); margin: 1rem 0 2rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.hero-banner { background: #f1f5f9; border: 1px solid #dbe3ee; border-radius: var(--radius-lg); padding: 2.5rem; text-align: center; box-shadow: none; position: relative; overflow: hidden; }
.hero-logo { width: 96px; height: 96px; max-width: 100%; object-fit: contain; margin-bottom: 1rem; }
.hero-banner img { max-height: 120px; }
.guide-section img { max-height: 160px; }
.guide-overview .hero-logo { width: 64px; height: 64px; }
.guide-overview .hero-banner img { max-height: 72px; }
.guide-overview .overview-mascot { width: 48px; height: 48px; object-fit: contain; }
.guide-overview .guide-section img { max-height: 120px; }
.guide-overview .hero-banner { text-align: center; padding: 2.5rem; margin-bottom: 2.5rem; background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary)); border: 1px solid #5b6ac7; color: #ffffff; }
.guide-overview .hero-logo { filter: drop-shadow(0 8px 16px rgba(255, 255, 255, 0.35)); animation: hero-breathe 3s ease-in-out infinite; }
.guide-overview .hero-label { letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.guide-overview .hero-title { font-size: 2.4rem; margin-bottom: 0.5rem; color: #ffffff; }
.guide-overview .hero-lead { max-width: 720px; margin: 0.75rem auto 1.5rem; color: rgba(255, 255, 255, 0.9); }
.guide-overview .hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.guide-overview .hero-meta { justify-content: center; }
.guide-overview .hero-meta .badge { background: rgba(255, 255, 255, 0.85); color: #1f2937; }

@keyframes hero-breathe {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
}
.guide-overview .overview-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.guide-overview .overview-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.guide-overview .overview-resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }

/* =========================================
   Overview Page - Enhanced Styles
   ========================================= */

/* Overview Hero Banner */
.overview-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 20%,
        #f093fb 50%,
        #f5576c 80%,
        #ffd93d 100%);
    background-size: 400% 400%;
    animation: heroGradient 10s ease infinite;
    padding: 4rem 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    color: white;
}

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

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.overview-hero .hero-logo {
    filter: drop-shadow(0 8px 16px rgba(255,255,255,0.3));
    animation: floatLogo 3s ease-in-out infinite;
}

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

.overview-hero .hero-label {
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 1rem;
}

.overview-hero .hero-title {
    font-size: 3rem;
    margin: 0.5rem 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.overview-hero .hero-lead {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    color: rgba(255,255,255,0.95);
    font-size: 1.15rem;
    line-height: 1.6;
}

.overview-hero .hero-meta {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-badge {
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

/* Section Header Row */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.version-badge {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--color-success), #34d399);
    color: white;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.status-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.status-card .status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.status-card.stable .status-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.status-card.review .status-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.status-card.new .status-icon {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
}

.status-content {
    flex: 1;
}

.status-content h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.status-content p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.status-label {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.status-card.stable .status-label {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.status-card.review .status-label {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.status-card.new .status-label {
    background: rgba(236, 72, 153, 0.1);
    color: var(--color-brand-primary);
}

.status-date {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-family: var(--font-mono);
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.principle-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.principle-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
}

.principle-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.principle-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Glance Grid */
.glance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.glance-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.glance-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.glance-visual {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.glance-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

.color-dots {
    display: flex;
    gap: -8px;
    z-index: 1;
}

.color-dots span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-left: -8px;
}

.color-dots span:first-child {
    margin-left: 0;
}

.token-preview {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    z-index: 1;
}

.token-box {
    background: white;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 4px;
}

.token-box.sm { width: 20px; height: 20px; }
.token-box.md { width: 30px; height: 30px; }
.token-box.lg { width: 40px; height: 40px; }

.component-preview {
    z-index: 1;
}

.preview-btn {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.glance-mascot {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    z-index: 1;
    animation: mascotBounce 2s ease-in-out infinite;
}

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

.animation-preview {
    z-index: 1;
}

.anim-star {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    animation: starPulse 1.5s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.glance-content {
    padding: 1rem;
}

.glance-content h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.glance-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.resource-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.resource-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.3);
}

.resource-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.resource-icon.figma {
    background: linear-gradient(135deg, #f24e1e, #ff7262);
}

.resource-icon.github {
    background: linear-gradient(135deg, #24292e, #586069);
}

.resource-icon.vscode {
    background: linear-gradient(135deg, #007acc, #1f9cf0);
}

.resource-info {
    flex: 1;
}

.resource-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.resource-info p {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.resource-arrow {
    color: var(--color-text-light);
    transition: all 0.3s;
}

.resource-card:hover .resource-arrow {
    color: var(--color-brand-primary);
    transform: translate(3px, -3px);
}

/* Quick Start Section Enhancement */
#quick-start .code-block {
    margin-top: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media (max-width: 768px) {
    .overview-hero {
        padding: 2.5rem 1.5rem;
    }
    
    .overview-hero .hero-title {
        font-size: 2rem;
    }
    
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .status-grid,
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

.guide-tokens .guide-header { margin-bottom: 2.5rem; }
.guide-tokens .tokens-hero { text-align: left; background: linear-gradient(135deg, #f1f5ff, #ffe7f3); border: 1px solid #d7e1f0; }
.guide-tokens .tokens-hero-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.guide-tokens .tokens-hero-logo { width: 64px; height: 64px; margin-bottom: 0; }
.guide-tokens .hero-title { font-size: 2.4rem; margin-bottom: 0.5rem; }
.guide-tokens .hero-lead { max-width: 720px; margin: 0 0 1.25rem; color: var(--color-text-muted); font-size: 1.1rem; }
.guide-tokens .tokens-hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.guide-tokens .tokens-hero-meta .tag { background: #ffffff; border-color: #d9e1f0; font-weight: 700; }
.guide-tokens .section-intro { color: var(--color-text-muted); margin: 0 0 1.5rem; }
.guide-tokens .token-panel { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.guide-tokens .token-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: #ffffff; }
.guide-tokens .token-grid { gap: 1.5rem; justify-content: space-between; }
.guide-tokens .token-item { min-width: 64px; }
.guide-tokens .radius-row { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: 0.5rem; }
.guide-tokens .radius-row .token-card { min-width: 160px; flex: 0 0 auto; }
.guide-tokens .z-demo { background: var(--color-bg-body); }
.guide-tokens .z-layer { flex-direction: column; gap: 0.2rem; text-align: center; }
.guide-tokens .z-title { font-size: 0.75rem; letter-spacing: 0.02em; }
.guide-tokens .z-value { font-size: 0.7rem; font-family: var(--font-mono); opacity: 0.8; }

.overview-banner {
    background: #e7eef8;
    border: 1px solid #c6d4e6;
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.overview-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08));
    pointer-events: none;
}
.overview-banner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--color-brand-secondary), var(--color-brand-primary));
}
.overview-banner h2 { margin-bottom: 0.5rem; position: relative; z-index: 1; }
.overview-banner p { max-width: 760px; color: var(--color-text-muted); position: relative; z-index: 1; }

.guide-overview .badge-warning {
    background: #e2e8f0;
    color: #1f2937;
}

.category-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.category-title { font-weight: 800; font-size: 1.1rem; }
.category-count { color: var(--color-text-muted); font-size: 0.85rem; }

/* Mascot Hero Banner - Colorful Gradient */
.mascot-hero-banner {
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #f5576c 75%, 
        #ffd93d 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    position: relative;
}

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

.mascot-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.08) 0%, transparent 30%);
    pointer-events: none;
}

.mascot-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.03) 10px,
        rgba(255,255,255,0.03) 20px
    );
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Mascot Overview Grid - 2x2 or 1x4 */
.mascot-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .mascot-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
    }
}

@media (max-width: 640px) {
    .mascot-overview-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

.mascot-intro-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.mascot-intro-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.mascot-intro-header {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mascot-intro-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

.mascot-intro-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
}

.mascot-intro-card:hover .mascot-intro-img {
    transform: scale(1.1) rotate(-5deg);
}

.mascot-intro-body {
    padding: 1.25rem;
    text-align: center;
}

.mascot-intro-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--color-text-main);
}

.mascot-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-brand-primary);
    margin-bottom: 0.5rem;
}

.mascot-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.mascot-stats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.mascot-stat {
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-body);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

/* Professional Mascot Category Styles */
.section-header {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    background: white;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: var(--color-brand-primary);
    color: var(--color-brand-primary);
}

.filter-tab.active {
    background: var(--color-brand-primary);
    border-color: var(--color-brand-primary);
    color: white;
}

.mascot-category {
    margin-bottom: 3rem;
}

.category-header-professional {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin: 0;
}

.category-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.category-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-tag {
    padding: 0.35rem 0.75rem;
    background: var(--color-bg-body);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.asset-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.asset-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.3);
}

.asset-card.hidden {
    display: none;
}

.asset-preview {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.asset-image {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.asset-card:hover .asset-image {
    transform: scale(1.05);
}

.asset-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.asset-card:hover .asset-overlay {
    opacity: 1;
}

.asset-download {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    transition: all 0.2s;
}

.asset-download:hover {
    background: var(--color-brand-primary);
    color: white;
    transform: scale(1.1);
}

.asset-info {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
}

.asset-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-main);
    margin-bottom: 0.25rem;
}

.asset-usage {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.asset-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.asset-tag {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.asset-tag.expression {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-brand-secondary);
}

.asset-tag.action {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.asset-tag.scene {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

@media (max-width: 768px) {
    .category-header-professional {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .category-tags {
        width: 100%;
    }

    .assets-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
.icon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; }
.icon-card, .mascot-icon-card { background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 0.75rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; text-align: center; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; min-height: 92px; }
.icon-card:hover, .mascot-icon-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: rgba(99, 102, 241, 0.35); }
.icon-display { font-size: 1.6rem; color: var(--color-text-main); line-height: 1; }
.mascot-img { width: 56px; height: 56px; object-fit: contain; }
.icon-name { font-size: 0.8rem; color: var(--color-text-muted); word-break: break-word; }
.style-buttons { flex-wrap: wrap; }
.btn-style { border: 1px solid var(--color-border); background: white; color: var(--color-text-main); border-radius: 999px; padding: 0.35rem 0.75rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.btn-style.active { border-color: var(--color-brand-primary); color: var(--color-brand-primary); background: rgba(99, 102, 241, 0.08); }

/* Sidebar Navigation */
.guide-logo { max-width: 100%; height: auto; display: block; margin: 0 auto 1.5rem; }
.guide-nav-title { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: var(--color-text-light); margin: 1.5rem 0 0.5rem; letter-spacing: 0.05em; }
.guide-nav-link { display: block; padding: 0.4rem 0.5rem; color: var(--color-text-muted); font-size: 0.95rem; transition: all 0.2s; border-radius: var(--radius-sm); margin-bottom: 2px; }
.guide-nav-link:hover { color: var(--color-brand-primary); background: var(--color-bg-body); }
.guide-nav-link.active { color: var(--color-brand-primary); font-weight: 700; background: rgba(99, 102, 241, 0.1); }

/* Color Swatches */
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.color-swatch { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.color-preview { height: 100px; width: 100%; }
.color-info { padding: 1rem; background: white; }
.color-name { font-weight: 700; display: block; margin-bottom: 0.25rem; }
.color-hex { font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-text-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; border-radius: var(--radius-md); font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; gap: 0.5rem; font-family: inherit; font-size: 1rem; }
.btn-primary { background: var(--color-brand-primary); color: white; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary { background: white; border-color: var(--color-border); color: var(--color-text-main); }
.btn-secondary:hover { background: var(--color-bg-body); }
.btn-ghost { background: transparent; color: var(--color-brand-primary); }
.btn-ghost:hover { background: rgba(99, 102, 241, 0.1); }
.btn-link { background: transparent; color: var(--color-brand-primary); text-decoration: underline; padding: 0; }
.btn-soft-primary { background: rgba(99, 102, 241, 0.1); color: var(--color-brand-primary); }
.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.875rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.125rem; }
.btn-icon { padding: 0.5rem; border-radius: 50%; width: 40px; height: 40px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 700; font-size: 0.875rem; }
.form-control { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-family: inherit; font-size: 1rem; transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--color-brand-primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
.form-control.ps-5 { padding-left: 2.5rem; }
.input-group { position: relative; display: flex; align-items: center; }
.input-icon-left { position: absolute; left: 1rem; color: var(--color-text-muted); pointer-events: none; }
.input-with-icon-left { padding-left: 2.5rem; }
.input-icon-right { position: absolute; right: 1rem; color: var(--color-text-muted); pointer-events: none; }
.input-with-icon-right { padding-right: 2.5rem; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-position: right 1rem center; background-repeat: no-repeat; }

/* Toggles & Checks */
.toggle-switch { display: inline-flex; align-items: center; cursor: pointer; position: relative; }
.toggle-switch input { display: none; }
.toggle-slider { width: 44px; height: 24px; background: var(--color-border); border-radius: 24px; position: relative; transition: 0.3s; }
.toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; background: white; border-radius: 50%; top: 2px; left: 2px; transition: 0.3s; box-shadow: var(--shadow-sm); }
.toggle-switch input:checked + .toggle-slider { background: var(--color-brand-primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.form-check { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; cursor: pointer; }
.form-check-input { width: 1.25rem; height: 1.25rem; margin: 0; }

/* Navigation */
.nav-tabs { display: flex; gap: 1rem; border-bottom: 1px solid var(--color-border); padding: 0; list-style: none; margin-bottom: 1.5rem; }
.nav-link { padding: 0.5rem 1rem; cursor: pointer; border-bottom: 2px solid transparent; color: var(--color-text-muted); font-weight: 600; }
.nav-link.active { color: var(--color-brand-primary); border-bottom-color: var(--color-brand-primary); }
.breadcrumbs { display: flex; gap: 0.5rem; list-style: none; padding: 0; color: var(--color-text-muted); }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 0.5rem; opacity: 0.5; }
.pagination { display: flex; list-style: none; padding: 0; gap: 0.25rem; }
.page-item { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); cursor: pointer; color: var(--color-text-muted); font-weight: 600; }
.page-item:hover { background: var(--color-border); }
.page-item.active { background: var(--color-brand-primary); color: white; }

/* Feedback */
.alert { padding: 1rem; border-radius: var(--radius-md); margin-bottom: 1rem; display: flex; align-items: center; }
.alert-info { background: rgba(59, 130, 246, 0.1); color: #1e40af; }
.alert-success { background: rgba(16, 185, 129, 0.1); color: #065f46; }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: #92400e; }
.alert-error { background: rgba(239, 68, 68, 0.1); color: #991b1b; }
.badge { padding: 0.25rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-pill { border-radius: 99px; }
.badge-primary { background: var(--color-brand-primary); color: white; }
.badge-success { background: var(--color-success); color: white; }
.badge-warning { background: var(--color-warning); color: black; }
.badge-error { background: var(--color-error); color: white; }
.tag { display: inline-flex; align-items: center; background: var(--color-bg-body); border: 1px solid var(--color-border); padding: 0.25rem 0.75rem; border-radius: 99px; gap: 0.5rem; font-size: 0.875rem; margin-right: 0.5rem; }
.spinner { width: 24px; height: 24px; border: 3px solid var(--color-border); border-top-color: var(--color-brand-primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal-overlay.active { display: flex; }
.modal-container { background: white; padding: 2rem; border-radius: var(--radius-lg); width: 100%; max-width: 500px; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-title { margin: 0; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.modal-body { padding: 1rem 0; overflow-y: auto; line-height: 1.8; color: var(--color-text-muted); max-height: 60vh; }
.modal-footer { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; }
.toast-container { position: fixed; bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: 1rem; z-index: 1100; }

/* Data Display */
.avatar-group { display: flex; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid white; object-fit: cover; margin-left: -10px; }
.avatar:first-child { margin-left: 0; }
.accordion-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 0.5rem; overflow: hidden; }
.accordion-header { padding: 1rem; background: white; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.accordion-body { padding: 1rem; border-top: 1px solid var(--color-border); display: none; background: var(--color-bg-body); }
.accordion-item.active .accordion-body { display: block; }
.card { background: white; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.progress { background: var(--color-bg-body); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--color-brand-primary); }

/* Education */
.flashcard { perspective: 1000px; width: 200px; height: 140px; cursor: pointer; }
.flashcard-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.6s; transform-style: preserve-3d; }
.flashcard.flipped .flashcard-inner { transform: rotateY(180deg); }
.flashcard-front, .flashcard-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); border: 2px solid var(--color-border); background: white; font-weight: 700; font-size: 1.2rem; }
.flashcard-back { transform: rotateY(180deg); background: var(--color-bg-body); color: var(--color-brand-primary); }
.quiz-option { padding: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 1rem; cursor: pointer; transition: 0.2s; }
.quiz-option:hover { background: var(--color-bg-body); }
.quiz-option.selected { border-color: var(--color-brand-primary); background: rgba(99, 102, 241, 0.05); }
.quiz-option.correct { border-color: var(--color-success); background: rgba(16, 185, 129, 0.05); }
.quiz-option.wrong { border-color: var(--color-error); background: rgba(239, 68, 68, 0.05); }

/* Education Header & Backgrounds */
.page-header {
    position: relative;
    padding: 3rem 1rem;
    text-align: center;
    color: white;
    background: var(--color-brand-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    overflow: hidden;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Subject Variants */
.page-header.yuwen { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); }
.page-header.math { background: linear-gradient(135deg, #4FACFE 0%, #00f2fe 100%); }
.page-header.english { background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); }

/* Background Icons Animation */
.bg-icon {
    position: absolute;
    font-size: 10rem;
    opacity: 0.1;
    color: white;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.bg-icon.one { top: -20px; left: -20px; animation-delay: 0s; }
.bg-icon.two { bottom: 10px; right: -20px; animation-delay: 2s; }
.bg-icon.three { top: 20px; right: 20%; font-size: 5rem; animation-delay: 4s; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Standard Exam/Quiz List Pattern */
.exam-list { display: flex; flex-direction: column; gap: 1rem; }
.exam-item { background: var(--color-bg-body); padding: 1rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.exam-question { font-weight: 700; margin-bottom: 0.75rem; color: var(--color-text-main); font-size: 1.05rem; }
.exam-answer-wrapper { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.exam-answer { display: none; padding: 0.5rem 1rem; background: var(--color-success-light); color: #065f46; border-radius: var(--radius-sm); border: 1px solid rgba(16, 185, 129, 0.2); width: 100%; }
.exam-answer.show { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* --- New Components Expansion --- */

/* Outline Buttons */
.btn-outline-primary { background: transparent; color: var(--color-brand-primary); border: 2px solid var(--color-brand-primary); }
.btn-outline-primary:hover { background: var(--color-brand-primary); color: white; }

.btn-outline-secondary { background: transparent; color: var(--color-text-muted); border: 2px solid var(--color-text-light); }
.btn-outline-secondary:hover { background: var(--color-text-light); color: white; }

.btn-outline-success { background: transparent; color: var(--color-success); border: 2px solid var(--color-success); }
.btn-outline-success:hover { background: var(--color-success); color: white; }

.btn-outline-error { background: transparent; color: var(--color-error); border: 2px solid var(--color-error); }
.btn-outline-error:hover { background: var(--color-error); color: white; }

/* Social Buttons */
.btn-facebook { background: #3b5998; color: white; }
.btn-twitter { background: #1da1f2; color: white; }
.btn-github { background: #24292e; color: white; }
.btn-google { background: white; color: #757575; border: 1px solid var(--color-border); }

/* Floating Labels */
.form-floating { position: relative; }
.form-floating > .form-control { height: 58px; padding: 1rem 0.75rem; }
.form-floating > label { position: absolute; top: 0; left: 0; height: 100%; padding: 1rem 0.75rem; pointer-events: none; border: 1px solid transparent; transform-origin: 0 0; transition: opacity .1s ease-in-out,transform .1s ease-in-out; opacity: .65; }
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label { opacity: .65; transform: scale(.85) translateY(-0.5rem) translateX(0.15rem); }

/* Range Slider */
.form-range { width: 100%; height: 1.5rem; padding: 0; background-color: transparent; appearance: none; }
.form-range::-webkit-slider-thumb { appearance: none; width: 1rem; height: 1rem; background: var(--color-brand-primary); border: 0; border-radius: 1rem; cursor: pointer; margin-top: -0.25rem; }
.form-range::-webkit-slider-runnable-track { width: 100%; height: 0.5rem; color: transparent; cursor: pointer; background-color: var(--color-border); border-color: transparent; border-radius: 1rem; }

/* Tables */
.table { width: 100%; margin-bottom: 1rem; color: var(--color-text-main); vertical-align: top; border-color: var(--color-border); border-collapse: collapse; }
.table th, .table td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left; }
.table th { font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0,0,0,0.02); }
.table-hover tbody tr:hover { background-color: rgba(0,0,0,0.04); }

/* Timeline */
.timeline { position: relative; padding-left: 30px; border-left: 2px solid var(--color-border); margin: 20px 0; }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-dot { position: absolute; left: -36px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: white; border: 3px solid var(--color-brand-primary); }
.timeline-content { background: white; padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.timeline-date { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 4px; display: block; }

/* Stepper */
.stepper { display: flex; justify-content: space-between; margin-bottom: 30px; position: relative; }
.stepper::before { content: ''; position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: var(--color-border); z-index: 0; }
.step-item { position: relative; z-index: 1; text-align: center; background: var(--color-bg-body); padding: 0 10px; }
.step-circle { width: 32px; height: 32px; border-radius: 50%; background: var(--color-border); color: var(--color-text-muted); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-weight: bold; transition: all 0.3s; }
.step-item.active .step-circle { background: var(--color-brand-primary); color: white; }
.step-item.completed .step-circle { background: var(--color-success); color: white; }
.step-label { font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); }
.step-item.active .step-label { color: var(--color-text-main); }

/* User Profile Card */
.profile-card { text-align: center; position: relative; overflow: hidden; }
.profile-cover { height: 100px; background: linear-gradient(to right, var(--color-brand-primary), var(--color-brand-secondary)); margin: -24px -24px 40px; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 4px solid white; position: absolute; top: 60px; left: 50%; transform: translateX(-50%); box-shadow: var(--shadow-md); }

/* Stats Card */
.stat-card { display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.stat-label { color: var(--color-text-muted); font-size: 0.9rem; }

/* --- Batch 2 Expansion --- */

/* Tooltips (Pure CSS) */
.tooltip { position: relative; display: inline-block; border-bottom: 1px dotted var(--color-text-muted); cursor: help; }
.tooltip .tooltip-text { visibility: hidden; width: 120px; background-color: #333; color: #fff; text-align: center; border-radius: 6px; padding: 5px 0; position: absolute; z-index: 1; bottom: 125%; left: 50%; margin-left: -60px; opacity: 0; transition: opacity 0.3s; font-size: 0.75rem; }
.tooltip .tooltip-text::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #333 transparent transparent transparent; }
.tooltip:hover .tooltip-text { visibility: visible; opacity: 1; }

/* Dropdowns (Static for Demo) */

/* --- Kid Navigation (Unified) --- */
.nav-group {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 100;
}
.nav-item {
    background: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}
.nav-item:hover, .nav-item.active {
    background: white;
    color: var(--color-brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.nav-item i {
    font-size: 1.2rem;
}

@media (max-width: 640px) {
    .nav-group {
        top: 10px;
        right: 10px;
        gap: 6px;
    }
    .nav-item span {
        display: none;
    }
    .nav-item {
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
    .nav-item i {
        font-size: 1.2rem;
        margin: 0;
    }
}

/* --- Education Module (EDU) --- */

/* Page Header */
.page-header {
    text-align: center;
    padding: 60px 20px 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 0 0 50px 50px;
    margin-bottom: -40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--color-text-main);
    text-shadow: 0 2px 4px rgba(255,255,255,0.5);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.header-bg-icon {
    position: absolute;
    font-size: 8rem;
    opacity: 0.15;
    color: white;
    transform: rotate(-15deg);
    z-index: 0;
}
.header-bg-icon.one { top: 10px; left: 20px; }
.header-bg-icon.two { bottom: 20px; right: 20px; font-size: 10rem; }
.header-bg-icon.three { top: 20px; right: 20%; font-size: 5rem; }

/* Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    position: relative;
    z-index: 2;
}

/* Learning Card */
.learning-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.learning-card-header {
    padding: 20px;
    padding-right: 90px; /* Space for buttons */
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--color-text-muted); /* Fallback */
}

.learning-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 0.8em;
    opacity: 0.9;
    display: block;
    font-weight: normal;
    margin-top: 4px;
}

.learning-card-icon {
    font-size: 1.5rem;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.learning-card-body {
    padding: 20px;
    flex-grow: 1;
}

/* Lists */
.learning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.learning-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #edf2f7;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.learning-list li:last-child {
    border-bottom: none;
}

.learning-list li::before {
    content: "•";
    color: #cbd5e0; /* Default, overridden by card color */
    font-weight: bold;
    margin-right: 8px;
    font-size: 1.2em;
    line-height: 1;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-right: 4px;
    margin-bottom: 4px;
    background: #f1f5f9;
}

/* Action Buttons */
.action-btn {
    position: absolute;
    top: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 5;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}

.action-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.check-btn { right: 15px; }
.exam-btn { right: 55px; }

.check-btn.checked {
    background: white;
    color: var(--color-success);
    border-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Exam Styles */
.exam-item {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.exam-q {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.exam-a-box {
    margin-top: 8px;
}

.exam-toggle-btn {
    background: #e2e8f0;
    color: var(--color-text-muted);
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.exam-toggle-btn:hover {
    background: #cbd5e0;
}

.exam-answer {
    display: none;
    margin-top: 8px;
    color: var(--color-success); /* Green text */
    font-weight: bold;
    font-size: 1rem;
    padding: 8px;
    background: var(--color-success-light);
    border-radius: 6px;
}

.exam-answer.show {
    display: block;
}

/* --- Grade Overview (edu/index.html) --- */
.grade-section { margin-bottom: 60px; }
.section-title { font-size: 2rem; color: var(--color-text-main); margin-bottom: 30px; display: flex; align-items: center; gap: 12px; }
.semester-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.semester-card { background: white; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid rgba(0,0,0,0.05); }
.semester-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.semester-card .card-header { padding: 20px; color: white; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.semester-card .card-title { font-size: 1.25rem; font-weight: bold; }
.semester-card .card-badge { background: rgba(255,255,255,0.25); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; backdrop-filter: blur(5px); }
.semester-card .card-body { padding: 24px; display: grid; gap: 16px; }

.subject-link { display: flex; align-items: center; gap: 16px; padding: 16px; background: #f8fafc; border-radius: 16px; text-decoration: none; color: var(--color-text-main); transition: all 0.2s; border: 1px solid transparent; }
.subject-link:hover { background: white; box-shadow: var(--shadow-sm); transform: translateX(5px); }
.subject-icon { font-size: 1.5rem; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; }
.subject-name { font-weight: bold; font-size: 1.1rem; }

/* Subject Specifics */
.subject-link.yuwen .subject-icon { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); }
.subject-link.yuwen:hover { border-color: #FF9A9E; color: #FF6B81; }
.subject-link.math .subject-icon { background: linear-gradient(135deg, #4FACFE 0%, #00f2fe 100%); }
.subject-link.math:hover { border-color: #4FACFE; color: #1E88E5; }
.subject-link.english .subject-icon { background: linear-gradient(135deg, #43E97B 0%, #38f9d7 100%); }
.subject-link.english:hover { border-color: #43E97B; color: #2E7D32; }

/* Card Color Variants */
/* Yuwen */
.card-yuwen-1 .learning-card-header { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); }
.card-yuwen-1 .learning-list li::before { background-color: var(--color-yuwen-1); content: ''; width: 6px; height: 6px; border-radius: 50%; top: 10px; position: relative; display: inline-block; margin-right: 8px; }
.card-yuwen-1 .tag { background: #FFF0F1; color: #FF6B81; }

.card-yuwen-2 .learning-card-header { background: linear-gradient(135deg, #4FACFE 0%, #00f2fe 100%); }
.card-yuwen-2 .learning-list li::before { background-color: var(--color-yuwen-2); content: ''; width: 6px; height: 6px; border-radius: 50%; top: 10px; position: relative; display: inline-block; margin-right: 8px; }
.card-yuwen-2 .tag { background: #E3F2FD; color: #1E88E5; }

.card-yuwen-3 .learning-card-header { background: linear-gradient(135deg, #43E97B 0%, #38f9d7 100%); }
.card-yuwen-3 .learning-list li::before { background-color: var(--color-yuwen-3); content: ''; width: 6px; height: 6px; border-radius: 50%; top: 10px; position: relative; display: inline-block; margin-right: 8px; }
.card-yuwen-3 .tag { background: #E8F5E9; color: #2E7D32; }

.card-yuwen-4 .learning-card-header { background: linear-gradient(135deg, #FA709A 0%, #FEE140 100%); }
.card-yuwen-4 .learning-list li::before { background-color: var(--color-yuwen-4); content: ''; width: 6px; height: 6px; border-radius: 50%; top: 10px; position: relative; display: inline-block; margin-right: 8px; }
.card-yuwen-4 .tag { background: #FFF3E0; color: #EF6C00; }

.card-yuwen-5 .learning-card-header { background: linear-gradient(135deg, #FEE140 0%, #FA709A 100%); }
.card-yuwen-5 .learning-list li::before { background-color: var(--color-yuwen-5); content: ''; width: 6px; height: 6px; border-radius: 50%; top: 10px; position: relative; display: inline-block; margin-right: 8px; }
.card-yuwen-5 .tag { background: #FFF8E1; color: #F57F17; }

.card-yuwen-6 .learning-card-header { background: linear-gradient(135deg, #A18CD1 0%, #FBC2EB 100%); }
.card-yuwen-6 .learning-list li::before { background-color: var(--color-yuwen-6); content: ''; width: 6px; height: 6px; border-radius: 50%; top: 10px; position: relative; display: inline-block; margin-right: 8px; }
.card-yuwen-6 .tag { background: #F3E5F5; color: #7B1FA2; }

/* Math */
.card-math-1 .learning-card-header { background-color: var(--color-math-1); }
.card-math-1 .learning-list li::before { color: var(--color-math-1); }
.card-math-2 .learning-card-header { background-color: var(--color-math-2); }
.card-math-2 .learning-list li::before { color: var(--color-math-2); }
.card-math-3 .learning-card-header { background-color: var(--color-math-3); }
.card-math-3 .learning-list li::before { color: var(--color-math-3); }
.card-math-4 .learning-card-header { background-color: var(--color-math-4); }
.card-math-4 .learning-list li::before { color: var(--color-math-4); }
.card-math-5 .learning-card-header { background-color: var(--color-math-5); }
.card-math-5 .learning-list li::before { color: var(--color-math-5); }
.card-math-6 .learning-card-header { background-color: var(--color-math-6); }
.card-math-6 .learning-list li::before { color: var(--color-math-6); }
.card-math-7 .learning-card-header { background-color: var(--color-math-7); }
.card-math-7 .learning-list li::before { color: var(--color-math-7); }

/* English */
.card-eng-1 .learning-card-header { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); }
.card-eng-1 .learning-list li::before { background-color: var(--color-eng-1); content: ''; width: 6px; height: 6px; border-radius: 50%; top: 10px; position: relative; display: inline-block; margin-right: 8px; }
.card-eng-1 .tag { background: #FFF0F1; color: #FF6B81; }

.card-eng-2 .learning-card-header { background: linear-gradient(135deg, #4FACFE 0%, #00f2fe 100%); }
.card-eng-2 .learning-list li::before { background-color: var(--color-eng-2); content: ''; width: 6px; height: 6px; border-radius: 50%; top: 10px; position: relative; display: inline-block; margin-right: 8px; }
.card-eng-2 .tag { background: #E3F2FD; color: #1E88E5; }

.card-eng-3 .learning-card-header { background: linear-gradient(135deg, #43E97B 0%, #38f9d7 100%); }
.card-eng-3 .learning-list li::before { background-color: var(--color-eng-3); content: ''; width: 6px; height: 6px; border-radius: 50%; top: 10px; position: relative; display: inline-block; margin-right: 8px; }
.card-eng-3 .tag { background: #E8F5E9; color: #2E7D32; }

.card-eng-4 .learning-card-header { background: linear-gradient(135deg, #FA709A 0%, #FEE140 100%); }
.card-eng-4 .learning-list li::before { background-color: var(--color-eng-4); content: ''; width: 6px; height: 6px; border-radius: 50%; top: 10px; position: relative; display: inline-block; margin-right: 8px; }
.card-eng-4 .tag { background: #FFF3E0; color: #EF6C00; }

.card-eng-5 .learning-card-header { background: linear-gradient(135deg, #FEE140 0%, #FA709A 100%); }
.card-eng-5 .learning-list li::before { background-color: var(--color-eng-5); content: ''; width: 6px; height: 6px; border-radius: 50%; top: 10px; position: relative; display: inline-block; margin-right: 8px; }
.card-eng-5 .tag { background: #FFF8E1; color: #F57F17; }

.card-eng-6 .learning-card-header { background: linear-gradient(135deg, #A18CD1 0%, #FBC2EB 100%); }
.card-eng-6 .learning-list li::before { background-color: var(--color-eng-6); content: ''; width: 6px; height: 6px; border-radius: 50%; top: 10px; position: relative; display: inline-block; margin-right: 8px; }
.card-eng-6 .tag { background: #F3E5F5; color: #7B1FA2; }

/* Responsive */
@media (max-width: 640px) {
    .page-header h1 { font-size: 2rem; }
    .content-grid { grid-template-columns: 1fr; }
}

/* Footer */
.page-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

/* =========================================
   Animations - Complete Animation System
   ========================================= */

/* Easing Function Animations */
.anim-move-right-linear {
    animation: moveRight 2s linear infinite;
}

.anim-move-right-ease-in {
    animation: moveRight 2s ease-in infinite;
}

.anim-move-right-ease-out {
    animation: moveRight 2s ease-out infinite;
}

.anim-move-right-ease-in-out {
    animation: moveRight 2s ease-in-out infinite;
}

@keyframes moveRight {
    0% { transform: translateX(0); }
    50% { transform: translateX(calc(100% + 200px)); }
    100% { transform: translateX(0); }
}

/* Entrance Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

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

.zoom-in {
    animation: zoomIn 0.5s ease-out forwards;
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.5);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Pop In Animation */
.anim-pop {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    cursor: pointer;
}

@keyframes popIn {
    0% { 
        opacity: 0;
        transform: scale(0);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Shake Animation */
.anim-shake {
    animation: shake 0.5s ease-in-out;
    cursor: pointer;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Pulse Animation */
.anim-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Interactive Hover */
.interactive-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Spinner Animations */
.spinner-border {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-border.w-3rem {
    width: 48px;
    height: 48px;
}

.border-top-secondary {
    border-top-color: var(--color-brand-secondary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Spinner Dots */
.spinner-dots {
    display: flex;
    gap: 8px;
}

.spinner-dot {
    width: 12px;
    height: 12px;
    background: var(--color-brand-primary);
    border-radius: 50%;
}

.anim-bounce {
    animation: bounce 0.6s ease-in-out infinite;
}

.anim-bounce-delay-1 {
    animation: bounce 0.6s ease-in-out infinite;
    animation-delay: 0.1s;
}

.anim-bounce-delay-2 {
    animation: bounce 0.6s ease-in-out infinite;
    animation-delay: 0.2s;
}

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

/* Animation Demo Box */
.anim-box {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.anim-box.bg-error {
    background: linear-gradient(135deg, var(--color-error), #f87171);
}

.anim-box.bg-accent {
    background: linear-gradient(135deg, var(--color-brand-accent), #8b5cf6);
}

.anim-box.bg-secondary {
    background: linear-gradient(135deg, var(--color-brand-secondary), #818cf8);
}

.anim-box.bg-transparent {
    background: transparent;
    box-shadow: none;
}

/* Like Button */
.btn-like-heart {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0.5rem;
}

.btn-like-heart:hover {
    transform: scale(1.1);
}

/* Form Switch */
.form-switch {
    position: relative;
    display: inline-block;
}

.form-check-input {
    width: 50px;
    height: 28px;
    appearance: none;
    background: var(--color-border);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.form-check-input::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.form-check-input:checked {
    background: var(--color-brand-primary);
}

.form-check-input:checked::after {
    transform: translateX(22px);
}

/* Input Underline Animation */
.input-group {
    position: relative;
}

.input-underline {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid var(--color-border);
    background: transparent;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-underline:focus {
    border-bottom-color: var(--color-brand-primary);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-brand-primary);
    transition: all 0.3s;
}

.input-underline:focus ~ .focus-border {
    left: 0;
    width: 100%;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-block {
    width: 100%;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Flip Card */
.flip-card {
    background-color: transparent;
    width: 150px;
    height: 150px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.flip-card-front {
    background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
}

.flip-card-back {
    background: linear-gradient(135deg, var(--color-brand-secondary), var(--color-brand-accent));
    transform: rotateY(180deg);
}

/* Utility Classes */
.top-5px {
    top: 5px;
}

.left-5px {
    left: 5px;
}

.rounded-pill {
    border-radius: 999px;
}

.bg-surface-hover {
    background: var(--color-bg-body);
    transition: background 0.2s;
}

.bg-surface-hover:hover {
    background: var(--color-border);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .anim-move-right-linear,
    .anim-move-right-ease-in,
    .anim-move-right-ease-out,
    .anim-move-right-ease-in-out {
        animation-duration: 1.5s;
    }
}
