/**
 * Yono Spot App Store - Public Site Styles
 * Green/Gold Casino Theme
 */

/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0a0f0a;
    --bg-secondary: #0d1f0d;
    --bg-card: rgba(13, 31, 13, 0.95);
    --bg-surface: rgba(20, 40, 20, 0.8);
    --gold-primary: #FFD700;
    --gold-dark: #B8860B;
    --gold-light: #FFF8DC;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --hot-badge: #FF4444;
    --new-badge: #22C55E;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --header-height: 64px;
    --bottom-nav-height: 72px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.25);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent;
}

html { 
    scroll-behavior: smooth; 
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg-primary);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    padding-bottom: calc(var(--bottom-nav-height) + 20px);
}

/* TOP BAR */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: var(--shadow-md);
}

.top-bar-left { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gold-primary);
    overflow: hidden;
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.3);
    transition: var(--transition-base);
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 32px rgba(255, 215, 0, 0.5);
}

.user-avatar img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: var(--transition-base);
}

.coin-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.coin-balance:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    transform: translateY(-1px);
}

.coin-balance span { 
    font-weight: 700; 
    color: var(--gold-primary); 
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.coin-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    animation: coinPulse 2s ease-in-out infinite;
}

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

.settings-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.settings-btn:hover { 
    background: rgba(255, 215, 0, 0.1); 
    border-color: var(--gold-primary); 
    color: var(--gold-primary);
    transform: rotate(90deg);
}

/* MAIN HEADER */
.main-header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

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

.site-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition-base);
}

.site-logo:hover {
    transform: scale(1.05);
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.logo-placeholder {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-card) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 215, 0, 0.2);
    font-size: 20px;
    color: var(--gold-primary);
}

.site-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.menu-toggle:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* HERO BANNER */
.hero-banner {
    margin-top: var(--header-height);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    background: url('../images/nav-bg.00frt079s5tya.png') center/cover no-repeat;
    border-radius: var(--radius-xl);
    padding: 0;
    text-align: center;
    border: 2px solid var(--gold-dark);
    box-shadow: var(--shadow-xl), inset 0 0 40px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: heroGlow 4s ease-in-out infinite alternate;
    backdrop-filter: blur(5px);
}

@keyframes heroGlow {
    0% { 
        box-shadow: var(--shadow-lg), inset 0 0 30px rgba(255, 215, 0, 0.05);
        border-color: rgba(255, 215, 0, 0.6);
    }
    100% { 
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.4), inset 0 0 60px rgba(255, 215, 0, 0.15);
        border-color: var(--gold-primary);
    }
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    animation: heroShine 6s ease-in-out infinite;
}

@keyframes heroShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.hero-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    transition: var(--transition-slow);
}

.hero-content:hover img {
    transform: scale(1.02);
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold-primary);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShimmer 3s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* TAB NAVIGATION */
.tab-nav {
    display: flex;
    justify-content: space-around;
    padding: 16px 12px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    margin: 0 20px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-lg);
    min-width: 60px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: var(--transition-slow);
}

.tab-btn:hover::before {
    width: 100%;
    height: 100%;
}

.tab-btn:hover {
    transform: translateY(-2px);
    color: var(--gold-primary);
}

.tab-btn img { 
    width: 36px; 
    height: 36px; 
    object-fit: contain; 
    transition: var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tab-btn:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.4));
}

.tab-btn span { 
    font-size: 0.7rem; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn.active {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.tab-btn.active img {
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.5));
}

/* MAIN NAVIGATION */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main-nav::-webkit-scrollbar { display: none; }

.nav-tab {
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: var(--transition-slow);
}

.nav-tab:hover::before {
    width: 120%;
    height: 120%;
}

.nav-tab:hover {
    color: var(--gold-primary);
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
}

.nav-tab.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    color: var(--gold-primary);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: var(--shadow-lg);
    z-index: 998;
    padding: 16px;
    gap: 8px;
    flex-direction: column;
    backdrop-filter: blur(20px);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-item {
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition-base);
}

