/* ============================================
   OpenPlay Arcade - Main Stylesheet
   ============================================ */

:root {
    /* Colors */
    --bg-void: #030308;
    --bg-deep: #080812;
    --bg-surface: #0c0c18;
    --bg-elevated: #121220;
    --bg-card: #16162a;
    --bg-card-hover: #1e1e38;
    
    --neon-cyan: #00f5ff;
    --neon-magenta: #ff00aa;
    --neon-green: #00ff88;
    --neon-yellow: #f0ff00;
    --neon-orange: #ff6600;
    --neon-purple: #aa00ff;
    
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    
    --text-primary: #ffffff;
    --text-secondary: #9999bb;
    --text-muted: #666688;
    
    /* Spacing */
    --header-height: 70px;
    --sidebar-width: 240px;
    --sidebar-collapsed: 70px;
    --right-sidebar-width: 340px;
    
    /* Borders & Shadows */
    --border-subtle: 1px solid rgba(0, 245, 255, 0.1);
    --border-glow: 1px solid rgba(0, 245, 255, 0.3);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 245, 255, 0.3);
    --shadow-magenta: 0 0 30px rgba(255, 0, 170, 0.3);
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Chakra Petch', sans-serif;
    background: var(--bg-void);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 245, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 0, 170, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 60%);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-magenta));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-magenta), var(--neon-cyan));
}

/* ============================================
   Typography
   ============================================ */

.gradient-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

/* ============================================
   Header
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(8, 8, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

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

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 245, 255, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 0, 170, 0.5); }
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan);
    background: rgba(0, 245, 255, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--neon-cyan);
    border-radius: 3px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    width: 260px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: var(--bg-elevated);
    border: var(--border-subtle);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition-normal);
}

.search-box input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
}

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

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.user-level {
    font-size: 12px;
    font-weight: 600;
    color: var(--neon-green);
}

.xp-bar {
    width: 70px;
    height: 6px;
    background: var(--bg-deep);
    border-radius: 3px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-yellow));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    position: relative;
}

.icon-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--neon-magenta);
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-deep);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-normal);
}

.user-avatar:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-glow);
}

.btn-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
    border-radius: var(--radius-xl);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--bg-void);
    transition: var(--transition-normal);
}

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

.btn-secondary {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    border-radius: var(--radius-xl);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background: rgba(0, 245, 255, 0.1);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 18px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--text-primary);
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-deep);
    border-right: var(--border-subtle);
    padding: 20px 0;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition-normal);
}

.sidebar-section {
    padding: 0 12px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.sidebar-link:hover {
    background: rgba(0, 245, 255, 0.05);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: rgba(0, 245, 255, 0.1);
    color: var(--neon-cyan);
    border-left: 3px solid var(--neon-cyan);
}

.sidebar-link span {
    font-size: 18px;
}

.sidebar-divider {
    height: 1px;
    background: rgba(0, 245, 255, 0.1);
    margin: 16px 20px;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    margin-left: var(--sidebar-width);
    margin-right: var(--right-sidebar-width);
    padding: calc(var(--header-height) + 24px) 30px 30px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

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

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title span {
    font-size: 22px;
}

.see-all {
    color: var(--neon-cyan);
    font-weight: 500;
    transition: var(--transition-fast);
}

.see-all:hover {
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    height: 380px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?w=1600&h=900&fit=crop') center/cover;
    filter: brightness(0.3) saturate(1.2);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 3, 8, 0.95) 0%, rgba(3, 3, 8, 0.7) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 550px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 245, 255, 0.15);
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
    color: var(--neon-cyan);
    width: fit-content;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 48px;
    letter-spacing: 3px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-stats {
    position: absolute;
    right: 40px;
    bottom: 40px;
    display: flex;
    gap: 40px;
}

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

.hero-stat-value {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: var(--neon-cyan);
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* ============================================
   Games Grid
   ============================================ */

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

