:root {
    /* Olympic Colors */
    --olympic-blue: #0085C7;
    --olympic-yellow: #F4C300;
    --olympic-black: #000000;
    --olympic-green: #009F3D;
    --olympic-red: #DF0024;

    /* Reverting to Classic Theme */
    /* Dark Mode Defaults */
    --bg-dark: #090d16;
    --bg-card: rgba(30, 41, 59, 0.45);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    
    --sidebar-width: 230px;

    /* Default (Blue) Theme variables */
    --theme-main: var(--olympic-blue);
    --accent: #60a5fa;

    --glass-bg: rgba(30, 41, 59, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    /* Speech Bubble Variables (Default Dark) */
    --bubble-bg: #090d16;
    --bubble-text: #f8fafc;
    --bubble-border: var(--theme-main);
    --bubble-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 4px 12px -5px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-dark: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.65);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: rgba(0, 0, 0, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --shadow-premium: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

    /* Speech Bubble Variables (Light Theme) */
    --bubble-bg: #ffffff;
    --bubble-text: #0f172a;
    --bubble-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.12), 0 4px 12px -5px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --bg-dark: #090d16;
    --bg-card: rgba(30, 41, 59, 0.45);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(30, 41, 59, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Speech Bubble Variables (Dark Theme) */
    --bubble-bg: #090d16;
    --bubble-text: #f8fafc;
    --bubble-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 4px 12px -5px rgba(0, 0, 0, 0.3);
}

[data-color="red"] {
    --theme-main: var(--olympic-red);
    --accent: #fb7185;
}

[data-color="green"] {
    --theme-main: var(--olympic-green);
    --accent: #4ade80;
}

[data-color="purple"] {
    --theme-main: #9333ea;
    --accent: #c084fc;
}

[data-color="yellow"] {
    --theme-main: #d97706;
    --accent: var(--olympic-yellow);
}

[data-color="orange"] {
    --theme-main: #f97316;
    --accent: #fdba74;
}

[data-color="pink"] {
    --theme-main: #ec4899;
    --accent: #fbcfe8;
}

[data-color="cyan"] {
    --theme-main: #06b6d4;
    --accent: #67e8f9;
}

[data-color="amber"] {
    --theme-main: #f59e0b;
    --accent: #fde047;
}

[data-color="indigo"] {
    --theme-main: #6366f1;
    --accent: #a5b4fc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

body {
    background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 100% 100%, rgba(239, 68, 68, 0.05) 0%, transparent 40%),
                var(--bg-dark);
    color: var(--text-primary);
    overflow-y: auto;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.pulse-icon {
    animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 0px var(--olympic-blue)); }
    50% { transform: scale(1.1); opacity: 0.8; filter: drop-shadow(0 0 15px var(--olympic-blue)); }
    100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 0px var(--olympic-blue)); }
}

#lesson-status h3 {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: var(--olympic-blue);
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
/* Sidebar - Collapsible Classic */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-card);
    /* border-right: 1px solid var(--border); */ /* Çizgi kaldırıldı */
    box-shadow: 5px 0 25px rgba(0,0,0,0.1); /* Gölgelendirme ile ayır */
    display: flex;
    flex-direction: column;
    padding: 1rem 0.75rem;
    z-index: 2000; /* Sidebar Layer */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.02);
    overflow: hidden;
}

.sidebar.collapsed {
    width: 120px;
}

.sidebar.collapsed .nav-links span, 
.sidebar.collapsed .logo span {
    display: none;
}

.sidebar.collapsed .nav-links li {
    justify-content: center;
}

.instructor-sidebar {
    position: fixed;
    bottom: 70px !important; /* Biraz daha yukarı çekildi */
    left: 85px !important;   /* Daha sağa kaydırıldı ki bilgi kutusu sığsın */
    width: auto;
    background: transparent !important;
    padding: 0;
    text-align: center;
    z-index: 9999; /* Tekrar en üste alındı */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom left;
    pointer-events: none; /* Arkadaki menü butonlarına basılabilsin */
}

.instructor-sidebar {
    transform: scale(1.0); /* Geri büyütüldü */
}

.instructor-sidebar.mini {
    transform: scale(0.8); /* Daha küçük ki menüyü kaplamasın */
    left: 65px !important; /* Mini hali de kaydırıldı */
    bottom: 70px !important;
}

.instructor-sidebar img {
    width: 140px; /* Boyut küçültüldü */
    height: auto;
    display: block; /* Baseline boşluğunu kaldırmak için */
    margin: 0 auto;
    filter: drop-shadow(5px 15px 30px rgba(0,0,0,0.25));
    pointer-events: auto; /* Eğitmenin kendisine tıklanabilsin */
}

.instructor-sidebar img[src*="lovelace"] {
    width: 200px; /* Ada Lovelace büyütüldü */
}

