/* ============================================
   GEMTRA GAMES - PROFESSIONAL STYLES
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #16161f;
    --bg-hover: #1f1f2e;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --border: #27272a;
    --border-light: #3f3f46;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* Spacing */
    --container-max: 1400px;
    --header-height: 70px;
    
    /* iOS Safe Areas */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 10%;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: var(--primary-light);
    bottom: -50px;
    right: 30%;
    animation-delay: -15s;
}

.shape-5 {
    width: 180px;
    height: 180px;
    background: var(--secondary);
    top: 20%;
    left: 10%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ============================================
   LOADING SCREEN - ENHANCED
   ============================================ */

/* Prevent scroll during loading */
html.loading {
    overflow: hidden !important;
    height: 100%;
}

html.loading body {
    overflow: hidden !important;
    height: 100%;
}

/* Main content hidden during loading */
html.loading main,
html.loading .navbar,
html.loading .bg-animation {
    opacity: 0;
}

/* Fade in content after loading */
main,
.navbar,
.bg-animation {
    transition: opacity 0.6s ease-out;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f0f1a 50%, var(--bg-primary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Animated background pattern for loading screen */
.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(34, 197, 94, 0.08) 0%, transparent 40%);
    animation: loadingBgPulse 3s ease-in-out infinite;
}

@keyframes loadingBgPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    animation: loadingFadeIn 0.4s ease-out;
}

@keyframes loadingFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.loader {
    perspective: 200px;
    margin-bottom: 32px;
}

.loader-cube {
    width: 70px;
    height: 70px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 3.5s infinite ease-in-out;
}

.cube-face {
    position: absolute;
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.cube-face.front { transform: translateZ(35px); }
.cube-face.back { transform: rotateY(180deg) translateZ(35px); }
.cube-face.right { transform: rotateY(90deg) translateZ(35px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(35px); }
.cube-face.top { transform: rotateX(90deg) translateZ(35px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(35px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    60% { transform: rotateX(360deg) rotateY(360deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Loader brand */
.loader-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.loader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoPulse 1.5s ease-in-out infinite;
}

.loader-logo svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loader-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

.loader-text {
    margin-top: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Progress bar */
.loader-progress {
    width: 200px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    margin-top: 24px;
    overflow: hidden;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    animation: loadProgress 1.8s ease-in-out forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    20% { width: 20%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--header-height) + var(--safe-area-top));
    padding-top: var(--safe-area-top);
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
    background: rgba(10, 10, 15, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 1.8rem;
    animation: bounce 2s ease-in-out infinite;
}

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

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

/* Search */
.nav-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.nav-search input {
    width: 100%;
    padding: 12px 100px 12px 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
}

.nav-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

.search-kbd {
    position: absolute;
    right: 45px;
    padding: 4px 8px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: inherit;
}

.search-clear {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--bg-hover);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.nav-search input:not(:placeholder-shown) + .search-kbd {
    display: none;
}

.search-clear:hover {
    background: var(--danger);
    color: white;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--bg-hover);
}

.search-result-item img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.search-result-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.search-result-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link svg {
    width: 18px;
    height: 18px;
}

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

.nav-link.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Nav Request & Support Buttons - PROMINENT */
.nav-request-btn, .nav-support-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-request-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.nav-request-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.nav-support-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.nav-support-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav-request-btn svg, .nav-support-btn svg {
    width: 18px;
    height: 18px;
}

.theme-toggle, .favorites-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.theme-toggle:hover, .favorites-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--primary);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
}

.moon-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: none; }

.favorites-btn svg {
    width: 20px;
    height: 20px;
}

.favorites-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--secondary);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-height) + var(--safe-area-top) + 40px) 24px 60px;
    padding-left: max(24px, var(--safe-area-left));
    padding-right: max(24px, var(--safe-area-right));
    position: relative;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.5); }
}

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

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-icon {
    width: 32px;
    height: 32px;
    fill: var(--primary);
    margin-bottom: 8px;
}

.stat-number {
    display: inline;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Live Stats Pulse Effect */
.stat-live .stat-icon {
    fill: #22c55e;
}

.live-pulse {
    position: relative;
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.live-pulse::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
        opacity: 0.8;
    }
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-game-preview {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/10;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.hero-game-preview:hover {
    transform: scale(1.02);
}

.preview-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    animation: rotateGlow 4s linear infinite;
    opacity: 0.5;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-game-preview img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 2;
}

.hero-game-preview:hover .preview-overlay {
    opacity: 1;
}

.preview-play {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: scale(0.8);
    transition: transform var(--transition-fast);
}

.preview-play svg {
    width: 32px;
    height: 32px;
    fill: white;
    margin-left: 4px;
}

.hero-game-preview:hover .preview-play {
    transform: scale(1);
}

.preview-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    z-index: 2;
}

