:root {
    --bg-dark: #121212;
    --bg-panel: #1e1e1e;
    --primary: #ffd700;
    /* Classic Casino Gold */
    --primary-hover: #eab308;
    --accent: #ffd700;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --border: #333333;
    --accent-red: #dc2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Base Buttons */
.btn {
    cursor: pointer;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background 0.2s;
}

/* Top Bar / Login Area */
.top-bar {
    background-color: #0a0a0a;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 48px;
    width: auto;
}

.auth-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.login-input {
    padding: 6px 10px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
    border-radius: 3px;
    font-size: 13px;
    outline: none;
}

.login-input:focus {
    border-color: var(--primary);
}

.btn-login {
    background: #333;
    color: #fff;
    padding: 6px 15px;
}

.btn-login:hover {
    background: #444;
}

.btn-register {
    background: var(--primary);
    color: #000;
    padding: 6px 15px;
}

.btn-register:hover {
    background: var(--primary-hover);
}

/* Navigation */
.main-nav {
    background-color: var(--bg-panel);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex: 1;
}

.nav-links li {
    text-align: center;
}


.nav-links a {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: #2a2a2a;
    color: var(--primary);
}


.main-nav-mobile,
.nav-links a small {
    display: none !important;
}

/* Hamburger Button */

.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
}

/* Hamburger Animation */
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Announcement Marquee */
.announcement {
    background-color: #262626;
    border-bottom: 1px solid #111;
    font-size: 13px;
    padding: 8px 0;
}

.announcement .container {
    display: flex;
    align-items: center;
}

.announce-label {
    color: var(--primary);
    font-weight: bold;
    margin-right: 15px;
}

marquee {
    color: #ddd;
}

/* Main Banner */
.main-banner {
    background-color: var(--secondary);
    /* Fallback */
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

/* Specific Page Banners */
.main-banner.home-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('../assets/home-pc.webp') center/cover no-repeat;
}

.main-banner.login-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('../assets/home-pc.webp') center/cover no-repeat;
    padding: 60px 0;
}

.main-banner.slot-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55)), url('../assets/slot-pc.webp') center/cover no-repeat;
}

.main-banner.live-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55)), url('../assets/casino-pc.webp') center/cover no-repeat;
}

.main-banner.sports-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55)), url('../assets/sports-pc.webp') center/cover no-repeat;
}

.main-banner.fishing-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55)), url('../assets/fishing-pc.webp') center/cover no-repeat;
}

.main-banner.promotion-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55)), url('../assets/promo-pc.webp') center/cover no-repeat;
}



.banner-box h1 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.banner-box p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
}

.btn-play-huge {
    background: var(--accent-red);
    color: #fff;
    padding: 15px 40px;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
}

.btn-play-huge:hover {
    background: #b91c1c;
}

/* Games Grid */
.games-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 30px 15px;
}

.game-category {
    flex: 1 1 calc(25% - 15px);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    transition: 0.2s;
}

.game-category:hover {
    border-color: var(--primary);
}

.game-category a {
    text-decoration: none;
    color: var(--text-main);
    display: block;
}

.thumb {
    height: 140px;
    background-color: #333;
    /* Placeholder for real game thumbnails */
}

/* Promotions Expansion Styles */
.key-takeaways {
    margin: 0;
}

.key-takeaways h3 {
    margin-top: 0;
    color: var(--primary);
}

.key-takeaways ul {
    padding-left: 20px;
    margin: 15px 0 0 0;
}

.key-takeaways ul li {
    padding: 5px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.info-card {
    background: #1a1a1a;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
}

.info-card h4 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 10px;
}

.brand-content ul.premium-list {
    list-style: none;
    padding: 0;
}

.brand-content ul.premium-list li {
    padding: 10px 0 10px 30px;
    position: relative;
}

.brand-content ul.premium-list li::before {
    content: '⭐';
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    .key-takeaways {
        padding: 0;
    }
}

/* Category Thumbnails */
.slot-thumb {
    background: url('assets/slot.webp') center/cover no-repeat;
}

.casino-thumb {
    background: url('assets/casino.webp') center/cover no-repeat;
}

.sports-thumb {
    background: url('assets/sports.webp') center/cover no-repeat;
}

