/* ═══════════════════════════════════════════════════
   SmartLugatEDU — bolajonbop dizayn
   Kun va Tun rejimlari, yumshoq ranglar, animatsiyalar
   ═══════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── KUN REJIMI (default) ──────────────────────── */
:root,
[data-theme="light"] {
    /* Asosiy ranglar */
    --primary:        #6366f1;   /* indigo */
    --primary-dark:   #4f46e5;
    --primary-light:  #e0e7ff;
    --secondary:      #10b981;   /* emerald */
    --secondary-light:#d1fae5;
    --accent:         #f59e0b;   /* amber */
    --accent-light:   #fef3c7;
    --pink:           #ec4899;
    --pink-light:     #fce7f3;
    --purple:         #a855f7;
    --purple-light:   #f3e8ff;
    --danger:         #ef4444;
    --danger-light:   #fee2e2;

    /* Yuzalar */
    --bg:             #f5f3ff;
    --bg-grad-1:      #ddd6fe;
    --bg-grad-2:      #fce7f3;
    --card:           #ffffff;
    --card-2:         #faf5ff;
    --text:           #1e1b4b;
    --text-light:     #6b7280;
    --border:         #e9d5ff;

    --radius:         24px;
    --radius-sm:      14px;
    --radius-pill:    999px;
    --shadow:         0 8px 24px rgba(99, 102, 241, 0.12);
    --shadow-hover:   0 14px 36px rgba(99, 102, 241, 0.22);
    --shadow-card:    0 4px 14px rgba(99, 102, 241, 0.10);
}

/* ─── TUN REJIMI ────────────────────────────────── */
[data-theme="dark"] {
    --primary:        #818cf8;
    --primary-dark:   #6366f1;
    --primary-light:  #312e81;
    --secondary:      #34d399;
    --secondary-light:#064e3b;
    --accent:         #fbbf24;
    --accent-light:   #78350f;
    --pink:           #f472b6;
    --pink-light:     #831843;
    --purple:         #c084fc;
    --purple-light:   #581c87;
    --danger:         #f87171;
    --danger-light:   #7f1d1d;

    --bg:             #0f0f23;
    --bg-grad-1:      #1e1b4b;
    --bg-grad-2:      #2d1b3d;
    --card:           #1e1e3f;
    --card-2:         #252550;
    --text:           #f5f3ff;
    --text-light:     #a5a3c7;
    --border:         #3730a3;

    --shadow:         0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-hover:   0 14px 36px rgba(0, 0, 0, 0.7);
    --shadow-card:    0 4px 14px rgba(0, 0, 0, 0.4);
}

/* ─── BASE ──────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', 'Quicksand', system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(circle at 10% 0%, var(--bg-grad-1) 0%, transparent 50%),
        radial-gradient(circle at 90% 100%, var(--bg-grad-2) 0%, transparent 50%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.4s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s;
}

::selection { background: var(--primary); color: white; }

/* ─── NAVBAR ────────────────────────────────────── */
.navbar {
    background: var(--card);
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 3px solid var(--primary-light);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.logo-icon {
    font-size: 1.5em;
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-search {
    flex: 1;
    max-width: 400px;
    position: relative;
    display: flex;
}

.nav-search input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.95em;
    font-family: inherit;
    background: var(--card-2);
    color: var(--text);
    outline: none;
    transition: all 0.3s;
}

.nav-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.nav-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.2s;
}
.nav-search button:hover { transform: translateY(-50%) scale(1.1); }

.search-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: var(--card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}
.search-dropdown.active { display: block; }
.search-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.search-item:hover { background: var(--primary-light); }
.search-item:last-child { border-bottom: none; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.25s;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

.btn-login    { background: var(--primary-light);  color: var(--primary);  }
.btn-register { background: var(--primary);        color: white;           }
.btn-register:hover { background: var(--primary-dark); color: white; }
.btn-logout   { background: var(--danger-light);   color: var(--danger);   }
.btn-logout:hover   { background: var(--danger);   color: white;           }

/* THEME TOGGLE */
.theme-toggle {
    background: linear-gradient(135deg, var(--accent), var(--pink));
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 6px;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.1); }
.theme-icon-light { display: none; }
.theme-icon-dark  { display: inline; }
[data-theme="dark"] .theme-icon-light { display: inline; }
[data-theme="dark"] .theme-icon-dark  { display: none; }

.hamburger {
    display: none;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.4em;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--card);
    box-shadow: var(--shadow);
    padding: 10px 20px 20px;
}
.mobile-menu a {
    padding: 14px 12px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}
