/* ==========================================================================
   1. VARIABLES & RESET CONFIGURATIONS
   ========================================================================== */
:root {
    --bg-dark-primary: #090d10;
    --bg-dark-secondary: #131b22;
    --bg-sidebar: #0f161c;
    --accent-neon-green: #00e676;
    --accent-neon-glow: rgba(0, 230, 118, 0.4);
    --text-white: #ffffff;
    --text-muted: #8a99a6;
    --text-gold: #ffdf00;
    --glass-bg: rgba(19, 27, 34, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', sans-serif;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark-primary);
    color: var(--text-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Custom Scrollbar for modern UI look */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-primary);
}
::-webkit-scrollbar-thumb {
    background: #23313d;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-neon-green);
}

/* ==========================================================================
   2. FIXED TOP HEADER SECTION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.header-container {
    max-width: 100%;
    height: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 22px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.hamburger-btn:hover {
    color: var(--accent-neon-green);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    font-style: italic;
    color: var(--text-white);
    letter-spacing: -1px;
}

.logo-accent {
    color: var(--accent-neon-green);
    text-shadow: 0 0 10px var(--accent-neon-glow);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover {
    color: var(--accent-neon-green);
    box-shadow: 0 0 10px var(--accent-neon-glow);
    background: rgba(0, 230, 118, 0.05);
}

.icon-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff3366;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-login {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--glass-border);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-signup {
    background: var(--accent-neon-green);
    color: #000;
    box-shadow: 0 4px 15px var(--accent-neon-glow);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-neon-green);
}

/* ==========================================================================
   3. APP MAIN LAYOUT & FIXED SIDEBAR
   ========================================================================== */
.app-layout {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

.left-sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--glass-border);
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    z-index: 99;
    overflow-y: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav {
    padding: 16px 12px;
}

.menu-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-white);
    background: rgba(0, 230, 118, 0.08);
}

.nav-item.active {
    border-left: 3px solid var(--accent-neon-green);
    border-radius: 0 8px 8px 0;
}

.menu-icon {
    width: 24px;
    font-size: 16px;
    margin-right: 12px;
}

.pulse-icon {
    color: var(--accent-neon-green);
    animation: neonGlowPulse 2s infinite ease-in-out;
}

.sidebar-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 16px 0;
}

.text-gold { color: var(--text-gold) !important; }

/* Sidebar Accordion UI Component */
.accordion-item {
    width: 100%;
}
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}
.accordion-header:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.02);
}
.accordion-header .arrow-icon {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.3s;
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    transition: max-height 0.3s ease-out;
    padding-left: 36px;
}
.accordion-body a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-muted);
}
.accordion-body a:hover {
    color: var(--accent-neon-green);
}

/* ==========================================================================
   4. SCROLLABLE MAIN CONTENT AREA
   ========================================================================== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
    width: calc(100% - 260px);
}

/* 4.1 HERO BANNER SLIDER */
.hero-slider-section {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.slider-container {
    display: flex;
    height: 340px;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

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

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(9, 13, 16, 1), transparent);
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}
.slide-arrow:hover {
    background: var(--accent-neon-green);
    color: black;
}
.prev-arrow { left: 16px; }
.next-arrow { right: 16px; }

/* 4.2 HORIZONTAL QUICK CATEGORIES */
.quick-categories-section {
    margin-bottom: 32px;
}

.horizontal-scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.category-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 90px;
    cursor: pointer;
}

.circle-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-circle-card:hover .circle-icon-wrapper,
.category-circle-card.active .circle-icon-wrapper {
    color: var(--accent-neon-green);
    border-color: var(--accent-neon-green);
    box-shadow: 0 0 15px var(--accent-neon-glow);
    transform: scale(1.05);
}

.category-circle-card span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}
.category-circle-card:hover span, .category-circle-card.active span {
    color: var(--text-white);
}

/* 4.3 GAME CARDS GRID SYSTEM */
.section-header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header-title h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accent-bar {
    width: 4px;
    height: 20px;
    background: var(--accent-neon-green);
    display: inline-block;
    border-radius: 2px;
}

.see-all-btn {
    font-size: 13px;
    color: var(--accent-neon-green);
    font-weight: 500;
}

.game-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.game-card {
    background: var(--bg-dark-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 230, 118, 0.3);
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.1);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    background: #182530;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .card-hover-overlay {
    opacity: 1;
}

.play-now-btn {
    background: var(--accent-neon-green);
    color: black;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.game-card:hover .play-now-btn {
    transform: translateY(0);
}

.game-card-info {
    padding: 12px;
}

.game-card-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.provider-badge {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ==========================================================================
   5. PROVIDERS AUTO MARQUEE ANIMATION
   ========================================================================== */
.providers-marquee {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--glass-border);
    padding: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 36px;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 20s linear infinite;
}

.provider-logo-card {
    padding: 0 40px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ==========================================================================
   6. PROMOTIONS SECTION DESIGN
   ========================================================================== */
.promo-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.promo-card {
    background: linear-gradient(135deg, #131b22 0%, #0d161d 100%);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.promo-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: #ff3366;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
}

.promo-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-white);
}

.promo-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.promo-cta-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--accent-neon-green);
    display: inline-block;
}
.promo-cta-btn:hover {
    background: var(--accent-neon-green);
    color: black;
}

/* EXTRA COUNTER FEATURE */
.live-counter-section {
    background: rgba(0, 230, 118, 0.03);
    border: 1px dashed rgba(0, 230, 118, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 40px;
}
.counter-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-neon-green);
    text-shadow: 0 0 10px var(--accent-neon-glow);
}
.counter-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   7. FOOTER COMPONENT DESIGN
   ========================================================================== */
.app-footer {
    background: var(--bg-sidebar);
    border-top: 1px solid var(--glass-border);
    padding: 40px 24px;
    border-radius: 16px 16px 0 0;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-neon-green);
}

.footer-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 24px;
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.baji-bold-text {
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.social-icons-row {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.social-icons-row a {
    width: 38px;
    height: 38px;
    background: var(--bg-dark-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
}

.social-icons-row a:hover {
    color: black;
    background: var(--accent-neon-green);
    box-shadow: 0 0 10px var(--accent-neon-glow);
}

.footer-bottom-copyright {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   8. EXTRA FLOATING ACTIONS & WIDGETS
   ========================================================================== */
.floating-btn {
    position: fixed;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.live-chat-float {
    bottom: 90px;
    background: var(--accent-neon-green);
}

.back-to-top {
    bottom: 154px;
    background: var(--bg-dark-secondary);
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.mobile-bottom-nav { display: none; }

/* ==========================================================================
   9. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes neonGlowPulse {
    0% { opacity: 0.7; text-shadow: 0 0 5px rgba(0, 230, 118, 0.3); }
    50% { opacity: 1; text-shadow: 0 0 15px rgba(0, 230, 118, 0.8); }
    100% { opacity: 0.7; text-shadow: 0 0 5px rgba(0, 230, 118, 0.3); }
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}








}