.fishing-thumb {
    background: url('assets/fishing.webp') center/cover no-repeat;
}

/* Image Gallery Grid */
.game-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.game-gallery-item {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.game-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Base Styles */
.cat-title {
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    background: #111;
    border-top: 1px solid var(--border);
}

/* Brand Content (SEO/GEO) */
.brand-content {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 30px;
    margin: 15px auto;
    /* Reduced from 30px to allow stacked sections to flow better */
}

.content-header h2 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    text-transform: uppercase;
}

.content-body p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

.content-body h3 {
    color: #fff;
    font-size: 18px;
    margin: 30px 0 15px;
    text-transform: uppercase;
}

.content-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.content-body ul li {
    padding-left: 20px;
    margin-bottom: 15px;
    position: relative;
    color: #ddd;
    line-height: 1.7;
    font-size: 15px;
}

.content-body ul li::before {
    content: "•";
    color: #ddd;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.content-body ul li strong {
    color: #ddd;
}

.content-body strong {
    color: #ddd;
}





.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #111;
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 4px;
}

.faq-item h3 {
    color: var(--primary);
    font-size: 15px;
    margin-bottom: 8px;
}

.faq-item p {
    margin-bottom: 0;
    color: #bbb;
    font-size: 14px;
}

/* Headings within Brand Content */
.content-body h4 {
    color: var(--primary);
    font-size: 16px;
    margin: 20px 0 10px;
    text-transform: uppercase;
}

.content-body a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 700;
}

.content-body a:hover {
    color: var(--text-main);
}

/* Data Tables (CORE-EEAT) */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 30px;
}

.metrics-table {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    border: 1px solid var(--border);
    font-size: 14px;
}

.metrics-table th,
.metrics-table td {
    padding: 12px 15px;
    border: 1px solid var(--border);
    text-align: left;
}