.instructor-sidebar img[src*="lovelace"] ~ .instructor-info {
    left: 0% !important; /* Kart daha sola çekildi */
    transform: translateX(0) !important;
}

.instructor-sidebar img[src*="selman"] {
    width: 200px; /* Selman Akbulut (geniş resim) büyütüldü */
    position: relative;
    top: -30px; /* Biraz yukarı kaydırıldı */
}

.instructor-sidebar img[src*="selman"] ~ .instructor-info {
    left: 35% !important; /* Resimde sol tarafta durduğu için isim kartı sola kaydırıldı */
    margin-top: -30px; /* Görsel 30px yukarı kaydırıldığı için kart da 30px yukarı çekildi */
}

.instructor-sidebar img[src*="pisagor"] {
    width: 165px; /* Pisagor büyütüldü */
}

.instructor-sidebar img[src*="nesin"] {
    width: 165px; /* Ali Nesin büyütüldü */
}

.instructor-sidebar img[src*="kuscu"] {
    width: 145px; /* Ali Kuşçu büyütüldü */
    position: relative;
    left: 15px; /* Birtık sağa kaydırıldı */
}

.instructor-sidebar img[src*="turing"] {
    width: 165px; /* Alan Turing büyütüldü */
}

.instructor-info {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid var(--theme-main);
    position: absolute;
    top: 100%; /* Görseller kırpıldığı için boşluk kalmaması ve üst üste binmemesi adına görselin tam altına yerleştirildi */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    min-width: 110px;
    text-align: center;
    white-space: nowrap;
    pointer-events: auto; /* Kart tıklanabilsin */
}

.instructor-info h4 {
    font-size: 0.85rem;
    font-weight: 900; /* Çok daha kalın */
    color: #000000 !important; /* Net siyah */
    margin: 0;
    white-space: nowrap;
}

.instructor-info span {
    font-size: 0.65rem;
    color: #000000 !important; /* Net siyah */
    font-weight: 700;
    text-transform: uppercase;
}

/* Speech Bubble - Premium rounded style */
.speech-bubble {
    position: absolute;
    bottom: calc(100% + 4px); /* Biraz daha aşağı indirilmiş ama ok sığacak şekilde dengeli */
    left: 115%; /* Sağa kaydırılmış konumu koru */
    transform: translateX(-50%);
    background: var(--bubble-bg);
    padding: 12px 18px;
    border-radius: 16px;
    border: 1.5px solid var(--theme-main);
    box-shadow: var(--bubble-shadow);
    min-width: 180px;
    max-width: 240px;
    color: var(--bubble-text);
    font-size: 0.82rem;
    font-weight: 550;
    line-height: 1.5;
    text-align: center;
    z-index: 10001;
    pointer-events: auto;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: bubblePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset paragraphs inside speech bubble */
.speech-bubble p {
    margin: 0;
    padding: 0;
}

@keyframes bubblePop {
    0% { transform: scale(0.85) translateX(-50%) translateY(8px); opacity: 0; }
    100% { transform: scale(1) translateX(-50%) translateY(0); opacity: 1; }
}

/* Ok - Baklava (Eşkenar Dörtgen) Çıkıntı */
.speech-bubble::before,
.speech-bubble::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--bubble-bg);
    left: 35px; /* Ok sola alındı */
    transform: rotate(45deg);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Arkadaki katman: Dışarı taşan kısmı ve kenarlıkları (sadece iki kenar) */
.speech-bubble::before {
    bottom: -6px; /* Tam yarı yarıya durması için */
    z-index: -1;
    /* Sadece dışarıda kalan alt iki kenarda çizgi var */
    border-bottom: 1.5px solid var(--theme-main);
    border-right: 1.5px solid var(--theme-main);
}

/* Öndeki katman: Balonun alt çizgisini gizler, iç içe geçmesini sağlar */
.speech-bubble::after {
    bottom: -4.5px; /* Arkadakinden tam 1.5px yukarıda (çizgi kalınlığı kadar) */
    z-index: 1;
    border: none;
    box-shadow: none;
}


/* Overlay / Backdrop when menu is open */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding: 0 5px;
}

.logo i {
    color: var(--olympic-blue);
}

/* Updated Sidebar Nav */
.nav-links li {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 3px;
    border: 1px solid transparent;
}

.nav-links li:hover {
    background: #f1f5f9;
    color: var(--olympic-blue);
    border-color: var(--border);
}

.nav-links li.active {
    background: var(--theme-main);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 133, 199, 0.2);
}

.nav-links li i {
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
}

/* Removed duplicate block */

/* Old instructor styles removed - using new persistent version */

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
    transition: transform 0.6s ease;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-premium);
}

.category-card:hover::before {
    transform: translate(10%, 10%);
}

