/* ========================================
   BIL KAZAN - Modern Dark Theme
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a80;
    --accent: #6C63FF;
    --accent-light: #8B83FF;
    --accent-glow: rgba(108, 99, 255, 0.3);
    --cyan: #00D2FF;
    --green: #4CAF50;
    --red: #FF6B6B;
    --orange: #FF9800;
    --pink: #E91E63;
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 210, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(233, 30, 99, 0.04) 0%, transparent 50%);
    z-index: -1;
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(-2%, 1%);
    }

    66% {
        transform: translate(1%, -2%);
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 2rem;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand .brand-icon {
    font-size: 1.8rem;
    -webkit-text-fill-color: initial;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--text-primary);
    background: var(--glass);
}

.navbar-nav a.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-user:hover {
    background: var(--bg-card-hover);
}

.nav-user .avatar {
    font-size: 1.3rem;
}

.nav-points {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108, 99, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== Auth Pages ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--cyan), var(--pink));
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.auth-logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255, 255, 255, 0.06);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8B83FF);
    color: #fff;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-success {
    background: var(--green);
    color: #fff;
}

.btn-danger {
    background: var(--red);
    color: #fff;
}

.btn-warning {
    background: var(--orange);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-danger {
    background: rgba(255, 107, 107, 0.12);
    color: var(--red);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.alert-success {
    background: rgba(76, 175, 80, 0.12);
    color: var(--green);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ===== Category Grid ===== */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-color, var(--accent));
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--card-color, var(--accent));
}

.category-card:hover::before {
    width: 6px;
}

.cat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(108, 99, 255, 0.1);
    flex-shrink: 0;
}

.cat-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cat-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Leaderboard ===== */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    margin: 2rem 0 3rem;
    min-height: 320px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.podium-item:hover {
    transform: translateY(-5px);
}

.podium-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    width: 180px;
    position: relative;
    overflow: hidden;
}

.podium-item.first .podium-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.02));
    border-color: rgba(255, 215, 0, 0.3);
    padding: 2.5rem 2rem;
    width: 210px;
}

.podium-item.second .podium-card {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.08), rgba(192, 192, 192, 0.02));
    border-color: rgba(192, 192, 192, 0.3);
}

.podium-item.third .podium-card {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.08), rgba(205, 127, 50, 0.02));
    border-color: rgba(205, 127, 50, 0.3);
}

