/* ============================================
   Playlogs — Sleek Carbon (GG.app / Backloggd / Letterboxd inspired)
   Clean minimalism with dark theme and subtle borders
   ============================================ */

:root {
    /* Dark Mode (Default) - Sleek Carbon */
    --bg-color: #0d0d0d;
    --bg-primary: #0d0d0d;
    --bg-secondary: #1A1A1A;
    --bg-tertiary: #252525;
    --card-bg: rgba(26, 26, 26, 0.85);
    --bg-card: rgba(26, 26, 26, 0.85);
    --card-bg-hover: rgba(30, 30, 30, 0.9);
    --bg-input: rgba(26, 26, 26, 0.8);
    --bg-surface: rgba(26, 26, 26, 0.85);
    --bg-glass: rgba(26, 26, 26, 0.7);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Accent Colors */
    --accent-primary: #6366F1;
    --accent-secondary: #A855F7;
    --accent-tertiary: #A78BFA;
    --accent-muted: #3F3F46;
    --accent-gold: #FBBF24;
    --accent-success: #22C55E;
    --accent-error: #EF4444;
    
    /* Gradients */
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-subtle: linear-gradient(135deg, #1A1A1A 0%, #252525 100%);
    --gradient-hero: linear-gradient(180deg, transparent 0%, rgba(13, 13, 13, 0.9) 100%);
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(99, 102, 241, 0.4);
    
    /* Glows */
    --glow-primary: 0 0 20px rgba(99, 102, 241, 0.2);
    --glow-accent: 0 4px 20px rgba(99, 102, 241, 0.15);
    --glow-inner: inset 0 0 10px rgba(99, 102, 241, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border radius - Modern */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* Light Mode - Cyber-Milk Theme (Frostmorphism)
   Lavender-cool palette with frosted glass effects */
html[data-theme="light"],
[data-theme="light"] {
    --bg-color: #f0f0f8;
    --bg-primary: #f0f0f8;
    --bg-secondary: #e8e6f0;
    --bg-tertiary: #dedce8;
    --card-bg: rgba(255, 255, 255, 0.55);
    --bg-card: rgba(255, 255, 255, 0.55);
    --card-bg-hover: rgba(255, 255, 255, 0.72);
    --bg-input: rgba(255, 255, 255, 0.5);
    --bg-surface: rgba(255, 255, 255, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.45);
    
    --text-primary: #1e1b2e;
    --text-secondary: #44415a;
    --text-muted: #6e6b82;
    
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a78bfa;
    --accent-muted: #c4c1d6;
    --accent-gold: #d97706;
    --accent-success: #16a34a;
    --accent-error: #dc2626;
    
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #c084fc 100%);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #c084fc 100%);
    --gradient-subtle: linear-gradient(135deg, #e8e6f0 0%, #dedce8 100%);
    --gradient-hero: linear-gradient(180deg, transparent 0%, rgba(240, 240, 248, 0.92) 100%);
    
    --border-color: rgba(99, 102, 241, 0.08);
    --border-accent: rgba(99, 102, 241, 0.25);
    
    --glow-primary: 0 0 24px rgba(99, 102, 241, 0.12);
    --glow-accent: 0 4px 24px rgba(139, 92, 246, 0.10);
    --glow-inner: inset 0 0 12px rgba(99, 102, 241, 0.08);
    
    /* Frostmorphism extras */
    --frost-blur: 16px;
    --frost-shadow: 0 8px 32px rgba(99, 102, 241, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --frost-border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ============ FROSTMORPHISM — Light Mode Overrides ============ */

html[data-theme="light"] .game-card,
html[data-theme="light"] .activity-card,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .user-dropdown,
html[data-theme="light"] .stats-card,
html[data-theme="light"] .dna-card,
html[data-theme="light"] .following-user-card,
html[data-theme="light"] .toast {
    backdrop-filter: blur(var(--frost-blur, 16px));
    -webkit-backdrop-filter: blur(var(--frost-blur, 16px));
    box-shadow: var(--frost-shadow);
    border: var(--frost-border);
}

html[data-theme="light"] .navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(240, 240, 248, 0.78) !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 1px 12px rgba(99, 102, 241, 0.06);
}

html[data-theme="light"] .sidebar,
html[data-theme="light"] .right-sidebar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    background: rgba(255, 255, 255, 0.55) !important;
    border: 1px solid rgba(99, 102, 241, 0.12) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] select::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: var(--text-muted) !important;
}

html[data-theme="light"] .btn-primary,
html[data-theme="light"] .filter-btn.active {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

html[data-theme="light"] .comment-item,
html[data-theme="light"] .inline-comment-item {
    background: rgba(255, 255, 255, 0.4);
    border-left: 2px solid rgba(99, 102, 241, 0.2);
}

html[data-theme="light"] code,
html[data-theme="light"] pre {
    background: rgba(99, 102, 241, 0.06);
    color: var(--text-primary);
}

/* ============ RESET & BASE ============ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-color) !important;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Living Background with Radial Gradients */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(126, 34, 206, 0.15) 0%, transparent 50%);
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.3s ease;
}

html[data-theme="light"] body::before {
    background: 
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(126, 34, 206, 0.08) 0%, transparent 50%);
}

/* ============ APP CONTAINER ============ */

.app-container {
    position: relative;
    min-height: 100vh;
    background: transparent; /* Allow body background to show through */
}

/* ============ DYNAMIC WALLPAPER SYSTEM ============ */

.dynamic-wallpaper-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(6px) brightness(0.3) !important;
    -webkit-filter: blur(6px) brightness(0.3) !important;
    opacity: 0.5 !important;
    transform: scale(1.05);
    transition: background-image 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
}

.dynamic-wallpaper-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.6)); /* Lighter gradient overlay */
    pointer-events: none;
    transition: background 0.3s ease;
}

html[data-theme="light"] .dynamic-wallpaper-container::after {
    background: linear-gradient(to bottom, rgba(248, 249, 254, 0.3), rgba(248, 249, 254, 0.7)); /* Light mode overlay */
}

/* Wallpaper Watermark */
.wallpaper-watermark {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    z-index: 50;
    backdrop-filter: blur(10px);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wallpaper-watermark:hover {
    opacity: 0.7;
}

/* Background elements - HIDDEN for clean look */
.bg-grid,
.bg-glow,
.bg-glow-alt {
    display: none;
}

/* ============ NAVBAR ============ */

.navbar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    flex-wrap: nowrap; /* CRITICAL: Prevent wrapping that could hide links */
    min-height: 60px; /* Ensure navbar has enough height */
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.brand-icon {
    font-size: 1.6rem;
}

.brand-text .accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex !important; /* CRITICAL: Force display */
    gap: var(--space-lg);
    flex-wrap: nowrap; /* Prevent wrapping */
    align-items: center;
    visibility: visible !important; /* Force visibility */
    opacity: 1 !important; /* Force opacity */
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    display: inline-block !important; /* CRITICAL: Force display */
    visibility: visible !important; /* Force visibility */
    opacity: 1 !important; /* Force opacity */
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--accent-primary);
}

.nav-actions {
    display: flex;
    gap: var(--space-md);
}

/* ============ NAVBAR USER SECTION ============ */

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin-right: 8px;
    background: var(--bg-tertiary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode - more visible with accent colors */
.theme-toggle {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-primary);
}

.theme-toggle:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3), var(--glow-accent);
    color: var(--accent-secondary);
}

.theme-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}

/* Light mode - different styling */
html[data-theme="light"] .theme-toggle,
[data-theme="light"] .theme-toggle {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
    color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

html[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .theme-toggle:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25), var(--glow-accent);
    color: var(--accent-secondary);
}

.theme-icon {
    position: absolute;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    width: 20px;
    height: 20px;
}

.theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

.theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

html[data-theme="light"] .theme-icon-sun,
[data-theme="light"] .theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

html[data-theme="light"] .theme-icon-moon,
[data-theme="light"] .theme-icon-moon {
    opacity: 0;
    transform: rotate(-90deg);
}

.nav-user-section {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
}

.nav-user-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-user-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bg-primary);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.nav-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.nav-user-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.nav-auth-buttons {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

/* Ensure navbar is always sticky with glassmorphism */
.navbar-unified {
    position: sticky;
    top: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Accent Line at top of Navbar */
.navbar-unified::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    z-index: 1001;
    transition: background 0.3s ease;
}

/* ============ BUTTONS ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    position: relative;
    font-weight: 600;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4), 0 4px 20px rgba(168, 85, 247, 0.3);
    transform: translateY(-1px);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #475569;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-ghost:hover {
    color: var(--accent-primary);
    border-color: var(--accent-muted);
    background: rgba(81, 44, 58, 0.2);
}

/* ============ TYPOGRAPHY ============ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ============ MAIN CONTENT ============ */

.main-content {
    position: relative;
    z-index: 1;
    padding: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

/* ============ HERO SECTION ============ */

.hero {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    font-family: var(--font-heading);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
}

.quick-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.stat-card:hover {
    border-color: var(--border-color);
    background: rgba(81, 44, 58, 0.1);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent-primary);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

/* ============ FILTERS ============ */

/* ============ CATALOG TABS ============ */

.catalog-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4px;
    width: fit-content;
}

.catalog-tab {
    padding: var(--space-sm) var(--space-lg);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.catalog-tab:hover {
    color: var(--text-primary);
}

.catalog-tab.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.filters-section {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.search-box {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

html[data-theme="light"] .search-box,
[data-theme="light"] .search-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.search-box:focus-within {
    border-color: var(--accent-muted);
    box-shadow: 0 0 0 2px rgba(81, 44, 58, 0.2);
}

.search-box svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--space-md) 0;
    color: #ffffff !important;
    font-size: 1rem;
    font-family: var(--font-primary);
}

html[data-theme="light"] .search-input,
[data-theme="light"] .search-input {
    color: #1a1a1a !important;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.7;
}

html[data-theme="light"] .search-input::placeholder,
[data-theme="light"] .search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.search-input:focus {
    outline: none;
    color: #ffffff !important;
}

html[data-theme="light"] .search-input:focus,
[data-theme="light"] .search-input:focus {
    color: #1a1a1a !important;
}

.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
}

.filter-group {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.filter-select {
    padding: var(--space-sm) var(--space-md);
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: #ffffff !important;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    appearance: none;
    padding-right: 32px;
    position: relative;
}

/* CSS-only arrow for dark mode */
.filter-select::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #ffffff;
    pointer-events: none;
}

html[data-theme="light"] .filter-select,
[data-theme="light"] .filter-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a1a !important;
}