.games-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: var(--border-subtle);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-glow);
}

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

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.game-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-hot { background: var(--neon-magenta); color: white; }
.badge-new { background: var(--neon-green); color: var(--bg-void); }
.badge-top { background: var(--gold); color: var(--bg-void); }
.badge-multiplayer { background: var(--neon-purple); color: white; }

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

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

.play-btn-overlay {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.game-card-info {
    padding: 14px;
}

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

.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.game-card-category {
    color: var(--text-muted);
}

.game-card-rating {
    color: var(--gold);
}

/* ============================================
   Badges
   ============================================ */

.badges-showcase {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-item {
    width: 60px;
    height: 60px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 2px solid var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
}

.badge-item:hover {
    transform: scale(1.1);
    border-color: var(--neon-cyan);
}

.badge-item.locked {
    opacity: 0.3;
    filter: grayscale(1);
}

.badge-item.earned {
    border-color: var(--neon-green);
}

.badge-item.legendary {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.badge-item.epic {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(170, 0, 255, 0.3);
}

.badge-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-deep);
    border: 1px solid var(--neon-cyan);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    z-index: 10;
    text-align: center;
}

.badge-item:hover .badge-tooltip {
    opacity: 1;
}

.badge-tooltip-name {
    font-weight: 600;
    font-size: 13px;
    display: block;
}

.badge-tooltip-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   Leaderboard
   ============================================ */

.leaderboard-preview {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: var(--border-subtle);
    overflow: hidden;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: var(--border-subtle);
    transition: var(--transition-fast);
}

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

.leaderboard-item:hover {
    background: rgba(0, 245, 255, 0.03);
}

.leaderboard-item.current-user {
    background: rgba(0, 245, 255, 0.1);
    border-left: 3px solid var(--neon-cyan);
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.rank-1 { background: var(--gold); color: var(--bg-void); }
.rank-2 { background: var(--silver); color: var(--bg-void); }
.rank-3 { background: var(--bronze); color: var(--bg-void); }
.rank-default { background: var(--bg-elevated); color: var(--text-secondary); }

.leaderboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 600;
    font-size: 14px;
}

.leaderboard-level {
    font-size: 12px;
    color: var(--text-muted);
}

.leaderboard-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: var(--neon-cyan);
}

/* ============================================
   Categories Grid
   ============================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    border: var(--border-subtle);
    transition: var(--transition-normal);
}

.category-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.category-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
}

.category-name {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.category-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   Right Sidebar
   ============================================ */

.right-sidebar {
    position: fixed;
    right: 0;
    top: var(--header-height);
    width: var(--right-sidebar-width);
    height: calc(100vh - var(--header-height));
    padding: 24px 20px;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: var(--border-subtle);
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.daily-challenge {
    text-align: center;
}

.challenge-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.challenge-bar {
    flex: 1;
    height: 10px;
    background: var(--bg-deep);
    border-radius: 5px;
    overflow: hidden;
}

.challenge-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* ============================================
   Ad Containers
   ============================================ */

.ad-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border: 1px dashed rgba(0, 245, 255, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ad-leaderboard {
    height: 90px;
    margin-bottom: 24px;
}

.ad-rectangle {
    width: 100%;
    min-height: 250px;
    margin-bottom: 20px;
}

.ad-label {
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-placeholder {
    color: var(--text-muted);
    font-size: 12px;
}

/* ============================================
   SEO Content
   ============================================ */

.seo-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 40px 0;
    border: var(--border-subtle);
}

.seo-content h2 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--neon-cyan);
}

.seo-content h3 {
    font-size: 18px;
    margin: 20px 0 12px;
}

.seo-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.8;
}

.seo-content ul {
    color: var(--text-secondary);
    margin-left: 20px;
    margin-bottom: 16px;
}

.seo-content li {
    margin-bottom: 8px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg-deep);
    border-top: var(--border-subtle);
    padding: 50px 30px 30px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.social-link {
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--neon-cyan);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: var(--border-subtle);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

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

/* ============================================
   Modals
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

/* Game Modal */
.game-modal {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    border: var(--border-glow);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-deep);
    border-bottom: var(--border-subtle);
}