.podium-rank {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 0 0 10px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.first .podium-rank {
    background: linear-gradient(135deg, var(--gold), #FFA500);
    color: #1a1a1a;
}

.second .podium-rank {
    background: linear-gradient(135deg, var(--silver), #a0a0a0);
    color: #1a1a1a;
}

.third .podium-rank {
    background: linear-gradient(135deg, var(--bronze), #a0522d);
    color: #fff;
}

.podium-avatar {
    font-size: 3rem;
    margin: 1rem 0 0.5rem;
}

.first .podium-avatar {
    font-size: 3.5rem;
}

.podium-crown {
    font-size: 1.5rem;
}

.podium-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.podium-points {
    font-weight: 800;
    font-size: 1.3rem;
}

.first .podium-points {
    color: var(--gold);
}

.second .podium-points {
    color: var(--silver);
}

.third .podium-points {
    color: var(--bronze);
}

.podium-games {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Leaderboard Table */
.lb-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.lb-table th {
    text-align: left;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lb-table td {
    padding: 14px 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

.lb-table td:first-child {
    border-left: 1px solid var(--glass-border);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.lb-table td:last-child {
    border-right: 1px solid var(--glass-border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.lb-table tr:hover td {
    background: var(--bg-card-hover);
}

.lb-table tr.me td {
    background: rgba(108, 99, 255, 0.08);
    border-color: rgba(108, 99, 255, 0.2);
}

.lb-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--glass);
}

.lb-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-user .avatar {
    font-size: 1.3rem;
}

.lb-user .name {
    font-weight: 600;
}

/* ===== Quiz Game ===== */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-bar {
    width: 200px;
    height: 6px;
    background: var(--glass);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
}

.quiz-timer.warning {
    color: var(--orange);
    border-color: rgba(255, 152, 0, 0.3);
}

.quiz-timer.danger {
    color: var(--red);
    border-color: rgba(255, 107, 107, 0.3);
    animation: pulse 0.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.quiz-score {
    padding: 8px 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-weight: 600;
    color: var(--gold);
}

.question-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.question-number {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.5;
}

.question-difficulty {
    display: inline-block;
    margin-top: 1rem;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.diff-easy {
    background: rgba(76, 175, 80, 0.15);
    color: var(--green);
}

.diff-medium {
    background: rgba(255, 152, 0, 0.15);
    color: var(--orange);
}

.diff-hard {
    background: rgba(255, 107, 107, 0.15);
    color: var(--red);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.option-btn {
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.option-btn:hover:not(.disabled) {
    border-color: var(--accent);
    background: rgba(108, 99, 255, 0.08);
    transform: scale(1.02);
}

.option-btn .option-letter {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: var(--glass);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.option-btn.correct {
    border-color: var(--green);
    background: rgba(76, 175, 80, 0.12);
    animation: correctAnim 0.5s ease;
}

.option-btn.correct .option-letter {
    background: var(--green);
    color: #fff;
}

.option-btn.wrong {
    border-color: var(--red);
    background: rgba(255, 107, 107, 0.12);
    animation: wrongAnim 0.5s ease;
}

.option-btn.wrong .option-letter {
    background: var(--red);
    color: #fff;
}

.option-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
}

@keyframes correctAnim {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes wrongAnim {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* ===== Quiz Result ===== */
.result-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 500px;
    margin: 3rem auto;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.result-card .result-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-stat {
    padding: 1rem;
    background: var(--glass);
    border-radius: var(--radius-sm);
}

.result-stat .value {
    font-size: 1.5rem;
    font-weight: 800;
}

.result-stat .label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

.result-stat.points .value {
    color: var(--gold);
}

.result-stat.correct .value {
    color: var(--green);
}

.result-stat.wrong .value {
    color: var(--red);
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.result-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* ===== Profile ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.profile-avatar {
    font-size: 4rem;
}

.profile-info h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.profile-info .joined {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.profile-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 6px;
}

/* ===== Game History ===== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.history-item:hover {
    background: var(--bg-card-hover);
}

.history-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-icon {
    font-size: 1.5rem;
}

.history-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.history-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.history-right {
    text-align: right;
}

.history-points {
    font-weight: 700;
    color: var(--gold);
}

.history-score {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== Category Select (Play) ===== */
.play-hero {
    text-align: center;
    padding: 2rem 0;
}

.play-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.play-hero p {
    color: var(--text-secondary);
}

/* ===== Flash Messages ===== */
.flash-message {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    animation: slideIn 0.3s ease;
    font-weight: 500;
    max-width: 400px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* ===== Page Title ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .navbar-nav.open {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .container {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .podium {
        flex-direction: column;
        align-items: center;
        min-height: auto;
    }

    .podium-item.first {
        order: -1;
    }

    .podium-card,
    .podium-item.first .podium-card {
        width: 100%;
        max-width: 280px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .question-card {
        padding: 1.5rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .result-stats {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .quiz-header {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Avatar Images & Uploads */
.avatar-img {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    background: var(--glass);
}

.avatar-small {
    width: 34px;
    height: 34px;
    vertical-align: middle;
}

.avatar-medium {
    width: 64px;
    height: 64px;
}

.avatar-large {
    width: 120px;
    height: 120px;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar-upload-form {
    position: absolute;
    bottom: 5px;
    right: 5px;
    z-index: 10;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
    font-size: 1rem;
}

.upload-btn:hover {
    transform: scale(1.1);
    background: var(--cyan);
}

.podium-card {
    display: block;
    text-decoration: none;
    color: inherit;
}