.nav-links li.active i {
    color: white;
}

.main-content {
    position: absolute;
    left: var(--sidebar-width);
    right: 0;
    top: 0;
    bottom: 0;
    padding: 2rem;
    padding-top: 2.5rem; /* Daha da yukarı çekildi */
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: flex-start;
    overflow-y: auto !important; /* Ekran kaydırılabilsin */
    z-index: 1;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#content-area {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Hamburger Menü Simge Ayarı */
.menu-btn {
    position: fixed;
    top: 20px;
    left: calc(var(--sidebar-width) + 15px);
    z-index: 10005; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: var(--theme-main);
    border: none;
    color: white;
    width: 40px; /* Küçültüldü */
    height: 40px;
    border-radius: 8px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; /* Küçültüldü */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.sidebar.collapsed ~ .menu-btn {
    left: 135px; /* 120px sidebar + 15px margin */
}

.menu-btn:hover {
    transform: scale(1.05);
    background: var(--accent);
}

/* Header Adjustments for Absolute Layout */
header {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 2rem;
}

header {
    width: 100%;
    max-width: 1200px;
}

.sidebar.collapsed ~ .main-content {
    left: 120px !important;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.header-title h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-left: 55px; /* Hamburger menüsü ile çakışmaması için */
}

.header-title p {
    color: var(--text-secondary);
}

/* XP Bar & Profile Card */
.user-profile {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px 16px;
    width: 280px;
    box-sizing: border-box;
    box-shadow: var(--shadow-premium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-profile:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Golden Profile Card Style */
.user-profile.golden-profile-card {
    border: 1.5px solid var(--olympic-yellow) !important;
    background: linear-gradient(135deg, var(--glass-bg), rgba(244, 195, 0, 0.08)) !important;
    box-shadow: 0 0 20px rgba(244, 195, 0, 0.2), var(--shadow-premium) !important;
}

.user-profile.golden-profile-card .avatar-circle {
    border: 2px solid var(--olympic-yellow);
    background: linear-gradient(135deg, var(--olympic-yellow), #f59e0b);
    box-shadow: 0 0 15px rgba(244, 195, 0, 0.4);
}

.profile-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-container {
    position: relative;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-main), var(--accent));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.username-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.profile-username {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.profile-username.golden-username {
    color: var(--olympic-yellow) !important;
    text-shadow: 0 0 8px rgba(244, 195, 0, 0.3);
}

.profile-rank-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1px 6px;
    border-radius: 20px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-row {
    display: flex;
    gap: 12px;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.stat-badge.streak {
    color: #ff9800;
}

.stat-badge.gold {
    color: var(--olympic-yellow);
}

.stat-badge:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

/* XP Progress styling */
.profile-xp-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xp-level-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent);
    background: rgba(96, 165, 250, 0.15);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(96, 165, 250, 0.25);
    min-width: 44px;
    text-align: center;
}

.xp-bar-container {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.xp-progress-bar {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--theme-main), var(--olympic-green));
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0, 133, 199, 0.5);
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Widgets */
.hero-card {
    background: linear-gradient(135deg, var(--theme-main), var(--bg-dark));
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 60%;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.2);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 195, 0, 0.3);
}

/* Categories Grid Balanced */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.category-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: 18px; /* Daha kesin köşeler */
    padding: 1.8rem; /* Boyut küçültüldü */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover::before {
    opacity: 1;
}

.icon-bg {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background-color: transparent; /* Kareler/Arka plan temizlendi */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
}

.category-card h3 {
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Games Grid Balanced */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

.game-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.4rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.difficulty {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    width: fit-content;
    letter-spacing: 0.5px;
}

/* Study Timer Card */
.study-timer-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--olympic-yellow);
}

.study-timer-card button {
    background: var(--olympic-blue);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.study-timer-card button:hover {
    background: var(--accent);
    transform: scale(1.05);
}

/* Mini List (Leaderboard) */
.mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 0.85rem;
}

