/* ==========================================
   Home English - Modern Design System
   ========================================== */

:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --secondary: #10B981;
    --secondary-light: #34D399;
    --accent: #F59E0B;
    --accent-light: #FCD34D;
    --danger: #EF4444;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --bg-page: #F9FAFB;
    --bg-white: #FFFFFF;
    --bg-light: #F3F4F6;
    --bg-dark: #111827;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* ==========================================
   Header & Navigation
   ========================================== */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
}

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

.logo h1 { font-size: 1.4rem; color: var(--primary); margin: 0; }
.logo-sub { font-size: 0.75rem; color: var(--text-muted); display: block; margin-top: -2px; }

.nav-menu { display: flex; list-style: none; gap: 0.5rem; }
.nav-menu a {
    text-decoration: none; color: var(--text-secondary); font-weight: 500;
    padding: 0.5rem 1rem; border-radius: var(--radius); transition: var(--transition);
    font-size: 0.9rem;
}
.nav-menu a:hover { color: var(--primary); background: rgba(79,70,229,0.06); }
.nav-menu a.active { color: var(--primary); background: rgba(79,70,229,0.1); font-weight: 600; }

.menu-toggle { display: none; flex-direction: column; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text-primary); margin: 3px 0; transition: var(--transition); border-radius: 2px; }

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
    color: white; padding: 5rem 2rem 4rem; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; text-align: center; max-width: 700px; margin: 0 auto; }