.mobile-nav-item:hover {
    color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateX(4px);
}

.mobile-nav-item:hover::before {
    background: var(--gold-primary);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.mobile-nav-item.active {
    color: var(--gold-primary);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.mobile-nav-item.active::before {
    background: var(--gold-primary);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

/* GAME GRID */
.game-section { 
    padding: 20px; 
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    animation: fadeInUp 0.6s ease-out;
}

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

/* GAME CARD */
.game-card {
    position: relative;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-surface) 100%);
    border-radius: var(--radius-lg);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 215, 0, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-base);
}

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

.game-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: var(--gold-primary);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), var(--shadow-xl);
}

.game-card:active {
    transform: translateY(-2px) scale(1.01);
}

/* BADGES */
.game-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    backdrop-filter: blur(10px);
    animation: badgeFloat 3s ease-in-out infinite;
}

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

.game-badge.hot { 
    background: linear-gradient(135deg, var(--hot-badge) 0%, #cc0000 100%); 
    color: white; 
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

.game-badge.new { 
    background: linear-gradient(135deg, var(--new-badge) 0%, #16a34a 100%); 
    color: white; 
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* GAME ICON */
.game-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transition: var(--transition-base);
    position: relative;
    z-index: 2;
}

.game-card:hover .game-icon {
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

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

.game-icon-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2d8a5e 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-secondary);
}

.game-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    position: relative;
    z-index: 2;
    transition: var(--transition-base);
}

.game-card:hover .game-name {
    color: var(--gold-primary);
}

.game-bonus { 
    font-size: 0.7rem; 
    color: var(--gold-primary); 
    font-weight: 700;
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* DOWNLOAD BUTTON */
.download-btn-small {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    z-index: 3;
    transition: var(--transition-base);
}

.download-btn-small:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.5);
}

.download-btn-small:active {
    transform: scale(0.95);
}

/* BOTTOM NAVIGATION */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px;
    z-index: 1000;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
    border-radius: var(--radius-lg);
    min-width: 60px;
    position: relative;
    overflow: hidden;
}

.bottom-nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: var(--transition-slow);
}

.bottom-nav-item:hover::before {
    width: 120%;
    height: 120%;
}

.bottom-nav-item:hover {
    transform: translateY(-3px);
    color: var(--gold-primary);
}

.bottom-nav-item img { 
    width: 32px; 
    height: 32px; 
    object-fit: contain; 
    transition: var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.bottom-nav-item:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.4));
}

.bottom-nav-item span { 
    font-size: 0.65rem; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bottom-nav-item.active { 
    color: var(--gold-primary); 
    background: rgba(255, 215, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.bottom-nav-item.active img { 
    transform: scale(1.15); 
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
}

.bottom-nav-item.game-btn { 
    position: relative; 
    margin-top: -24px;
    padding: 16px;
}

.bottom-nav-item.game-btn::before {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, transparent 70%);
}

.bottom-nav-item.game-btn img {
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    padding: 12px;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: gameBtnPulse 2s ease-in-out infinite;
}

@keyframes gameBtnPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.7);
    }
}

.bottom-nav-item.game-btn:hover img {
    transform: scale(1.1);
    animation: none;
}

/* PAGE HEADER */
.page-header-section {
    margin-top: var(--header-height);
    padding: 24px 20px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    text-align: center;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.page-title i {
    font-size: 1.3rem;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* PAGE CONTENT */
.page-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-surface) 100%);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.content-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: var(--shadow-lg);
}

.content-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card h2 i {
    font-size: 1rem;
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

.content-card ul,
.content-card ol {
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9rem;
}

.content-card ul li,
.content-card ol li {
    margin-bottom: 6px;
}

.content-card strong {
    color: var(--gold-primary);
    font-weight: 700;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0088cc 0%, #005f8f 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    transition: var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.telegram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.5);
}

.agreement-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-top: 8px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.agreement-box i {
    color: var(--new-badge);
    font-size: 1.2rem;
    margin-right: 8px;
}

/* GAME DETAIL PAGE */
.game-detail-header {
    margin-top: var(--header-height);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.game-detail-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
    animation: iconFloat 3s ease-in-out infinite;
}

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

.game-detail-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.game-detail-bonus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.game-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
}

