/* --- RAXI GAME PREMIUM GAMING DESIGN SYSTEM --- */
/* Theme: Raxi Game Official Red & White with Premium Dark Background */

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

:root {
    --bg-main: #1a0000;
    --bg-white: #2d0a0a;
    --bg-gradient: radial-gradient(circle at center, #3d0000 0%, #1a0000 100%);
    
    --primary-red: #e91e24; 
    --primary-red-hover: #ff3d41;
    
    --primary-gold: #fccb00;
    --primary-gold-hover: #ffe066;
    
    --text-dark: #f0f0f0;
    --text-muted: #a0a0a0;
    --text-white: #ffffff;
    
    --border: #2a2a2a;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.7);
    
    --max-w: 1200px;
}

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

body {
    background: var(--bg-main);
    background-image: var(--bg-gradient);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px; /* Space for mobile nav */
}

/* --- Navigation --- */
.nav {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 35px;
    width: auto;
}

.nav-links {
    display: none; /* Mobile first */
}

@media (min-width: 769px) {
    body { padding-bottom: 0; }
    .logo img { height: 45px; }
    .nav-links {
        display: flex;
        gap: 25px;
    }
    .nav-links a {
        text-decoration: none;
        color: var(--text-dark);
        font-size: 0.95rem;
        font-weight: 600;
        transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--primary-red); }
}

/* --- Hero Section --- */
.hero {
    padding: 50px 0;
    text-align: center;
}

.circular-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.circular-logo {
    width: 130px;
    height: 130px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--primary-red);
    box-shadow: 0 0 25px rgba(233, 30, 36, 0.4);
}

.circular-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
    padding: 0 15px;
    color: var(--text-white);
}

.hero h1 span { color: var(--primary-red); }

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    padding: 0 20px;
}

@media (min-width: 769px) {
    .hero { padding: 80px 0; }
    .circular-logo { width: 160px; height: 160px; }
    .hero h1 { font-size: 4rem; }
    .hero p { font-size: 1.4rem; }
}

/* --- CTA Buttons --- */
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
}

.btn-premium {
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 450px;
    text-align: center;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-red {
    background: linear-gradient(135deg, var(--primary-red) 0%, #a31519 100%);
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(233, 30, 36, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #b38f00 100%);
    color: #000;
    box-shadow: 0 6px 20px rgba(252, 203, 0, 0.4);
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.1);
}

/* --- Sections & Container --- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 60px 0; }
.section-alt { background: rgba(255, 255, 255, 0.02); }

.section-title {
    margin-bottom: 35px;
    text-align: center;
}

.section-title h2 { 
    font-size: 1.8rem; 
    color: var(--text-white);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

@media (min-width: 769px) {
    .section-title h2 { font-size: 2.5rem; }
}

/* --- Grid & Cards --- */
.grid { display: grid; gap: 25px; grid-template-columns: 1fr; }

@media (min-width: 600px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card h3 { color: var(--primary-red); margin-bottom: 15px; font-size: 1.3rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.game-card {
    overflow: hidden;
    padding: 0;
}

.game-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.game-info {
    padding: 20px;
    text-align: center;
}

/* --- Tables --- */
.table-container {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow-x: auto;
    border: 1px solid var(--border);
    margin: 20px 0;
}

table { width: 100%; min-width: 600px; border-collapse: collapse; }
th { background: #111; color: var(--primary-red); padding: 18px; text-align: left; font-size: 1rem; border-bottom: 2px solid var(--primary-red); }
td { padding: 18px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }

/* --- FAQ --- */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    margin-bottom: 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.faq-item summary {
    padding: 20px;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary-red);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--text-muted);
}

/* --- Footer --- */
.footer {
    padding: 80px 0 40px;
    background: #050505;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

@media (min-width: 769px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer h4, .footer h5 { color: var(--primary-red); margin-bottom: 20px; font-size: 1.2rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; }
.footer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--primary-red); }

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

/* --- Mobile Nav --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    z-index: 2000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-item i { font-size: 1.2rem; }
.nav-item.active { color: var(--primary-red); }

@media (min-width: 769px) {
    .mobile-bottom-nav { display: none; }
}

/* --- Floating Telegram --- */
.floating-telegram {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    transition: transform 0.3s;
}

.floating-telegram:hover { transform: scale(1.1); }
.floating-telegram img { width: 100%; height: 100%; }

@media (min-width: 769px) {
    .floating-telegram { bottom: 40px; right: 40px; width: 70px; height: 70px; }
}

/* --- Auth Pages Specific Styles --- */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
    padding: 40px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.auth-container h1 {
    color: var(--primary-red);
    margin-bottom: 25px;
    font-size: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-input-group {
    text-align: left;
}

.auth-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 1rem;
}

.auth-input:focus {
    border-color: var(--primary-red);
    outline: none;
}

/* --- Hero Image Style --- */
.hero-image-wrap {
    max-width: 800px;
    margin: 40px auto 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(233, 30, 36, 0.3);
    border: 1px solid var(--border);
}

.hero-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Animations */