html[data-theme="light"] .filter-select::after,
[data-theme="light"] .filter-select::after {
    border-top-color: #1a1a1a;
}

.filter-select option {
    background: #1a1a1a;
    color: #ffffff;
}

html[data-theme="light"] .filter-select option,
[data-theme="light"] .filter-select option {
    background: #ffffff;
    color: #1a1a1a;
}

.filter-select:hover {
    border-color: var(--accent-muted);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-muted);
    box-shadow: 0 0 0 2px rgba(81, 44, 58, 0.2);
}

/* ============ GAMES GRID ============ */

.games-section {
    position: relative;
    min-height: 400px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
}

/* Responsive Grid - Mobile to 4K */
@media (max-width: 640px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--space-md);
    }
}

@media (min-width: 1920px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: var(--space-xl);
    }
}

@media (min-width: 2560px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        max-width: 2400px;
        margin: 0 auto;
    }
}

.game-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.game-card:hover {
    transform: scale(1.02);
    border-color: var(--border-accent);
}

.game-cover {
    position: relative;
    height: 240px;
    background: var(--bg-tertiary);
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.game-card:hover .game-cover img {
    transform: scale(1.08);
}

/* Quick-Log Action Button */
.game-card-quick-log {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.game-card:hover .game-card-quick-log {
    display: flex;
}

.game-card-quick-log:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.game-card-quick-log svg {
    width: 18px;
    height: 18px;
}

/* Quick-Log Modal Styles */
.quick-log-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-log-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.quick-log-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateX(4px);
}

.quick-log-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.quick-log-icon {
    font-size: 1.25rem;
}

.game-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--accent-muted));
}

.game-rating-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.game-rating-badge.high {
    color: var(--accent-primary);
}

.game-rating-badge.medium {
    color: var(--accent-gold);
}

.game-rating-badge.low {
    color: var(--accent-tertiary);
}

/* User Status Badge */
.user-status-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bg-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 245, 212, 0.3);
    z-index: 2;
}

/* User Personal Rating Badge */
.user-rating-badge {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
    z-index: 3;
}