.mini-list-item .rank {
    width: 24px;
    height: 24px;
    background: var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.mini-list-item.top-1 .rank { background: var(--olympic-yellow); color: var(--bg-dark); }
.mini-list-item.top-2 .rank { background: #cbd5e1; color: var(--bg-dark); }
.mini-list-item.top-3 .rank { background: #cd7f32; color: var(--bg-dark); }

.mini-list-item .name {
    flex: 1;
    margin-left: 10px;
    font-weight: 500;
}

.mini-list-item .xp {
    font-weight: 700;
    color: var(--accent);
}

.btn-back {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.game-stats {
    display: flex;
    gap: 1.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

#game-canvas {
    background-color: var(--bg-card);
    border-radius: 16px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 1rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }

    .logo {
        margin-bottom: 1rem;
        width: 100%;
    }

    .nav-links {
        display: none;
    }
}

/* Auth Screens */
.auth-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, #0085C7, transparent),
                radial-gradient(circle at bottom right, #DF0024, transparent),
                #0f172a;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.auth-container.active {
    display: flex;
}

.auth-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 440px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    animation: authPop 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto; /* Center vertically and horizontally on any viewport */
}

@keyframes authPop {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-card h3 {
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--olympic-blue);
}

.auth-card a {
    color: var(--olympic-blue);
    text-decoration: none;
}

.auth-card a:hover {
    text-decoration: underline;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider span {
    padding: 0 10px;
}

/* Social Buttons */
.btn-social {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-social i, .btn-social svg {
    font-size: 1.2rem;
}

.btn-social:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-google:hover {
    border-color: #4285F4;
    background-color: rgba(66, 133, 244, 0.1);
}

.btn-apple:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-phone:hover {
    border-color: var(--olympic-green);
    background-color: rgba(0, 159, 61, 0.1);
}

/* Auth Cards Refinement */
.auth-card h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Olympiad Game Options */
.olympiad-option-btn {
    display: block;
    width: 100%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-primary);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.2s;
}

.olympiad-option-btn:hover {
    background: var(--border);
    transform: translateX(5px);
}

.olympiad-option-btn.selected {
    background: var(--theme-main);
    border-color: var(--accent);
}

/* Instructor and Speech Bubble */
/* Gereksiz stil ve çizgi kaldırıldı */

.instructor-sidebar * {
    pointer-events: auto;
}

/* Görsel efekt düzenlendi */
.instructor-sidebar:hover img {
    transform: scale(1.05);
}

/* Stil çakışması önlendi - duplicate kaldırıldı */

/* Goals Section */
.goals-container {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.goal-header {
    margin-bottom: 2rem;
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.goal-item {
    background-color: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.goal-item:hover {
    border-color: var(--accent);
}

.goal-item.completed {
    opacity: 0.6;
}

.goal-item.completed i {
    color: var(--olympic-green);
}

.goal-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    cursor: pointer;
}

.goal-item.completed .goal-checkbox {
    background-color: var(--olympic-green);
    border-color: var(--olympic-green);
    color: white;
}

.goal-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.goal-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Calendar Section */
.calendar-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day-name {
    text-align: center;
    font-weight: 700;
    color: var(--olympic-blue);
    padding-bottom: 10px;
    font-size: 0.9rem;
}

.calendar-day {
    aspect-ratio: 1;
    background-color: var(--bg-dark);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day:hover {
    border-color: var(--accent);
}

.calendar-day.today {
    border-color: var(--olympic-yellow);
    box-shadow: 0 0 10px rgba(244, 195, 0, 0.2);
}

.calendar-day.today span {
    background: var(--olympic-yellow);
    color: #000000;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.calendar-day.active {
    background-color: var(--olympic-blue);
    color: white;
}

.day-streak {
    font-size: 0.6rem;
    margin-top: 4px;
    color: var(--olympic-yellow);
}

/* AI Instructor Chat Window */
.ai-chat-window {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 350px;
    height: 450px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: none;
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.ai-chat-window.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, rgba(0, 133, 199, 0.2), rgba(223, 0, 36, 0.2));
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--olympic-yellow);
}

.chat-header .close-chat {
    cursor: pointer;
    color: white;
    opacity: 0.7;
}

.chat-header .close-chat:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 14px;
    border-radius: 15px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.ai {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    color: #e2e8f0;
}

.message.user {
    background: var(--olympic-blue);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 10px rgba(0, 133, 199, 0.3);
}

.chat-input-area {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px 15px;
    color: white;
    outline: none;
    font-size: 0.9rem;
}

.chat-input:focus {
    border-color: var(--olympic-blue);
    background: rgba(255, 255, 255, 0.1);
}

.chat-send-btn {
    background: var(--olympic-blue);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    background: var(--accent);
}

.typing-indicator {
    font-size: 0.8rem;
    color: var(--olympic-yellow);
    margin-left: 15px;
    margin-bottom: 5px;
    display: none;
    font-style: italic;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Menu classes removed as requested */

/* Responsive Overrides */
@media (max-width: 1200px) {
    .sidebar {
        width: 280px;
    }
    .main-content {
        left: 0;
        margin-left: 0;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 100%;
        position: relative;
    }
    .main-content {
        left: 0;
        margin-left: 0;
        position: relative;
    }
}

@media (max-width: 1024px) {
    .main-content {
        padding: 1.5rem;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .user-profile {
        width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr !important;
    }
}

.instructor-sidebar:hover {
    filter: brightness(1.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* --- ADMIN PANEL STYLE DEFS --- */
.admin-tab-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tab-btn:hover {
    color: var(--text-primary);
}

.admin-tab-btn.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.admin-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.admin-tab-content.active {
    display: block;
}

.admin-select {
    width: 100%;
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    font-weight: 500;
}

.admin-select:focus {
    border-color: var(--accent);
}

.admin-table th, .admin-table td {
    padding: 12px 10px;
}

.admin-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* --- PROFILE & ACHIEVEMENTS PREMIUM STYLES --- */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-box {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.badge-card {
    background: rgba(30, 41, 59, 0.25);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.badge-card.locked {
    opacity: 0.45;
    filter: grayscale(1);
    background: rgba(15, 23, 42, 0.4);
}

.badge-card.unlocked {
    background: rgba(30, 41, 59, 0.5);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.05);
}

.badge-card:hover {
    transform: translateY(-6px);
}

.badge-card.unlocked:hover {
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.12);
}

.badge-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.5s ease;
}

.badge-card.unlocked:hover .badge-icon {
    transform: rotate(360deg) scale(1.1);
}

.badge-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.badge-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 12px;
}

.badge-date {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
    background: rgba(245, 158, 11, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
}

/* Achievement Unlocked Popup Modal */
.achievement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 15000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.achievement-modal.active {
    display: flex;
    opacity: 1;
}

.achievement-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid var(--accent);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(245, 158, 11, 0.25);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.achievement-modal.active .achievement-modal-content {
    transform: scale(1);
}

.achievement-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.achievement-modal-close:hover {
    color: var(--text-primary);
}

.achievement-modal-glow {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}

.achievement-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px var(--accent);
    animation: bounceIcon 1.5s infinite alternate ease-in-out;
}

@keyframes bounceIcon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.achievement-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.achievement-modal-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}

.achievement-modal-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* --- GOLD & SHOP STYLES --- */
.gold-icon {
    color: var(--olympic-yellow);
    animation: goldSpin 3s linear infinite;
    text-shadow: 0 0 10px rgba(244, 195, 0, 0.4);
}

@keyframes goldSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.shop-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.shop-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(244, 195, 0, 0.05);
}

.shop-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.shop-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.shop-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 15px;
}

.shop-card-price {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--olympic-yellow);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

/* --- LEADERBOARD & SOCIAL STYLES --- */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.leaderboard-table th {
    text-align: left;
    padding: 15px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.leaderboard-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.leaderboard-row {
    transition: background-color 0.2s ease;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.leaderboard-rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.leaderboard-row.rank-1 .leaderboard-rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #0f172a;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.leaderboard-row.rank-2 .leaderboard-rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #a9a9a9);
    color: #0f172a;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}

.leaderboard-row.rank-3 .leaderboard-rank-badge {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #0f172a;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

/* User Profile Styles */
.golden-profile-card {
    border: 2px solid var(--olympic-yellow) !important;
    box-shadow: 0 0 20px rgba(244, 195, 0, 0.15) !important;
}

.golden-username {
    color: var(--olympic-yellow) !important;
    font-weight: 900 !important;
    text-shadow: 0 0 8px rgba(244, 195, 0, 0.3);
}

.profile-card.dark-energy {
    background: linear-gradient(135deg, #6366f1 0%, #1e1b4b 50%, #09090b 100%) !important;
    border-color: #4f46e5 !important;
}

/* Social Tabs */
.social-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.social-tab-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.social-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.social-tab-btn.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.profile-tab-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.profile-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.profile-tab-btn.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-indicator.online {
    background-color: var(--olympic-green);
    box-shadow: 0 0 8px var(--olympic-green);
}

.status-indicator.offline {
    background-color: var(--text-secondary);
}

/* Duel Panel Inside Game */
.duel-live-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 20px;
    width: 100%;
}

.duel-live-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
}

.duel-live-name {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.duel-live-score {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
}

.duel-vs {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--accent);
    text-transform: uppercase;
}

/* ==========================================================================
   PREMIUM UPDATE STYLES (Glassmorphism, CodeMirror, Whiteboard, AI Widget, Duel)
   ========================================================================== */

/* Glassmorphism Overrides & Enhancements */
.sidebar, .auth-card, .category-card, .profile-card, .dashboard-card, 
.modal-content, .leaderboard-card, .shop-item, .social-chat-container, 
.settings-container, .admin-card, .past-exam-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(var(--glass-blur)) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur)) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-premium) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sidebar {
    background: rgba(15, 23, 42, 0.6) !important;
}

/* CodeMirror Custom Styling */
.CodeMirror {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--border) !important;
    background: #1e1e2e !important; /* Catppuccin-like dark theme */
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
    height: 350px !important;
    margin-bottom: 15px;
}

.CodeMirror-gutters {
    background: #181825 !important;
    border-right: 1px solid var(--border) !important;
}

.CodeMirror-linenumber {
    color: #585b70 !important;
}

/* Whiteboard / Scratchpad (Karalama Defteri) */
.scratchpad-toggle-btn {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--theme-main), var(--accent));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(96, 165, 250, 0.4);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scratchpad-toggle-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(96, 165, 250, 0.6);
}

