@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-main: #09090b; /* zinc-950 */
    --bg-nav: rgba(9, 9, 11, 0.8);
    --bg-card: #18181b; /* zinc-900 */
    --bg-input: #09090b; /* zinc-950 */
    
    --primary: #3b82f6; /* blue-500 */
    --primary-light: #60a5fa; /* blue-400 */
    --primary-hover: #2563eb; /* blue-600 */
    --primary-glow: rgba(59, 130, 246, 0.5);
    
    --text-main: #f4f4f5; /* zinc-50 */
    --text-muted: #a1a1aa; /* zinc-400 */
    
    --border: #27272a; /* zinc-800 */
    --border-hover: #3f3f46; /* zinc-700 */
    
    --grid-color: rgba(255, 255, 255, 0.025);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* --- PREMIUM NAVBAR --- */
.premium-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 4rem;
    height: 72px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.025em;
}
.logo svg {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

.main-links {
    display: flex;
    height: 100%;
}

.main-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    transition: all 0.2s ease;
}
.main-links a:hover {
    color: var(--text-main);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    transition: background 0.2s;
    background: var(--primary);
    border: none;
}
.nav-btn:hover {
    background: var(--primary-hover);
}

/* --- EPIC HERO SECTION --- */
.hero-shock {
    position: relative;
    height: 70vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 4rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}
.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 500;
}

.hero-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.icon-circle {
    width: 56px;
    height: 56px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: border-color 0.2s;
    cursor: pointer;
}

.icon-circle:hover {
    border-color: var(--primary);
}

/* --- SECTIONS & GRIDS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* --- GAME CARDS --- */
.game-card-img {
    position: relative;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
    background: var(--bg-card);
}

.game-card-img:hover {
    border-color: var(--border-hover);
}

/* Backgrounds */
.bg-mc { background: linear-gradient(rgba(9,9,11,0.6), rgba(9,9,11,0.9)), url('https://images.unsplash.com/photo-1607513746994-51f73f9abf36?q=80&w=800') center/cover; }
.bg-fivem { background: linear-gradient(rgba(9,9,11,0.6), rgba(9,9,11,0.9)), url('https://images.unsplash.com/photo-1596768294474-bbcd6543b355?q=80&w=800') center/cover; }
.bg-rust { background: linear-gradient(rgba(9,9,11,0.6), rgba(9,9,11,0.9)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=800') center/cover; }
.bg-ark { background: linear-gradient(rgba(9,9,11,0.6), rgba(9,9,11,0.9)), url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?q=80&w=800') center/cover; }
.bg-vps { background: linear-gradient(rgba(9,9,11,0.6), rgba(9,9,11,0.9)), url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?q=80&w=800') center/cover; }

.game-card-img .overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(9,9,11,1) 0%, rgba(9,9,11,0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.game-card-img h3 {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
}

.game-card-img .action-icon {
    width: 40px; height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    transition: all 0.2s ease;
}
.game-card-img:hover .action-icon {
    background: var(--primary);
    border-color: var(--primary);
}

/* --- PRICING CARDS --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: border-color 0.2s;
}

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

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1;
    letter-spacing: -0.05em;
}
.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: normal;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.pricing-card ul li {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
}
.pricing-card ul li:last-child { border-bottom: none; }

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    font-size: 0.875rem;
    cursor: pointer;
    border: 1px solid transparent;
    width: 100%;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--border);
}

/* Forms (Login/Reg/Checkout) */
.auth-container { 
    max-width: 480px; 
    margin: 6rem auto; 
    background: var(--bg-card);
    padding: 3rem; 
    border-radius: 16px; 
    border: 1px solid var(--border); 
}

.auth-container h2 { 
    text-align: center; 
    margin-bottom: 2rem; 
    font-weight: 800; 
    font-size: 2rem; 
    letter-spacing: -0.025em;
    color: var(--text-main);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { 
    display: block; 
    margin-bottom: 0.5rem; 
    color: var(--text-main); 
    font-size: 0.875rem; 
    font-weight: 500; 
}
.form-group input, .form-group select { 
    width: 100%; 
    padding: 0.75rem 1rem; 
    border-radius: 6px; 
    border: 1px solid var(--border); 
    background: var(--bg-input); 
    color: var(--text-main); 
    font-size: 0.875rem; 
    transition: border-color 0.2s; 
    font-family: var(--font-sans); 
}
.form-group input:focus, .form-group select:focus { 
    outline: none; 
    border-color: var(--primary); 
}

.error-msg { color: var(--dash-danger); margin-bottom: 1.5rem; font-size: 0.875rem; text-align: center; font-weight: 500; padding: 1rem; background: rgba(239, 68, 68, 0.1); border-radius: 6px; border: 1px solid rgba(239, 68, 68, 0.2); }
.success-msg { color: var(--dash-success); margin-bottom: 1.5rem; font-size: 0.875rem; text-align: center; font-weight: 500; padding: 1rem; background: rgba(16, 185, 129, 0.1); border-radius: 6px; border: 1px solid rgba(16, 185, 129, 0.2); }

/* Client Area overrides (If still used in some front facing parts) */
.client-area { display: flex; gap: 2rem; max-width: 1200px; margin: 4rem auto; padding: 0 2rem; }
.sidebar { width: 260px; flex-shrink: 0; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); padding: 1.5rem 0; height: fit-content; }
.sidebar-menu { list-style: none; padding: 0 1rem; }
.sidebar-menu li { margin-bottom: 0.25rem; }
.sidebar-menu li a { display: flex; align-items: center; padding: 0.625rem 1rem; color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.875rem; transition: background 0.2s; border-radius: 6px; }
.sidebar-menu li a:hover { background: var(--border); color: var(--text-main); }
.sidebar-menu li a.active { background: var(--border); color: var(--text-main); font-weight: 600; }
.main-content { flex-grow: 1; }

.table-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; margin-bottom: 2rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
th { color: var(--text-muted); font-weight: 600; background: var(--bg-main); }
tr:last-child td { border-bottom: none; }

footer { text-align: center; padding: 3rem 2rem; border-top: 1px solid var(--border); color: var(--text-muted); margin-top: 5rem; font-size: 0.875rem; }

/* --- RESPONSIVE MOBILE FIXES --- */
@media (max-width: 1024px) {
    .client-area { flex-direction: column; }
    .sidebar { width: 100%; margin-bottom: 1rem; }
    .sidebar-menu { display: flex; overflow-x: auto; gap: 0.5rem; padding-bottom: 0.5rem; }
    .sidebar-menu li { flex-shrink: 0; }
}

@media (max-width: 768px) {
    .premium-nav { padding: 1rem; height: auto; flex-direction: column; gap: 1rem; }
    .main-links { display: none; }
    
    .hero-shock { min-height: 400px; padding: 3rem 1rem; }
    .hero-content h1 { font-size: 3rem; }
    
    .client-area { margin: 2rem auto; gap: 1rem; padding: 0 1rem; }
    .game-grid, .pricing-grid { grid-template-columns: 1fr; }
    .container { padding: 3rem 1rem; }
    .section-title { font-size: 1.75rem; margin-bottom: 2rem; }
    
    .auth-container { margin: 2rem 1rem; padding: 2rem 1.5rem; }
    .auth-container h2 { font-size: 1.75rem; }
    
    .table-container table { display: block; overflow-x: auto; white-space: nowrap; }
}
