/* Global Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Navy & White Palette */
    --bg-color: #0f172a;
    /* Deep Navy (Slate 900) */
    --surface-card: #ffffff;
    --text-primary-on-dark: #f8fafc;
    /* Slate 50 */
    --text-secondary-on-dark: #cbd5e1;
    /* Slate 300 */

    --text-primary-on-light: #1e293b;
    /* Slate 800 */
    --text-secondary-on-light: #475569;
    /* Slate 600 */

    --accent-color: #fbbf24;
    /* Amber 400 */
    --accent-hover: #f59e0b;
    /* Amber 500 */

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image: url('assets/background.jpg');
    /* Added background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: var(--text-primary-on-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    color: #fff;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    /* Slightly rounded, not pill */
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--bg-color);
}

/* Header */
header {
    background-color: var(--bg-color);
    padding: 1rem 0;
    border-bottom: 2px solid var(--accent-color);
    /* Gold border to differentiate */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero Section */
.hero {
    padding: 60px 0 20px;
    /* Reduced bottom padding */
    text-align: center;
}

.hero-banner {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Placeholder for banner image */
.hero-banner img {
    width: 100%;
    height: auto;
    background: #1e293b;
    /* Fallback */
    min-height: 300px;
}

.hero h1 {
    margin-bottom: 2rem;
    color: var(--text-primary-on-light);
    /* Change H1 color for inside white box */
    text-align: left;
    /* Align left */
    font-size: 2.5rem;
}

/* New Hero Layout */
.hero .content-box {
    padding: 0;
    /* Remove default padding to control grid better if needed, or keep it */
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-logo-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f1f5f9;
    /* Slate 100 placeholder */
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    position: relative;
    overflow: hidden;
}

.hero-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Align buttons left for hero */
.hero-buttons {
    justify-content: flex-start;
}


/* Content Cards Section */
.content-section {
    padding: 20px 0 40px;
    /* Reduced top padding */
}

.card-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-box {
    background-color: var(--surface-card);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    color: var(--text-primary-on-light);
}

.content-box h2 {
    color: var(--text-primary-on-light);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.content-box p,
.content-box li {
    color: var(--text-secondary-on-light);
    font-size: 1rem;
    line-height: 1.7;
}

.content-box ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-box li {
    margin-bottom: 0.5rem;
}

/* Three Column Grid for Games */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.game-card {
    background: var(--surface-card);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    text-align: left;
}

.game-card h3 {
    color: var(--text-primary-on-light);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.game-card p {
    color: var(--text-secondary-on-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 1:1 Slot Grid */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* Increased to 6 columns */
    gap: 1rem;
    margin-top: 1.5rem;
}

.slot-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
    box-shadow: var(--card-shadow);
    background: #000;
    /* Fallback */
}

.slot-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.slot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .slot-grid {
        grid-template-columns: repeat(5, 1fr);
        /* Increased to 5 */
    }
}

@media (max-width: 768px) {
    .slot-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Increased to 3 */
    }
}

/* Payment Grid (Replaces Table) */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.payment-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary-on-light);
}

.payment-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary-on-light);
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
}

.payment-info:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-green {
    background-color: #dcfce7;
    color: #166534;
}

.badge-blue {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-yellow {
    background-color: #fef9c3;
    color: #854d0e;
}

/* FAQ Styles */
.faq-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.faq-toggle-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.faq-toggle-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-card details {
    width: 100%;
}

.faq-card summary {
    padding: 1.5rem;
    font-weight: 700;
    color: var(--text-primary-on-light);
    cursor: pointer;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-card summary::-webkit-details-marker {
    display: none;
}

.faq-card summary:hover {
    background-color: #f1f5f9;
}

.faq-card summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary-on-light);
}

.faq-card details[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary-on-light);
    line-height: 1.7;
    border-top: 1px dashed #e2e8f0;
    margin-top: 0;
}


