/**
 * GAMEHUB Main Stylesheet
 * Responsive, Mobile-First, Modern Gaming Aesthetic
 */

:root {
    --primary-color: #d4af37;        /* Rich Gold */
    --primary-hover: #b89628;
    --secondary-color: #00b4d8;      /* Cyan Blue */
    --secondary-hover: #0096c7;
    --background-color: #0b0c10;     /* Deep Obsidian Dark */
    --card-bg: #161922;
    --card-border: #262a36;
    --text-color: #f1f1f1;
    --text-muted: #9ba1b0;
    --btn-red: #ff4757;
    --btn-red-dark: #ee5253;
    --btn-cyan: #00d2d3;
    --btn-gold: #f39c12;
    --gold-glow: 0 0 15px rgba(212, 175, 55, 0.4);
    --cyan-glow: 0 0 15px rgba(0, 180, 216, 0.4);
    --bottom-nav-height: 65px;
}

/* ==========================================================================
   HIGH-CONTRAST & ACCESSIBILITY SYSTEM (WCAG 2.1 Compliant)
   - Background Gelap  -> Tulisan Terang (White / Light Slate)
   - Background Terang / Putih -> Tulisan Gelap (Deep Navy / Black / Slate)
   ========================================================================== */

/* 1. Aturan Background Gelap -> Teks Terang */
.text-muted,
.bg-dark .text-muted,
.bg-black .text-muted,
.modal-content .text-muted,
.card.bg-dark .text-muted,
.app-container .text-muted {
    color: #cbd5e1 !important;
}

.text-secondary,
.bg-dark .text-secondary,
.bg-black .text-secondary,
.card.bg-dark .text-secondary {
    color: #94a3b8 !important;
}

label.form-label,
.form-label {
    color: #f8fafc;
}
.bg-dark label,
.bg-dark .form-label,
label.text-muted,
.form-label.text-muted {
    color: #e2e8f0 !important;
}

.form-control.bg-black,
.form-control.bg-dark,
.form-select.bg-black,
.form-select.bg-dark,
.input-group-text.bg-black,
.input-group-text.bg-dark {
    color: #ffffff !important;
    background-color: #0b0f19 !important;
    border-color: #334155 !important;
}

.form-control::placeholder,
.form-control.bg-black::placeholder,
.form-control.bg-dark::placeholder,
input::placeholder,
textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 0.85 !important;
}