.user-status-badge.completed {
    background: linear-gradient(135deg, #10b981, #059669);
}

.user-status-badge.playing {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.user-status-badge.wishlist {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.user-status-badge.backlog {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.user-status-badge.dropped {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.game-rating-badge.metacritic {
    background: rgba(255, 209, 102, 0.2);
    color: var(--accent-gold);
}

/* ============ STAR RATING SYSTEM ============ */

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star {
    font-size: inherit;
    line-height: 1;
    transition: all 0.2s ease;
}

.star.full {
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(255, 209, 102, 0.5);
}

.star.half {
    background: linear-gradient(90deg, var(--accent-gold) 50%, rgba(255, 255, 255, 0.2) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.star.empty {
    color: rgba(255, 255, 255, 0.2);
}

/* Star sizes */
.stars-small {
    font-size: 0.85rem;
    gap: 1px;
}

.stars-medium {
    font-size: 1.2rem;
    gap: 3px;
}

.stars-large {
    font-size: 1.8rem;
    gap: 5px;
}

/* Interactive stars (for rating input) */
.stars-interactive {
    cursor: pointer;
}

.stars-interactive .star {
    cursor: pointer;
    transition: all 0.15s ease;
}

.stars-interactive .star:hover {
    transform: scale(1.2);
}

.stars-interactive .star.empty:hover {
    color: var(--accent-gold);
}

.stars-interactive .star:hover ~ .star {
    color: rgba(255, 255, 255, 0.2) !important;
}

.game-info {
    padding: var(--space-md);
}

.game-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Progress Bar for Playing Games */
.game-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: var(--space-sm);
}

.game-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.game-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Metacritic badge ON cover */
.metacritic-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    z-index: 2;
}

/* User tags (status + rating) */
.game-user-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}

.utag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.utag.status-completed { background: #10b98125; color: #10b981; }
.utag.status-playing { background: #3b82f625; color: #60a5fa; }
.utag.status-wishlist { background: #f59e0b25; color: #fbbf24; }
.utag.status-backlog { background: #8b5cf625; color: #a78bfa; }
.utag.status-dropped { background: #ef444425; color: #f87171; }
.utag.rating { background: #ffd70025; color: var(--accent-gold); font-weight: 700; }

/* User review snippet */
.game-user-review {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 6px;
    line-height: 1.3;
}

/* ================================================
   MY LIBRARY - DASHBOARD
   ================================================ */

.library-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.library-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.library-empty p {
    margin-bottom: 15px;
}

.library-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.library-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.library-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.library-item-cover {
    width: 50px;
    height: 70px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.library-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-item-cover .cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    font-size: 1.5rem;
}

.library-item-info {
    flex: 1;
    min-width: 0;
}

.library-item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.library-item-status {
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.library-item-status.completed { color: #10b981; }
.library-item-status.playing { color: #60a5fa; }
.library-item-status.wishlist { color: #fbbf24; }
.library-item-status.backlog { color: #a78bfa; }
.library-item-status.dropped { color: #f87171; }

.library-item-meta {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.library-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.library-item-header {
    cursor: pointer;
}

.library-item-edit {
    flex-shrink: 0;
    align-self: flex-start;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--bg-tertiary);
}

/* Notes Preview in Library */
.library-item-notes {
    margin-top: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.08), rgba(0, 245, 212, 0.02));
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.notes-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 8px;
}

.notes-more-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notes-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 245, 212, 0.3);
}

/* Notes Modal */
.modal-notes {
    max-width: 650px;
}

.notes-full-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
    max-height: 60vh;
    overflow-y: auto;
}

/* ================================================
   SOCIAL PAGE - REDESIGNED
   ================================================ */

.social-page {
    padding: var(--space-lg);
    padding-bottom: 100px;
}

.page-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============ PLAYER SEARCH ============ */

.player-search-section {
    max-width: 1200px;
    margin: 0 auto var(--space-lg);
    position: relative;
}

.player-search-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.player-search-bar:focus-within {
    border-color: var(--accent-primary);
    box-shadow: var(--glow-primary);
}

.player-search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.player-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    padding: var(--space-sm) 0;
}

.player-search-bar input::placeholder {
    color: var(--text-muted);
}

.player-search-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.player-search-results {
    margin-top: var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 480px;
    overflow-y: auto;
}

.player-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.player-result-item:last-child {
    border-bottom: none;
}

.player-result-item:hover {
    background: rgba(99, 102, 241, 0.08);
}

.player-result-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.player-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-result-info {
    flex: 1;
    min-width: 0;
}

.player-result-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.player-result-name mark {
    background: rgba(99, 102, 241, 0.25);
    color: var(--accent-primary);
    border-radius: 2px;
    padding: 0 2px;
}

.player-result-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.player-result-follow {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.player-search-empty {
    padding: var(--space-xl);
    text-align: center;
    color: var(--text-muted);
}

.player-search-pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.player-search-pagination button {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.player-search-pagination button:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.player-search-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.social-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Cards */
.section-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05), transparent);
}

.section-card-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-card-body {
    padding: var(--space-md);
}

/* Feed Tabs */
.feed-tabs {
    display: flex;
    gap: 8px;
}

.feed-tab {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.feed-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.activity-card-new {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.3s ease;
}

.activity-card-new:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.activity-header-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.activity-user-new {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
}

.activity-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.activity-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-username {
    font-weight: 600;
    color: var(--text-primary);
}

.activity-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.activity-type-icon {
    font-size: 1.5rem;
    padding: 8px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: var(--radius-md);
}

.activity-text-new {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

/* Activity Game Card */
.activity-game {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.activity-game:hover {
    background: rgba(0, 245, 212, 0.1);
}

.activity-game-cover {
    width: 60px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.activity-game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-game-info h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-game-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Activity Review */
.activity-review-new {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), transparent);
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.activity-review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-sm);
}

.activity-review-stars {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.activity-review-score {
    font-weight: 700;
    color: var(--accent-gold);
    font-family: var(--font-mono);
}

.activity-review-text {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.activity-review-actions {
    display: flex;
    gap: var(--space-sm);
}

.activity-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.activity-action-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.activity-action-btn.liked {
    color: #ff4757;
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.activity-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Social Sidebar */
.social-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.sidebar-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sidebar-card-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05), transparent);
}

.sidebar-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.sidebar-card-body {
    padding: var(--space-md);
}

/* Discover Users */
.users-discover {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.user-discover-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-discover-item:hover {
    background: var(--bg-secondary);
}

.user-discover-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--bg-primary);
    flex-shrink: 0;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.user-discover-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-discover-info {
    flex: 1;
    min-width: 0;
}

.user-discover-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.user-discover-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Popular Lists */
.lists-popular {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.list-item-new {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.list-item-new:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.list-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.list-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sidebar Stats */
.sidebar-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: var(--space-lg);
    gap: var(--space-md);
}

.stat-mini {
    text-align: center;
}

.stat-mini-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.stat-mini-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.stat-mini-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Empty States */
.empty-state-social {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}

.empty-state-social .empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

/* ============ CATALOG LAYOUT (with news sidebar) ============ */

.catalog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.catalog-main {
    min-width: 0;
}

.catalog-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* ============ NEWS WIDGET (sidebar) ============ */

.news-widget .sidebar-card-header h3 {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-widget .sidebar-card-body {
    padding: 0;
}

.news-empty {
    padding: var(--space-lg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.news-featured {
    display: block;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}
.news-featured:hover { background: var(--bg-secondary); }

.news-featured-img {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.news-featured-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.1), rgba(139, 92, 246, 0.1));
    font-size: 2.5rem;
}
.news-featured-body { padding: var(--space-sm) var(--space-md) var(--space-md); }
.news-featured-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 6px 0 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-author-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent-primary, #00f5d4);
}

.news-list { display: flex; flex-direction: column; }

.news-item {
    display: flex;
    gap: 10px;
    padding: 10px var(--space-md);
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--bg-secondary); }

.news-item-thumb {
    width: 64px;
    min-width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
}
.news-item-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    font-size: 1.2rem;
}
.news-item-body { flex: 1; min-width: 0; }
.news-item-title {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 2px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-time { font-size: 0.72rem; color: var(--text-muted); }

.news-widget-footer {
    display: block;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary, #00f5d4);
    text-decoration: none;
    border-top: 1px solid var(--border-color);
    transition: background 0.2s;
}
.news-widget-footer:hover { background: var(--bg-secondary); }

/* ============ NEWS TAG CHIP ============ */

.news-tag-chip {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(0, 245, 212, 0.12);
    color: var(--accent-primary, #00f5d4);
    white-space: nowrap;
}
.tag-removable {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tag-removable button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
}
.tag-removable button:hover { opacity: 1; }

/* ============ NEWS PAGE (list / grid) ============ */

.news-page .page-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg, rgba(255,255,255,0.05));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.news-card-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}
.news-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,245,212,0.08), rgba(139,92,246,0.08));
    font-size: 3rem;
}

.news-card-body { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; }

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.news-card-author { font-weight: 600; color: var(--accent-primary, #00f5d4); }

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.news-card-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
}

.news-empty-state {
    text-align: center;
    padding: var(--space-xxl) var(--space-md);
    color: var(--text-muted);
}
.news-empty-state .empty-icon-large { font-size: 4rem; margin-bottom: var(--space-md); }

/* ============ NEWS ARTICLE PAGE ============ */

.news-article-page { max-width: 820px; margin: 0 auto; }

.article-container { padding-bottom: var(--space-xxl); }

.article-hero {
    width: 100%;
    height: 360px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    position: relative;
    margin-bottom: var(--space-lg);
}
.article-hero-overlay {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.article-header { margin-bottom: var(--space-xl); }

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}
.article-author { font-weight: 600; color: var(--accent-primary, #00f5d4); }
.article-meta-sep { opacity: 0.5; }

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.article-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}
.article-content blockquote {
    border-left: 3px solid var(--accent-primary, #00f5d4);
    margin: var(--space-md) 0;
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 245, 212, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}
.article-content h2, .article-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

/* Citations section */
.article-citations {
    margin-top: var(--space-xxl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}
.citations-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}
.citations-list { display: flex; flex-direction: column; gap: var(--space-md); }

.citation-card {
    background: var(--card-bg, rgba(255,255,255,0.04));
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-primary, #00f5d4);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin: 0;
}
.citation-quote {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}
.citation-source {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.citation-source a {
    color: var(--accent-primary, #00f5d4);
    text-decoration: none;
}
.citation-source a:hover { text-decoration: underline; }

.article-back {
    margin-top: var(--space-xxl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

/* ============ NEWS EDITOR ============ */

.news-editor-page { max-width: 900px; margin: 0 auto; }

.editor-container { padding-bottom: var(--space-xxl); }

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}
.editor-header h1 { font-size: 1.6rem; font-weight: 700; }

.editor-form { display: flex; flex-direction: column; gap: var(--space-lg); }

.editor-field { display: flex; flex-direction: column; gap: 6px; }

.editor-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editor-input {
    background: var(--bg-secondary, rgba(255,255,255,0.06));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 1rem;
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
}
.editor-input:focus {
    outline: none;
    border-color: var(--accent-primary, #00f5d4);
}

.editor-textarea {
    background: var(--bg-secondary, rgba(255,255,255,0.06));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.95rem;
    color: var(--text-primary);
    width: 100%;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}
.editor-textarea:focus {
    outline: none;
    border-color: var(--accent-primary, #00f5d4);
}

/* Quill overrides */
.editor-quill {
    min-height: 350px;
    background: var(--bg-secondary, rgba(255,255,255,0.06));
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
}
.editor-quill .ql-editor { min-height: 320px; }
.ql-toolbar.ql-snow {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    background: var(--bg-secondary, rgba(255,255,255,0.03));
}
.ql-toolbar .ql-stroke { stroke: var(--text-secondary) !important; }
.ql-toolbar .ql-fill { fill: var(--text-secondary) !important; }
.ql-toolbar .ql-picker-label { color: var(--text-secondary) !important; }
.ql-snow .ql-editor blockquote {
    border-left: 3px solid var(--accent-primary, #00f5d4);
    padding-left: var(--space-md);
}

/* Cover upload */
.cover-upload-area { position: relative; }
.cover-preview {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 260px;
}
.cover-preview img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}
.cover-remove {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Tags input */
.tags-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    background: var(--bg-secondary, rgba(255,255,255,0.06));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px 10px;
    min-height: 42px;
}
.tags-input-wrapper:focus-within { border-color: var(--accent-primary, #00f5d4); }
.tags-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tags-text-input {
    flex: 1;
    min-width: 120px;
    border: none !important;
    background: transparent !important;
    padding: 4px !important;
    font-size: 0.9rem;
}
.tags-text-input:focus { outline: none; }

/* Citation editor cards */
.citations-editor-list { display: flex; flex-direction: column; gap: var(--space-md); }

.citation-editor-card {
    background: var(--bg-secondary, rgba(255,255,255,0.04));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}
.citation-editor-row { margin-bottom: 8px; }
.citation-editor-row:last-child { margin-bottom: 0; }
.citation-editor-meta {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: start;
}
.citation-quote { width: 100%; }

/* Editor actions */
.editor-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 900px) {
    .social-layout {
        grid-template-columns: 1fr;
    }
    
    .social-sidebar {
        order: -1;
    }
    
    .sidebar-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        order: -1;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .article-hero {
        height: 220px;
    }

    .citation-editor-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .section-card-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .feed-tabs {
        width: 100%;
    }
    
    .feed-tab {
        flex: 1;
        text-align: center;
    }
}

/* ================================================
   EDIT GAME MODAL
   ================================================ */

.modal-large {
    max-width: 600px;
    width: 95%;
}

.edit-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-select,
.form-input {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-checkboxes {
    display: flex;
    gap: 20px;
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.form-notes {
    grid-column: 1 / -1;
}

.form-textarea {
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-textarea::placeholder {
    color: var(--text-muted);
}

.notes-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

@media (max-width: 640px) {
    .edit-form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-checkboxes {
        flex-direction: column;
        align-items: flex-start;
    }
}

.game-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.game-genres {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.genre-tag {
    padding: 2px 8px;
    background: rgba(123, 44, 191, 0.2);
    border: 1px solid rgba(123, 44, 191, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============ EMPTY & LOADING STATES ============ */

.empty-state,
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
    color: var(--text-secondary);
    min-height: 500px; /* Ensure enough space */
    width: 100%;
}

/* Empty State - Welcome */
.empty-welcome {
    margin-bottom: var(--space-2xl);
}

.empty-icon-large {
    font-size: 6rem;
    margin-bottom: var(--space-lg);
    filter: drop-shadow(0 0 20px rgba(0, 245, 212, 0.3));
    animation: float 3s ease-in-out infinite;
}

.empty-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.empty-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Onboarding Steps */
.onboarding-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto var(--space-2xl);
}

.onboarding-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    transition: all var(--transition-normal);
}

.onboarding-step:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 245, 212, 0.1);
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(0, 245, 212, 0.1);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content {
    text-align: left;
}

.step-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Empty Actions */
.empty-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.btn-large {
    height: 48px;
    padding: 0 24px;
    font-size: 0.95rem;
}

.btn-icon {
    margin-right: var(--space-sm);
}

/* Empty Tip */
.empty-tip {
    background: rgba(0, 245, 212, 0.05);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.empty-tip strong {
    color: var(--accent-primary);
}

/* Legacy empty state (for compatibility) */
.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .empty-icon-large {
        font-size: 4rem;
    }
    
    .empty-title {
        font-size: 2rem;
    }
    
    .onboarding-steps {
        grid-template-columns: 1fr;
    }
    
    .empty-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .empty-actions .btn {
        width: 100%;
    }
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

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

.loading-inline {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============ MODALS ============ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    place-items: center;
    padding: 40px;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

html[data-theme="light"] .modal-overlay,
[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-overlay.active {
    display: grid;
}

.modal {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(26, 26, 26, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2), 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    margin: auto;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

html[data-theme="light"] .modal,
[data-theme="light"] .modal {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.modal-large {
    max-width: 800px;
}

/* ============ ADD GAME MODAL ENHANCED ============ */

.add-game-modal {
    width: 800px;
    max-width: 95vw;
    max-height: 85vh;
    background: rgba(26, 26, 26, 0.6) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 40px rgba(99, 102, 241, 0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html[data-theme="light"] .add-game-modal,
[data-theme="light"] .add-game-modal {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 0 40px rgba(79, 70, 229, 0.04);
}

.add-game-body {
    padding: 24px 28px;
    flex: 1;
    overflow-y: auto;
}

.add-game-step {
    width: 100%;
}

.search-hero {
    text-align: center;
    margin-bottom: 20px;
}

.search-hero h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.search-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Popular Games Tags */
.popular-games {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.popular-game-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 6px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

html[data-theme="light"] .popular-game-tag,
[data-theme="light"] .popular-game-tag {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--accent-primary);
}

.popular-game-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

html[data-theme="light"] .popular-game-tag:hover,
[data-theme="light"] .popular-game-tag:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: var(--accent-primary);
}

.search-box-large {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.form-input-large {
    flex: 1;
    height: 56px;
    padding: 0 24px;
    font-size: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-input-large:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.2),
        0 0 20px rgba(99, 102, 241, 0.3);
}

html[data-theme="light"] .form-input-large:focus,
[data-theme="light"] .form-input-large:focus {
    box-shadow: 
        0 0 0 3px rgba(79, 70, 229, 0.2),
        0 0 20px rgba(79, 70, 229, 0.2);
}

.form-input-large::placeholder {
    color: var(--text-muted);
}

/* Search Button with Gradient */
#rawgSearchBtn {
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: var(--glow-accent);
}

#rawgSearchBtn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-primary);
}

html[data-theme="light"] #rawgSearchBtn,
[data-theme="light"] #rawgSearchBtn {
    box-shadow: var(--glow-accent);
}

html[data-theme="light"] #rawgSearchBtn:hover,
[data-theme="light"] #rawgSearchBtn:hover {
    box-shadow: var(--glow-primary);
}

#rawgSearchBtn:active {
    transform: scale(1.02);
}

/* Quick Results Grid (GG.app style) */
.quick-results-section {
    margin-bottom: 24px;
}

.quick-results-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.quick-result-card {
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.quick-result-card:hover {
    transform: scale(1.05);
}

.quick-result-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3; /* GG.app style 2/3 ratio */
    background: var(--bg-tertiary);
    overflow: hidden;
    border-radius: var(--radius-md);
}

.quick-result-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.quick-result-card:hover .quick-result-cover img {
    transform: scale(1.1);
}

.quick-result-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
}

.quick-result-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rawg-results-container {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 24px;
}

.add-manual-link {
    text-align: center;
    padding-top: 32px;
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
}

.add-manual-link button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.add-manual-link button:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--bg-tertiary);
}

/* Game Preview Card */
.game-preview-card {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.game-preview-card img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.game-preview-info h4 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.game-preview-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Status Selection */
.status-selection {
    margin-bottom: var(--space-2xl);
}

.form-label-large {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.status-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.status-option {
    cursor: pointer;
}

.status-option input {
    display: none;
}

.status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.status-option input:checked + .status-card {
    border-color: var(--accent-muted);
    background: rgba(81, 44, 58, 0.2);
}

.status-card:hover {
    border-color: var(--accent-muted);
    background: rgba(81, 44, 58, 0.1);
}

.status-icon {
    font-size: 2rem;
}

.status-name {
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

/* Rating Picker Inline */
.rating-section,
.quick-review-section,
.completion-year-section {
    margin-bottom: var(--space-xl);
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.rating-picker-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.rating-picker-inline .rating-btn {
    width: 56px;
    height: 56px;
    font-size: 1.1rem;
}

/* Form Actions Large */
.form-actions-large {
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Report Missing */
.report-missing {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.report-missing label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    color: var(--text-secondary);
}

.manual-hint {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

/* Mobile */
@media (max-width: 640px) {
    .status-options {
        flex-direction: column;
    }
    
    .status-option {
        min-width: unset;
    }
    
    .game-preview-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .rating-picker-inline .rating-btn {
        width: 36px;
        height: 40px;
        font-size: 0.9rem;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
    color: var(--text-primary);
}

/* Add Game Modal Header - More Compact */
.add-game-modal .modal-header {
    padding: 18px 28px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    transition: background-color 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 32px;
    flex: 1;
    overflow-y: auto;
}

/* ============ COMMENTS MODAL ============ */

.modal-comments {
    max-width: 700px;
    max-height: 80vh;
}

/* Main Review Section */
.main-review-section {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .main-review-section {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.main-review-card {
    background: rgba(0, 245, 212, 0.05);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

html[data-theme="light"] .main-review-card {
    background: rgba(0, 200, 180, 0.05);
    border-color: rgba(0, 200, 180, 0.2);
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 245, 212, 0.3);
}

html[data-theme="light"] .review-avatar {
    border-color: rgba(0, 200, 180, 0.3);
}

.review-user-info {
    flex: 1;
}

.review-username {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.review-score {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 245, 212, 0.15);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
}

html[data-theme="light"] .review-score {
    background: rgba(0, 200, 180, 0.15);
    color: var(--accent-primary);
}

.review-text {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Comments/Replies Header */
.comments-replies-header {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .comments-replies-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.comments-replies-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Comments List - now styled as nested replies */
.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: var(--space-lg);
    padding-right: 8px;
    padding-left: var(--space-md);
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.no-comments {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--space-xl) 0;
    font-style: italic;
}

.comment-item {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-sm);
    transition: var(--transition-base);
    position: relative;
}

html[data-theme="light"] .comment-item {
    background: rgba(0, 0, 0, 0.015);
    border-left-color: rgba(0, 0, 0, 0.1);
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-left-color: rgba(0, 245, 212, 0.4);
}

html[data-theme="light"] .comment-item:hover {
    background: rgba(0, 0, 0, 0.03);
    border-left-color: rgba(0, 200, 180, 0.4);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.comment-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .comment-avatar {
    border-color: rgba(0, 0, 0, 0.1);
}

.comment-username {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.comment-username:hover {
    color: var(--accent-primary);
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-delete-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-fast);
    line-height: 1;
}

.comment-delete-btn:hover {
    background: rgba(255, 77, 87, 0.1);
    color: #ff4757;
}

.comment-content {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* ============ FOLLOWING USERS LIST (expandable) ============ */

.following-users-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.following-user-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.following-user-card.expanded {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.following-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.following-user-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .following-user-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.following-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.following-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
}

html[data-theme="light"] .following-user-avatar {
    border-color: rgba(0, 0, 0, 0.1);
}

.following-user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.following-user-name {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
}

.following-user-stats {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.following-expand-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.following-expand-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
}

html[data-theme="light"] .following-expand-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

.following-user-card.expanded .following-expand-btn {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.following-user-activity {
    padding: 0 var(--space-md) var(--space-md);
    border-top: 1px solid var(--border-color);
}

.following-user-activity .activity-card-new {
    margin-top: var(--space-md);
}

.no-activities {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--space-lg);
    font-style: italic;
}

/* ============ INLINE COMMENTS (in activity feed) ============ */

.inline-comments-section {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .inline-comments-section {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.inline-comments-loading {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
    text-align: center;
    padding: var(--space-sm) 0;
}

.inline-comments-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.inline-comment-item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .inline-comment-item {
    background: rgba(0, 0, 0, 0.015);
    border-left-color: rgba(0, 0, 0, 0.08);
}

.inline-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

html[data-theme="light"] .inline-comment-avatar {
    border-color: rgba(0, 0, 0, 0.1);
}

.inline-comment-content {
    flex: 1;
    min-width: 0;
}

.inline-comment-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 4px;
}

.inline-comment-username {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.inline-comment-username:hover {
    color: var(--accent-primary);
}

.inline-comment-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.inline-comment-text {
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.view-all-comments-btn {
    display: block;
    width: 100%;
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

html[data-theme="light"] .view-all-comments-btn {
    border-color: rgba(0, 0, 0, 0.1);
}

.view-all-comments-btn:hover {
    background: rgba(0, 245, 212, 0.05);
    border-color: var(--accent-primary);
}

html[data-theme="light"] .view-all-comments-btn:hover {
    background: rgba(0, 200, 180, 0.05);
}

.add-comment-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
}

html[data-theme="light"] .add-comment-section {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.comment-textarea {
    width: 100%;
    min-height: 80px;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: var(--transition-base);
}

html[data-theme="light"] .comment-textarea {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .comment-textarea:focus {
    background: rgba(0, 0, 0, 0.05);
}

.comment-textarea::placeholder {
    color: var(--text-secondary);
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-sm);
}

.char-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.login-prompt {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

html[data-theme="light"] .login-prompt {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

.login-prompt p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.loading-state,
.error-state {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--space-md);
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============ FORMS ============ */

.form-group {
    margin-bottom: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

/* Wikipedia Search */
.wiki-search-section {
    margin-bottom: var(--space-lg);
}

.wiki-search-box {
    display: flex;
    gap: var(--space-sm);
}

.wiki-search-box .form-input {
    flex: 1;
}

.wiki-results {
    margin-top: var(--space-md);
    max-height: 200px;
    overflow-y: auto;
}

.wiki-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.wiki-result-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.wiki-result-item strong {
    display: block;
    margin-bottom: 2px;
}

.wiki-result-item small {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rawg-result {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.metacritic-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--gradient-gold);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bg-primary);
    margin-left: var(--space-sm);
}

.divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* CSV Upload */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent-primary);
    background: rgba(0, 245, 212, 0.05);
}

.upload-zone svg {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.upload-zone p {
    color: var(--text-secondary);
}

.upload-link {
    color: var(--accent-primary);
    text-decoration: underline;
}

.csv-info {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.csv-info h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.csv-columns {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.csv-columns code {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-primary);
}

.upload-result {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.upload-result.success {
    border: 1px solid rgba(0, 245, 212, 0.3);
}

.upload-result.error {
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* ============ TOAST NOTIFICATIONS ============ */

.toast-container {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 2000;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast.success {
    border-color: var(--accent-primary);
}

.toast.error {
    border-color: var(--accent-tertiary);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============ GAME DETAIL MODAL ============ */

.game-detail {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-xl);
}

.game-detail-cover {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
}

.game-detail-cover img {
    width: 100%;
    display: block;
}

.game-detail-cover-placeholder {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.game-detail-info h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
}

.game-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.game-detail-rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.game-detail-rating-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

.game-detail-rating-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.game-detail-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.game-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.game-detail-tags .genre-tag {
    font-size: 0.85rem;
    padding: var(--space-xs) var(--space-md);
}

/* ============ DASHBOARD ============ */

.dashboard-content {
    padding-top: var(--space-lg);
}

.dashboard-header {
    margin-bottom: var(--space-xl);
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.dashboard-subtitle {
    color: var(--text-primary);
    opacity: 0.8;
    font-weight: 500;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-box {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.stat-box:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.stat-box-accent {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
}

.stat-box-accent .stat-number {
    color: var(--accent-primary);
}

.stat-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1;
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-primary);
    opacity: 0.85;
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.dashboard-card:hover {
    border-color: rgba(81, 44, 58, 0.5);
}

.dashboard-card.card-full {
    grid-column: span 2;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.badge {
    padding: 4px 10px;
    background: var(--accent-muted);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.card-body {
    padding: var(--space-lg);
    max-height: 400px;
    overflow-y: auto;
}

/* Top Games List */
.top-games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-sm);
}

.top-game-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.top-game-item:hover {
    background: var(--bg-card-hover);
}

.top-game-rank {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
}

.top-game-item:nth-child(1) .top-game-rank {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
}

.top-game-item:nth-child(2) .top-game-rank {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #000;
}

.top-game-item:nth-child(3) .top-game-rank {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
}

.top-game-info {
    flex: 1;
}

.top-game-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.top-game-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.top-game-rating {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-primary);
}

/* Genre Bars */
.genre-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.genre-bar-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.genre-bar-label {
    width: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.genre-bar-track {
    flex: 1;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.genre-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--space-sm);
}

.genre-bar-value {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bg-primary);
}

/* Year Chart */
.year-chart {
    display: flex;
    align-items: flex-end;
    gap: var(--space-xs);
    height: 200px;
    padding-top: var(--space-md);
}

.year-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 30px;
}

.year-bar-fill {
    width: 100%;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: height 0.5s ease;
    position: relative;
}

.year-bar-fill:hover {
    filter: brightness(1.2);
}

.year-bar-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    transform: rotate(-45deg);
    white-space: nowrap;
}

/* Recent List */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.recent-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.recent-item-icon {
    font-size: 1.5rem;
}

.recent-item-info {
    flex: 1;
}

/* Quick Rate 1-10 (Dashboard) */
.quick-rate-10 {
    display: flex;
    gap: 3px;
    padding: 5px;
}

.qr-btn {
    width: 24px;
    height: 26px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.qr-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.qr-btn.rated {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-primary);
}

/* Legacy support */
.quick-rate-stars {
    display: flex;
    gap: 4px;
    padding: 5px;
}

.quick-star {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.quick-star:hover {
    color: #ffd700;
    transform: scale(1.2);
}

.recent-item-title {
    font-weight: 500;
    font-size: 0.95rem;
}

.recent-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Fun Facts */
.fun-facts {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.fact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.fact-emoji {
    font-size: 1.5rem;
}

.fact-text {
    font-size: 0.9rem;
}

.fact-text strong {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2px;
}

/* ============ SMART MATCH ============ */

.selected-games-counter {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.counter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 4px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.smart-match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
    max-height: 500px;
    overflow-y: auto;
    padding: var(--space-sm);
}

.smart-match-card {
    position: relative;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.smart-match-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.smart-match-card.selected {
    border-color: var(--accent-primary);
    box-shadow: var(--glow-primary);
}

.smart-match-checkbox {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    z-index: 10;
}

.smart-match-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.smart-match-cover {
    height: 120px;
    background: var(--bg-card);
    overflow: hidden;
}

.smart-match-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smart-match-cover .game-cover-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.smart-match-info {
    padding: var(--space-sm);
}

.smart-match-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smart-match-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Based On Section */
.based-on-section {
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.based-on-games {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.based-on-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    min-width: 120px;
}

.based-on-game img,
.based-on-game .placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.based-on-game .placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    font-size: 2rem;
}

.based-on-game span {
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

/* ============ PWA INSTALL BANNER ============ */

.pwa-install-banner {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--border-accent);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    padding: var(--space-md);
    z-index: 2000;
    transition: bottom 0.4s ease;
}

.pwa-install-banner.show {
    bottom: 0;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 600px;
    margin: 0 auto;
}

.pwa-icon {
    font-size: 2rem;
}

.pwa-text {
    flex: 1;
}

.pwa-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.pwa-text small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.85rem;
}

/* ============ MOBILE OPTIMIZATIONS ============ */

@media (max-width: 768px) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: var(--space-md) var(--space-lg);
    }
    
    .game-card {
        border-radius: var(--radius-md);
    }
    
    /* Better spacing for mobile */
    .main-content {
        padding: var(--space-md);
        padding-bottom: calc(var(--space-md) + 70px); /* Space for bottom nav */
    }
    
    /* Mobile-friendly modals */
    .modal {
        max-height: 85vh;
        margin: auto var(--space-sm);
        max-width: calc(100% - var(--space-md));
    }
    
    .modal-body {
        max-height: calc(85vh - 80px);
    }
    
    /* Comments modal on mobile */
    .modal-comments {
        max-width: calc(100% - var(--space-md));
    }
    
    .comments-list {
        max-height: 300px;
    }
    
    .comment-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 100px;
    }
    
    /* Theme toggle on mobile */
    .theme-toggle {
        width: 44px;
        height: 44px;
        margin-right: 8px;
        /* Larger touch target for mobile */
    }
    
    .theme-toggle:hover {
        /* Disable hover effects on mobile (use :active instead) */
        transform: none;
    }
    
    .theme-toggle:active {
        transform: scale(0.95);
    }
    
    /* Form inputs on mobile */
    .form-input,
    .form-textarea,
    .form-select,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
        padding: 12px !important;
        min-height: 44px !important; /* Larger touch target */
    }
    
    .form-textarea,
    textarea {
        min-height: 100px !important;
    }
    
    /* Search inputs */
    .search-input {
        font-size: 16px !important;
        padding: 12px !important;
        min-height: 44px !important;
    }
    
    /* Filter selects */
    .filter-select {
        font-size: 16px !important;
        padding: 12px !important;
        min-height: 44px !important;
    }
    
    /* Sticky filters on mobile */
    .filters-section {
        position: sticky;
        top: 73px;
        z-index: 50;
        background: var(--bg-primary);
        margin: 0 calc(-1 * var(--space-md));
        padding: var(--space-md);
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Bottom navigation for mobile */
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        padding: var(--space-sm) 0;
        z-index: 100;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: var(--space-xs) var(--space-md);
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.75rem;
        transition: var(--transition-fast);
        border-radius: var(--radius-sm);
        min-width: 70px;
    }
    
    .mobile-nav-item svg {
        width: 24px;
        height: 24px;
    }
    
    .mobile-nav-item.active {
        color: var(--accent-primary);
        background: rgba(0, 245, 212, 0.1);
    }
    
    .mobile-nav-item:active {
        transform: scale(0.95);
    }
    
    /* Hide desktop nav on mobile */
    .nav-actions {
        display: none;
    }
    
    /* Pull to refresh indicator */
    .pull-refresh {
        position: fixed;
        top: -60px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: var(--bg-card);
        border-radius: 50%;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        transition: top 0.3s ease;
        z-index: 1000;
    }
    
    .pull-refresh.show {
        top: 20px;
    }
}

/* Desktop - hide mobile nav */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* ============ AUTH PAGES ============ */

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-lg);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-header .brand-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-md);
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.auth-header .accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-form {
    margin-bottom: var(--space-lg);
}

/* Platform Selection Chips */
.platform-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.platform-chip {
    cursor: pointer;
}

.platform-chip input {
    display: none;
}

.platform-chip span {
    display: inline-block;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.platform-chip:hover span {
    border-color: var(--accent-primary);
}

.platform-chip input:checked + span {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
    font-weight: 600;
}

/* Platform Shelves - Modern Midnight Style */
.platform-shelves {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

.platform-shelf {
    position: relative;
    padding: 15px 20px 25px;
    margin-bottom: 0;
}

/* Shelf edge */
.platform-shelf::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(180deg, 
        var(--bg-tertiary) 0%, 
        #1E293B 50%,
        #0F172A 100%
    );
    border-radius: 0 0 4px 4px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.05);
}

/* Subtle texture */
.platform-shelf::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 40px,
        rgba(99, 102, 241, 0.03) 40px,
        rgba(99, 102, 241, 0.03) 41px
    );
    z-index: 1;
    border-radius: 0 0 4px 4px;
}

.shelf-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.shelf-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}

.shelf-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-primary);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    flex: 1;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.shelf-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.3);
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid rgba(81,44,58,0.5);
}

.shelf-games {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    min-height: 100px;
    padding-bottom: 5px;
}

.shelf-game-new {
    animation: shelfGameAppear 0.3s ease forwards;
}

@keyframes shelfGameAppear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Platform Shelf Row - shelf + stats side by side */
.platform-shelf-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}

.platform-shelf-row .platform-shelf {
    flex: 1;
    max-width: 65%;
}

.platform-stats {
    width: 200px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(81, 44, 58, 0.4) 0%, rgba(42, 26, 32, 0.6) 100%);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 2px solid var(--border-color);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.platform-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
}

.platform-stat .stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.platform-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-top-game {
    margin-top: auto;
    padding: 10px;
    background: linear-gradient(135deg, rgba(237,234,177,0.1) 0%, rgba(113,173,186,0.08) 100%);
    border-radius: 6px;
    border: 1px solid rgba(237,234,177,0.2);
}

.platform-top-game .top-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.platform-top-game .top-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.platform-top-game .top-rating {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #FFD700;
}

@media (max-width: 900px) {
    .platform-shelf-row {
        flex-direction: column;
    }
    
    .platform-shelf-row .platform-shelf {
        max-width: 100%;
    }
    
    .platform-stats {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .platform-stat {
        flex: 1;
        min-width: 80px;
    }
    
    .platform-top-game {
        width: 100%;
        margin-top: 10px;
    }
}

.shelf-game {
    width: 70px;
    height: 95px;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, margin-top 0.2s;
    background: #1a1a2e;
    box-shadow: 
        2px 4px 8px rgba(0,0,0,0.5),
        -1px 0 3px rgba(0,0,0,0.3);
    position: relative;
    transform-origin: bottom center;
}

/* Game case spine effect */
.shelf-game::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.15) 0%,
        rgba(0,0,0,0.2) 100%
    );
    z-index: 2;
}

.shelf-game:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        4px 8px 20px rgba(0,0,0,0.6),
        0 0 20px rgba(139,92,246,0.3);
    z-index: 10;
}

.shelf-game img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shelf-game-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #2a2a4a 0%, #1a1a2e 100%);
}

.shelf-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    font-style: italic;
}

.shelf-more {
    width: 70px;
    height: 95px;
    border-radius: 3px;
    background: linear-gradient(135deg, rgba(139,92,246,0.2) 0%, rgba(0,245,212,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-primary);
    border: 2px dashed rgba(139,92,246,0.4);
    box-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.shelf-more:hover {
    background: linear-gradient(135deg, rgba(139,92,246,0.4) 0%, rgba(0,245,212,0.2) 100%);
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

/* Game tooltip on shelf */
.shelf-game-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 20, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    border: 1px solid rgba(139,92,246,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    pointer-events: none;
}

.shelf-game-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(10, 10, 20, 0.95);
}

.shelf-game:hover .shelf-game-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Platform Games Modal */
.platform-games-modal {
    max-width: 800px;
    max-height: 80vh;
}

.platform-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.platform-game-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.platform-game-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.platform-game-cover {
    width: 50px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.platform-game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform-game-cover .cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    font-size: 1.5rem;
}

.platform-game-info {
    flex: 1;
    min-width: 0;
}

.platform-game-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.platform-game-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Shelf side panels */
.platform-shelves::before,
.platform-shelves::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15px;
    background: linear-gradient(90deg, 
        #1E293B 0%,
        #334155 50%,
        #1E293B 100%
    );
    box-shadow: inset -2px 0 5px rgba(0,0,0,0.2);
}

.platform-shelves::before { left: 0; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.platform-shelves::after { right: 0; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.form-checkbox label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.error-message {
    padding: var(--space-md);
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: var(--radius-md);
    color: var(--accent-tertiary);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.auth-footer {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.user-menu {
    position: relative;
}

/* ============ GLOBAL AVATAR STANDARD CLASS ============ */
/* CRITICAL: Apply this class to ALL avatar images to prevent stretching */
.avatar-standard {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    aspect-ratio: 1 / 1; /* Force square */
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bg-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3); /* Subtle indigo glow */
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--accent-primary), 0 0 20px rgba(99, 102, 241, 0.5); /* Enhanced glow on hover */
    border-color: var(--accent-primary);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.user-dropdown-header strong {
    display: block;
    margin-bottom: 4px;
}

.user-dropdown-header small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.user-dropdown-item svg {
    width: 18px;
    height: 18px;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .nav-actions {
        gap: var(--space-sm);
    }
    
    .btn span {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .game-detail {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card.card-full {
        grid-column: span 1;
    }
    
    .top-games-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: var(--space-md);
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .quick-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 100%;
    }
}

/* ============================================
   SOCIAL FEATURES (LETTERBOXD-STYLE)
   ============================================ */

/* Profile Header */
.profile-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-xl);
}

.profile-banner {
    height: 200px;
    background: var(--gradient-primary);
    opacity: 0.2;
}

.profile-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    position: relative;
    overflow: visible;
    border: 4px solid var(--bg-secondary);
    margin-top: -80px;
    margin-bottom: var(--space-md);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.profile-details h1 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.profile-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.profile-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-stats .stat strong {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.profile-stats .stat span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-actions {
    display: flex;
    gap: var(--space-md);
}

.profile-views-badge {
    margin-top: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-views-badge strong {
    color: var(--text-primary);
}

.profile-views-icon {
    font-size: 1rem;
}

/* Gamer Style Badge */
.gamer-style-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.gamer-style-badge .style-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.gamer-style-badge .style-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.gamer-style-badge .style-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

/* Badges Grid */
.badge-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.badge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.badge-card .badge-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.badge-card .badge-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.badge-card .badge-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge-card .badge-points {
    font-size: 0.7rem;
    color: var(--accent-primary);
    margin-top: 8px;
    font-weight: 600;
}

/* Badge rarity colors */
.badge-card.rarity-common { border-color: #9ca3af; }
.badge-card.rarity-uncommon { border-color: #22c55e; }
.badge-card.rarity-rare { border-color: #3b82f6; }
.badge-card.rarity-epic { border-color: #a855f7; }
.badge-card.rarity-legendary { 
    border-color: #f59e0b; 
    background: linear-gradient(135deg, var(--bg-primary), rgba(245, 158, 11, 0.1));
}

.badge-card.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-xl);
    overflow-x: auto;
}

.tab-btn {
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Games Grid in Profile */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-md);
}

.review-header h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
}

.rating-stars {
    font-size: 0.9rem;
}

.review-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.review-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.review-footer {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.like-btn, .review-footer button {
    background: none;
    border: 1px solid var(--border-color);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.like-btn:hover, .review-footer button:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Lists Grid */
.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.list-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.list-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.list-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.list-meta {
    display: flex;
    gap: var(--space-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.activity-card, .activity-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all 0.3s ease;
}

.activity-card:hover {
    border-color: var(--border-accent);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.activity-user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
}

.activity-user:hover strong {
    color: var(--accent-primary);
}

.activity-icon {
    font-size: 1.5rem;
}

.activity-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.activity-text strong {
    color: var(--text-primary);
}

.activity-game-card {
    display: flex;
    gap: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    cursor: pointer;
    margin-bottom: var(--space-md);
}

.activity-game-card:hover {
    background: var(--bg-card-hover);
}

.activity-game-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.activity-game-card .game-info h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.activity-review {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
}

.review-rating {
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
}

.review-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.user-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.user-card .user-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    aspect-ratio: 1 / 1; /* CRITICAL: Force perfect square */
    margin: 0 auto var(--space-md);
}

.user-card .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.user-card h4 {
    margin-bottom: var(--space-sm);
}

.user-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Social Page Layout */
.social-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.social-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
}

.social-main {
    min-width: 0;
}

.social-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: 1.5rem;
}

.feed-filters {
    display: flex;
    gap: var(--space-sm);
}

.filter-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.users-list, .popular-lists {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.user-item, .list-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-item:hover, .list-item:hover {
    background: var(--bg-secondary);
}

.user-item .user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    aspect-ratio: 1 / 1; /* CRITICAL: Force perfect square */
    flex-shrink: 0;
}

.user-item .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 0.95rem;
}

.user-info small {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.list-item strong {
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
}

.list-item small {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Loading & Empty States */
.loading {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
}

.empty-message {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
}

.error-message {
    text-align: center;
    padding: var(--space-xl);
    color: var(--accent-tertiary);
}

/* Badge Status Colors */
.badge.backlog {
    background: rgba(123, 44, 191, 0.2);
    color: var(--accent-secondary);
}

.badge.playing {
    background: rgba(0, 245, 212, 0.2);
    color: var(--accent-primary);
}

.badge.completed {
    background: rgba(255, 209, 102, 0.2);
    color: var(--accent-gold);
}

.badge.dropped {
    background: rgba(255, 107, 107, 0.2);
    color: var(--accent-tertiary);
}

.badge.wishlist {
    background: rgba(160, 160, 176, 0.2);
    color: var(--text-secondary);
}

/* Responsive - Social */
@media (max-width: 968px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .social-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .profile-stats {
        gap: var(--space-md);
    }
    
    .profile-stats .stat strong {
        font-size: 1.2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .profile-tabs {
        gap: var(--space-sm);
    }
    
    .tab-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
}


/* ============================================
   RECOMMENDATIONS SECTION
   ============================================ */

.recommendations-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.recommendation-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-primary);
}

.recommendation-card .game-cover {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.recommendation-card .game-info {
    padding: var(--space-md);
}

.recommendation-card .game-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.recommendation-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 245, 212, 0.9);
    color: #0a0a0f;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.recommendation-reason {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
}

.match-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.recommendations-empty {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .recommendations-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .recommendation-card .game-cover {
        height: 200px;
    }
    
    .recommendations-section {
        padding: var(--space-md);
    }
}

/* ============================================
   PROFILE SETTINGS PAGE
   ============================================ */

.profile-settings {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-2xl);
}

.settings-header {
    margin-bottom: var(--space-2xl);
}

.settings-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

/* Deletion Warning Banner */
.deletion-banner {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid var(--accent-tertiary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.deletion-banner strong {
    display: block;
    color: var(--accent-tertiary);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: var(--space-md);
    border-bottom: 2px solid var(--border-color);
    margin-bottom: var(--space-xl);
    overflow-x: auto;
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.profile-tab:hover {
    color: var(--text-primary);
    background: rgba(0, 245, 212, 0.05);
}

.profile-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.profile-tab svg {
    flex-shrink: 0;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Settings Sections */
.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.settings-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

/* Avatar Upload */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.avatar-preview {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    max-width: 120px;
    max-height: 120px;
    aspect-ratio: 1 / 1; /* CRITICAL: Force perfect square */
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--accent-primary);
    overflow: hidden;
    display: block; /* Changed from flex to block */
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3), var(--glow-primary); /* Indigo glow */
    transition: all var(--transition-fast);
    position: relative;
}

.avatar-preview:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.5), 0 0 30px rgba(99, 102, 241, 0.4);
}

.avatar-preview img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important; /* CRITICAL: Crop to fill, no stretching */
    object-position: center !important; /* CRITICAL: Center the image */
    border-radius: 50% !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.avatar-preview .avatar-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
}

.avatar-placeholder {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.avatar-actions {
    flex: 1;
}

.avatar-actions p {
    margin-top: var(--space-sm);
    font-size: 0.9rem;
}

/* Wallpaper Selector */
.wallpaper-selector {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.wallpaper-preview {
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wallpaper-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.wallpaper-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallpaper-game-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.wallpaper-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Game Results Grid for Wallpaper Selection */
.game-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md);
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-sm);
}

.wallpaper-game-card {
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
    background: var(--bg-secondary);
}

.wallpaper-game-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.wallpaper-game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* Privacy Notice for Avatar */
.avatar-privacy-notice {
    margin-top: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.avatar-privacy-notice::before {
    content: '🔒 ';
    margin-right: 4px;
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.1);
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    font-size: 0.85rem;
}

.text-warning {
    color: var(--accent-gold);
}

/* Input with Button */
.input-with-button {
    display: flex;
    gap: var(--space-sm);
}

.input-with-button input {
    flex: 1;
}

/* Checkbox Group */
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.checkbox-group label:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 245, 212, 0.05);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

/* Danger Zone */
.danger-zone {
    border-color: var(--accent-tertiary);
    background: rgba(255, 107, 107, 0.03);
}

.danger-zone h2 {
    color: var(--accent-tertiary);
}

.danger-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.danger-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.danger-action h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.danger-action p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Security Info */
.security-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.security-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.security-item svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.security-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-lg);
}

.modal-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    margin-top: var(--space-xl);
}

/* Alert Styles */
.alert {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

.alert-warning {
    background: rgba(255, 209, 102, 0.1);
    border: 2px solid var(--accent-gold);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-settings {
        padding: var(--space-lg);
    }

    .settings-header h1 {
        font-size: 2rem;
    }

    .avatar-upload {
        flex-direction: column;
        align-items: flex-start;
    }

    .danger-action {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-content {
        padding: var(--space-lg);
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions button {
        width: 100%;
    }
}

/* ================================================
   HORIZONTAL GAME CARDS (COVER OBOK INFO)
   ================================================ */

.game-card-horizontal {
    display: flex;
    gap: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.game-card-horizontal:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 245, 212, 0.15);
}

.game-cover-small {
    width: 120px;
    height: 160px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-cover-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 0;
}

.game-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0;
}

.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.badge-chip.status-playing {
    background: #3b82f620;
    color: #60a5fa;
    border: 1px solid #3b82f640;
}

.badge-chip.status-completed {
    background: #10b98120;
    color: #10b981;
    border: 1px solid #10b98140;
}

.badge-chip.status-backlog {
    background: #8b5cf620;
    color: #a78bfa;
    border: 1px solid #8b5cf640;
}

.badge-chip.status-wishlist {
    background: #f59e0b20;
    color: #fbbf24;
    border: 1px solid #f59e0b40;
}

.badge-chip.status-dropped {
    background: #ef444420;
    color: #f87171;
    border: 1px solid #ef444440;
}

.badge-chip.rating {
    background: linear-gradient(135deg, #ffd70030, #ffa50030);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.badge-chip.metacritic {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.game-meta-small {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.game-meta-small span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-genres-small {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.genre-tag-small {
    padding: 4px 10px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive - dla małych ekranów */
@media (max-width: 640px) {
    .game-card-horizontal {
        flex-direction: column;
    }
    
    .game-cover-small {
        width: 100%;
        height: 220px;
    }
}

/* ================================================
   USER GAME INFO - TAGS BELOW COVER
   ================================================ */

/* Container for user's status, rating, metacritic */
.user-game-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

/* Status Tag (Completed, Playing, etc.) */
.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: var(--font-mono);
}

.status-tag.completed {
    background: #10b98120;
    color: #10b981;
    border: 1px solid #10b98140;
}

.status-tag.playing {
    background: #3b82f620;
    color: #60a5fa;
    border: 1px solid #3b82f640;
}

.status-tag.wishlist {
    background: #f59e0b20;
    color: #fbbf24;
    border: 1px solid #f59e0b40;
}

.status-tag.backlog {
    background: #8b5cf620;
    color: #a78bfa;
    border: 1px solid #8b5cf640;
}

.status-tag.dropped {
    background: #ef444420;
    color: #f87171;
    border: 1px solid #ef444440;
}

/* User's Personal Rating Tag */
.rating-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ffd70030, #ffa50030);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* Metacritic Tag (Global Score) */
.metacritic-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

/* ================================================
   MODERN REVIEW CARDS - GAME DETAIL PAGE
   ================================================ */

.review-card-modern {
    background: linear-gradient(145deg, var(--bg-card), rgba(16, 185, 129, 0.03));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.review-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card-modern:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 245, 212, 0.15);
}

.review-card-modern:hover::before {
    opacity: 1;
}

/* Review Header */
.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    gap: var(--space-md);
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.review-avatar-modern {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(0, 245, 212, 0.3);
    flex-shrink: 0;
}

.review-user-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-username {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Rating Badge */
.review-rating-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.review-rating-badge .review-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: var(--font-mono);
}

/* Review Content (Text) */
.review-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-primary);
    border-radius: var(--radius-sm);
}

/* Review Footer (Actions) */
.review-footer {
    display: flex;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
}

.review-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-action-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.review-action-btn.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.review-action-btn .action-icon {
    font-size: 1.1rem;
}

.review-action-btn .action-count {
    font-family: var(--font-mono);
    font-weight: 600;
}

.review-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.review-action-btn.liked {
    color: #ff4757;
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

/* ============ RATING SYSTEM 1-10 ============ */

/* Rating badge display */
.rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-mono);
    transition: all var(--transition-fast);
}

.rating-badge.rating-small {
    min-width: 28px;
    height: 28px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.rating-badge.rating-large {
    min-width: 52px;
    height: 52px;
    font-size: 1.5rem;
    border-radius: var(--radius-lg);
}

/* Rating colors by score */
.rating-1, .rating-2 {
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.4);
}

.rating-3, .rating-4 {
    background: linear-gradient(135deg, #dc143c 0%, #ff6347 100%);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 99, 71, 0.3);
}

.rating-5, .rating-6 {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    color: #1a1a1a;
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.3);
}

.rating-7, .rating-8 {
    background: linear-gradient(135deg, #32cd32 0%, #00fa9a 100%);
    color: #1a1a1a;
    box-shadow: 0 0 12px rgba(50, 205, 50, 0.3);
}

.rating-9 {
    background: linear-gradient(135deg, #00bfff 0%, #00f5d4 100%);
    color: #1a1a1a;
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
}

.rating-10 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #1a1a1a;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
    animation: goldenGlow 2s ease-in-out infinite;
}

@keyframes goldenGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.5); }
}

/* Interactive rating picker */
.rating-picker {
    display: flex;
    gap: 6px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.rating-btn {
    width: 40px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.rating-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.rating-btn.selected {
    transform: scale(1.1);
    z-index: 1;
}

/* Color classes for rating buttons */
.rating-btn[data-value="1"],
.rating-btn[data-value="2"] {
    --btn-color: #dc143c;
}

.rating-btn[data-value="3"],
.rating-btn[data-value="4"] {
    --btn-color: #ff6347;
}

.rating-btn[data-value="5"],
.rating-btn[data-value="6"] {
    --btn-color: #ffa500;
}

.rating-btn[data-value="7"],
.rating-btn[data-value="8"] {
    --btn-color: #32cd32;
}

.rating-btn[data-value="9"] {
    --btn-color: #00f5d4;
}

.rating-btn[data-value="10"] {
    --btn-color: #ffd700;
}

.rating-btn:hover,
.rating-btn.selected {
    background: var(--btn-color);
    border-color: var(--btn-color);
    color: #1a1a1a;
    box-shadow: 0 0 15px color-mix(in srgb, var(--btn-color) 50%, transparent);
}

.rating-btn[data-value="10"].selected {
    animation: goldenGlow 2s ease-in-out infinite;
}

/* Rating labels */
.rating-label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rating in cards */
.rating-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rating-inline .rating-badge {
    min-width: 28px;
    height: 24px;
    font-size: 0.8rem;
}

/* Quick rating in dashboard */
.quick-rating {
    display: flex;
    gap: 3px;
}

.quick-rating-btn {
    width: 24px;
    height: 28px;
    font-size: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
}

.quick-rating-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Legacy star support (for backwards compat) */
.star-rating {
    display: inline-flex;
    gap: 2px;
}

.star {
    font-size: 1.2rem;
    color: var(--accent-gold);
    transition: all 0.2s ease;
}

.star.full {
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.star.half {
    color: var(--accent-gold);
    opacity: 0.6;
}

.star.empty {
    color: var(--text-muted);
    opacity: 0.3;
}

.star-small {
    font-size: 0.95rem;
}

/* ============ GUEST MODE ============ */

/* Guest Mode Banner */
.guest-mode-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.95) 0%, rgba(0, 245, 212, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.guest-banner-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 1200px;
    width: 100%;
}

.guest-banner-icon {
    font-size: 1.5rem;
}

.guest-banner-text {
    flex: 1;
    font-weight: 500;
    color: var(--bg-primary);
}

.guest-banner-close {
    padding: 4px 8px !important;
    min-width: auto;
    font-size: 1.2rem;
}

/* Guest Quick Add Buttons */
.guest-quick-add {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-accent);
}

.guest-status-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.guest-status-buttons .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
}

/* ============ JOIN MODAL ============ */

.modal-join {
    max-width: 480px;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.modal-join::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: calc(var(--radius-lg) + 2px);
    z-index: -1;
    opacity: 0.5;
}

.modal-join .modal-header {
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

.modal-join .modal-header h2 {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.join-modal-body {
    text-align: center;
}

.join-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.join-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.join-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
}

.join-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.join-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.join-benefits {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-xl);
}

.join-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.join-benefits li:last-child {
    border-bottom: none;
}

.benefit-icon {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 245, 212, 0.1);
    border-radius: var(--radius-sm);
}

.join-benefits span:not(.benefit-icon) {
    font-size: 1rem;
    color: var(--text-primary);
}

.join-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.join-actions .btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.join-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.join-note a {
    color: var(--accent-primary);
    text-decoration: none;
}

.join-note a:hover {
    text-decoration: underline;
}

/* Adjust navbar when guest banner is visible */
body.guest-banner-active .navbar {
    top: 48px;
}

/* ============ SYNC MODAL ============ */

.modal-sync {
    max-width: 420px;
    text-align: center;
}

.sync-modal-body {
    padding: var(--space-lg);
}

.sync-intro {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.sync-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.sync-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sync-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.sync-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sync-question {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.sync-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.sync-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sync-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(0, 245, 212, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
}

.sync-success-icon {
    font-size: 1.5rem;
}

.sync-error {
    padding: var(--space-md);
    background: rgba(255, 107, 107, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-tertiary);
    margin-bottom: var(--space-md);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .guest-mode-banner {
        padding: var(--space-sm);
    }
    
    .guest-banner-content {
        flex-wrap: wrap;
        gap: var(--space-sm);
        justify-content: center;
    }
    
    .guest-banner-text {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .modal-join,
    .modal-sync {
        max-width: 95%;
        margin: var(--space-md);
    }
    
    .join-stats,
    .sync-stats {
        gap: var(--space-lg);
    }
    
    .join-stat-value,
    .sync-stat-value {
        font-size: 2rem;
    }
}

/* ================================================
   PROFILE PAGE CONTENT VISIBILITY
   Ensure content is readable over wallpaper backgrounds
   ================================================ */

.profile-container,
.stats-dashboard,
.badges-section {
    position: relative;
    z-index: 1;
}

.stats-dashboard > section,
.profile-container > .gamer-dna-main-section,
.profile-container > .profile-tabs,
.profile-container > .tab-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

/* ================================================
   STATS DASHBOARD (Letterboxd Style)
   ================================================ */

.stats-dashboard {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Big Numbers Section */
.big-numbers-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.big-number-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-fast);
}

.big-number-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.big-number-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.big-number-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    line-height: 1;
}

/* Four Favorites Section */
.four-favorites-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.four-favorites-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.favorite-game-card {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast);
    border: 1px solid var(--border-color);
}

.favorite-game-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

.favorite-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-placeholder {
    aspect-ratio: 2/3;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-tertiary);
}

.favorite-placeholder:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card);
}

.favorite-placeholder span {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.favorite-placeholder small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Activity Graph Section */
.activity-graph-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #6366f1;
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(99, 102, 241, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 12px rgba(99, 102, 241, 0.8), 0 0 24px rgba(168, 85, 247, 0.3); transform: scale(1.15); }
}

.activity-graph-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

#activityChart {
    max-height: 300px;
}

/* Genre Distribution Section */
.genre-distribution-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.genre-distribution-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.genre-distribution {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.genre-bar-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.genre-bar-label {
    min-width: 120px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.genre-bar-container {
    flex: 1;
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.genre-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-sm);
    transition: width var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.genre-bar-percentage {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Favorites Selector Grid */
.favorites-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-md);
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-sm);
}

.favorite-selector-card {
    aspect-ratio: 2/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
    position: relative;
}

.favorite-selector-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

.favorite-selector-card.selected {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.favorite-selector-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.favorite-selector-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-selector-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================================================
   JOURNALING SYSTEM (Letterboxd Style)
   ================================================ */

.journaling-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.section-header-journal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.section-header-journal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.activity-feed-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-style: italic;
}

.activity-feed-entry {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition-fast);
}

.activity-feed-entry:hover {
    border-color: var(--border-accent);
    transform: translateX(4px);
}

.activity-entry-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

.activity-status-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
    margin-right: var(--space-sm);
}

.activity-minutes,
.activity-rating {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-right: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.activity-notes {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap; /* Preserve line breaks */
}

.activity-delete-btn {
    margin-top: var(--space-sm);
    opacity: 0.7;
}

.activity-delete-btn:hover {
    opacity: 1;
}

/* ================================================
   GAMER DNA CARD (Hacker-Style Data Visualization)
   ================================================ */

.gamer-dna-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.dna-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Animated scan line */
.dna-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
    animation: dna-scan 3s ease-in-out infinite;
}

/* Ambient glow behind card */
.dna-card::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: dna-ambient 6s ease-in-out infinite alternate;
}

@keyframes dna-scan {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 1; transform: scaleX(1); }
}

@keyframes dna-ambient {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(3deg) scale(1.05); }
}