.metrics-table th {
    background: #1a1a1a;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

.metrics-table td {
    color: #ccc;
}

/* Testimonial Section */
.testimonial-grid {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
}

.testimonial-card {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    color: #ddd;
    line-height: 1.6;
}

.testimonial-card:last-child {
    border-bottom: none;
}

.testimonial-author {
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 10px;
    font-size: 12px;
    text-transform: uppercase;
}

/* Footer */
.site-footer {
    background: #000;
    padding: 30px 0;
    text-align: center;
    border-top: 2px solid var(--border);
}

.footer-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.footer-info p {
    color: #666;
    font-size: 12px;
}

/* Responsive constraints */
@media(max-width: 768px) {

    /* Responsive Typography */
    .banner-box h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .banner-box p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .content-header h2 {
        font-size: 20px;
    }

    /* 1:1 Hero Sections */
    .main-banner {
        aspect-ratio: 1 / 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        min-height: auto;
    }

    .main-banner.home-banner {
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('../assets/home-mobile.webp') center/cover no-repeat;
    }

    .main-banner.slot-banner {
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('../assets/slot-mobile.webp') center/cover no-repeat;
    }

    .main-banner.live-banner {
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('../assets/live-mobile.webp') center/cover no-repeat;
    }

    .main-banner.sports-banner {
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('../assets/sport-mobile.webp') center/cover no-repeat;
    }

    .main-banner.fishing-banner {
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('../assets/fish-mobile.webp') center/cover no-repeat;
    }

    .main-banner.promotion-banner {
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('../assets/promo-mobile.webp') center/cover no-repeat;
    }

    .banner-box {
        width: 100%;
    }

    /* High-Density Layouts */
    .games-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 15px;
    }

    .game-category {
        margin-bottom: 0;
    }

    .thumb {
        height: 100px;
    }

    .game-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    /* Testimonial Mobile */
    .testimonial-card {
        padding: 15px 0;
    }

    /* Optimized Navigation (Hamburger) */
    .top-bar {
        padding: 5px 0;
    }

    .top-bar-inner {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .auth-box {
        display: none;
        /* Hide top login button on mobile */
    }

    .main-nav {
        display: none;
        /* We will move hamburger into top-bar for mobile */
    }

    /* Single Row Mobile Header */
    .mobile-header-active .top-bar-inner {
        position: relative;
    }

    .hamburger-btn {
        display: flex;
        margin-left: auto;
    }

    /* Mobile Only Login Item in Drawer */
    .mobile-login-item a {
        background: var(--primary) !important;
        color: #000 !important;
        margin: 10px 20px;
        border-radius: 4px;
        text-align: center;
    }

    .main-nav-mobile {
        display: block !important;
    }

    .nav-links a small {
        display: block !important;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 80%;
        /* Increased for better content fit */
        height: 100vh;
        background: rgba(10, 10, 10, 0.9);
        /* Glassmorphism base */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        /* Left aligned flow */
        align-items: flex-start;
        padding: 50px 30px;
        /* Generous padding */
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 2000;
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        right: 0;
    }

    /* Drawer Header */
    .nav-links::before {
        content: 'PELUANG88 MENU';
        display: block;
        color: var(--primary);
        font-size: 10px;
        letter-spacing: 3px;
        margin-bottom: 30px;
        font-weight: 900;
        opacity: 0.8;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        transition: 0.4s;
        margin-bottom: 5px;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links a {
        padding: 15px 0;
        font-size: 20px;
        font-weight: 900;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        color: #fff;
        text-transform: uppercase;
    }

    .nav-links a span {
        display: block;
    }

    .nav-links a small {
        font-size: 10px;
        color: var(--text-muted);
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0.5px;
        margin-top: 4px;
        opacity: 0.7;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: none;
        color: var(--primary);
    }

    .nav-links a.active small {
        color: var(--primary);
        opacity: 0.9;
    }

    /* Mobile Only Login Item in Drawer */
    .mobile-login-item {
        margin-top: 30px !important;
    }

    .mobile-login-item a {
        background: linear-gradient(135deg, #ffd700, #b8860b) !important;
        color: #000 !important;
        padding: 15px 20px !important;
        border-radius: 8px !important;
        text-align: center !important;
        align-items: center !important;
        font-weight: 900 !important;
        box-shadow: 0 10px 20px rgba(184, 134, 11, 0.3);
        border: none !important;
    }

    .mobile-login-item a small {
        color: rgba(0, 0, 0, 0.6) !important;
    }

    /* General Refinements */
    .brand-content {
        padding: 20px 15px;
    }

    .top-bar-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    body {
        overflow-x: hidden;
    }
}

/* Promotions Grid & Cards */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.promo-card {
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.promo-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.promo-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.promo-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promo-info h3 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.promo-info p {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn.btn-apply {
    background: var(--primary);
    color: #000;
    text-decoration: none;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.btn-apply:hover {
    background: var(--primary-hover);
}

/* Auth Page Specific Styles */
/* Auth Page Specific Styles */
.auth-wrapper {
    max-width: 500px;
    margin: 40px auto;
    background: #262626;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #444;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: #999;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.1rem;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.auth-form-content {
    display: none;
}

.auth-form-content.active {
    display: block;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    color: #eee;
    font-weight: 600;
}

.input-group label .hint {
    color: var(--primary);
    font-size: 11px;
    display: block;
    margin-top: 2px;
}

.input-group input {
    padding: 14px;
    background: #fff;
    border: none;
    border-radius: 6px;
    color: #000;
    font-size: 16px;
    outline: none;
}

.input-group-with-btn {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-group-with-btn input {
    flex: 1;
}

.btn-get-code {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 184, 0, 0.3);
    white-space: nowrap;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 14px;
    margin-top: 5px;
    justify-content: flex-end;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-footer p {
    color: #ccc;
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.btn-login-submit,
.btn-register-submit {
    background: var(--primary);
    color: #000;
    padding: 15px;
    border: none;
    border-radius: 12px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

.btn-login-submit:hover,
.btn-register-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 184, 0, 0.4);
}

.verification-note {
    font-size: 12px;
    color: #eee;
    text-align: center;
    margin-bottom: 5px;
}

/* Sports League Logos Section */
.league-logos {
    margin: 40px auto;
    padding: 0 15px;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.logo-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15);
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.logo-item:hover img {
    opacity: 1;
}

@media(max-width: 768px) {
    .league-logos {
        margin: 20px auto;
    }

    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .logo-item {
        border-radius: 8px;
    }
}