.scratchpad-panel {
    position: fixed;
    right: -450px;
    top: 80px;
    bottom: 80px;
    width: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 20px 0 0 20px;
    box-shadow: var(--shadow-premium);
    z-index: 2900;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.scratchpad-panel.active {
    right: 0;
}

.scratchpad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.scratchpad-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.scratchpad-canvas-container {
    flex-grow: 1;
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: crosshair;
}

#scratchpad-canvas {
    width: 100%;
    height: 100%;
}

.scratchpad-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.scratchpad-tools {
    display: flex;
    gap: 8px;
}

.scratchpad-tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.scratchpad-tool-btn:hover, .scratchpad-tool-btn.active {
    background: var(--theme-main);
    color: white;
    border-color: transparent;
}

.scratchpad-colors {
    display: flex;
    gap: 6px;
}

.scratchpad-color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.scratchpad-color-dot.active {
    transform: scale(1.2);
    border-color: var(--text-primary);
}

/* AI Floating Widget (Yüzen Yapay Zeka Asistanı) */
.ai-widget-toggle {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(6, 182, 212, 0.4);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-widget-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(6, 182, 212, 0.6);
}

.ai-widget-container {
    position: fixed;
    right: 25px;
    bottom: 95px;
    width: 380px;
    height: 520px;
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    z-index: 2900;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-widget-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.ai-widget-header {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-widget-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-widget-header-info i {
    font-size: 1.3rem;
    color: #06b6d4;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.ai-widget-header-info h4 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.ai-widget-header-info span {
    font-size: 0.75rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-widget-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    animation: bubbleIn 0.3s ease;
}

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-bubble.incoming {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

.ai-bubble.outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--theme-main), var(--accent));
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-widget-input-area {
    padding: 12px 15px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.ai-widget-input-area input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.ai-widget-input-area input:focus {
    border-color: #06b6d4;
}

.ai-widget-input-area button {
    width: 40px;
    height: 40px;
    background: #06b6d4;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.ai-widget-input-area button:hover {
    transform: scale(1.05);
}

/* Duel Progress Enhancements */
.duel-live-progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid var(--border);
}

.duel-live-progress-bar {
    height: 100%;
    border-radius: 5px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.duel-live-progress-bar.player {
    background: linear-gradient(90deg, var(--theme-main), var(--accent));
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.duel-live-progress-bar.opponent {
    background: linear-gradient(90deg, #f43f5e, #fda4af);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

/* ==========================================================================
   WHITE AUTH CARD & INPUTS (Giriş Ekranı Beyaz Teması)
   ========================================================================== */
#auth-screen .auth-card {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(35px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.2) !important;
}

#auth-screen .auth-card h3 {
    color: #0f172a !important;
}

#auth-screen .auth-card .input-group label {
    color: #475569 !important;
}

#auth-screen .auth-card .input-group input {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

#auth-screen .auth-card .input-group input::placeholder {
    color: #94a3b8 !important;
}

#auth-screen .auth-card .auth-divider {
    color: #64748b !important;
}