html[data-theme="light"] .dna-card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .dna-card::after {
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(168, 85, 247, 0.04) 0%, transparent 60%);
}

.dna-card-content {
    position: relative;
    z-index: 1;
}

.dna-archetype-badge {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-xl);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    transition: transform var(--transition-normal);
}

.dna-archetype-badge:hover {
    transform: translateY(-2px);
}

.dna-archetype-icon {
    font-size: 4rem;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.dna-archetype-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.dna-archetype-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.dna-genes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.dna-gene-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-tertiary);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
}

.dna-gene-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.dna-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.dna-stat-item {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dna-stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color); /* 15% opacity */
    transform: translateY(-2px);
}

.dna-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    margin-bottom: var(--space-xs);
    line-height: 1;
}

.dna-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.dna-breakdown {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.dna-breakdown-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.dna-breakdown-label {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dna-breakdown-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.dna-breakdown-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    min-width: 30px;
}

.dna-breakdown-score {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.dna-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-style: italic;
}

/* ============ DNA FUSION ============ */

.fusion-modal {
    max-width: 600px;
    padding: var(--space-2xl);
}

.fusion-vs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-xl);
}

.fusion-player {
    text-align: center;
}

.fusion-archetype-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.fusion-archetype-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.fusion-genes {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.fusion-compatibility {
    text-align: center;
    padding: var(--space-lg);
}

.fusion-score {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
}

.fusion-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.fusion-match-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    font-size: 0.7rem;
    color: #22C55E;
}

