/* ========================================
   CLAUDEZILLA GAMES - ULTRA PREMIUM EDITION
   Modern Gaming Portal with Premium Effects
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Premium Color Palette */
    --accent-primary: #ff3d3d;
    --accent-secondary: #ff6b35;
    --accent-glow: rgba(255, 61, 61, 0.6);
    --accent-subtle: rgba(255, 61, 61, 0.12);

    --neon-cyan: #00f0ff;
    --neon-purple: #b14eff;
    --neon-pink: #ff2d92;

    /* Background layers */
    --bg-deep: #050508;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(15, 15, 20, 0.7);
    --bg-card-hover: rgba(25, 25, 35, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --bg-glass-hover: rgba(255, 255, 255, 0.05);

    /* Text */
    --text-white: #ffffff;
    --text-light: #e0e0e5;
    --text-gray: #8a8a95;
    --text-muted: #4a4a55;

    /* Layout */
    --header-height: 70px;
    --sidebar-width: 240px;
    --friends-width: 280px;
    --bottom-nav-height: 70px;

    /* Fonts */
    --font-main: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Orbitron', 'Rajdhani', sans-serif;

    /* Effects */
    --blur-sm: blur(8px);
    --blur-md: blur(20px);
    --blur-lg: blur(40px);

    /* Shadows */
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px var(--accent-glow);
    --shadow-neon: 0 0 30px rgba(0, 240, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-deep);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   PREMIUM BACKGROUND - Animated Mesh
   ======================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 100% 80% at 50% -20%, rgba(255, 61, 61, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 0% 50%, rgba(177, 78, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 50% 120%, rgba(255, 45, 146, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
}

/* Animated grid overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

/* Custom Scrollbar - Premium */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ========================================
   HEADER - Glassmorphism Premium
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    display: flex;
    align-items: center;
    padding: 0 32px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 15px var(--accent-glow));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 15px var(--accent-glow));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 25px var(--accent-glow)) drop-shadow(0 0 40px rgba(255, 61, 61, 0.3));
        transform: scale(1.02);
    }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #fff 0%, #ff3d3d 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
}

@keyframes textShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Search Button */
.mobile-search-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.mobile-search-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(255, 61, 61, 0.2);
}

.mobile-search-btn svg {
    width: 20px;
    height: 20px;
}

.header-center {
    flex: 1;
    max-width: 560px;
    margin: 0 48px;
}

/* Search trigger button in header */
.search-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 46px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

.search-trigger svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.search-trigger span {
    flex: 1;
    text-align: left;
}

.search-trigger kbd {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-size: 0.7rem;
    font-family: var(--font-main);
    color: var(--text-muted);
}

/* Search Modal/Popup */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: linear-gradient(180deg, rgba(20, 20, 28, 0.98) 0%, rgba(12, 12, 18, 0.99) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 61, 61, 0.1);
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.search-modal.active .search-modal-content {
    transform: translateY(0) scale(1);
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-modal-header svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.search-modal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.1rem;
    font-family: var(--font-main);
}

.search-modal-input::placeholder {
    color: var(--text-muted);
}

.search-modal-input:focus {
    outline: none;
}

.search-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.search-modal-close:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.search-modal-close svg {
    width: 16px;
    height: 16px;
    color: inherit;
}

.search-modal-body {
    max-height: 400px;
    overflow-y: auto;
}

.search-results {
    padding: 12px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: rgba(255, 61, 61, 0.08);
}

.search-result-cover {
    width: 50px;
    height: 66px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-dark);
}

.search-result-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.search-result-genre {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-result-play {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s;
}

.search-result-item:hover .search-result-play {
    opacity: 1;
}

.search-result-play svg {
    width: 14px;
    height: 14px;
    fill: white;
    margin-left: 2px;
}

.search-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.search-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.3;
}

.search-hint {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-hint kbd {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    margin-right: 6px;
}

/* Hide old search elements */
.search-container { display: none; }
.search-icon { display: none; }
.search-input { display: none; }
.search-kbd { display: none; }

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========================================
   MOBILE DRAWER
   ======================================== */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-drawer.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.mobile-drawer-content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 85%;
    max-width: 340px;
    background: linear-gradient(180deg, rgba(15, 15, 20, 0.98) 0%, rgba(5, 5, 10, 0.99) 100%);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(255, 61, 61, 0.1);
}