#auth-screen .auth-card .auth-divider::before,
#auth-screen .auth-card .auth-divider::after {
    border-bottom: 1px solid #e2e8f0 !important;
}

#auth-screen .auth-card p {
    color: #475569 !important;
}

#auth-screen .auth-card p a {
    color: var(--olympic-blue) !important;
}

#auth-screen .auth-card .btn-social {
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    background-color: rgba(0, 0, 0, 0.02) !important;
}

#auth-screen .auth-card .btn-social:hover {
    background-color: rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px);
}

#auth-screen .auth-card .btn-google:hover {
    border-color: #4285F4 !important;
    background-color: rgba(66, 133, 244, 0.08) !important;
}

#auth-screen .auth-card .btn-apple:hover {
    border-color: #000000 !important;
    background-color: rgba(0, 0, 0, 0.08) !important;
}

#auth-screen .auth-card .btn-phone:hover {
    border-color: var(--olympic-green) !important;
    background-color: rgba(0, 159, 61, 0.08) !important;
}

#auth-screen .auth-card .btn-admin {
    background: rgba(59, 130, 246, 0.08) !important;
    border: 1px solid var(--olympic-blue) !important;
    color: var(--olympic-blue) !important;
}

/* ==========================================================================
   GLASSMORPHISM SIDEBAR & BUTTONS (Uygulama İçi Cam Tasarımı)
   ========================================================================== */

/* Glass Sidebar Background */
.sidebar {
    background: rgba(9, 13, 22, 0.45) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.45) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05) !important;
}