.fusion-details {
    margin-bottom: var(--space-xl);
}

.fusion-bar-item {
    display: grid;
    grid-template-columns: 120px 1fr 45px;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.fusion-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.fusion-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.fusion-shared h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fusion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fusion-loading {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
}

/* ============ BACKLOG QUESTS ============ */

.quests-section {
    margin-bottom: var(--space-2xl);
}

.quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-md);
}

.quest-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.quest-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--glow-accent);
}

.quest-card.quest-completed {
    border-color: rgba(34, 197, 94, 0.3);
}

.quest-card.quest-claimed {
    opacity: 0.6;
}

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.quest-icon {
    font-size: 1.5rem;
}

.quest-difficulty {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.quest-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.quest-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.quest-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-md);
}

.quest-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.quest-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.quest-progress-text {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    min-width: 40px;
    text-align: right;
}

.quest-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quest-xp {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-gold);
    font-weight: 600;
}

.quest-action-btn {
    padding: 5px 14px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quest-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.quest-claim-btn {
    background: linear-gradient(135deg, #22C55E, #16A34A);
    animation: pulseGlow 2s ease-in-out infinite;
}

.quest-claimed-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .fusion-vs {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .fusion-bar-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .four-favorites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .big-number-value {
        font-size: 2rem;
    }
    
    .section-header-journal {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .dna-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dna-archetype-name {
        font-size: 1.5rem;
    }
    
    .dna-archetype-icon {
        font-size: 3rem;
    }
}

/* ================================================
   GDPR COMPLIANCE - PRIVACY & DATA
   ================================================ */

/* Privacy Policy Page */
.privacy-policy-page {
    min-height: 100vh;
    padding: var(--space-xl) 0;
}

.privacy-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-color);
}

.privacy-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

/* Quick Summary Box */
.privacy-quick-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.quick-summary-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.quick-summary-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.quick-summary-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.quick-summary-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.quick-summary-text strong {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.quick-summary-text span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.privacy-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.privacy-section {
    margin-bottom: var(--space-xl);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color); /* 15% opacity */
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow for depth */
}

.privacy-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.privacy-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
}

