:root {
    --primary-color: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.4);
    --secondary-color: #7000ff;
    --secondary-glow: rgba(112, 0, 255, 0.4);
    --bg-color: #05070a;
    --surface-color: #0d1117;
    --surface-light: #161b22;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(13, 17, 23, 0.7);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.6);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --card-radius: 20px;
}

/* Base Body Refinement */
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* User Menu & Dropdown */
.user-menu {
    position: relative;
    cursor: pointer;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.user-info i:first-child {
    font-size: 20px;
    color: var(--primary-color);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 5px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    backdrop-filter: blur(20px);
    animation: slideDown 0.3s ease;
}

.user-dropdown.active {
    display: flex;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.user-dropdown a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0b0e14;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 224, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0b0e14; }
::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* Live Search Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 300px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 5px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.search-results-dropdown.active {
    display: flex;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.search-item .info h5 {
    font-size: 14px;
    margin-bottom: 2px;
}

.search-item .info span {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 700;
}

/* Stars Rating */
.rating {
    color: #ffc107;
    font-size: 12px;
    display: flex;
    gap: 2px;
    margin-bottom: 5px;
}

/* Quick Actions on Card */
.game-image {
    position: relative;
    overflow: hidden;
}

.quick-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transition: var(--transition);
}

.game-card:hover .quick-actions {
    bottom: 0;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    font: inherit;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: scale(1.1);
}

/* Custom Modal System */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000; /* Higher than preloader */
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Custom Modal Polish */
.custom-modal {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 45px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition);
}

.custom-modal::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

/* Premium Sidebar Admin Links */
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 14px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateX(5px);
}

.admin-nav-link.active {
    background: rgba(0, 242, 255, 0.08);
    color: var(--primary-color);
    border-color: rgba(0, 242, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.05);
}

.admin-nav-link i {
    width: 20px;
    text-align: center;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1.5px solid rgba(239, 68, 68, 0.2);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

.btn-delete i {
    font-size: 14px;
}

/* Modal and Form Refinement */
.modal-content h3 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-color);
    display: inline-block;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.1);
}

.modal-overlay.active .custom-modal {
    transform: translateY(0);
}