.mobile-drawer.active .mobile-drawer-content {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-drawer-header .logo-icon {
    width: 32px;
    height: 32px;
}

.mobile-drawer-header .logo-text {
    font-size: 1.2rem;
}

.mobile-drawer-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.3s;
}

.mobile-drawer-close:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.mobile-drawer-close svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-menu {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-menu .nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
    border-radius: 14px;
    position: relative;
    border: 1px solid transparent;
}

.mobile-nav-menu .nav-item:hover,
.mobile-nav-menu .nav-item.active {
    color: var(--text-white);
    background: rgba(255, 61, 61, 0.08);
    border-color: rgba(255, 61, 61, 0.15);
}

.mobile-nav-menu .nav-item.active {
    box-shadow: 0 0 20px rgba(255, 61, 61, 0.1);
}

.mobile-nav-menu .nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.mobile-nav-menu .nav-item.active svg {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.mobile-drawer-footer {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========================================
   MOBILE SEARCH OVERLAY
   ======================================== */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 250;
    padding: 16px;
    background: rgba(5, 5, 10, 0.98);
    backdrop-filter: var(--blur-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 61, 61, 0.2);
    border-radius: 14px;
    padding: 0 18px;
}

.mobile-search-container .search-icon {
    position: static;
    transform: none;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.mobile-search-input {
    flex: 1;
    height: 52px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1rem;
    font-family: var(--font-main);
}

.mobile-search-input::placeholder {
    color: var(--text-muted);
}

.mobile-search-input:focus {
    outline: none;
}

.mobile-search-close {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px;
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
   ======================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(5, 5, 10, 0.95);
    backdrop-filter: var(--blur-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    border-radius: 12px;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    transition: 0.3s;
}

.bottom-nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--text-white);
}

.bottom-nav-item.active {
    background: rgba(255, 61, 61, 0.1);
}

.bottom-nav-item.active svg {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.bottom-nav-item.active span {
    color: var(--accent-primary);
}

/* ========================================
   LAYOUT
   ======================================== */
.main-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--friends-width);
    min-height: 100vh;
    padding-top: var(--header-height);
}

/* ========================================
   LEFT SIDEBAR - Premium Glass
   ======================================== */
.sidebar-left {
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    padding: 28px 16px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.4) 0%, transparent 100%);
}

.menu-label {
    padding: 8px 20px 14px;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.nav-item:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--text-white);
    background: linear-gradient(90deg, rgba(255, 61, 61, 0.12) 0%, transparent 100%);
    border-color: rgba(255, 61, 61, 0.15);
}

.nav-item.active::before {
    transform: scaleY(1);
    box-shadow: 0 0 15px var(--accent-glow);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: 0.3s;
}

.nav-item:hover svg,
.nav-item.active svg {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-tag {
    margin-left: auto;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255, 61, 61, 0.3);
}

.nav-count {
    margin-left: auto;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: 0.3s;
}

.nav-item:hover .nav-count,
.nav-item.active .nav-count {
    background: rgba(255, 61, 61, 0.15);
    color: var(--accent-primary);
}

/* Installed/Top Games Section */
.installed-section {
    margin-top: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px 14px;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.installed-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.installed-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.installed-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.installed-item::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}

.installed-item:hover::after {
    opacity: 1;
}

.installed-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.installed-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.installed-item-info { flex: 1; min-width: 0; }
.installed-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-light);
}
.installed-item-size {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Social Links */
.social-links {
    margin-top: 32px;
}

.social-buttons {
    display: flex;
    gap: 10px;
    padding: 0 14px;
}

.social-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: rgba(255, 61, 61, 0.1);
    border-color: rgba(255, 61, 61, 0.2);
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 61, 61, 0.15);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    padding: 32px 40px;
    overflow-y: auto;
}

/* ========================================
   FEATURED BANNER - Premium Cinematic
   ======================================== */
.featured-banner {
    position: relative;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 32px;
    background: #0a0a0f;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(255, 61, 61, 0.08);
}

/* Accent glow border on hover */
.featured-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 61, 61, 0.15);
    pointer-events: none;
    z-index: 4;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.featured-banner:hover::after {
    border-color: rgba(255, 61, 61, 0.3);
    box-shadow: inset 0 0 60px rgba(255, 61, 61, 0.05);
}