.privacy-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.privacy-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.privacy-list li strong {
    color: var(--text-primary);
}

.privacy-footer {
    text-align: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

/* Privacy & Data Section in Settings */
.privacy-data-section {
    border: 2px solid var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.privacy-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.privacy-action-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.privacy-action-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.privacy-action-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.privacy-action-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: var(--space-lg);
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-banner-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.cookie-banner-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Delete Modal Double Confirmation */
#deleteStep2 {
    animation: fadeIn 0.3s ease;
}

#deleteConfirmInput {
    font-family: var(--font-mono);
    text-transform: uppercase;
}

#finalDeleteBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Privacy */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .privacy-action-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .privacy-section {
        padding: var(--space-md);
    }
    
    .privacy-quick-summary {
        grid-template-columns: 1fr;
    }
    
    .privacy-header h1 {
        font-size: 2rem;
    }
    
    .transparency-data-grid {
        grid-template-columns: 1fr;
    }
    
    .privacy-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .privacy-tool-card {
        flex-direction: column;
        text-align: center;
    }
    
    .kill-switch-modal-content {
        max-width: 95%;
        margin: var(--space-md);
    }
    
    .kill-switch-header h2 {
        font-size: 1.4rem;
    }
    
    .kill-switch-icon {
        font-size: 3rem;
    }
}