.mobile-menu.active { display: flex; }

/* ─── MAIN ──────────────────────────────────────── */
.main-content {
    flex: 1;
    padding: 30px 0;
}

.section-title {
    font-size: 1.8em;
    margin: 28px 0 18px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ─── HERO ──────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--pink) 100%);
    color: white;
    padding: 60px 30px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.15) 0%, transparent 30%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 12px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.18);
    position: relative;
}
.hero p {
    font-size: 1.2em;
    margin-bottom: 28px;
    opacity: 0.95;
    position: relative;
}

.hero-search {
    max-width: 520px;
    margin: 0 auto 30px;
    display: flex;
    background: white;
    border-radius: var(--radius-pill);
    padding: 6px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    position: relative;
}
.hero-search input {
    flex: 1;
    padding: 14px 22px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1em;
    font-family: inherit;
    color: var(--text);
}
.hero-search button {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    transition: transform 0.2s;
}
.hero-search button:hover { transform: scale(1.05); }

.hero-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}
.hero-stat {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.25);
}
.hero-stat .number { font-size: 2em; font-weight: 800; }
.hero-stat .label  { font-size: 0.9em; opacity: 0.95; }

/* ─── SECTION CARDS ─────────────────────────────── */
.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.section-card {
    background: var(--card);
    padding: 36px 22px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--text);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}
.section-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--purple), var(--pink));
}
.section-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}
.sc-icon {
    font-size: 3.5em;
    display: block;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
.section-card.blue   { --card-color: var(--primary); }
.section-card.green  { --card-color: var(--secondary); }
.section-card.purple { --card-color: var(--purple); }
.section-card.orange { --card-color: var(--accent); }

/* ─── WORD CHIPS ────────────────────────────────── */
.word-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}
.word-chip {
    padding: 10px 20px;
    background: var(--card);
    border: 2px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: all 0.25s;
}
.word-chip:hover {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    border-color: transparent;
    transform: translateY(-3px) rotate(-1deg);
}

/* ─── NEWS ──────────────────────────────────────── */
.news-list { display: grid; gap: 14px; margin-bottom: 30px; }
.news-item {
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow-card);
    border-left: 5px solid var(--accent);
    transition: transform 0.25s;
}
.news-item:hover { transform: translateX(6px); }
.news-icon { font-size: 2.2em; }
.news-item h4 { margin-bottom: 4px; color: var(--text); }
.news-item p  { color: var(--text-light); font-size: 0.95em; }

/* ─── DICTIONARY ────────────────────────────────── */
.alphabet-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}
.alpha-btn {
    width: 44px;
    height: 44px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.alpha-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-3px);
}
.alpha-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.word-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}
.word-card {
    background: var(--card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
    border: 3px solid transparent;
}
.word-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}
.word-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.word-card-info { padding: 16px; }
.word-card-info h3 { color: var(--text); margin-bottom: 6px; }
.word-card-info p  { color: var(--text-light); font-size: 0.9em; }

/* ─── WORD DETAIL ───────────────────────────────── */
.word-detail {
    background: var(--card);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 720px;
    margin: 0 auto;
    border: 3px solid var(--border);
}
.word-detail h1 {
    font-size: 2.6em;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 18px;
}
.word-detail-img {
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    box-shadow: var(--shadow-card);
}
.audio-btn {
    background: linear-gradient(135deg, var(--secondary), #14b8a6);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: transform 0.2s;
}
.audio-btn:hover { transform: translateY(-2px) scale(1.04); }

.definition, .example {
    background: var(--card-2);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    border-left: 4px solid var(--primary);
    color: var(--text);
}
.example { border-left-color: var(--accent); }

.word-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
    flex-wrap: wrap;
}
.word-nav a {
    padding: 10px 18px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: all 0.2s;
}
.word-nav a:hover { background: var(--primary); color: white; }

/* ─── GAMES ─────────────────────────────────────── */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-bottom: 30px;
}
.game-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 30px 22px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid var(--border);
    position: relative;
    overflow: hidden;
}
.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--purple-light));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.game-card:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.game-card:hover::before { opacity: 0.4; }
.game-card .game-icon {
    font-size: 4em;
    margin-bottom: 14px;
    display: block;
    animation: wobble 4s ease-in-out infinite;
}
@keyframes wobble {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-6deg); }
    75% { transform: rotate(6deg); }
}
.game-card h3 { color: var(--text); margin-bottom: 8px; font-size: 1.3em; }
.game-card p  { color: var(--text-light); margin-bottom: 18px; }