.featured-bg {
    position: absolute;
    inset: -10px;
    background-size: cover;
    background-position: center top;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.featured-banner:hover .featured-bg {
    transform: scale(1.04);
}

/* Cinematic overlay with color accent */
.featured-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(8, 8, 12, 0.95) 0%,
            rgba(8, 8, 12, 0.75) 40%,
            rgba(8, 8, 12, 0.3) 70%,
            transparent 100%),
        linear-gradient(0deg,
            rgba(8, 8, 12, 0.98) 0%,
            rgba(8, 8, 12, 0.5) 35%,
            transparent 70%),
        linear-gradient(180deg,
            rgba(255, 61, 61, 0.03) 0%,
            transparent 40%);
    z-index: 1;
}

/* Subtle vignette */
.featured-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 80% at 75% 30%, transparent 30%, rgba(8, 8, 12, 0.3) 100%);
    pointer-events: none;
    z-index: 2;
}

.featured-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px 56px;
    max-width: 600px;
}

.featured-sale-text { display: none; }
.featured-price-block { display: none; }
.featured-offer-text { display: none; }

/* Genre tag with accent */
.featured-genre {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    order: -1;
    text-shadow: 0 0 20px rgba(255, 61, 61, 0.5);
}

.featured-genre::before {
    content: '';
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.featured-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.featured-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 420px;
    font-weight: 400;
}

.featured-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* Primary button - accent gradient */
.btn-primary {
    padding: 15px 36px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 61, 61, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 61, 61, 0.5);
}

/* Shine effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ========================================
   GAMES SECTION
   ======================================== */
.games-section { margin-bottom: 40px; }

.section-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-header-main h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.accent-bar {
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--accent-glow);
}

.games-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   GAMES GRID - Premium Cards
   ======================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 3/4;
    background: var(--bg-dark);
}

/* Animated gradient border on hover */
.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-purple), var(--neon-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(255, 61, 61, 0.2);
}

.game-card-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Gradient overlay on image */
.game-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        transparent 70%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card-image::after {
    background: linear-gradient(0deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(255, 61, 61, 0.1) 100%);
}

/* Play button overlay */
.game-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 4;
    box-shadow: 0 8px 30px rgba(255, 61, 61, 0.6);
}

.game-card-play svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin-left: 3px;
}

.game-card:hover .game-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.game-card-overlay { display: none; }
.discount-badge { display: none; }

/* Info positioned at bottom of card */
.game-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 2;
}

.game-card-tag {
    display: inline-block;
    font-size: 0.55rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    font-weight: 700;
    text-shadow: 0 0 10px var(--accent-glow);
    background: rgba(255, 61, 61, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
}

.game-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.game-card:hover .game-card-title {
    color: var(--text-white);
}

.game-card-genre { display: none; }
.game-card-price { display: none; }

/* ========================================
   RIGHT SIDEBAR - Premium Stats
   ======================================== */
.sidebar-right {
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    padding: 28px 20px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.4) 0%, transparent 100%);
}

.sidebar-section {
    margin-bottom: 36px;
}

.sidebar-section .section-header {
    padding: 0 4px 16px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.recent-list,
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
}

.recent-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 61, 61, 0.15);
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.recent-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-dark);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.recent-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-item-info {
    flex: 1;
    min-width: 0;
}

.recent-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-item-genre {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.recent-item-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Quick Stats - Premium Cards */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-item {
    padding: 20px 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(255, 61, 61, 0.2);
    background: linear-gradient(180deg, rgba(255, 61, 61, 0.08) 0%, rgba(255, 61, 61, 0.02) 100%);
    transform: translateY(-2px);
}

.sidebar-right .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: var(--font-display);
    background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-right .stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 0 4px;
}

.recent-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.recent-empty-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* ========================================
   GAME MODAL - Ultra Premium
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 780px;
    max-height: 85vh;
    background: linear-gradient(145deg, rgba(20, 20, 28, 0.98) 0%, rgba(8, 8, 12, 0.99) 100%);
    border-radius: 28px;
    overflow: hidden;
    transform: scale(0.9) translateY(40px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 60px 120px -20px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(255, 61, 61, 0.1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 30;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: scale(1.05) rotate(90deg);
    box-shadow: 0 0 25px var(--accent-glow);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

/* Cover Section */
.modal-cover {
    position: relative;
    width: 300px;
    min-width: 300px;
    background: #08080c;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.modal-container:hover .modal-image {
    transform: scale(1.08);
}

.modal-cover-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, transparent 50%, rgba(255, 61, 61, 0.2) 100%);
    pointer-events: none;
}