/* ================================================
   PRIVACY DASHBOARD - "Twoje Dane i Prywatność"
   ================================================ */

.privacy-dashboard-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

/* Data Transparency Card */
.data-transparency-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color); /* Updated to use CSS variable (15% opacity) */
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Enhanced shadow for depth */
}

.transparency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color); /* 15% opacity */
}

.transparency-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.transparency-badge {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transparency-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.transparency-data-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.transparency-data-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color); /* 15% opacity */
}

.data-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.data-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
    word-break: break-word;
}

/* Privacy Tools Grid */
.privacy-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    align-items: stretch;
}

.privacy-tool-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color); /* Updated to use CSS variable (15% opacity) */
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    gap: var(--space-md);
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow for depth */
    height: 100%;
}

.privacy-tool-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.kill-switch-card {
    border-color: rgba(239, 68, 68, 0.3);
}

.kill-switch-card:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

.tool-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.tool-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    justify-content: space-between;
}

.tool-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    margin-bottom: 0.5rem;
}

.tool-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* The Kill Switch Modal (Beautiful Glassmorphism) */
.kill-switch-modal {
    backdrop-filter: blur(20px);
    background: rgba(17, 17, 17, 0.95);
}

.kill-switch-modal-content {
    max-width: 600px;
    background: var(--bg-card); /* Use CSS variable */
    border: 1px solid var(--border-color); /* Updated to use CSS variable (15% opacity) */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 
                0 0 40px rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(20px);
}