/* Glass Menu Buttons (Faded/Subdued but dynamic color) */
.nav-links li {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

[data-theme="light"] .nav-links li {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.nav-links li:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--theme-main) !important;
    border-color: color-mix(in srgb, var(--theme-main) 40%, transparent) !important;
    transform: translateX(4px);
}

[data-theme="light"] .nav-links li:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

.nav-links li.active {
    background: color-mix(in srgb, var(--theme-main) 50%, transparent) !important;
    color: #ffffff !important;
    border: 1px solid color-mix(in srgb, var(--theme-main) 75%, transparent) !important;
    box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--theme-main) 60%, transparent) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .nav-links li.active {
    color: var(--theme-main) !important;
}

/* Primary Clickable Buttons in App */
.btn-primary {
    background: color-mix(in srgb, var(--theme-main) 65%, transparent) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid color-mix(in srgb, var(--theme-main) 80%, transparent) !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--theme-main) 85%, transparent) !important;
    border-color: var(--theme-main) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px -4px color-mix(in srgb, var(--theme-main) 65%, transparent) !important;
}

/* Question Options & Settings Buttons */
.olympiad-option-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.25s ease !important;
}

.olympiad-option-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: color-mix(in srgb, var(--theme-main) 40%, transparent) !important;
    transform: translateY(-2px) !important;
}

.olympiad-option-btn.correct {
    background: var(--olympic-green) !important;
    border-color: var(--olympic-green) !important;
    color: white !important;
}

.olympiad-option-btn.wrong {
    background: var(--olympic-red) !important;
    border-color: var(--olympic-red) !important;
    color: white !important;
}

/* Custom Settings Select Dropdowns */
.settings-select {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    outline: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 155px;
    max-width: 190px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings-select:hover {
    border-color: color-mix(in srgb, var(--theme-main) 60%, transparent);
}

.settings-select:focus {
    border-color: var(--theme-main);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-main) 20%, transparent);
}

/* Neon Profil Çerçevesi */
.neon-avatar-active {
    border-color: #ff007f !important;
    box-shadow: 0 0 15px #ff007f, 0 0 25px rgba(255, 0, 127, 0.4), inset 0 0 10px #ff007f !important;
    animation: neonPulse 2.5s infinite alternate !important;
}

@keyframes neonPulse {
    0% {
        box-shadow: 0 0 10px #ff007f, 0 0 20px rgba(255, 0, 127, 0.3);
        filter: drop-shadow(0 0 2px #ff007f);
    }
    100% {
        box-shadow: 0 0 20px #ff007f, 0 0 35px rgba(255, 0, 127, 0.6), 0 0 10px #00f0ff;
        filter: drop-shadow(0 0 8px #ff007f) drop-shadow(0 0 15px #00f0ff);
    }
}

/* Cyberpunk Teması */
.cyberpunk-theme {
    background: radial-gradient(circle at 0% 0%, rgba(255, 0, 127, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 100% 100%, rgba(0, 240, 255, 0.1) 0%, transparent 40%),
                #0c0514 !important;
}

.cyberpunk-theme .sidebar {
    background: rgba(12, 5, 20, 0.8) !important;
    border-right: 1px solid rgba(255, 0, 127, 0.25) !important;
}

.cyberpunk-theme .category-card {
    background: rgba(20, 10, 35, 0.5) !important;
    border-color: rgba(255, 0, 127, 0.2) !important;
}

.cyberpunk-theme .category-card:hover {
    border-color: #ff007f !important;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.25) !important;
}

/* --- MAĞAZA YENİ ÖZELLİKLER VE STİLLER --- */

/* Mağaza Kategori Sekmeleri */
.shop-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.shop-cat-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-cat-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.shop-cat-btn.active {
    color: var(--accent) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--border) !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

/* Dark Energy Teması */
.dark-energy-theme {
    background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
                radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.1) 0%, transparent 45%),
                #09090b !important;
}

.dark-energy-theme .sidebar {
    background: rgba(9, 9, 11, 0.8) !important;
    border-right: 1px solid rgba(99, 102, 241, 0.25) !important;
}

.dark-energy-theme .category-card {
    background: rgba(15, 15, 25, 0.5) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
}

.dark-energy-theme .category-card:hover {
    border-color: #6366f1 !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25) !important;
}

/* Emerald Nature Teması */
.emerald-nature-theme {
    background: radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 45%),
                radial-gradient(circle at 100% 100%, rgba(4, 120, 87, 0.1) 0%, transparent 45%),
                #022c22 !important;
}