.modal-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(0deg, rgba(8, 8, 12, 0.95) 0%, transparent 100%);
    pointer-events: none;
}

/* Info Section */
.modal-info {
    flex: 1;
    padding: 36px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-genre-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 18px;
    box-shadow: 0 6px 20px rgba(255, 61, 61, 0.35);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: 16px;
}

.modal-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.modal-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.modal-tag:hover {
    background: rgba(255, 61, 61, 0.1);
    border-color: rgba(255, 61, 61, 0.2);
    color: var(--accent-primary);
}

.modal-stats-row {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 24px 0;
    margin-bottom: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.modal-stat-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: lowercase;
}

.modal-stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
}

/* Actions */
.modal-actions {
    display: flex;
    gap: 14px;
    margin-top: auto;
}

.modal-btn-play {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 35px rgba(255, 61, 61, 0.4);
    position: relative;
    overflow: hidden;
}

.modal-btn-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.modal-btn-play:hover::before {
    left: 100%;
}

.modal-btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(255, 61, 61, 0.5);
}

.modal-btn-play svg {
    width: 20px;
    height: 20px;
}

.modal-btn-like {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-like svg {
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease;
}

.modal-btn-like:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.modal-btn-like:hover svg {
    transform: scale(1.1);
}

.modal-btn-like.liked {
    color: #ff4466;
    background: rgba(255, 68, 102, 0.15);
    border-color: rgba(255, 68, 102, 0.3);
}

.modal-btn-like.liked svg {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Share Button */
.modal-btn-share {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-share svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.modal-btn-share:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.modal-btn-share:hover svg {
    transform: scale(1.1);
}

.modal-btn-share:active {
    transform: scale(0.95);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   WEBVIEW - Fullscreen Gaming
   ======================================== */
.game-webview {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.game-webview.active {
    opacity: 1;
    visibility: visible;
}

.webview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: linear-gradient(180deg, rgba(15, 15, 20, 0.98) 0%, rgba(5, 5, 10, 0.95) 100%);
    backdrop-filter: var(--blur-sm);
    border-bottom: 1px solid rgba(255, 61, 61, 0.1);
}

.webview-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: 1rem;
}

.playing-indicator {
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    animation: indicatorPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.btn-exit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-exit:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-exit svg { width: 16px; height: 16px; }

.game-webview iframe {
    flex: 1;
    border: none;
}

/* ========================================
   AUTH MODAL
   ======================================== */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: var(--blur-lg);
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(20, 20, 28, 0.98) 0%, rgba(10, 10, 15, 0.99) 100%);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
    transform: scale(0.95) translateY(20px);
    transition: 0.4s;
}

.auth-modal.active .auth-container {
    transform: scale(1) translateY(0);
}

.auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.3s;
}

.auth-close:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.auth-close svg {
    width: 16px;
    height: 16px;
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 61, 61, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 61, 61, 0.1);
}

.auth-submit {
    padding: 18px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 8px 25px rgba(255, 61, 61, 0.3);
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 61, 61, 0.4);
}

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-switch span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-switch button {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.auth-switch button:hover {
    text-shadow: 0 0 15px var(--accent-glow);
}

/* ========================================
   SKELETON LOADING - Premium
   ======================================== */
.skeleton {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.02) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15, 15, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.skeleton-image {
    aspect-ratio: 3/4;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.01) 0%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 255, 255, 0.01) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-info {
    padding: 20px;
}

.skeleton-tag {
    width: 60px;
    height: 12px;
    margin-bottom: 12px;
}

.skeleton-title {
    width: 80%;
    height: 18px;
}

.featured-banner.skeleton-banner-loading {
    background: rgba(15, 15, 20, 0.8);
}

.featured-banner.skeleton-banner-loading::before {
    display: none;
}

.featured-banner.skeleton-banner-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    z-index: 5;
}