.preview-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.preview-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: fadeInUp 1s ease 1s both;
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease both;
}

.animate-slide-up {
    animation: slideUp 0.8s ease both;
}

.animate-float {
    animation: floatY 6s ease-in-out infinite;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

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

/* ============================================
   FILTER SECTION
   ============================================ */

.filter-section {
    padding: 24px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}

/* Main Search Bar */
.main-search-container {
    margin-bottom: 20px;
}

.main-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.main-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    pointer-events: none;
}

.main-search-input {
    width: 100%;
    padding: 16px 50px 16px 56px;
    font-size: 1.1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.main-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

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

.main-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.main-search-clear:hover {
    background: var(--danger);
    color: white;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.filter-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 4px;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-tertiary);
    scroll-snap-type: x proximity;
}

.filter-categories > * {
    scroll-snap-align: start;
}

.filter-categories::-webkit-scrollbar {
    height: 6px;
}

.filter-categories::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.filter-categories::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.filter-categories::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.filter-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

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

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.filter-btn.active svg {
    fill: white;
}

.filter-btn.featured-filter.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.filter-btn.favorites-filter.active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.filter-btn svg {
    width: 16px;
    height: 16px;
}

.cat-emoji {
    font-size: 1.1rem;
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sort-btn:hover {
    border-color: var(--primary);
}

.sort-btn svg {
    width: 18px;
    height: 18px;
}

.sort-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    display: none;
    z-index: 50;
}

.sort-menu.show {
    display: block;
    animation: slideDown 0.2s ease;
}

.sort-menu button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.sort-menu button:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.view-btn {
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-btn:hover {
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

.view-btn svg {
    width: 18px;
    height: 18px;
}

/* Active Filters */
.active-filters {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.active-filters:empty {
    display: none;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--primary-light);
}

.filter-tag button {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

/* ============================================
   GAMES SECTION
   ============================================ */

.games-section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
}

.title-icon {
    font-size: 1.5rem;
}

.game-count {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.section-desc {
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.games-grid.list-view {
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Game Card */
.game-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    animation: cardFadeIn 0.4s ease-out both;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15), var(--shadow-lg);
}

.game-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.game-card:hover .game-card-image img {
    transform: scale(1.1);
}

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.game-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-fast);
}

.game-card:hover .game-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.game-card-play svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin-left: 3px;
}

.game-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background: var(--success);
    color: white;
}

.badge-hot {
    background: var(--danger);
    color: white;
}

.badge-featured {
    background: var(--warning);
    color: #000;
}

.game-card-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-fast);
    z-index: 2;
}

.game-card:hover .game-card-favorite {
    opacity: 1;
}

.game-card-favorite:hover {
    background: var(--secondary);
}

.game-card-favorite.active {
    opacity: 1;
    background: var(--secondary);
}

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

.game-card-content {
    padding: 16px;
}

.game-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-tags {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.game-tag {
    padding: 4px 8px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* List View Card */
.games-grid.list-view .game-card {
    display: flex;
    flex-direction: row;
}

.games-grid.list-view .game-card-image {
    width: 200px;
    flex-shrink: 0;
    aspect-ratio: 16/10;
}

.games-grid.list-view .game-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border);
    margin: 20px 0;
}

.no-results-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

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

.no-results h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1.1rem;
}

.no-results .btn {
    margin: 8px;
}

.no-results #requestGameBtn {
    font-size: 1.1rem;
    padding: 14px 28px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.6); }
}

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

.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
}

.game-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    max-height: 800px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.3s ease;
    box-shadow: var(--shadow-xl);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.modal-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title-area h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-tag {
    padding: 4px 12px;
    background: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.modal-actions {
    display: flex;
    gap: 8px;
}

.modal-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--primary);
}

.modal-btn.modal-close:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.modal-btn svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    flex: 1;
    overflow: hidden;
}

.game-frame-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.game-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.game-loading.hidden {
    display: none;
}

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

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

.game-loading p {
    margin-top: 16px;
    color: var(--text-secondary);
}