.emerald-nature-theme .sidebar {
    background: rgba(2, 44, 34, 0.8) !important;
    border-right: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.emerald-nature-theme .category-card {
    background: rgba(4, 60, 48, 0.4) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.emerald-nature-theme .category-card:hover {
    border-color: #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25) !important;
}

/* Retro Sunset Teması */
.retro-sunset-theme {
    background: radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.15) 0%, transparent 45%),
                radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.12) 0%, transparent 45%),
                #180e1b !important;
}

.retro-sunset-theme .sidebar {
    background: rgba(24, 14, 27, 0.8) !important;
    border-right: 1px solid rgba(249, 115, 22, 0.25) !important;
}

.retro-sunset-theme .category-card {
    background: rgba(36, 18, 42, 0.4) !important;
    border-color: rgba(249, 115, 22, 0.2) !important;
}

.retro-sunset-theme .category-card:hover {
    border-color: #f97316 !important;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.25) !important;
}

/* Midnight Blue Teması */
.midnight-blue-theme {
    background: radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.15) 0%, transparent 45%),
                radial-gradient(circle at 100% 100%, rgba(30, 58, 138, 0.12) 0%, transparent 45%),
                #030712 !important;
}

.midnight-blue-theme .sidebar {
    background: rgba(3, 7, 18, 0.8) !important;
    border-right: 1px solid rgba(14, 165, 233, 0.25) !important;
}

.midnight-blue-theme .category-card {
    background: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(14, 165, 233, 0.2) !important;
}

.midnight-blue-theme .category-card:hover {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.25) !important;
}

/* Rainbow Username Effect */
.rainbow-username {
    background: linear-gradient(to right, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 400% 400%;
    animation: rainbowMove 8s ease infinite !important;
    font-weight: 900 !important;
}

@keyframes rainbowMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Diamond Profile Card */
.diamond-profile-card {
    border: 2px solid #00f0ff !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2) !important;
    background: linear-gradient(135deg, rgba(12, 74, 110, 0.2) 0%, rgba(30, 41, 59, 0.7) 100%) !important;
}

/* Diamond Username */
.diamond-username {
    color: #00f0ff !important;
    font-weight: 900 !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* Fire Avatar Frame */
.fire-avatar-active {
    border-color: #f97316 !important;
    box-shadow: 0 0 15px #ef4444, 0 0 25px rgba(249, 115, 22, 0.4), inset 0 0 10px #ef4444 !important;
    animation: firePulse 1.5s infinite alternate !important;
}

@keyframes firePulse {
    0% {
        box-shadow: 0 0 8px #f97316, 0 0 15px rgba(239, 68, 68, 0.3);
        filter: drop-shadow(0 0 2px #f97316);
    }
    100% {
        box-shadow: 0 0 18px #ef4444, 0 0 30px rgba(249, 115, 22, 0.6), 0 0 10px #eab308;
        filter: drop-shadow(0 0 6px #ef4444) drop-shadow(0 0 12px #eab308);
    }
}

/* Application Logo Styles */
.auth-logo-img {
    height: 150px; /* Biraz daha büyütüldü */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.auth-brand-text {
    font-size: 2.8rem; /* Yazı stili daha da büyütüldü */
    font-weight: 900;
    color: #0f172a !important; /* Giriş ekranındaki beyaz kart için siyah yazı */
    letter-spacing: -1px;
    margin-top: 12px;
    text-align: center;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    display: block;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px; /* Logo ve yazı birbirine yaklaştırıldı */
    font-size: 1.25rem; /* OlimpiCode yazısı küçültüldü */
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding: 0;
    margin-left: -15px; /* Sola daha da çekildi */
    width: calc(100% + 25px);
    white-space: nowrap; /* Yazının alt satıra kırılmasını engeller */
}

.logo span {
    margin-left: -48px; /* Sola kaydırıldı, logo konumu korundu */
    transform: translateY(3px); /* Birazcık aşağı kaydırıldı */
}

.logo-img {
    height: 76px; /* Logo görseli belirgin şekilde büyütüldü! */
    width: auto;
    object-fit: contain;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: invert(1); /* Default (karanlık mod/temalar): Logoyu beyaz yap */
}

[data-theme="light"] .logo-img {
    filter: none !important; /* Aydınlık modda logoyu orijinal siyah renginde bırak */
}

.sidebar.collapsed .logo {
    justify-content: center;
    padding: 0;
    margin-left: 0;
    width: 100%;
}

.sidebar.collapsed .logo-img {
    height: 56px; /* Daraltılmış menüde ortalanmış büyük görünüm */
    width: auto;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Color Palette Swatch Styles */
.color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.color-swatch:hover {
    transform: scale(1.25) translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

.color-swatch.active {
    transform: scale(1.3);
    border-color: #ffffff !important;
    box-shadow: 0 0 15px var(--theme-main) !important;
}

[data-theme="light"] .color-swatch.active {
    border-color: #090d16 !important;
}