.game-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-base);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
    border: none;
    cursor: pointer;
}

.game-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.5);
}

.game-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: var(--shadow-sm);
}

.game-btn-secondary:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
}

.game-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 20px 20px;
}

.game-info-item {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-surface) 100%);
    border-radius: var(--radius-lg);
    padding: 18px 14px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.game-info-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.game-info-item i {
    font-size: 1.4rem;
    color: var(--gold-primary);
    margin-bottom: 8px;
    display: block;
}

.game-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.game-info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* PROMO CODE PAGE */
.promo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-surface) 100%);
    border-radius: var(--radius-xl);
    padding: 16px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.promo-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.promo-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.promo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-icon-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a5c3a 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gold-primary);
}

.promo-details {
    flex: 1;
    min-width: 0;
}

.promo-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.promo-code-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.promo-code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 215, 0, 0.3);
    letter-spacing: 0.5px;
}

.copy-btn {
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-base);
}

.copy-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

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

.promo-bonus i {
    color: var(--gold-primary);
}

.promo-download {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    flex-shrink: 0;
    transition: var(--transition-base);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.promo-download:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.5);
}

/* POPUP MODAL */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.popup-content {
    background: url('../images/main-dialog.0g15owg6ns7yn.webp') center/cover no-repeat;
    border-radius: 24px;
    max-width: 340px;
    width: 100%;
    position: relative;
    border: 2px solid var(--gold-dark);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background: var(--hot-badge);
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.popup-body {
    padding: 32px 24px;
    text-align: center;
    background: url('../images/main-dialog-card.12.xmockbv29a.webp') center/contain no-repeat;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popup-badge {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--bg-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.popup-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.popup-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #22C55E 0%, #1e7e4a 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
    text-decoration: none;
    display: inline-block;
}

.popup-btn-secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    box-shadow: none;
}

/* FEATURED APPS SLIDESHOW */
.featured-slideshow {
    padding: 16px;
    overflow: hidden;
}

.featured-slideshow-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-slideshow-title i {
    color: var(--hot-badge);
    animation: firePulse 1.5s ease-in-out infinite;
}

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

.featured-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
}

.featured-track::-webkit-scrollbar { display: none; }

.featured-slide {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: linear-gradient(145deg, #0d3d20 0%, #051810 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.featured-slide::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,215,0,0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.featured-slide:hover {
    transform: scale(1.02);
    border-color: var(--gold-primary);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.featured-slide-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 2;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(255,215,0,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 4px 16px rgba(255,215,0,0.6); }
}

.featured-slide-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    z-index: 2;
}

.featured-slide-icon img { width: 100%; height: 100%; object-fit: cover; }

.featured-slide-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-align: center;
    z-index: 2;
}

.featured-slide-bonus {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gold-primary);
    font-weight: 600;
    z-index: 2;
}

.featured-slide-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #22C55E 0%, #1e7e4a 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 2;
    text-decoration: none;
    text-align: center;
    display: block;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

.featured-slide-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.featured-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.featured-slide-dot.active {
    background: var(--gold-primary);
    width: 24px;
    border-radius: 4px;
}