.game-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Game Loading Overlay */
.game-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 15;
    gap: 16px;
    transition: opacity 0.3s ease;
}

.game-loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.game-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.game-loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.game-loading-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Game Error Overlay */
.game-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 15;
    gap: 12px;
    padding: 24px;
    text-align: center;
}

.game-error-icon {
    font-size: 3rem;
}

.game-error-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.game-error-msg {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.5;
}

.game-error-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.game-error-actions .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
}

.touch-warning {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    color: var(--warning);
    font-size: 0.85rem;
}

.touch-warning.visible {
    display: flex;
}

.touch-warning svg {
    width: 18px;
    height: 18px;
}

.game-controls-hint {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.game-controls-hint kbd {
    padding: 4px 8px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.75rem;
}

/* ============================================
   FEATURED SECTION
   ============================================ */

.featured-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.featured-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
}

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

.featured-card:hover img {
    transform: scale(1.05);
}

.featured-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.featured-card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.featured-card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

.categories-section {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.category-card:hover::before {
    opacity: 0.05;
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.category-count {
    padding: 4px 12px;
    background: var(--bg-hover);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.feature {
    display: flex;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.controls-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.controls-card h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.controls-list {
    list-style: none;
}

.controls-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.controls-list li:last-child {
    border-bottom: none;
}

.controls-list kbd {
    padding: 6px 10px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.controls-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-content kbd {
    padding: 4px 10px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 16px 0 24px;
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-contact {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-contact a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* DMCA Contact Box */
.dmca-contact {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.dmca-contact p {
    margin-bottom: 8px;
}

.dmca-contact a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.dmca-contact a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 500;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

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

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

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-desc {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .nav-search {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions {
        margin-left: auto;
        margin-right: 12px;
    }
    
    .hero {
        min-height: 0; /* Fallback */
        min-height: auto;
        padding: calc(var(--header-height) + 60px) 16px 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-options {
        justify-content: space-between;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .modal-container {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
    
    .game-controls-hint {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .category-card {
        padding: 20px 16px;
    }
    
    .category-icon {
        font-size: 2rem;
    }
}
/* ============================================
   NEW CARD STRUCTURE STYLES
   ============================================ */

.card-image-wrapper {
    position: relative;
    aspect-ratio: 16/12;
    overflow: hidden;
    background: var(--bg-hover);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.game-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.game-card:hover .card-overlay {
    opacity: 1;
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
}

.game-card:hover .play-btn {
    transform: scale(1);
}

.play-btn:hover {
    transform: scale(1.1) !important;
}

.play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-fast);
    z-index: 5;
}

.game-card:hover .favorite-btn,
.favorite-btn.active {
    opacity: 1;
}

.favorite-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.favorite-btn.active {
    color: var(--secondary);
}

.favorite-btn svg {
    width: 20px;
    height: 20px;
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--warning);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    z-index: 5;
}

.card-content {
    padding: 16px;
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    /* Fallback for older browsers */
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    /* Modern browsers with color-mix */
    background: color-mix(in srgb, var(--category-color, var(--primary)) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--category-color, var(--primary)) 30%, transparent);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--category-color, var(--primary));
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.card-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.card-plays {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-plays svg {
    width: 14px;
    height: 14px;
}

.card-touch {
    font-size: 0.75rem;
    padding: 4px 8px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.card-touch.supported {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
}

.placeholder-letter {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.no-results p {
    color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
    pointer-events: none;
    max-width: 400px;
}

.toast {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border);
    transform: translateX(120%);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    pointer-events: auto;
    min-width: 300px;
    position: relative;
    animation: toastPulse 2s ease-in-out;
}

@keyframes toastPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border); }
    50% { box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4), 0 0 0 1px var(--primary); }
}

.toast.show {
    transform: translateX(0);
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.toast-success { border-left-color: var(--success); }
.toast-success .toast-icon {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.toast-error { border-left-color: var(--danger); }
.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.toast-info { border-left-color: var(--primary); }
.toast-info .toast-icon {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.toast-warning { border-left-color: var(--warning); }
.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

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

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 1.2rem;
    line-height: 1;
}

.toast-close:hover {
    background: var(--surface-2);
    color: var(--text-primary);
}

/* Inline confirmation dialog */
.toast-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.toast-btn {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.toast-btn-primary {
    background: var(--danger);
    color: white;
}

.toast-btn-primary:hover {
    background: #dc2626;
}

.toast-btn-secondary {
    background: var(--surface-2);
    color: var(--text-primary);
}

.toast-btn-secondary:hover {
    background: var(--surface-3);
}

/* Sort Menu */
.sort-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

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

.sort-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sort-option:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sort-option:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.sort-option:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* List View Adjustments */
.games-grid.list-view .game-card {
    display: grid;
    grid-template-columns: 200px 1fr;
}

.games-grid.list-view .card-image-wrapper {
    aspect-ratio: auto;
    height: 100%;
}

.games-grid.list-view .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.games-grid.list-view .card-description {
    -webkit-line-clamp: 3;
}

@media (max-width: 768px) {
    .games-grid.list-view .game-card {
        grid-template-columns: 120px 1fr;
    }
    
    .toast-container {
        top: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* ============================================
   USER AUTH & MENU STYLES
   ============================================ */

.user-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
}

.user-btn:hover {
    background: var(--primary);
    color: white;
}

.user-btn.logged-in {
    background: var(--primary);
    color: white;
}

.user-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-modal.open {
    display: flex;
}

.auth-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 420px;
    width: 90%;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.auth-close:hover {
    background: var(--danger);
    color: white;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

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

.auth-tab.active {
    background: var(--primary);
    color: white;
}

.auth-body .form-group {
    margin-bottom: 16px;
}

.auth-body .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-body .form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

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

.auth-btn.primary-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    margin-bottom: 8px;
}

.auth-btn.primary-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.auth-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all var(--transition-fast);
}

.auth-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.google-btn:hover {
    background: #4285f4;
    border-color: #4285f4;
    color: white;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.auth-divider span {
    padding: 0 16px;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

/* User Menu Dropdown */
.user-menu {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    right: 20px;
    width: 280px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    display: none;
    animation: menuSlideIn 0.2s ease;
}

.user-menu.open {
    display: block;
}

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

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

.user-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.user-menu-items {
    padding: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

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

.menu-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.menu-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* ============================================
   REQUEST MODAL STYLES
   ============================================ */

.request-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.request-modal.open {
    display: flex;
}

.request-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

.request-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.request-close:hover {
    background: var(--danger);
    color: white;
}

.request-header {
    margin-bottom: 24px;
}

.request-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.request-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.request-form .form-group {
    margin-bottom: 20px;
}

.request-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

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

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

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

.btn-full {
    width: 100%;
}

/* ============================================
   AI ASSISTANT STYLES
   ============================================ */

.ai-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.4);
    z-index: 9998;
    transition: all var(--transition-normal);
}

.ai-fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(99, 102, 241, 0.5);
}

.ai-fab svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.ai-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--success);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: var(--radius-full);
}

.ai-chat {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-height: 600px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideIn 0.3s ease;
}

.ai-chat.open {
    display: flex;
}

@keyframes chatSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--gradient-primary);
    color: white;
}

.ai-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.ai-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ai-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 350px;
}

.ai-message {
    display: flex;
    gap: 10px;
    max-width: 90%;
}

.ai-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ai-message.user .ai-avatar {
    background: var(--primary);
    color: white;
    font-size: 12px;
}

.ai-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ai-message.user .ai-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message.bot .ai-bubble {
    border-bottom-left-radius: 4px;
}

.ai-suggestions {
    display: flex;
    gap: 8px;
    padding: 0 20px 12px;
    flex-wrap: wrap;
}

.ai-suggestions button {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ai-suggestions button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.ai-input-area {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.ai-input-area input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.ai-input-area input:focus {
    border-color: var(--primary);
}

.ai-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.ai-send:hover {
    background: var(--primary-dark);
}

.ai-send svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Typing indicator */
.ai-typing {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.ai-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing 1.4s infinite ease-in-out both;
}

.ai-typing span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Mobile responsiveness for AI chat */
@media (max-width: 480px) {
    .ai-chat {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 80vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .ai-fab {
        bottom: 16px;
        right: 16px;
    }
}

/* ============================================
   SUPPORT PANEL STYLES
   ============================================ */

.support-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 420px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-2xl);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.support-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.support-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.support-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.support-header h3 svg {
    fill: white;
}

.support-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.support-close:hover {
    background: rgba(255,255,255,0.3);
}

.support-content {
    padding: 24px;
}

.support-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.support-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
}

.support-option:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateX(4px);
}

.support-option-icon {
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.support-option-text {
    flex: 1;
}

.support-option-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 2px;
}

.support-option-text span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.support-option .arrow {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    transition: transform var(--transition-fast);
}

.support-option:hover .arrow {
    fill: var(--primary);
    transform: translateX(4px);
}

.support-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

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

.support-divider span {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.support-ai-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.support-ai-btn:hover {
    background: var(--primary);
    border-style: solid;
    color: white;
}

.support-ai-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* View My Requests button in support panel */
.support-my-requests {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.support-my-requests:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.support-my-requests svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.support-my-requests .my-requests-count {
    background: var(--secondary);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.support-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.support-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.support-signin {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.support-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.support-email-contact {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-email-contact span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.support-email-contact a {
    color: var(--accent);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.support-email-contact a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* Support panel backdrop */
.support-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.support-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Mobile nav buttons */
@media (max-width: 768px) {
    .nav-request-btn span,
    .nav-support-btn span {
        display: none;
    }
    
    .nav-request-btn,
    .nav-support-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }
}

/* ============================================
   MY REQUESTS PANEL
   ============================================ */

.my-requests-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.my-requests-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.my-requests-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-2xl);
    z-index: 10001;
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.my-requests-panel.open {
    right: 0;
}

.my-requests-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--gradient-primary);
}

.my-requests-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.my-requests-header h3 svg {
    fill: white;
}

.my-requests-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.my-requests-close:hover {
    background: rgba(255,255,255,0.3);
}

.my-requests-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.my-requests-empty {
    text-align: center;
    padding: 60px 20px;
}

.my-requests-empty .empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.my-requests-empty h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.my-requests-empty p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.my-requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.request-card:hover {
    border-color: var(--primary);
}

.request-card-content {
    width: 100%;
}

/* Delete button on request cards */
.request-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
    z-index: 5;
}

.request-card:hover .request-delete-btn {
    opacity: 1;
}

.request-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

.request-delete-btn svg {
    width: 16px;
    height: 16px;
}

/* Inline Confirm Dialog */
.confirm-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.2s;
}

.confirm-dialog-overlay.show {
    opacity: 1;
}

.confirm-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.2s;
}

.confirm-dialog-overlay.show .confirm-dialog {
    transform: scale(1);
}

.confirm-dialog h4 {
    margin: 0 0 12px;
    color: #ef4444;
    font-size: 1.25rem;
    font-weight: 700;
}

.confirm-dialog p {
    margin: 0 0 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.confirm-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-dialog-btn {
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.confirm-dialog-btn.cancel {
    background: var(--surface-2);
    color: var(--text-primary);
}

.confirm-dialog-btn.cancel:hover {
    background: var(--surface-3);
}

.confirm-dialog-btn.delete {
    background: #ef4444;
    color: white;
}

.confirm-dialog-btn.delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.request-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.request-card-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0;
}

.request-card-type {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
}

.request-card-type.game-request { background: rgba(99, 102, 241, 0.2); color: var(--primary); }
.request-card-type.bug-report { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.request-card-type.suggestion { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.request-card-type.feedback { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.request-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Request card rejection preview */
.request-card-rejection {
    color: #ef4444;
    font-size: 0.8rem;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
    border-left: 3px solid #ef4444;
}

/* Request card with update indicator */
.request-card.has-update {
    border-color: var(--secondary);
    box-shadow: 0 0 0 1px var(--secondary);
}

.request-card .update-indicator {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    border: 2px solid var(--bg-card);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.request-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.request-card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.request-card-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.request-card-status.pending .status-dot { background: #f59e0b; }
.request-card-status.open .status-dot { background: #f59e0b; }
.request-card-status.in-progress .status-dot { background: #3b82f6; }
.request-card-status.completed .status-dot { background: #10b981; }
.request-card-status.closed .status-dot { background: #10b981; }
.request-card-status.rejected .status-dot { background: #ef4444; }

.request-card-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.request-card-unread {
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* ============================================
   REQUEST CHAT PANEL
   ============================================ */

.request-chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.request-chat-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.request-chat-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-2xl);
    z-index: 10003;
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.request-chat-panel.open {
    right: 0;
}

.request-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.back-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

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

.back-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.request-chat-info {
    flex: 1;
}

.request-chat-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.request-chat-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
}

.request-chat-status.pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.request-chat-status.open { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.request-chat-status.in-progress { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.request-chat-status.completed { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.request-chat-status.closed { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.request-chat-status.rejected { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.request-chat-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.request-chat-close:hover {
    color: var(--text-primary);
}

.request-chat-details {
    padding: 16px 20px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.request-details-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 12px;
}

.request-details-card .detail-row {
    display: flex;
    margin-bottom: 8px;
}

.request-details-card .detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 80px;
    flex-shrink: 0;
}

.request-details-card .detail-value {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.request-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message.admin {
    align-self: flex-start;
}

.chat-message .message-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-message.user .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.admin .message-bubble {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-message .message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

.chat-message.user .message-time {
    text-align: right;
}

.chat-message.admin .admin-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.chat-message.admin .admin-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.request-chat-input {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.request-chat-input input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.request-chat-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.request-chat-input button {
    background: var(--primary);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.request-chat-input button:hover {
    background: var(--primary-dark);
}

.request-chat-input button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* No messages state */
.no-messages {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-messages svg {
    width: 48px;
    height: 48px;
    fill: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 12px;
}

/* Rejection Notice */
.rejection-notice {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.rejection-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.rejection-header svg {
    width: 18px;
    height: 18px;
}

.rejection-notice p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Completed Notice */
.completed-notice {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.completed-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #22c55e;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.completed-header svg {
    width: 18px;
    height: 18px;
}

.completed-notice p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Notification Badge on User Button */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: notificationPulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes notificationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* User Button needs position relative for badge */
.user-btn {
    position: relative;
}

/* Menu badge */
.menu-badge {
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-left: auto;
}

/* Request Card Status Colors - Enhanced */
.request-card-status.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.request-chat-status.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Mobile responsive */
@media (max-width: 500px) {
    .my-requests-panel,
    .request-chat-panel {
        max-width: 100%;
    }
}

/* ============================================
   LEGAL PAGES STYLES
   ============================================ */

.legal-page {
    min-height: calc(100vh - 80px);
    padding: calc(var(--header-height) + var(--safe-area-top) + 50px) 0 60px;
    padding-left: max(24px, var(--safe-area-left));
    padding-right: max(24px, var(--safe-area-right));
    background: var(--bg-primary);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.legal-content .legal-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-content p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.legal-content li ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.legal-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content blockquote {
    background: var(--bg-hover);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--text-secondary);
}

.legal-content address {
    font-style: normal;
    background: var(--bg-hover);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Table of Contents */
.legal-toc {
    background: var(--bg-hover);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.legal-toc h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.legal-toc ol, .legal-toc ul {
    margin-bottom: 0;
    columns: 2;
    column-gap: 2rem;
}

.legal-toc li {
    margin-bottom: 0.4rem;
    break-inside: avoid;
}

.legal-toc a {
    font-size: 0.95rem;
}

/* Legal Highlight Boxes */
.legal-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.legal-highlight p {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--text-primary);
}

/* Legal Tables */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.legal-table th {
    background: var(--bg-hover);
    font-weight: 600;
    color: var(--text-primary);
}

.legal-table td {
    color: var(--text-secondary);
}

.legal-table tr:hover td {
    background: var(--bg-hover);
}

/* Contact Info List */
.contact-info {
    list-style: none;
    padding-left: 0;
}

.contact-info li {
    padding: 0.5rem 0;
}

/* Legal Footer */
.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.legal-footer p {
    font-size: 1rem;
    color: var(--text-primary);
}

/* ============================================
   CREDITS PAGE SPECIFIC STYLES
   ============================================ */

.credits-page .credits-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.credits-category {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.credit-card {
    background: var(--bg-hover);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.credit-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.credit-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.credit-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.credit-details p:last-child {
    margin-bottom: 0;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .legal-toc ol, .legal-toc ul {
        columns: 1;
    }
    
    .legal-table {
        font-size: 0.85rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 100px 0 40px;
    }
    
    .legal-content {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-lg);
    }
    
    .legal-content h1 {
        font-size: 1.75rem;
    }
    
    .legal-highlight {
        padding: 1rem;
    }
    
    .legal-toc {
        padding: 1rem;
    }
}

/* ============================================
   SHARE BUTTON & MODAL STYLES
   ============================================ */

.nav-share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.nav-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.nav-share-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 900px) {
    .nav-share-btn span {
        display: none;
    }
    
    .nav-share-btn {
        padding: 0.6rem;
        border-radius: 50%;
    }
}

/* Share Modal */
.share-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.share-modal.active {
    display: flex;
}

.share-container {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    z-index: 10001;
    animation: modalSlideIn 0.3s ease;
}

.share-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.share-close:hover {
    background: var(--secondary);
    color: white;
}

.share-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.share-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.share-body {
    padding: 1.5rem 2rem 2rem;
}

/* QR Code Section */
.share-qr-section {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-hover);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.share-qr-code {
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
    padding: 10px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-qr-code img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.share-qr-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Links Section */
.share-links-section {
    margin-bottom: 1.5rem;
}

.share-link-item {
    margin-bottom: 1rem;
}

.share-link-item:last-child {
    margin-bottom: 0;
}

.share-link-item label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.share-link-row {
    display: flex;
    gap: 0.5rem;
}

.share-link-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: monospace;
}

.share-copy-btn {
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.share-copy-btn:hover {
    background: var(--primary-hover);
}

/* Bookmarklet Section */
.share-bookmark-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 1.5rem;
    border: 1px dashed var(--primary);
}

.share-bookmark-section h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.share-bookmark-section > p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.bookmarklet-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: grab;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all var(--transition-fast);
    -webkit-user-select: none;
    user-select: none;
}

.bookmarklet-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.bookmarklet-btn:active {
    cursor: grabbing;
}

.bookmark-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.bookmark-hint kbd {
    background: var(--bg-hover);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}

/* Social Share Section */
.share-social-section h3 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-align: center;
}

.share-social-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.share-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.share-social-btn svg {
    width: 22px;
    height: 22px;
}

.share-social-btn.twitter {
    background: #1DA1F2;
}

.share-social-btn.facebook {
    background: #4267B2;
}

.share-social-btn.reddit {
    background: #FF4500;
}

.share-social-btn.native {
    background: var(--primary);
}

.share-social-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CONTACT MODAL STYLES
   ============================================ */

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.contact-modal.active {
    display: flex;
}

.contact-container {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    z-index: 10001;
    animation: modalSlideIn 0.3s ease;
}

.contact-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.contact-close:hover {
    background: var(--secondary);
    color: white;
}

.contact-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.contact-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.contact-body {
    padding: 1.5rem 2rem 2rem;
}

.contact-section {
    margin-bottom: 1.5rem;
}

.contact-section:last-child {
    margin-bottom: 0;
}

.contact-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.contact-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.contact-option:hover {
    border-color: var(--primary);
}

.contact-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-option-icon svg {
    width: 20px;
    height: 20px;
}

.contact-option-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.contact-option-content p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.contact-email-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.contact-email-display input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.9rem;
}

.contact-email-display button {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.contact-email-display button:hover {
    background: var(--primary-hover);
}

.contact-warning {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.contact-warning svg {
    width: 20px;
    height: 20px;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-warning p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.contact-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 0.5rem;
}

.contact-btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.contact-btn-action svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   iOS SAFARI / iPAD SPECIFIC FIXES
   ============================================ */

/* Support for iPad Safari tab bar and notch */
@supports (padding: env(safe-area-inset-top)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
        height: calc(70px + env(safe-area-inset-top));
    }
    
    .hero {
        padding-top: calc(70px + env(safe-area-inset-top) + 40px);
    }
    
    .legal-page {
        padding-top: calc(70px + env(safe-area-inset-top) + 20px);
    }
    
    .footer {
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }
    
    /* Modal safe areas */
    .game-modal .modal-content,
    .share-container,
    .contact-container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* iPad landscape specific */
@media screen and (min-width: 768px) and (max-width: 1194px) and (orientation: landscape) {
    .navbar {
        padding-top: max(env(safe-area-inset-top, 0px), 20px);
        height: calc(70px + max(env(safe-area-inset-top, 0px), 20px));
    }
    
    .hero {
        padding-top: calc(70px + max(env(safe-area-inset-top, 0px), 20px) + 40px);
    }
}

/* iPad portrait specific - extra padding for tab bar */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .navbar {
        padding-top: max(env(safe-area-inset-top, 0px), 25px);
        height: calc(70px + max(env(safe-area-inset-top, 0px), 25px));
    }
    
    .hero {
        padding-top: calc(70px + max(env(safe-area-inset-top, 0px), 25px) + 40px);
    }
    
    .legal-page {
        padding-top: calc(70px + max(env(safe-area-inset-top, 0px), 25px) + 20px);
    }
}