.kill-switch-header {
    text-align: center;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-color); /* Updated to use CSS variable (15% opacity) */
    position: relative;
}

.kill-switch-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    animation: pulse 2s ease-in-out infinite;
}

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

.kill-switch-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.kill-switch-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.kill-switch-body {
    padding: var(--space-xl);
}

.kill-switch-warning {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #EF4444;
    border-radius: var(--radius-md);
}

.kill-switch-warning p {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.kill-switch-data-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0 0 0;
}

.kill-switch-data-list li {
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.kill-switch-confirmation {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color); /* Updated to use CSS variable (15% opacity) */
}

.kill-switch-confirmation p {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-align: center;
}

.kill-switch-input {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    transition: all var(--transition-fast);
    margin-bottom: var(--space-lg);
}

.kill-switch-input:focus {
    outline: none;
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.kill-switch-input::placeholder {
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: normal;
}

.kill-switch-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.kill-switch-confirm-btn {
    min-width: 180px;
    font-weight: 700;
    font-size: 1rem;
}

.kill-switch-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.kill-switch-confirm-btn:not(:disabled):hover {
    background: #DC2626;
    transform: scale(1.05);
}

/* Security Info Footer (The Hacker's Corner) */
.security-info-footer {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
}

.security-info-footer h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0 0 var(--space-md) 0;
    font-family: var(--font-heading);
}

.security-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.security-info-list li {
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    font-family: var(--font-mono);
}

.security-info-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}