.modal-game-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.modal-title {
    font-size: 20px;
}

.modal-category {
    font-size: 13px;
    color: var(--text-muted);
}

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

.modal-close {
    font-size: 20px;
}

.modal-close:hover {
    background: var(--neon-magenta) !important;
    border-color: var(--neon-magenta) !important;
    color: white !important;
}

.modal-body {
    padding: 24px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.game-container {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

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

.game-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}

.game-loading-icon {
    font-size: 70px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

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

.game-loading h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

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

.game-info-panel {
    margin-top: 20px;
}

.game-stats {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
}

.game-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-stat .stat-value {
    font-weight: 600;
    color: var(--neon-cyan);
}

.game-stat .stat-label {
    color: var(--text-muted);
    font-size: 13px;
}

.game-stat.xp-reward {
    margin-left: auto;
    background: rgba(0, 245, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-md);
}

.game-details {
    padding-top: 16px;
}

.game-detail-section {
    margin-bottom: 16px;
}

.game-detail-section h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.game-detail-section p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.game-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.game-tag {
    padding: 4px 12px;
    background: var(--bg-elevated);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.modal-ad {
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* Profile Modal */
.profile-modal {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 450px;
    border: var(--border-glow);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

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

.profile-header {
    padding: 40px 30px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(255, 0, 170, 0.1));
    border-bottom: var(--border-subtle);
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 4px solid var(--bg-surface);
}

.profile-name {
    font-size: 24px;
    margin-bottom: 4px;
}

.profile-joined {
    font-size: 13px;
    color: var(--text-muted);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 30px;
    border-bottom: var(--border-subtle);
}

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

.profile-stat-value {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: var(--neon-cyan);
}

.profile-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.profile-form {
    padding: 20px 30px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-deep);
    border: var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition-normal);
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-cyan);
}

.avatar-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.avatar-option {
    width: 50px;
    height: 50px;
    background: var(--bg-elevated);
    border: 2px solid var(--bg-surface);
    border-radius: var(--radius-md);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.avatar-option:hover,
.avatar-option.selected {
    border-color: var(--neon-cyan);
    background: rgba(0, 245, 255, 0.1);
}

.profile-actions {
    display: flex;
    gap: 12px;
    padding: 20px 30px;
    border-top: var(--border-subtle);
}

.profile-actions button {
    flex: 1;
}

/* Interstitial Ad */
.interstitial-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.interstitial-overlay.active {
    display: flex;
}

.interstitial-content {
    text-align: center;
}

.interstitial-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.interstitial-ad-box {
    width: 480px;
    min-height: 320px;
    background: var(--bg-card);
    border: 1px dashed rgba(0, 245, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.interstitial-skip {
    padding: 12px 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius-xl);
    color: var(--neon-cyan);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    transition: var(--transition-normal);
}

.interstitial-skip:hover:not(:disabled) {
    background: var(--neon-cyan);
    color: var(--bg-void);
}

.interstitial-skip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: var(--border-glow);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlide 0.3s ease;
}

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

.toast-icon {
    font-size: 20px;
}

.toast-message {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
}

.toast-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Loading States */
.loading-placeholder {
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1400px) {
    .right-sidebar {
        display: none;
    }
    
    .main-content {
        margin-right: 0;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-collapsed);
    }
    
    .sidebar-link span:last-child,
    .sidebar-title {
        display: none;
    }
    
    .sidebar-link {
        justify-content: center;
        padding: 14px;
    }
    
    .main-content {
        margin-left: var(--sidebar-collapsed);
    }
    
    .hero-stats {
        display: none;
    }
    
    .footer-links {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 90px 16px 20px;
    }
    
    .header {
        padding: 0 16px;
    }
    
    .main-nav {
        display: none;
    }
    
    .search-box {
        width: 180px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        height: 320px;
    }
    
    .hero-content {
        padding: 24px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-column {
        min-width: 45%;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-modal {
        max-height: 100vh;
        border-radius: 0;
    }
}