.form-select.bg-black option,
.form-select.bg-dark option,
select option {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

/* Badges Berlatar Belakang Gelap -> Wajib Teks Terang/Putih */
.badge.bg-dark,
.badge.bg-secondary,
.badge.bg-primary,
.badge.bg-success,
.badge.bg-danger {
    color: #ffffff !important;
}

.btn-dark,
.btn-secondary,
.btn-primary,
.btn-success,
.btn-danger {
    color: #ffffff !important;
}

/* 2. Aturan Background Terang / Putih -> Teks Gelap */
.bg-white,
.bg-light,
.card.bg-light,
.modal-content.bg-light,
.table-light,
[style*="background: white"],
[style*="background:#fff"],
[style*="background: #fff"],
[style*="background-color: white"],
[style*="background-color:#fff"],
[style*="background-color: #fff"] {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.bg-white p,
.bg-white span:not(.badge),
.bg-white div:not(.badge):not([class*="bg-"]):not([style*="background"]),
.bg-white label,
.bg-white small,
.bg-white strong,
.bg-white b,
.bg-white td,
.bg-white th,
.bg-light p,
.bg-light span:not(.badge),
.bg-light div:not(.badge):not([class*="bg-"]):not([style*="background"]),
.bg-light label,
.bg-light small,
.bg-light strong,
.bg-light b {
    color: #0f172a !important;
}

/* Text Muted di Background Putih -> Wajib Abu-Abu Gelap */
.bg-white .text-muted,
.bg-light .text-muted,
[style*="background: white"] .text-muted,
[style*="background: #fff"] .text-muted,
[style*="background-color: white"] .text-muted,
[style*="background-color: #fff"] .text-muted {
    color: #475569 !important;
}

.bg-white .text-secondary,
.bg-light .text-secondary {
    color: #334155 !important;
}

/* Badges & Buttons Berlatar Belakang Terang / Kuning / Cyan -> Wajib Teks Gelap */
.badge.bg-warning,
.badge.bg-warning.text-dark,
.badge.bg-light,
.badge.bg-white,
.badge.bg-info,
.badge.bg-info.text-dark {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.btn-warning,
.btn-warning.text-dark,
.btn-light,
.btn-info,
.btn-white {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    color: #000000 !important;
}

/* Alerts Berlatar Belakang Terang */
.alert-warning {
    background-color: #fef3c7 !important;
    border-color: #fde68a !important;
    color: #78350f !important;
}
.alert-warning * {
    color: #78350f !important;
}
.alert-info {
    background-color: #e0f2fe !important;
    border-color: #bae6fd !important;
    color: #0369a1 !important;
}
.alert-info * {
    color: #0369a1 !important;
}
.alert-light {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Preservasi Teks Semantik di Atas Background Putih */
.bg-white .text-danger, .bg-light .text-danger { color: #dc2626 !important; }
.bg-white .text-success, .bg-light .text-success { color: #16a34a !important; }
.bg-white .text-primary, .bg-light .text-primary { color: #2563eb !important; }
.bg-white .text-warning, .bg-light .text-warning { color: #d97706 !important; }


/* Global Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    padding-bottom: calc(var(--bottom-nav-height) + 15px);
    line-height: 1.5;
}

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

a:hover {
    color: var(--primary-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f1117;
}
::-webkit-scrollbar-thumb {
    background: #2a2e3d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* App Wrapper */
.app-container {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--background-color);
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

@media (min-width: 992px) {
    .app-container {
        max-width: 1000px;
    }
}

@media (min-width: 1200px) {
    .app-container {
        max-width: 1200px;
    }
}

/* ==========================================
 * TOP HEADER
 * ========================================== */
.top-header {
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 30%, #ffd700 80%, #ffaa00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.brand-logo i {
    -webkit-text-fill-color: #00f2fe;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.header-btn:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ==========================================
 * WINNER TICKER PILL (Gold Pill from screenshot)
 * ========================================== */
.winner-ticker-container {
    padding: 8px 16px;
    display: flex;
    justify-content: center;
}

.winner-ticker-pill {
    background: linear-gradient(135deg, #f5af19 0%, #e65c00 100%);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 18px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(245, 175, 25, 0.4);
    animation: pulseTicker 3s infinite ease-in-out;
    max-width: 95%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@keyframes pulseTicker {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 6px 20px rgba(245, 175, 25, 0.6); }
    100% { transform: scale(1); }
}

/* ==========================================
 * RUNNING ANNOUNCEMENT BAR
 * ========================================== */
.announcement-bar {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #e0e0e0;
    overflow: hidden;
}

.announcement-icon {
    color: #f39c12;
    font-size: 1rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.announcement-marquee {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.announcement-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* ==========================================
 * HERO BANNER SLIDER (Swiper)
 * ========================================== */
.hero-slider-section {
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    height: clamp(200px, 25vw, 320px);
}

.hero-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-swiper .swiper-wrapper {
    height: 100% !important;
}

.hero-swiper .swiper-slide {
    height: 100% !important;
    display: block;
}

.hero-swiper .swiper-slide > a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.hero-banner-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #1b2838 0%, #0d121d 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner-card > img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-swiper .swiper-pagination {
    bottom: 8px !important;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,12,16,0.9) 0%, rgba(11,12,16,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: clamp(14px, 2vw, 28px);
}

.hero-banner-title {
    font-size: clamp(1.05rem, 2.2vw, 1.8rem);
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 4px;
}

.hero-banner-sub {
    max-width: 58ch;
    font-size: clamp(0.8rem, 1vw, 1rem);
    color: #ddd;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.hero-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 241, 176, 0.85);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe45c, #f4a900);
    color: #17120a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.45px;
    box-shadow: 0 4px 16px rgba(255, 180, 0, 0.28);
}

.hero-banner-cta i {
    font-size: 1rem;
}

/* ==========================================
 * HORIZONTAL CATEGORY NAVIGATION BAR (Gold bar)
 * ========================================== */
.category-nav-bar {
    background: linear-gradient(180deg, #c59b27 0%, #a47c17 100%);
    border-top: 1px solid #e5bf4e;
    border-bottom: 1px solid #7a5a0c;
    padding: 6px 4px;
    position: relative;
    display: flex;
    align-items: center;
}

.cat-scroll-arrow {
    background: rgba(0, 0, 0, 0.4);
    color: #ffd700;
    border: none;
    width: 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    z-index: 2;
    flex-shrink: 0;
    border-radius: 4px;
}

.category-scroll-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding: 2px 8px;
    flex-grow: 1;
}

.category-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 4px 6px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: all 0.2s;
    user-select: none;
}

.cat-item[data-slug="all"] {
    --cat-color-a: #22d3ee;
    --cat-color-b: #3b82f6;
    --cat-color-c: #c084fc;
    --cat-surface: rgba(34, 211, 238, 0.22);
    --cat-glow: rgba(59, 130, 246, 0.38);
}

.cat-item[data-slug="slot"] {
    --cat-color-a: #fb7185;
    --cat-color-b: #f97316;
    --cat-color-c: #facc15;
    --cat-surface: rgba(249, 115, 22, 0.23);
    --cat-glow: rgba(244, 63, 94, 0.38);
}

.cat-item[data-slug="naga-x1000"] {
    --cat-color-a: #fde047;
    --cat-color-b: #fb923c;
    --cat-color-c: #f43f5e;
    --cat-surface: rgba(234, 88, 12, 0.24);
    --cat-glow: rgba(249, 115, 22, 0.42);
}

.cat-item[data-slug="prediksi"] {
    --cat-color-a: #67e8f9;
    --cat-color-b: #818cf8;
    --cat-color-c: #e879f9;
    --cat-surface: rgba(99, 102, 241, 0.24);
    --cat-glow: rgba(129, 140, 248, 0.4);
}

.cat-item[data-slug="live-casino"] {
    --cat-color-a: #fda4af;
    --cat-color-b: #f43f5e;
    --cat-color-c: #fbbf24;
    --cat-surface: rgba(225, 29, 72, 0.22);
    --cat-glow: rgba(244, 63, 94, 0.4);
}

.cat-item[data-slug="sport"] {
    --cat-color-a: #5eead4;
    --cat-color-b: #22c55e;
    --cat-color-c: #a3e635;
    --cat-surface: rgba(34, 197, 94, 0.22);
    --cat-glow: rgba(16, 185, 129, 0.4);
}

.cat-item[data-slug="arcade"] {
    --cat-color-a: #c4b5fd;
    --cat-color-b: #a855f7;
    --cat-color-c: #22d3ee;
    --cat-surface: rgba(168, 85, 247, 0.24);
    --cat-glow: rgba(168, 85, 247, 0.42);
}

.cat-item:hover, .cat-item.active {
    background: rgba(0, 0, 0, 0.35);
    color: #ffe680;
    transform: translateY(-2px);
}

.cat-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 2px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(7, 10, 18, 0.76)), var(--cat-surface, rgba(0, 0, 0, 0.24));
    border: 1px solid color-mix(in srgb, var(--cat-color-b, #fff) 72%, transparent);
    color: var(--cat-color-b, #fff);
    box-shadow: 0 5px 12px var(--cat-glow, rgba(0, 0, 0, 0.28)), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cat-icon-wrapper i {
    background-image: linear-gradient(140deg, var(--cat-color-a, #fff), var(--cat-color-b, #d4af37) 55%, var(--cat-color-c, #fff));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 3px var(--cat-glow, rgba(0, 0, 0, 0.35)));
}

.cat-item:hover .cat-icon-wrapper,
.cat-item.active .cat-icon-wrapper {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(7, 10, 18, 0.6)), var(--cat-surface, rgba(0, 0, 0, 0.24));
    border-color: var(--cat-color-b, #ffd700);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 7px 18px var(--cat-glow, rgba(0, 0, 0, 0.4)), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.cat-item:hover .cat-icon-wrapper {
    transform: translateY(-1px) scale(1.04);
}

.cat-name {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.cat-badge {
    position: absolute;
    top: -2px;
    right: 6px;
    background: #ff4757;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ==========================================
 * QUICK LOGIN / USER CARD
 * ========================================== */
.auth-box-section {
    padding: 16px;
}

.auth-form-card {
    background: #141720;
    border: 1px solid #232734;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.input-icon-group {
    position: relative;
    margin-bottom: 12px;
}

.input-icon-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

.input-icon-group .form-control {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 10px 14px 10px 42px;
    font-size: 0.95rem;
    font-weight: 500;
}

.input-icon-group .form-control:focus {
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.4);
    outline: none;
}

.btn-masuk {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(238, 82, 83, 0.4);
    transition: all 0.2s;
}

.btn-masuk:hover {
    background: linear-gradient(135deg, #ee5253 0%, #d63031 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(238, 82, 83, 0.6);
    color: #fff;
}

.btn-daftar {
    background: linear-gradient(135deg, #00d2d3 0%, #00b4d8 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 10px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
    transition: all 0.2s;
}

.btn-daftar:hover {
    background: linear-gradient(135deg, #00b4d8 0%, #0096c7 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.6);
    color: #000;
}

.btn-google {
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.btn-google:hover {
    background: #f8f9fa;
    color: #111111;
    border-color: #c6c6c6;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.btn-google svg {
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
    color: #8a99ad;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-divider:not(:empty)::before {
    margin-right: 0.8em;
}

.auth-divider:not(:empty)::after {
    margin-left: 0.8em;
}

/* User Card (When Logged In) */
.user-logged-card {
    background: linear-gradient(135deg, #1b2130 0%, #111520 100%);
    border: 1px solid #2d3446;
    border-radius: 12px;
    padding: 16px;
}

.user-logged-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.user-avatar-sm {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.user-balance-pill {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 20px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #ffd700;
    font-size: 0.95rem;
}

/* ==========================================
 * BIG GOLD ACTION BUTTONS (Official support & RTP)
 * ========================================== */
.action-buttons-section {
    padding: 0 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-gold-action {
    background: linear-gradient(180deg, #ffd000 0%, #f39c12 50%, #d48806 100%);
    color: #11141e !important;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 13px 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4), inset 0 2px 0 rgba(255,255,255,0.5);
    transition: all 0.2s;
}

.btn-gold-action:hover {
    background: linear-gradient(180deg, #ffe033 0%, #ffa500 50%, #e67e22 100%);
    color: #000 !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

.btn-trx-quick {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-trx-deposit {
    background: linear-gradient(135deg, #ffd000 0%, #f39c12 100%);
    color: #000;
    border: 1px solid #ffeaa7;
    box-shadow: 0 4px 14px rgba(243, 156, 18, 0.4);
}

.btn-trx-deposit:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

.btn-trx-withdraw {
    background: linear-gradient(135deg, #00d2d3 0%, #0097e6 100%);
    color: #000;
    border: 1px solid #7ed6df;
    box-shadow: 0 4px 14px rgba(0, 210, 211, 0.4);
}

.btn-trx-withdraw:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 211, 0.6);
}

/* ==========================================
 * FLOATING MENU BUTTON (Cyan square on lower-left)
 * ========================================== */
.floating-menu-btn {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    left: 16px;
    z-index: 1050;
    background: linear-gradient(135deg, #00d2d3 0%, #00a8ff 100%);
    color: #000;
    width: 64px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(0, 210, 211, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.floating-menu-btn span {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-top: 2px;
}

.floating-menu-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 210, 211, 0.8);
}

/* Floating Modal / Offcanvas */
.floating-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1060;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-menu-overlay.active {
    display: block;
    opacity: 1;
}

.floating-menu-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 520px;
    margin: 0 auto;
    background: #151822;
    border-top: 2px solid var(--secondary-color);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    z-index: 1070;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}

.floating-menu-panel.active {
    transform: translateY(0);
}

.floating-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.float-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px;
    background: #1e2230;
    border: 1px solid #2e3549;
    border-radius: 12px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.float-grid-item i {
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: var(--secondary-color);
}

.float-grid-item:hover {
    background: #2a3044;
    border-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

.float-grid-item.item-logout:hover {
    border-color: #e74c3c;
}


/* ==========================================
 * FIXED MOBILE BOTTOM NAVIGATION BAR
 * ========================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: linear-gradient(180deg, #2b220b 0%, #151004 100%);
    border-top: 1px solid #5c4710;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1040;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.7);
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        max-width: 1000px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16px 16px 0 0;
    }
}

.bot-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #d1b46a;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bot-nav-item i {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.bot-nav-item.active, .bot-nav-item:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.bot-nav-item.active i {
    transform: translateY(-2px);
    color: #ffd700;
}

.bot-nav-item.chat-item i {
    color: #00d2d3;
}

.bot-nav-item.livechat-item i {
    color: #ff6b6b;
}

/* ==========================================
 * GAME LIST & CARDS
 * ========================================== */
.game-section {
    padding: 16px;
}

.game-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.game-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-search-box {
    margin-bottom: 16px;
    position: relative;
}

.game-search-box input {
    background: #161922;
    border: 1px solid #2b3040;
    border-radius: 25px;
    color: #fff;
    padding: 8px 16px 8px 40px;
    width: 100%;
    font-size: 0.9rem;
}

.game-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

/* Games Grid Responsive */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.game-thumb-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #0f1118;
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-thumb {
    transform: scale(1.08);
}

.game-rtp-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid #ffd700;
    color: #ffd700;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.game-fav-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.game-fav-btn.active, .game-fav-btn:hover {
    color: #ff4757;
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
}

.game-provider-tag {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 180, 216, 0.85);
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.game-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.game-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.game-btn-play {
    background: linear-gradient(135deg, #ffd700 0%, #f39c12 100%);
    color: #000;
    font-size: 0.78rem;
    font-weight: 800;
    border: none;
    border-radius: 6px;
    padding: 6px;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.2s;
    margin-top: 4px;
}

.game-btn-play:hover {
    background: linear-gradient(135deg, #ffe033 0%, #e67e22 100%);
    color: #000;
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.5);
}

/* On Progress / In-Development Game Cards */
.game-card.game-card-progress {
    border-color: rgba(255, 255, 255, 0.08);
    background: #0f121a;
    cursor: not-allowed;
    opacity: 0.92;
}

.game-card.game-card-progress:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.08);
}

.game-thumb.game-thumb-blurred {
    filter: none;
    opacity: 1;
}

.game-card.game-card-progress:hover .game-thumb {
    transform: scale(1.04);
}

.game-progress-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(220, 38, 38, 0.92);
    border: 1px solid #f87171;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 2;
}

.game-btn-play.game-btn-progress {
    background: #232938 !important;
    border: 1px solid #3b4459 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Modal Styling */
.modal-content {
    background: #161922;
    color: #fff;
    border: 1px solid #2c3242;
    border-radius: 14px;
}

.modal-header {
    border-bottom: 1px solid #2c3242;
}

.modal-footer {
    border-top: 1px solid #2c3242;
}

/* Footer Section */
.footer-section {
    background: #08090c;
    border-top: 1px solid #1a1e28;
    padding: 24px 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
 * SCREENSHOT CATEGORY SECTION & 3-COL GRID
 * ========================================== */
.games-sections-wrapper,
#gamesGrid.games-sections-wrapper,
div.games-sections-wrapper {
    display: block !important;
    width: 100% !important;
    clear: both;
}

.category-group-section {
    display: block !important;
    width: 100% !important;
    margin-bottom: 28px !important;
    clear: both;
}

.category-section-banner {
    background: linear-gradient(90deg, #d4af37 0%, #f3c242 50%, #d4af37 100%);
    border-radius: 6px;
    padding: 8px 14px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 14px;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.28);
}

.category-banner-title {
    font-size: 1rem;
    font-weight: 900;
    color: #11141a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-banner-btn {
    background: #0d0f14;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 4px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.category-banner-btn:hover {
    background: #232733;
    color: #ffd700;
}

.games-grid-3col {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px;
    margin-bottom: 24px;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 360px) {
    .games-grid-3col {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px;
    }
}

@media (min-width: 768px) {
    .games-grid-3col {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 14px;
    }
}

@media (min-width: 992px) {
    .games-grid-3col {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 16px;
    }
}

.game-mult-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.3px;
    z-index: 2;
    text-transform: uppercase;
}

.game-title-center {
    text-align: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 4px 0 2px 0;
    line-height: 1.2;
}

.mahjong-hot-badge {
    background: linear-gradient(135deg, #ef4444 0%, #f59e0b 50%, #d97706 100%) !important;
    border: 1px solid #fef08a !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8), 0 2px 6px rgba(0, 0, 0, 0.7) !important;
    animation: hotBadgeGlow 2s infinite ease-in-out;
}

.mahjong-ways2-badge {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
    border: 1px solid #6ee7b7 !important;
    color: #fff !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6), 0 2px 6px rgba(0, 0, 0, 0.7) !important;
}

@keyframes hotBadgeGlow {
    0%, 100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 3px rgba(245, 158, 11, 0.6)); }
    50% { transform: scale(1.05); filter: brightness(1.2) drop-shadow(0 0 8px rgba(239, 68, 68, 0.9)); }
}

.wild-bounty-badge {
    background: linear-gradient(135deg, #d97706 0%, #b45309 45%, #7c2d12 100%) !important;
    border: 1px solid #fde047 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.8), 0 2px 6px rgba(0, 0, 0, 0.7) !important;
    animation: wildBountyGlow 2s infinite ease-in-out;
}

@keyframes wildBountyGlow {
    0%, 100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 4px rgba(245, 158, 11, 0.7)); }
    50% { transform: scale(1.06); filter: brightness(1.25) drop-shadow(0 0 10px rgba(217, 119, 6, 1)); }
}