/* Placeholder */
.placeholder-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 61, 61, 0.1) 0%, rgba(177, 78, 255, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-weight: 700;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1400px) {
    .games-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1200px) {
    .sidebar-right { display: none; }
    .main-layout { grid-template-columns: var(--sidebar-width) 1fr; }
    .games-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .sidebar-left { display: none; }
    .main-layout { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: repeat(3, 1fr); }

    .header-center { display: none; }
    .mobile-search-btn { display: flex; }
    .mobile-menu-btn { display: flex; }

    .header {
        padding: 0 16px;
    }

    .header-right .btn-auth {
        display: none;
    }

    .main-content {
        padding: 24px 20px;
        padding-bottom: calc(var(--bottom-nav-height) + 24px);
    }

    .featured-banner {
        height: 380px;
        border-radius: 20px;
    }

    .featured-content {
        padding: 32px;
        justify-content: flex-end;
    }

    .featured-title {
        font-size: 2rem;
    }

    .featured-desc {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .mobile-bottom-nav {
        display: grid;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 600px) {
    :root {
        --header-height: 60px;
    }

    .header {
        padding: 0 12px;
    }

    .logo-text {
        font-size: 1.15rem;
        letter-spacing: 2px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .game-card {
        border-radius: 16px;
    }

    .game-card-info {
        padding: 14px;
    }

    .game-card-title {
        font-size: 0.9rem;
    }

    .featured-banner {
        height: 320px;
        margin-bottom: 24px;
        border-radius: 16px;
    }

    .featured-content {
        padding: 24px;
        max-width: 100%;
        justify-content: flex-end;
    }

    .featured-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .featured-genre {
        font-size: 0.65rem;
        margin-bottom: 12px;
        letter-spacing: 2px;
    }

    .featured-desc {
        display: none;
    }

    .featured-actions {
        flex-direction: row;
        gap: 10px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .btn-secondary {
        display: inline-flex;
    }

    .section-header-main h2 {
        font-size: 1rem;
    }

    .main-content {
        padding: 20px 14px;
        padding-bottom: calc(var(--bottom-nav-height) + 20px);
    }

    /* Mobile Modal */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-container {
        flex-direction: column;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 28px 28px 0 0;
        transform: translateY(100%);
    }

    .modal-overlay.active .modal-container {
        transform: translateY(0);
    }

    .modal-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .modal-cover {
        width: 100%;
        min-width: 100%;
        height: 220px;
    }

    .modal-info {
        padding: 28px 24px;
    }

    .modal-genre-tag {
        font-size: 0.55rem;
        padding: 6px 14px;
        margin-bottom: 14px;
    }

    .modal-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .modal-desc {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }

    .modal-tags {
        gap: 8px;
        margin-bottom: 22px;
    }

    .modal-tag {
        padding: 6px 14px;
        font-size: 0.7rem;
    }

    .modal-stats-row {
        gap: 20px;
        padding: 18px 0;
        margin-bottom: 22px;
    }

    .modal-stat-value {
        font-size: 1.4rem;
    }

    .modal-stat-label {
        font-size: 0.65rem;
    }

    .modal-btn-play {
        padding: 16px 24px;
        font-size: 0.9rem;
    }

    .modal-btn-like {
        width: 54px;
        height: 54px;
    }

    .modal-btn-like svg {
        width: 22px;
        height: 22px;
    }

    .modal-btn-share {
        width: 54px;
        height: 54px;
    }

    .modal-btn-share svg {
        width: 20px;
        height: 20px;
    }

    /* Mobile Webview */
    .webview-header {
        padding: 14px 18px;
    }

    .webview-title {
        font-size: 0.9rem;
    }

    .btn-exit {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .btn-exit span {
        display: none;
    }

    /* Mobile Auth */
    .auth-container {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        margin-top: auto;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-card-info {
        padding: 12px;
    }

    .game-card-title {
        font-size: 0.85rem;
    }

    .game-card-tag {
        font-size: 0.55rem;
    }

    .featured-banner {
        height: 260px;
    }

    .featured-title {
        font-size: 1.5rem;
    }
}

/* Safe area for notch devices */
@supports (padding-top: env(safe-area-inset-top)) {
    .header {
        padding-top: env(safe-area-inset-top);
        height: calc(var(--header-height) + env(safe-area-inset-top));
    }

    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    }

    .main-layout {
        padding-top: calc(var(--header-height) + env(safe-area-inset-top));
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-container {
        max-height: 100vh;
        border-radius: 20px;
    }

    .modal-cover {
        height: 180px;
    }
}

/* ========================================
   HEADER AUTH BUTTONS
   ======================================== */
.header-auth {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-auth {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-signin {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-signin:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.btn-signup {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 61, 61, 0.3);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 61, 61, 0.4);
}

/* Mobile: hide auth buttons */
@media (max-width: 768px) {
    .header-auth {
        display: none;
    }
}