.play-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    border-radius: var(--radius-pill);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
    position: relative;
    transition: transform 0.2s;
}
.play-btn:hover { transform: translateY(-2px) scale(1.05); color: white; }

.game-container {
    background: var(--card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    border: 3px solid var(--border);
}
.game-container h2 {
    font-size: 1.9em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.game-image {
    width: 220px;
    height: 220px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin: 0 auto 24px;
    display: block;
    background: var(--primary-light);
    box-shadow: var(--shadow-card);
    border: 4px solid var(--card);
}
.game-hint {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 20px;
}
.game-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}
.option-btn {
    padding: 18px;
    border: 3px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-2);
    color: var(--text);
    font-size: 1.1em;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
}
.option-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-3px);
}
.option-btn.correct {
    border-color: var(--secondary);
    background: var(--secondary-light);
    animation: pulse 0.5s;
}
.option-btn.wrong {
    border-color: var(--danger);
    background: var(--danger-light);
    animation: shake 0.5s;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-10px); }
    75%      { transform: translateX(10px); }
}
.game-score {
    font-size: 1.4em;
    font-weight: 800;
    color: var(--accent);
    margin: 18px 0;
}
.game-next-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-pill);
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    margin-top: 14px;
    box-shadow: 0 6px 18px rgba(99,102,241,0.32);
}
.game-next-btn:hover { color: white; transform: translateY(-2px); }

/* ─── EXERCISES ─────────────────────────────────── */
.sinf-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.sinf-btn {
    padding: 10px 22px;
    border: 2px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--card);
    color: var(--text);
    font-weight: 700;
    transition: all 0.25s;
}
.sinf-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.sinf-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.exercise-card {
    background: var(--card);
    padding: 22px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    border-left: 5px solid var(--purple);
    transition: all 0.25s;
}
.exercise-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
}
.exercise-card h3 { color: var(--text); margin-bottom: 4px; }
.badge {
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8em;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary);
}
.badge-test     { background: var(--purple-light);    color: var(--purple); }
.badge-fill     { background: var(--accent-light);    color: var(--accent); }
.badge-sentence { background: var(--secondary-light); color: var(--secondary); }
.badge-match    { background: var(--pink-light);      color: var(--pink); }

.exercise-start-btn {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.9em;
}

.exercise-container {
    background: var(--card);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
    border: 3px solid var(--border);
}
.exercise-container h2 {
    margin-bottom: 12px;
    color: var(--text);
}
.exercise-type-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 0.85em;
}
.exercise-question {
    background: var(--card-2);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    font-size: 1.1em;
    color: var(--text);
    border-left: 4px solid var(--primary);
}
.exercise-input {
    width: 100%;
    padding: 16px;
    font-size: 1.1em;
    font-family: inherit;
    border: 3px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-2);
    color: var(--text);
    outline: none;
    margin-bottom: 18px;
    transition: border-color 0.2s;
}
.exercise-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}
.exercise-submit {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    border: none;
    padding: 14px 38px;
    border-radius: var(--radius-pill);
    font-size: 1.05em;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(99,102,241,0.32);
    transition: transform 0.2s;
}
.exercise-submit:hover { transform: translateY(-2px) scale(1.04); }

.exercise-options {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}
.exercise-option {
    padding: 16px 20px;
    background: var(--card-2);
    color: var(--text);
    border: 3px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s;
}
.exercise-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateX(6px);
}

.result-box {
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    font-size: 1.1em;
    font-weight: 600;
    margin: 18px 0;
}
.result-correct {
    background: var(--secondary-light);
    color: var(--secondary);
    border: 2px solid var(--secondary);
}
.result-wrong {
    background: var(--danger-light);
    color: var(--danger);
    border: 2px solid var(--danger);
}

.status-correct { color: var(--secondary); font-weight: 800; }
.status-wrong   { color: var(--danger);    font-weight: 800; }

/* ─── PROFILE / RESULTS ─────────────────────────── */
.profile-header {
    background: linear-gradient(135deg, var(--primary), var(--purple), var(--pink));
    color: white;
    padding: 50px 30px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}