footer p {
    color: var(--text-secondary-on-dark);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    background: transparent;
    border: none;
    order: 3;
    /* Position after logo and nav-links */
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary-on-dark);
    text-transform: uppercase;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
    color: var(--accent-color);
    background-color: rgba(251, 191, 36, 0.1);
    padding-left: 1.5rem;
}

.mobile-nav .btn {
    width: 100%;
    margin-top: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
/* Login Page Styles (Global) */
.login-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.login-card {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease, height 0.3s ease;
}

.login-header {
    margin-bottom: 2rem;
}

.form-toggle {
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    position: relative;
}

.toggle-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-secondary-on-dark);
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.toggle-btn.active {
    background: var(--accent-color);
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.login-form,
.register-form {
    text-align: left;
    transition: opacity 0.3s ease;
}

.form-hidden {
    display: none;
    opacity: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary-on-dark);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.05);
    /* Darker input bg */
    color: #fff;
    /* White text */
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.login-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.login-help {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary-on-dark);
}

.login-help a {
    color: var(--text-secondary-on-dark);
    font-weight: 600;
    transition: color 0.2s;
}

.login-help a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        /* Use more screen width */
    }

    /* Header adjustments */
    .nav-links {
        display: none;
        /* Hidden on mobile, replaced by hamburger menu */
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
        order: 2;
        /* Position between logo and login button */
        margin-left: auto;
        margin-right: 1rem;
    }

    .nav-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 1.5rem;
        order: 1;
    }

    .logo img {
        height: 40px !important;
    }

    .nav-buttons {
        order: 3;
    }

    .nav-buttons .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        min-height: 44px;
        /* Touch-friendly */
    }

    /* Hero adjustments */
    .hero {
        padding: 40px 0 10px;
        /* Even tighter spacing for mobile */
    }

    h1 {
        font-size: 1.8rem;
        /* Smaller H1 for mobile */
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        /* Full width buttons */
        text-align: center;
        min-height: 48px;
        /* Touch-friendly */
    }

    /* Stack Hero on Mobile */
    .hero .content-box {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        order: 2;
        /* Put text below logo on mobile */
    }

    .hero-logo-box {
        order: 1;
        /* Logo first for visual impact */
        max-width: 180px;
        margin: 0 auto 1.5rem;
    }

    .hero h1 {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Content adjustments */
    .content-box {
        padding: 1.25rem;
        /* Optimized padding for mobile */
    }

    .content-box h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .content-box h3 {
        font-size: 1.2rem;
    }

    .content-box p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .game-card {
        padding: 1.5rem;
    }

    .game-card img {
        max-width: 80px;
        margin: 0 auto 1rem;
    }

    /* Payment Grid Mobile Stack */
    .payment-grid {
        grid-template-columns: 1fr;
    }

    /* Slot Grid - 4 columns for better space usage */
    .slot-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }

    /* FAQ Mobile Optimization */
    .faq-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .faq-toggle-btn {
        width: 100%;
        min-height: 44px;
        /* Touch-friendly */
    }

    @media (max-width: 768px) {
        .faq-card summary {
            padding: 1.25rem;
            font-size: 1rem;
            min-height: 60px;
            /* Larger touch target */
        }
    }




    .faq-card summary::after {
        font-size: 1.75rem;
        /* Larger +/- for easier tapping */
    }

    .faq-content {
        padding: 1rem 1.25rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Touch-friendly buttons */
    .btn {
        min-height: 48px;
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
    }

    /* Game header icons */
    .game-header img {
        width: 50px !important;
    }

    /* Improve tap targets for all links */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Step-by-step section optimization */
    .content-box>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Badge sizing */
    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    /* Payment card mobile */
    .payment-card {
        padding: 1.25rem;
    }

    .payment-header {
        font-size: 1rem;
    }

    /* Optimize list spacing */
    .content-box ul {
        padding-left: 1.25rem;
    }

    .content-box li {
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    h1 {
        font-size: 1.6rem;
    }

    .hero-logo-box {
        max-width: 150px;
    }

    .content-box {
        padding: 1rem;
    }

    .content-box h2 {
        font-size: 1.3rem;
    }

    /* 3 columns on very small screens */
    .slot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}