:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #f59e0b;
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --container: 1200px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    border-radius: var(--radius);
}

/* Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: #0f172a;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(right, var(--primary), #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Header */
.header {
    height: 80px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

/* Hero */
.hero {
    padding: 80px 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.2), transparent 40%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.1), transparent 40%);
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Game Grid V2 */
.game-grid-v2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.small-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.game-card-v2 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 100px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.game-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.card-crash {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.card-clash {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.card-tower {
    background: linear-gradient(135deg, #059669, #10b981);
}

.card-mines {
    background: linear-gradient(135deg, #475569, #64748b);
}

.card-double {
    background: linear-gradient(135deg, #db2777, #f472b6);
}

.card-wheel {
    background: linear-gradient(135deg, #9333ea, #a855f7);
}

/* Re-added wheel temporarily if needed or just styling */
.card-cases {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.card-coinflip {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.card-classic {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
}

.card-dice {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.card-upgrader {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.card-plinko {
    background: linear-gradient(135deg, #be185d, #ec4899);
}

.game-card-v2 .icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.game-card-v2 span {
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.large-cards-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.large-card-v2 {
    flex: 1;
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.slots-card {
    background: url('../images/slots-room.png');
    background-size: cover;
    background-position: center;
}

.bets-card {
    background: url('../images/bets-bg.png');
    background-size: cover;
    background-position: center;
}

.large-card-v2 h3 {
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 2;
    color: white;
}

.large-card-v2 .bg-icon {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 6rem;
    opacity: 0.3;
    transform: rotate(-15deg);
}

.large-card-v2:hover {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .game-grid-v2 {
        grid-template-columns: 1fr;
    }

    .small-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .small-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 5rem 0;
}

.feature-card {
    background: #2d3748;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--secondary);
}

/* Games Tabs */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--bg-card);
    height: 250px;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.game-info {
    position: relative;
    z-index: 2;
}

/* FAQ */
.faq-item {
    background: var(--bg-card);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    color: var(--text-dim);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Arbitrary max height */
    padding-bottom: 20px;
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for now */
    .section-title {
        font-size: 2rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bonus Tables */
.bonus-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.bonus-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    min-width: 600px;
    /* Ensure readable on mobile with scroll */
}

.bonus-table th,
.bonus-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bonus-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.bonus-table td {
    color: var(--text-dim);
    font-size: 1rem;
}

.bonus-table td strong {
    color: var(--primary);
    font-size: 1.2rem;
}

.bonus-table tr:last-child td {
    border-bottom: none;
}

.bonus-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Stats Table Specifics (Purple Header) */
.stats-table th {
    background: #5b4dd4;
    color: white;
    text-align: center;
}

.stats-table td {
    text-align: center;
}

.stats-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: white;
}