.hero-badge {
    display: inline-block; background: rgba(255,255,255,0.2); backdrop-filter: blur(5px);
    padding: 0.4rem 1.2rem; border-radius: var(--radius-xl); font-size: 0.85rem;
    margin-bottom: 1.5rem; border: 1px solid rgba(255,255,255,0.3);
}
.hero-content h2 { font-size: 2.8rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; letter-spacing: -0.02em; }
.hero .subtitle { font-size: 1.2rem; margin-bottom: 2.5rem; opacity: 0.9; font-weight: 400; }

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: var(--radius);
    text-decoration: none; font-weight: 600; transition: var(--transition);
    border: none; cursor: pointer; font-size: 0.95rem; line-height: 1.4;
}
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-primary { background: var(--bg-white); color: var(--primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.btn-accent { background: var(--primary); color: white; }
.btn-accent:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-icon { font-size: 1.1em; }

.btn-small { padding: 0.4rem 0.8rem; font-size: 0.85rem; border-radius: var(--radius-sm); }

.hero-decoration { display: none; }
.floating-card {
    background: rgba(255,255,255,0.15); backdrop-filter: blur(5px);
    padding: 0.6rem 1.2rem; border-radius: var(--radius); font-size: 0.85rem;
    position: absolute; animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.2);
}
.fc-1 { top: 20%; right: 8%; animation-delay: 0s; }
.fc-2 { top: 50%; right: 5%; animation-delay: 2s; }
.fc-3 { top: 75%; right: 10%; animation-delay: 4s; }

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

/* ==========================================
   Stats Bar
   ========================================== */
.stats-bar { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.stats-row { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.stat-pill {
    display: flex; align-items: center; gap: 0.75rem;
}
.stat-pill .stat-icon { font-size: 1.5rem; }
.stat-pill strong { font-size: 1.4rem; color: var(--text-primary); display: block; line-height: 1.2; }
.stat-pill small { color: var(--text-muted); font-size: 0.8rem; }

/* ==========================================
   Section Styles
   ========================================== */
.section-title {
    text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem;
    color: var(--text-primary); letter-spacing: -0.02em;
}
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 3rem; font-size: 1.05rem; }

/* ==========================================
   Features Section
   ========================================== */
.features { padding: 5rem 2rem; background: var(--bg-white); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.feature-card {
    background: var(--bg-page); padding: 2rem; border-radius: var(--radius-lg);
    transition: var(--transition-slow); cursor: pointer; position: relative;
    border: 1px solid var(--border-light);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.feature-icon-wrap {
    width: 56px; height: 56px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.25rem;
}
.gradient-1 { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); }
.gradient-2 { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); }
.gradient-3 { background: linear-gradient(135deg, #FFF7ED, #FED7AA); }
.gradient-4 { background: linear-gradient(135deg, #FDF2F8, #FCE7F3); }
.gradient-5 { background: linear-gradient(135deg, #F0F9FF, #BAE6FD); }
.gradient-6 { background: linear-gradient(135deg, #FEFCE8, #FEF08A); }

.feature-card h4 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.feature-arrow { position: absolute; top: 2rem; right: 2rem; color: var(--text-muted); font-size: 1.2rem; transition: var(--transition); }
.feature-card:hover .feature-arrow { color: var(--primary); transform: translateX(4px); }

/* ==========================================
   How It Works
   ========================================== */
.how-it-works { padding: 5rem 2rem; background: var(--bg-page); }
.steps-timeline { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; max-width: 900px; margin: 0 auto; }
.step-item { display: flex; align-items: flex-start; gap: 1rem; flex: 1; min-width: 200px; }
.step-number {
    width: 48px; height: 48px; min-width: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; font-size: 1.2rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.step-content h4 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--text-primary); }
.step-content p { font-size: 0.85rem; color: var(--text-secondary); }

/* ==========================================
   Scene Preview
   ========================================== */
.scene-preview { padding: 5rem 2rem; background: var(--bg-white); }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; }
.preview-card {
    background: var(--bg-page); padding: 1.5rem; border-radius: var(--radius-md);
    text-align: center; cursor: pointer; transition: var(--transition-slow);
    border: 1px solid var(--border-light);
}
.preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.preview-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.preview-card h4 { font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--text-primary); }
.preview-zh { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.75rem; }
.preview-meta { font-size: 0.75rem; color: var(--text-secondary); }
.preview-meta span { background: var(--bg-white); padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); }

/* ==========================================
   Page Header
   ========================================== */
.page-header { padding: 2.5rem 0 2rem; text-align: center; }
.page-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text-primary); }
.page-header p { font-size: 1rem; color: var(--text-secondary); }

/* ==========================================
   Filters & Search
   ========================================== */
.filters {
    background: var(--bg-white); padding: 1.25rem; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
    display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
    border: 1px solid var(--border);
}
.search-box { flex: 1; min-width: 250px; display: flex; gap: 0.5rem; }
.search-box input {
    flex: 1; padding: 0.6rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: 0.9rem; transition: var(--transition); background: var(--bg-page);
}
.search-box input:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.search-box button {
    padding: 0.6rem 1.2rem; background: var(--primary); color: white;
    border: none; border-radius: var(--radius); cursor: pointer; transition: var(--transition);
}
.search-box button:hover { background: var(--primary-dark); }

.filter-group { display: flex; align-items: center; gap: 0.5rem; }
.filter-group label { font-weight: 600; color: var(--text-primary); font-size: 0.85rem; }
.filter-group select {
    padding: 0.5rem 0.75rem; border: 1.5px solid var(--border); border-radius: var(--radius);
    background: var(--bg-page); cursor: pointer; font-size: 0.85rem; transition: var(--transition);
}
.filter-group select:focus { outline: none; border-color: var(--primary); }

/* ==========================================
   Scenes Grid
   ========================================== */
.scenes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.scene-card {
    background: var(--bg-white); border-radius: var(--radius-md); padding: 1.5rem;
    border: 1px solid var(--border); transition: var(--transition-slow); cursor: pointer;
}
.scene-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.scene-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.scene-icon { font-size: 1.5rem; }
.scene-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; color: var(--text-primary); }
.scene-card .subtitle-text { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 0.75rem; }
.scene-card .scene-id { color: var(--text-muted); font-size: 0.75rem; font-weight: 600; }
.scene-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.scene-tag {
    padding: 0.2rem 0.6rem; background: var(--bg-light); border-radius: var(--radius-sm);
    font-size: 0.75rem; color: var(--text-secondary);
}
.scene-tag.highlight { background: rgba(79,70,229,0.1); color: var(--primary); }

/* ==========================================
   Scene Detail
   ========================================== */
.scene-detail { background: var(--bg-white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); margin-bottom: 3rem; border: 1px solid var(--border); }
.scene-detail.hidden { display: none; }
.detail-header { position: relative; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.close-btn {
    position: absolute; top: 0; right: 0; background: var(--bg-light); border: none;
    font-size: 1.2rem; cursor: pointer; color: var(--text-secondary); transition: var(--transition);
    padding: 0.5rem 0.75rem; border-radius: var(--radius);
}
.close-btn:hover { color: var(--danger); background: #FEE2E2; }

.vocabulary-section, .dialogue-section, .culture-section { margin-bottom: 2rem; }
.vocabulary-section h4, .dialogue-section h4, .culture-section h4 {
    font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-primary);
}
.vocab-item { background: var(--bg-page); padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 0.5rem; font-size: 0.9rem; }
.vocab-item strong { color: var(--primary); }

.dialogue-controls { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.dialogue-controls .btn-small { background: var(--bg-light); color: var(--text-secondary); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: var(--transition); }
.dialogue-controls .btn-small.active { background: var(--primary); color: white; border-color: var(--primary); }

.dialogue-item {
    background: var(--bg-page); padding: 1rem; border-radius: var(--radius);
    margin-bottom: 0.5rem; cursor: pointer; transition: var(--transition);
    border: 1.5px solid transparent;
}
.dialogue-item:hover { border-color: var(--primary-light); background: white; }
.dialogue-item.playing { border-color: var(--primary); background: rgba(79,70,229,0.04); }
.dialogue-en { font-weight: 600; color: var(--text-primary); margin-bottom: 0.2rem; font-size: 0.95rem; }
.dialogue-cn { color: var(--text-secondary); font-size: 0.85rem; }
.dialogue-en.hidden, .dialogue-cn.hidden { display: none; }

/* ==========================================
   Vocabulary Page
   ========================================== */
.vocab-search { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.vocab-search input {
    flex: 1; padding: 0.75rem 1rem; border: 1.5px solid var(--border);
    border-radius: var(--radius); font-size: 0.95rem; background: var(--bg-white);
}
.vocab-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.vocab-search button {
    padding: 0.75rem 1.5rem; background: var(--primary); color: white;
    border: none; border-radius: var(--radius); cursor: pointer; font-weight: 600; transition: var(--transition);
}
.vocab-search button:hover { background: var(--primary-dark); }

.vocab-filters { background: var(--bg-white); padding: 1.25rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; border: 1px solid var(--border); }
.filter-tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tab-btn {
    padding: 0.5rem 1rem; background: var(--bg-light); border: none;
    border-radius: var(--radius); cursor: pointer; transition: var(--transition);
    font-weight: 500; font-size: 0.85rem; color: var(--text-secondary);
}
.tab-btn.active { background: var(--primary); color: white; }

.alphabet-filter, .theme-filter, .difficulty-filter { padding-top: 0.75rem; }
.alphabet-filter.hidden, .theme-filter.hidden, .difficulty-filter.hidden { display: none; }
.alphabet-filter { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.letter-btn, .diff-btn {
    padding: 0.35rem 0.7rem; background: var(--bg-light); border: 1.5px solid transparent;
    border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
    font-weight: 600; font-size: 0.8rem;
}
.letter-btn.active, .diff-btn.active { background: var(--primary); color: white; }
.theme-filter select { width: 100%; padding: 0.6rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; }

.vocab-stats {
    display: flex; justify-content: space-between; margin-bottom: 1rem;
    padding: 0.75rem 1rem; background: var(--bg-white); border-radius: var(--radius);
    border: 1px solid var(--border); font-size: 0.9rem;
}

.vocab-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.vocab-card {
    background: var(--bg-white); padding: 1.25rem; border-radius: var(--radius-md);
    border: 1px solid var(--border); cursor: pointer; transition: var(--transition);
}
.vocab-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.vocab-card h3 { color: var(--primary); margin-bottom: 0.25rem; font-size: 1.1rem; }
.vocab-card .phonetic { color: var(--text-muted); font-style: italic; font-size: 0.85rem; margin-bottom: 0.25rem; }
.vocab-card .meaning { color: var(--text-secondary); font-size: 0.85rem; }

/* ==========================================
   Modal
   ========================================== */
.vocab-detail-modal, .preview-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.vocab-detail-modal.hidden, .preview-modal.hidden { display: none; }
.modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.modal-content {
    position: relative; background: white; border-radius: var(--radius-lg);
    padding: 2rem; max-width: 560px; width: 90%; max-height: 80vh; overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   Learning Paths
   ========================================== */
.paths-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.path-card {
    background: var(--bg-white); border-radius: var(--radius-lg); padding: 2rem;
    border: 1px solid var(--border); cursor: pointer; transition: var(--transition-slow);
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.path-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.path-detail { background: var(--bg-white); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); }
.path-detail.hidden { display: none; }

.progress-overview { background: var(--bg-page); padding: 1.5rem; border-radius: var(--radius-md); margin-bottom: 2rem; }
.progress-bar-container { width: 100%; height: 12px; background: var(--border); border-radius: 6px; overflow: hidden; margin: 0.75rem 0; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.5s ease; border-radius: 6px; }

.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.stat-card { background: white; padding: 1.25rem; border-radius: var(--radius); text-align: center; border: 1px solid var(--border); }
.stat-icon { font-size: 1.5rem; margin-bottom: 0.25rem; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--primary); }

/* ==========================================
   Audio Player
   ========================================== */
.audio-player { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-white); box-shadow: 0 -2px 10px rgba(0,0,0,0.1); padding: 0.75rem 1rem; z-index: 999; border-top: 1px solid var(--border); }
.audio-player.hidden { display: none; }
.player-controls { display: flex; align-items: center; gap: 0.75rem; max-width: 700px; margin: 0 auto; }
.player-controls button { background: none; border: none; font-size: 1.25rem; cursor: pointer; transition: var(--transition); }
.player-controls button:hover { transform: scale(1.1); }
.progress-bar { flex: 1; height: 4px; background: var(--bg-light); border-radius: 2px; overflow: hidden; cursor: pointer; }
.progress { height: 100%; background: var(--primary); width: 0%; transition: width 0.1s linear; }

/* ==========================================
   Print Center
   ========================================== */
.print-categories { margin-bottom: 3rem; }
.print-category { background: var(--bg-white); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); margin-bottom: 1.5rem; }
.category-header h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.print-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.print-item { background: var(--bg-page); padding: 1.5rem; border-radius: var(--radius-md); text-align: center; }
.print-preview { width: 100%; height: 130px; background: white; border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.print-preview img { width: 100%; height: 100%; object-fit: cover; }
.btn-download {
    width: 100%; padding: 0.6rem; background: var(--primary); color: white;
    border: none; border-radius: var(--radius); cursor: pointer; transition: var(--transition); font-weight: 600; font-size: 0.9rem;
}
.btn-download:hover { background: var(--primary-dark); }
.print-tips { background: var(--bg-white); padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.print-tips h3 { margin-bottom: 1rem; }
.print-tips ul { padding-left: 1.5rem; }
.print-tips li { margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.9rem; }

/* ==========================================
   Footer
   ========================================== */
.footer { background: var(--bg-dark); color: white; padding: 3rem 2rem 1.5rem; margin-top: 0; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; flex-wrap: wrap; gap: 2rem; }
.footer-brand h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.footer-brand p { color: #9CA3AF; font-size: 0.9rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: #9CA3AF; text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.5rem; text-align: center; }
.footer-bottom p { color: #6B7280; font-size: 0.8rem; }

/* ==========================================
   Utility Classes
   ========================================== */
.hidden { display: none !important; }
.loading { text-align: center; padding: 3rem; color: var(--text-muted); font-size: 1rem; }
.loading::after { content: ''; display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 0.5rem; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { background: #FEF2F2; color: #991B1B; padding: 1rem; border-radius: var(--radius); margin: 1rem 0; border: 1px solid #FECACA; }
.success { background: #F0FDF4; color: #166534; padding: 1rem; border-radius: var(--radius); margin: 1rem 0; border: 1px solid #BBF7D0; }

.offline-status { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
#offline-indicator { font-size: 0.6rem; }
#offline-indicator.online { color: var(--secondary); }
#offline-indicator.offline { color: var(--danger); }