/* MARQUEE SECTIONS */
.marquee-bar {
    background: linear-gradient(90deg, #0d3d20 0%, #1a5c32 50%, #0d3d20 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    overflow: hidden;
    padding: 8px 0;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 9s linear infinite;
}

.marquee-track.reverse {
    animation-direction: reverse;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    color: var(--gold-primary);
    font-size: 0.8rem;
    font-weight: 500;
}

.marquee-item i { font-size: 0.7rem; }

.marquee-item .highlight { color: #22C55E; font-weight: 700; }

/* ENHANCED POPUP */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.popup-content {
    background: url('../images/main-dialog.0g15owg6ns7yn.webp') center/cover no-repeat;
    border-radius: 24px;
    max-width: 340px;
    width: 100%;
    position: relative;
    border: 2px solid var(--gold-dark);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background: var(--hot-badge);
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.popup-body {
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.popup-app-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    margin-bottom: 16px;
    animation: iconFloat 2s ease-in-out infinite;
}

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

.popup-app-icon img { width: 100%; height: 100%; object-fit: cover; }

.popup-app-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.popup-badge {
    background: linear-gradient(135deg, #FF4444 0%, #cc0000 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
    animation: badgeGlow 1.5s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% { box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3); }
    100% { box-shadow: 0 4px 20px rgba(255, 68, 68, 0.6); }
}

.popup-bonus-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.popup-bonus-text strong {
    color: var(--gold-primary);
    font-size: 1.3rem;
}

.popup-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #22C55E 0%, #1e7e4a 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.popup-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.5);
}

.popup-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-secondary);
    box-shadow: none;
    font-size: 0.85rem;
}

.popup-btn-secondary:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: scale(1.02);
}

/* PROFILE POPUP */
.profile-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.profile-popup-overlay.active { display: flex; }

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

.profile-popup-content {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-surface) 100%);
    border-radius: var(--radius-xl);
    max-width: 360px;
    width: 100%;
    position: relative;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.2), 0 12px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

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

.profile-popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.profile-popup-body {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    margin-bottom: 16px;
    transition: var(--transition-base);
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
}

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

.profile-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.profile-coins {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.1);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.profile-coins i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.profile-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.profile-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
    opacity: 0;
    transition: var(--transition-base);
}

.profile-menu-item:hover::before {
    opacity: 1;
}

.profile-menu-item:hover {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1) 0%, var(--bg-card) 100%);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(4px);
    color: var(--gold-primary);
}

.profile-menu-item i:first-child {
    font-size: 1.1rem;
    color: var(--gold-primary);
    width: 24px;
    text-align: center;
}

.profile-menu-item span {
    flex: 1;
    font-size: 0.9rem;
}