.modal-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.modal-icon.confirm { color: #f59e0b; }
.modal-icon.success { color: #4ade80; }
.modal-icon.error { color: #ef4444; }

.custom-modal h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 800;
}

.custom-modal p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons .btn {
    padding: 12px 25px;
    flex: 1;
}

/* Animations... */
/* Stock UI */
.game-card.out-of-stock {
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: #ef4444;
    color: white;
    padding: 8px 20px;
    font-weight: 900;
    font-size: 18px;
    border: 3px solid white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
    z-index: 10;
    pointer-events: none;
    letter-spacing: 2px;
}

.game-card.out-of-stock:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

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

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

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

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

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 224, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 224, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 224, 255, 0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade { animation: fadeIn 1s ease forwards; }
.animate-slide-up { animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-slide-down { animation: slideDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Premium Navbar */
.navbar {
    height: 80px;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    height: 70px;
    background: rgba(5, 7, 10, 0.98);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px; /* Wider for premium feel */
}

.logo {
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    letter-spacing: -1px;
    cursor: pointer;
}

.logo i {
    color: var(--primary-color);
    font-size: 28px;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    padding: 10px 20px;
    border-radius: 12px;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: var(--primary-color);
    background: rgba(0, 242, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* User Menu Premium */
.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--surface-light);
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.user-info:hover {
    border-color: var(--primary-color);
    background: rgba(0, 242, 255, 0.05);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    z-index: 1001;
    animation: slideDown 0.3s ease;
}

.user-dropdown.active {
    display: flex;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.user-dropdown a i {
    color: var(--primary-color);
}

/* Premium Components UI */
.search-box {
    position: relative;
    background: var(--surface-light);
    border-radius: 12px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    min-width: 240px;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.1);
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    outline: none;
}

.search-box i {
    color: var(--text-secondary);
    font-size: 14px;
}

.cart-icon {
    position: relative;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.cart-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: var(--bg-color);
    font-size: 11px;
    font-weight: 900;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-color);
    box-shadow: 0 4px 10px rgba(0, 242, 255, 0.3);
}

.btn-login {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Botões globais premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: var(--transition);
    font-family: inherit;
    line-height: 1.25;
    text-decoration: none;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: transparent;
    color: white;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--primary-color) !important;
    color: var(--bg-color) !important;
    box-shadow: 0 8px 24px var(--primary-glow);
    border: none;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--primary-glow);
    background: var(--primary-color) !important;
    opacity: 0.9;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1.5px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.btn-outline:hover:not(:disabled) {
    border-color: var(--primary-color) !important;
    color: white !important;
    background: rgba(0, 242, 255, 0.06) !important;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero-price {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-price .discount {
    background: rgba(0, 242, 255, 0.12);
    color: var(--primary-color);
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    border: 1px solid rgba(0, 242, 255, 0.25);
}

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

.hero-price .old-price {
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.hero-price .current-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section Premium */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(0, 242, 255, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(112, 0, 255, 0.05), transparent 40%),
                var(--bg-color);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://shared.fastly.steamstatic.com/store_item_assets/steam/apps/1245620/library_hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(20px);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
    line-height: 0.95;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Features Premium */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: -60px;
}

.feature-card {
    background: var(--surface-color);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--surface-light);
}

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

.feature-card i {
    font-size: 32px;
    margin-bottom: 20px;
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Game Section */
.game-section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Premium Game Card */
.game-card {
    background: var(--surface-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.15);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.game-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, var(--surface-color), #0a0d12);
}

.game-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

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

.discount-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 2;
}

.game-price {
    margin-top: auto;
}

.game-price .current-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-glow);
}

.game-price .old-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

/* Quick Actions refinement */
.game-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

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

.btn-add-cart {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

/* Newsletter Premium */
.newsletter {
    background: linear-gradient(to bottom, transparent, rgba(0, 242, 255, 0.03)), #05070a;
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
}

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

.newsletter h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

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

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 14px;
    color: white;
    outline: none;
    font-size: 15px;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.1);
}

.newsletter-form .btn {
    padding: 0 32px;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form .btn {
        width: 100%;
    }
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    background: #06080a;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info p {
    color: var(--text-secondary);
    margin: 20px 0;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--surface-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-links h4, .footer-payment h4 {
    font-size: 18px;
    margin-bottom: 25px;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 24px;
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Category Dropdown */
.category-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface-color);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1001;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    top: 100%;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

.category-dropdown:hover .dropdown-content {
    display: block;
}

@media (max-width: 992px) {
    .category-dropdown {
        width: 100%;
    }
    .dropdown-content {
        position: static;
        display: block;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 20px;
    }
    .dropdown-content a {
        padding: 8px 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }
    .hero h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .game-info {
        padding: 15px;
    }
    
    .game-info h3 {
        font-size: 16px;
    }
    
    .game-price .current-price {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .game-card {
        max-width: 100%;
    }
}

@media (max-width: 1100px) {
    .search-box {
        min-width: 180px;
    }
    .nav-links {
        gap: 5px;
    }
    .nav-links a {
        padding: 8px 12px;
    }
}

@media (max-width: 992px) {
    .navbar {
        height: 70px;
    }
    .navbar .container {
        padding: 0 20px;
    }
    .nav-links {
        display: none;
    }
    .nav-links.active {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-color);
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        z-index: 999;
    }
    .search-box {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
        background: transparent;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        order: 3;
    }
    .nav-actions {
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .features {
        grid-template-columns: 1fr;
        margin-top: 30px;
        gap: 15px;
    }

    .hero {
        padding: 60px 0;
        text-align: center;
        justify-content: center;
        min-height: 500px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-price {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-info, .footer-payment {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links, .payment-icons {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .container {
        padding: 0 15px;
    }

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

    .navbar {
        height: 70px;
    }

    .logo {
        font-size: 20px;
    }

    .logo i {
        font-size: 24px;
    }

    .nav-actions {
        gap: 10px;
    }

    .btn-login {
        display: none; /* Hide login button on very small screens to save space, will be in menu */
    }

    /* Make sure buttons and inputs are large enough for touch */
    .btn, input, select {
        min-height: 48px;
    }
}