.profile-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.16) 0%, transparent 40%);
    pointer-events: none;
}
.profile-avatar {
    width: 110px;
    height: 110px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.6em;
    margin: 0 auto 16px;
    border: 4px solid rgba(255,255,255,0.4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    position: relative;
}
.profile-header h1 { font-size: 2em; margin-bottom: 6px; position: relative; }
.sinf-label { font-size: 1.05em; opacity: 0.95; position: relative; }

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--card);
    padding: 24px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 3px solid transparent;
    transition: all 0.25s;
}
.stat-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
}
.stat-icon { font-size: 2.4em; margin-bottom: 6px; }
.stat-value {
    font-size: 2em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label { color: var(--text-light); font-size: 0.9em; }

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.badge-item {
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 2px solid var(--accent-light);
    transition: transform 0.25s;
}
.badge-item:hover { transform: translateY(-4px) rotate(-2deg); }
.badge-icon { font-size: 2.6em; margin-bottom: 6px; }

.activity-list { display: grid; gap: 10px; margin-bottom: 30px; }
.activity-item {
    background: var(--card);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: var(--shadow-card);
    color: var(--text);
    border-left: 4px solid var(--secondary);
}

.add-btn {
    display: inline-block;
    padding: 12px 26px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}
.add-btn:hover { color: white; transform: translateY(-2px) scale(1.04); }

.results-table {
    width: 100%;
    background: var(--card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border-collapse: collapse;
}
.results-table th, .results-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.results-table th {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}
.results-table tr:last-child td { border-bottom: none; }

/* ─── DASHBOARDS ────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}
.dash-card {
    background: var(--card);
    padding: 24px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 3px solid var(--border);
    transition: transform 0.25s;
}
.dash-card:hover { transform: translateY(-4px); border-color: var(--primary); }

.student-list, .child-card { /* shared parent/teacher card vibes */ }
.child-card {
    background: var(--card);
    padding: 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    box-shadow: var(--shadow-card);
    border-left: 5px solid var(--purple);
}
.child-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.child-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    color: white;
    font-weight: 800;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin: 6px 0;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--purple), var(--pink));
    border-radius: var(--radius-pill);
    transition: width 0.6s;
}

.recommendation {
    background: var(--accent-light);
    color: var(--text);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
    margin: 12px 0;
}

/* ─── FORMS ─────────────────────────────────────── */
.form-container {
    max-width: 460px;
    margin: 30px auto;
    background: var(--card);
    padding: 40px 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 3px solid var(--border);
}
.form-container h2 {
    text-align: center;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1em;
    font-family: inherit;
    background: var(--card-2);
    color: var(--text);
    outline: none;
    transition: all 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}
.form-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1.05em;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 6px 18px rgba(99,102,241,0.32);
}
.form-submit:hover { transform: translateY(-2px) scale(1.02); }
.form-link {
    text-align: center;
    margin-top: 18px;
    color: var(--text-light);
}
.form-link a { color: var(--primary); font-weight: 700; }

/* ─── ALERTS / MESSAGES ─────────────────────────── */
.messages-container {
    max-width: 800px;
    margin: 16px auto;
    padding: 0 20px;
}
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid;
    background: var(--card);
    box-shadow: var(--shadow-card);
    color: var(--text);
}
.alert-success { border-left-color: var(--secondary); background: var(--secondary-light); }
.alert-error,
.alert-danger  { border-left-color: var(--danger);    background: var(--danger-light); }
.alert-info    { border-left-color: var(--primary);   background: var(--primary-light); }
.alert-close {
    background: none;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    color: inherit;
}

/* ─── EMPTY STATE ───────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-light);
}
.empty-icon { font-size: 4em; margin-bottom: 14px; }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }

/* ─── FOOTER ────────────────────────────────────── */
.footer {
    background: var(--card);
    padding: 36px 0 16px;
    margin-top: 50px;
    border-top: 3px solid var(--primary-light);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}
.footer h3, .footer h4 {
    margin-bottom: 10px;
    color: var(--text);
}
.footer p { color: var(--text-light); }
.footer a {
    display: block;
    color: var(--text-light);
    padding: 4px 0;
    transition: color 0.2s;
}
.footer a:hover { color: var(--primary); }
.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
}

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 900px) {
    .nav-search { display: none; }
    .nav-links  { display: none; }
    .hamburger  { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 700px) {
    .hero h1 { font-size: 2.2em; }
    .hero-search { flex-direction: column; gap: 8px; }
    .hero-search button { width: 100%; }
    .game-options { grid-template-columns: 1fr; }
    .game-container { padding: 26px; }
    .word-detail { padding: 24px; }
    .form-container { padding: 28px 22px; }
    .results-table th, .results-table td { padding: 10px 12px; }
}