.profile-menu-item i:last-child {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.profile-menu-item:hover i:last-child {
    color: var(--gold-primary);
    transform: translateX(4px);
}

/* FOOTER SECTIONS */
.main-footer {
    padding: 24px 16px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-brand {
    text-align: center;
    margin-bottom: 20px;
}

.footer-brand h3 {
    font-size: 1.2rem;
    color: var(--gold-primary);
    margin-bottom: 4px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-link {
    padding: 8px 16px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.footer-link:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
}

.footer-social {
    text-align: center;
    margin-bottom: 20px;
}

.footer-social h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.footer-copyright {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 400px) {
    :root {
        --header-height: 60px;
        --bottom-nav-height: 68px;
    }
    
    .top-bar { padding: 0 16px; }
    .user-avatar { width: 40px; height: 40px; }
    .coin-balance { padding: 6px 12px; }
    .coin-balance span { font-size: 0.9rem; }
    .settings-btn { width: 40px; height: 40px; }
    
    .main-header .header-content { padding: 12px 16px; }
    .site-logo { width: 40px; height: 40px; }
    .site-name { font-size: 1rem; }
    
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    
    .hero-banner { padding: 16px; margin-top: calc(var(--header-height) + 10px); }
    .tab-nav { padding: 12px 8px; margin: 0 16px; }
    .tab-btn { padding: 10px 12px; min-width: 50px; }
    .tab-btn img { width: 32px; height: 32px; }
    .tab-btn span { font-size: 0.65rem; }
    
    .game-section { padding: 16px; }
    .game-grid { gap: 12px; }
    .game-card { padding: 14px 10px 44px 10px; }
    .game-icon { width: 56px; height: 56px; }
    .game-name { font-size: 0.72rem; }
    .game-bonus { font-size: 0.62rem; padding: 4px 10px; }
    .download-btn-small { width: 28px; height: 28px; font-size: 12px; bottom: 8px; right: 8px; }
    
    .bottom-nav { padding: 6px 8px; }
    .bottom-nav-item { padding: 8px 10px; min-width: 50px; }
    .bottom-nav-item img { width: 28px; height: 28px; }
    .bottom-nav-item span { font-size: 0.6rem; }
    .bottom-nav-item.game-btn img { width: 48px; height: 48px; }
    
    .profile-popup-content { max-width: 320px; }
    .profile-popup-body { padding: 24px 16px; }
    .profile-avatar { width: 72px; height: 72px; }
    .profile-name { font-size: 1.1rem; }
    .profile-menu-item { padding: 12px 14px; }
    
    .page-header-section { padding: 20px 16px; }
    .page-title { font-size: 1.3rem; }
    .page-content { padding: 16px; gap: 12px; }
    .content-card { padding: 18px; border-radius: var(--radius-lg); }
    .content-card h2 { font-size: 1rem; }
    
    .game-detail-header { padding: 24px 16px; }
    .game-detail-icon { width: 90px; height: 90px; }
    .game-detail-name { font-size: 1.3rem; }
    .game-actions { padding: 16px; gap: 10px; }
    .game-btn-primary, .game-btn-secondary { padding: 14px 18px; font-size: 0.9rem; }
    .game-info-grid { padding: 0 16px 16px; gap: 10px; }
    .game-info-item { padding: 14px 10px; }
    .game-info-value { font-size: 0.85rem; }
    
    .promo-list { padding: 16px; gap: 10px; }
    .promo-item { padding: 12px; gap: 12px; }
    .promo-icon { width: 48px; height: 48px; }
    .promo-details h4 { font-size: 0.85rem; }
    .promo-code { font-size: 0.75rem; padding: 5px 10px; }
    .copy-btn { padding: 5px 10px; font-size: 0.75rem; }
    .promo-download { width: 40px; height: 40px; font-size: 16px; }
}

@media (min-width: 401px) {
    .main-nav { display: flex; }
    .menu-toggle { display: none; }
    .mobile-menu { display: none !important; }
}

@media (min-width: 481px) {
    .app-container { 
        max-width: 520px; 
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
    }
    
    .game-grid { 
        grid-template-columns: repeat(4, 1fr); 
        max-width: 640px; 
        margin: 0 auto; 
        gap: 20px;
    }
    
    .featured-track {
        gap: 20px;
    }
    
    .featured-slide {
        flex: 0 0 300px;
    }
}

@media (min-width: 768px) {
    .app-container { 
        max-width: 600px; 
    }
    
    .game-grid { 
        grid-template-columns: repeat(5, 1fr); 
        max-width: 800px; 
    }
    
    .hero-banner { padding: 24px; }
    .game-section { padding: 24px; }
}

@media (min-width: 1024px) {
    .app-container { 
        max-width: 640px; 
    }
    
    .game-grid { 
        grid-template-columns: repeat(5, 1fr); 
        max-width: 900px; 
        gap: 24px;
    }
}

/* Smooth scrolling for better performance */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --gold-primary: #FFFF00;
        --text-secondary: #FFFFFF;
        --bg-card: rgba(0, 0, 0, 0.9);
    }
}

/* Performance optimizations */
.game-card,
.tab-btn,
.bottom-nav-item,
.featured-slide {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* GPU acceleration for animations */
.hero-content,
.user-avatar,
.coin-icon,
.settings-btn,
.game-icon,
.download-btn-small {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Dark mode support */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #f0f4f0;
        --bg-secondary: #e8f0e8;
        --text-primary: #1a1a1a;
        --text-secondary: #4a4a4a;
        --bg-card: rgba(255, 255, 255, 0.9);
        --bg-surface: rgba(240, 240, 240, 0.8);
    }
}

/* Touch-friendly targets */
@media (pointer: coarse) {
    .tab-btn,
    .bottom-nav-item,
    .game-card,
    .download-btn-small,
    .settings-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .featured-slide-btn {
        min-height: 48px;
    }
}

/* Print styles */
@media print {
    .top-bar,
    .bottom-nav,
    .tab-nav,
    .popup-overlay,
    .marquee-bar {
        display: none !important;
    }
    
    .app-container {
        box-shadow: none;
        max-width: 100%;
    }
    
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}
