/* ============================================================
   ROOT VARIABLES / THEME (MERAH - KUNING)
   ============================================================ */
:root {
    /* ===== Warna Utama (Merah) ===== */
    --primary: #D91616;              /* merah utama */
    --primary-light: #FF3B3B;        /* merah terang */
    --primary-dark: #8B0000;         /* merah gelap */
    --primary-transparent: rgba(217, 22, 22, 0.15);
    --primary-transparent-2: rgba(217, 22, 22, 0.25);

    /* ===== Warna Aksen (Kuning) ===== */
    --accent: #FFC107;               /* kuning utama */
    --accent-light: #FFD54F;         /* kuning terang */
    --accent-dark: #FF8F00;          /* kuning-orange gelap */
    --accent-transparent: rgba(255, 193, 7, 0.15);
    --accent-transparent-2: rgba(255, 193, 7, 0.25);

    /* ===== Background (Hitam) ===== */
    --dark: #0a0a0a;
    --bg-body: #121212;
    --bg-card: #1a1a1a;
    --bg-card-2: #242424;
    --bg-input: #0d0d0d;
    --bg-nav-atas: #000000;
    --bg-nav-bawah: #8B0000;         /* dasar nav bawah merah gelap */

    /* ===== Border ===== */
    --border: #2a2a2a;
    --border-light: #1f1f1f;
    --border-accent: rgba(255, 193, 7, 0.35);

    /* ===== Text ===== */
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #888888;
    --text-placeholder: #666666;
    --text-accent: #FFC107;          /* teks highlight kuning */

    /* ===== Status ===== */
    --success: #00ffae;
    --success-dark: #00c896;
    --success-bg: rgba(0, 255, 174, 0.15);
    --danger: #ff4d4d;
    --danger-bg: rgba(255, 77, 77, 0.15);
    --warning: #ffcb13;
    --warning-bg: rgba(255, 203, 19, 0.15);
    --gold: #ffd700;

    /* ===== Gradient (Merah-Kuning) ===== */
    --gradient-primary: linear-gradient(135deg, #8B0000 0%, #D91616 50%, #FF3B3B 100%);
    --gradient-accent:  linear-gradient(135deg, #FF8F00 0%, #FFC107 50%, #FFD54F 100%);
    --gradient-fire:    linear-gradient(135deg, #D91616 0%, #FF8F00 50%, #FFC107 100%);
    --gradient-card:    linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    --gradient-nav:     linear-gradient(to bottom, #8B0000 0%, #FFC107 0%, #000000 100%);
    --gradient-nav:     linear-gradient(to bottom, #D91616 0%, #000000 100%);
    --gradient-header:  linear-gradient(to bottom, #2a2a2a 0%, #0a0a0a 100%);

    /* ===== Ukuran & efek ===== */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 30px;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.9);
    --shadow-glow-red: 0 0 12px rgba(217, 22, 22, 0.5);
    --shadow-glow-yellow: 0 0 14px rgba(255, 193, 7, 0.6);
    --transition: 0.2s ease;
}
/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    font-size: 13px;
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes marquee {
    from { transform: translateX(100%); }
    to   { transform: translateX(-100%); }
}

@keyframes move-line {
    0%   { left: -50%; }
    100% { left: 100%; }
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}


 /* ============================================================
    HEADER + SCROLL NAVBAR
    ============================================================ */

.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--gradient-header);
    width: 100%;
}

/* ============================================================
   HEADER MINI — BESAR
   ============================================================ */

.mini-header {
    background: var(--gradient-header);
    padding: 12px 16px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.logo-small {
    height: 42px;
    width: auto;
    display: block;
}

.menu-icon {
    font-size: 1.7em;
    cursor: pointer;
    color: var(--text-primary);
    background-color: var(--primary-light);
    padding: 5px 7px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   SCROLL NAVBAR — TETAP KECIL
   ============================================================ */

.scroll-nav {
    background: var(--bg-card);
    padding: 4px 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border);
}

.scroll-nav::-webkit-scrollbar {
    display: none;
}

.nav-scroll-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 7px;
    margin: 0 2px;
    background: var(--bg-card-2);
    color: #eee;
    font-size: 11px;
    font-weight: 400;
    position: relative;
    text-decoration: none;
    line-height: 1.2;
    min-height: 28px;
}

.nav-scroll-item:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.nav-scroll-item.active {
    color: var(--text-primary);
}

/* ============================================================
   NEW BADGE
   ============================================================ */

.new-badge {
    position: absolute;
    top: -8px;
    right: 0;
    font-size: 7px;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 2px;
    background: #ff4444;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    z-index: 5;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 576px) {

    .mini-header {
        padding: 12px 14px;
    }

    .logo-small {
        height: 42px;
    }

    .menu-icon {
        font-size: 1.4em;
        padding: 5px 7px;
    }

    /* Scroll navbar tetap kecil */
    .scroll-nav {
        padding: 4px 0;
    }

    .nav-scroll-item {
        padding: 5px 7px;
        font-size: 11px;
        min-height: 28px;
    }

    .new-badge {
        top: -8px;
        right: 0;
        font-size: 7px;
        padding: 2px 4px;
    }
}
/* ============================================================
   SLIDER BANNER
   ============================================================ */
.home-slider {
    margin: 0 0 16px 0;
    padding: 0;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #1a1a1a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    touch-action: pan-y;
}

/* ===== TRACK ===== */
.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    cursor: grab;
}

.slider-track:active {
    cursor: grabbing;
}

/* ===== SLIDE ===== */
.slide-item {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    user-select: none;
    -webkit-user-drag: none;
    position: relative;
}

.slide-item img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 140px;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* ===== DOTS ===== */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 20px;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

.slider-dot.active {
    background: var(--primary-light);
    width: 22px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* ===== ARROW ===== */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.slider-wrapper:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* ===== MOBILE ===== */
@media (max-width: 576px) {
    .slide-item img {
        max-height: 200px;
        border-radius: 10px;
    }
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .slider-dots {
        bottom: 8px;
        padding: 4px 10px;
    }
    .slider-dot {
        width: 6px;
        height: 6px;
    }
    .slider-dot.active {
        width: 18px;
    }
}
/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
    background: var(--bg-card);
    padding: 2px 6px;
    margin: 0;
    width: 100%;
    font-size: 10px;
    line-height: 1.2;
}

.marquee-content { overflow: hidden; position: relative; }

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 6s linear infinite;
}


/* ============================================================
   BUTTON GROUP
   ============================================================ */
.btn-group-mini {
    display: flex;
    gap: 8px;
    margin: 6px 12px;
}

.btn-group-mini a {
    flex: 1;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn-mini-login,
.btn-mini-reg {
    flex: 1;
    background: var(--primary-light);
    border: none;
    padding: 4px 8px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 12px;
}


/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
}

.section-mini h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.show-all-mini {
    font-size: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: color var(--transition);
}

.show-all-mini:hover { color: var(--primary-light); }


/* ============================================================
   HORIZONTAL SCROLL CONTAINER
   ============================================================ */
.scroll-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar { display: none; }


/* ============================================================
   HOT CARD MINI
   ============================================================ */
.hot-card-mini {
    width: 85px;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform var(--transition);
}

.hot-card-mini:hover { transform: scale(1.02); }

.hot-card-mini img {
    width: 100%;
    height: 85px;
    object-fit: cover;
}

.hot-card-mini .game-name {
    font-size: 8px;
    padding: 4px 2px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ============================================================
   TOGEL CARD HORIZONTAL
   ============================================================ */
.togel-card-horizontal {
    width: 100px;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 8px;
    flex-shrink: 0;
    text-align: center;
}

.togel-card-horizontal .togel-name {
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 6px;
}

.togel-numbers {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.togel-number {
    width: 24px;
    height: 24px;
    line-height: 24px;
    background: var(--primary);
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
}



/* ============================================================
   GAME GRID & CARDS
   ============================================================ */
.game-card-mini {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.game-card-mini img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.game-card-mini .game-name {
    font-size: 10px;
    padding: 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.game-item {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition);
    position: relative;
}

.game-item:active { transform: scale(0.98); }

.game-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 3;
}

.game-item:hover .game-overlay,
.game-item:active .game-overlay { opacity: 1; }

.play-text {
    background: var(--gradient-primary);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.game-info {
    padding: 6px;
    position: relative;
}

.game-name {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-provider,
.game-category {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.provider-tag,
.category-tag {
    font-size: 8px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}


/* ============================================================
   SEARCH & FILTER (Dipakai di slot, casino, fish, dll)
   ============================================================ */
.filter-section {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    background: var(--bg-card);
    padding: 8px;
    border-radius: 12px;
}

.search-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: 8px;
    padding: 8px 10px;
    gap: 8px;
    border: 1px solid var(--border);
    position: relative;
}

.search-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 12px;
    outline: none;
}

.search-input::placeholder { color: var(--text-placeholder); }

.search-clear {
    background: none;
    border: none;
    color: var(--text-placeholder);
    cursor: pointer;
    display: none;
    align-items: center;
    padding: 0;
    font-size: 16px;
}

.provider-filter {
    position: relative;
    min-width: 120px;
}

.provider-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    cursor: pointer;
    transition: border-color var(--transition);
}

.provider-select:hover { border-color: var(--primary); }

.provider-select span {
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.dropdown-arrow {
    width: 10px;
    height: 10px;
    opacity: 0.6;
}

.provider-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 4px;
    z-index: 100;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.provider-dropdown.show { display: block; }

.provider-dropdown::-webkit-scrollbar { width: 4px; }
.provider-dropdown::-webkit-scrollbar-track {
    background: var(--bg-input);
    border-radius: 2px;
}
.provider-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.provider-option {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 11px;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.provider-option:hover {
    background: var(--primary-transparent-2);
    color: var(--text-primary);
}

.provider-option.active {
    background: var(--primary);
    color: white;
}


/* ============================================================
   LOAD MORE & EMPTY STATE
   ============================================================ */
.load-more {
    text-align: center;
    margin: 8px 0;
}

.load-more-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.load-more-btn:hover,
.load-more-btn:active {
    background: var(--primary);
    border-color: var(--primary-light);
    transform: scale(0.98);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.empty-state p { margin-bottom: 8px; }
.empty-state small { font-size: 11px; color: #666; }


/* ============================================================
   LOADING CARD
   ============================================================ */
.loading-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
}

.loading-card span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite linear;
}


/* ============================================================
   NOTIFICATION MODAL & TOAST
   ============================================================ */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.notification-content {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 24px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-modal);
}

.notification-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--primary-transparent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

.notification-icon i {
    font-size: 32px;
    color: var(--primary);
}

.notification-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.notification-btn {
    background: var(--gradient-primary);
    border: none;
    padding: 10px 40px;
    border-radius: 25px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
}

.notification-btn:hover,
.notification-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.custom-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    left: auto;
    transform: none;
    background: #2c2c2c;
    border-radius: 8px;
    padding: 12px 20px;
    z-index: 9999;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #ff9800;
    min-width: 250px;
    text-align: center;
}

.custom-toast-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.custom-toast-content span {
    color: var(--text-primary);
    font-size: 13px;
}


/* ============================================================
   FOOTER
   ============================================================ */
#customFooter {
    background: #1c1c1c;
    color: #f0f0f0;
    padding: 20px 16px;
    border-top: 1px solid #444;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
}

#customFooter h1 {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #acacac;
}

#customFooter h2 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
    color: #acacac;
}

#customFooter p {
    font-size: 13px;
    margin-bottom: 12px;
}

#customFooter strong { color: var(--primary-light); }

#customFooter a {
    color: var(--primary);
    text-decoration: underline;
}

#customFooter a:hover { opacity: 0.8; }


/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav-mini {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--gradient-nav);
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    border-top: 1px solid var(--border);
    z-index: 1000;
}

.bottom-nav-mini a {
    text-align: center;
    color: #f7f4f4;
    text-decoration: none;
    font-size: 10px;
}

.bottom-nav-mini i {
    font-size: 18px;
    display: block;
    margin-bottom: 2px;
}


/* ============================================================
   SIDEBAR
   ============================================================ */
.sidenav-mini {
    position: fixed;
    top: 0;
    left: -75%;
    width: 75%;
    height: 100%;
    background: #111;
    z-index: 1050;
    transition: left 0.3s;
    overflow-y: auto;
    padding: 10px 0;
}

.sidenav-mini.open { left: 0; }

.sidenav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.sidenav-header img { height: 35px; }

.sidenav-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
}

.sidenav-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: white;
    text-decoration: none;
    background: var(--bg-card);
    font-size: 12px;
    gap: 4px;
    border-radius: 4px;
    text-align: center;
}

.sidenav-menu a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sidenav-menu .menu-text {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-card);
    color: #fff;
    padding: 8px 0;
}

.menu-text img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
}

.overlay-mini {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1049;
    display: none;
}

.overlay-mini.active { display: block; }


/* ============================================================
   SIDEBAR USER BOX
   ============================================================ */
.sidenav-user-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 10px;
    color: #fff;
}

.sidenav-user-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidenav-avatar {
    width: 36px;
    height: 36px;
}

.sidenav-user-info {
    display: flex;
    flex-direction: column;
}

.sidenav-username {
    font-weight: bold;
    font-size: 13px;
}

.sidenav-saldo {
    font-size: 12px;
    color: var(--success);
}

.sidenav-vip-icon { width: 30px; }


/* ============================================================
   SIDE LINKS MINI
   ============================================================ */
.side-links-mini {
    position: fixed;
    right: 8px;
    bottom: 70px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-links-mini a div {
    width: auto;
    height: auto;
    background: none;
    border-radius: 8px;
    border: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.side-links-mini img {
    width: 50px;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: contain;
    transition: transform var(--transition);
}

.side-links-mini a div:hover img { transform: scale(1.1); }


/* ============================================================
   ROYAL TITLE
   ============================================================ */
.royal-title {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.royal-text {
    display: flex;
    flex-direction: column;
}

.royal-text .title {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}

.royal-text .subtitle {
    font-size: 8px;
    color: #e6d116;
}

.promo-icon {
    width: 24px;
    height: 24px;
}


/* ============================================================
   LOGIN MODAL
   ============================================================ */
#loginModal .modal-dialog {
    max-width: 400px;
    margin: 1.5rem;
    width: auto;
}

#loginModal .modal-content {
    background: url(https://static.aptaptkaisjds.com/assets/images/bigcor78/loginpopup/login.png);
    color: white;
    border-radius: 12px;
    padding: 1rem;
    overflow: hidden;
}

#loginModal .modal-header {
    border-bottom: none;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#loginModal .modal-header img { height: 35px; }

#loginModal .btn-close { filter: invert(1); }

#loginModal .modal-body { padding-top: 0.5rem; }

#loginModal .modal-body h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

#loginModal .form-control {
    background: #2c2c2c;
    color: white;
    border-radius: 8px;
    border: none;
    padding: 6px 10px;
    font-size: 13px;
}

#loginModal .form-control::placeholder {
    color: #aaa;
    opacity: 1;
}

#loginModal .modal-body .btn {
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 0;
    font-size: 13px;
    transition: transform 0.15s;
}

#loginModal .modal-body .btn:hover { transform: scale(0.98); }

#loginModal .text-center a {
    color: #fff;
    text-decoration: none;
}

#loginModal .text-center a:hover {
    color: var(--primary);
    text-decoration: underline;
}

#loginModal .text-white-50 .text-primary {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}


/* ============================================================
   USER BOX PRO
   ============================================================ */
.userbox-area { margin: 8px 12px; }

.userBox-pro {
    position: relative;
    background: linear-gradient(135deg, #000000, #111);
    border-radius: 12px;
    padding: 14px;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.user-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vip-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #ccc;
}

.vip-badge img {
    width: 34px;
    height: 34px;
}

.user-data {
    display: flex;
    flex-direction: column;
}

.username {
    font-size: 14px;
    font-weight: 700;
}

.balance {
    font-size: 13px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn {
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.4s;
}

.refresh-btn.spin { transform: rotate(360deg); }

.treasure-box {
    position: absolute;
    right: 10px;
    bottom: 8px;
}

.treasure-box img {
    width: 55px;
    height: auto;
    opacity: 0.9;
    transition: transform var(--transition);
}

.treasure-box img:hover { transform: scale(1.1); }


/* ============================================================
   DEPOSIT PAGE
   ============================================================ */
.deposit-page {
    padding: 12px;
    padding-bottom: 80px;
    max-width: 600px;
    margin: 0 auto;
}

.nav-tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
}

.nav-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.nav-tab.active {
    background: var(--gradient-primary);
    color: white;
}

.balance-card {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.balance-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.balance-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 12px;
}

.refresh-icon {
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.3s;
    display: inline-block;
}

.refresh-icon:hover { transform: rotate(180deg); }

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border-radius: 10px;
    padding: 4px;
}

.filter-tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab.active {
    background: var(--gradient-primary);
    color: white;
}

.error-msg {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 12px;
}

.success-msg {
    background: rgba(0, 200, 150, 0.2);
    border: 1px solid var(--success-dark);
    color: var(--success-dark);
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 12px;
}

.bank-section { display: none; margin-bottom: 20px; }
.bank-section.active { display: block; }

.section-title {
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px 0;
    color: var(--text-primary);
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bank-item {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.bank-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.bank-item.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(119, 22, 213, 0.1) 0%, rgba(188, 82, 253, 0.1) 100%);
}

.bank-logo {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.bank-logo img {
    max-width: 70%;
    max-height: 40px;
    object-fit: contain;
}

.bank-name {
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.bank-radio {
    width: 14px;
    height: 14px;
    border: 2px solid #555;
    border-radius: 50%;
    margin: 0 auto;
}

.bank-item.selected .bank-radio {
    border-color: var(--primary);
    background: var(--primary);
}

.nominal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 8px 0 16px 0;
}

.nominal-item {
    background: var(--bg-card);
    padding: 8px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.nominal-item:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.amount-input-wrapper {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    margin: 8px 0 16px 0;
}

.currency {
    font-size: 16px;
    font-weight: bold;
    margin-right: 8px;
    color: var(--gold);
}

.amount-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
    width: 100%;
}

.amount-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.disclaimer-box {
    background: rgba(255, 68, 68, 0.08);
    border-left: 3px solid #ff4444;
    padding: 10px;
    border-radius: 8px;
    margin: 16px 0;
}

.disclaimer-title {
    font-weight: bold;
    color: #ff4444;
    margin-bottom: 6px;
    font-size: 11px;
}

.disclaimer-box p {
    font-size: 9px;
    color: var(--text-secondary);
    margin-bottom: 3px;
    line-height: 1.4;
}

.deposit-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform var(--transition);
    margin: 16px 0 8px 0;
}

.deposit-btn:hover { transform: scale(0.98); }


/* ============================================================
   WITHDRAW PAGE
   ============================================================ */
.withdraw-page {
    padding: 12px;
    padding-bottom: 80px;
    max-width: 600px;
    margin: 0 auto;
}

.pending-info {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pending-icon { font-size: 28px; }

.pending-text {
    flex: 1;
    font-size: 12px;
    color: #ffc107;
}

.pending-text strong {
    display: block;
    margin-bottom: 4px;
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.bank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bank-list .bank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.bank-list .bank-radio {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
}

.bank-list .bank-item.selected .bank-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.bank-info { flex: 1; }

.bank-list .bank-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.bank-number {
    font-size: 12px;
    color: var(--gold);
    margin-bottom: 2px;
}

.bank-owner {
    font-size: 11px;
    color: var(--text-secondary);
}

.add-bank-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-light);
    text-decoration: none;
    font-size: 12px;
}

.add-bank-link:hover { text-decoration: underline; }

.withdraw-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform var(--transition);
    margin-top: 10px;
}

.withdraw-btn:hover:not(:disabled) { transform: scale(0.98); }
.withdraw-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.info-box {
    background: rgba(119, 22, 213, 0.1);
    border-left: 3px solid var(--primary);
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
}

.info-title {
    font-weight: bold;
    color: var(--primary-light);
    margin-bottom: 8px;
    font-size: 12px;
}

.info-box ul { margin: 0; padding-left: 20px; }

.info-box li {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
}


/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-page {
    padding: 12px;
    padding-bottom: 80px;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-body);
    min-height: 100vh;
}

.profile-header {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
}

.profile-avatar i {
    font-size: 60px;
    color: var(--primary-light);
}

.profile-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-username {
    font-size: 12px;
    color: var(--text-secondary);
}

.mobileNavBox {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 4px;
}

.mobileNav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 10px;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.mobileNav i { font-size: 16px; }

.mobileNavActive {
    background: var(--gradient-primary);
    color: white;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.mui {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border);
}

.profile-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.table-box {
    background: var(--bg-input);
    border-radius: 12px;
    overflow: hidden;
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-light);
}

.table-row:last-child { border-bottom: none; }

.table-label {
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-label i { font-size: 14px; }

.table-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.bank-card {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.bank-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.bank-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.bank-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bank-number-wrapper {
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

.bank-number-label {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.bank-number {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--primary-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all var(--transition);
}

.copy-btn:hover { background: var(--primary-transparent-2); }

.password-form { margin-top: 8px; }

.mui__row { margin-bottom: 16px; }

.mui__row label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    transition: all var(--transition);
}

.input-wrapper:focus-within { border-color: var(--primary); }

.input-wrapper i {
    color: var(--text-placeholder);
    margin-right: 10px;
    font-size: 16px;
}

.input-wrapper input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    width: 100%;
}

.input-wrapper input::placeholder { color: #555; }

.btn-save {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-save:hover { transform: scale(0.98); }

.table-divider { height: 12px; }


/* ============================================================
   ACCOUNT TABLE (History)
   ============================================================ */
.account-tabs {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 4px;
    margin: 16px 0;
    background: var(--bg-card);
    border-radius: 10px;
}

.account-tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.account-tab.active {
    background: var(--gradient-primary);
    color: white;
}

.account-table {
    overflow-x: auto;
    margin-top: 8px;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 450px;
}

.table th {
    background: #111;
    padding: 12px 8px;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 11px;
}

.table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.date-col {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.jenis-col { font-weight: 500; }
.jenis-deposit  { color: var(--success-dark); }
.jenis-withdraw { color: #ffaa44; }

.amount-col {
    font-weight: 600;
    white-space: nowrap;
}

.plus  { color: var(--success); }
.minus { color: var(--danger); }

.status-col { text-align: center; }

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(255, 203, 19, 0.3);
}

.status-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 255, 174, 0.3);
}

.status-failed {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 77, 77, 0.3);
}

.status-processing {
    background: var(--primary-transparent);
    color: var(--primary-light);
    border: 1px solid rgba(188, 82, 253, 0.3);
}

.status-default {
    background: rgba(136, 136, 136, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(136, 136, 136, 0.3);
}

.account-noresultfound {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-top: 20px;
    font-size: 13px;
}


/* ============================================================
   SLOT / CASINO / FISH / LOTTERY / POKER CONTAINERS
   ============================================================ */
.slot-container,
.casino-container,
.fish-container,
.lottery-container,
.poker-container {
    padding: 8px;
    padding-bottom: 70px;
    min-height: 100vh;
    background: var(--bg-body);
}

.free-spin-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 2;
    font-weight: bold;
}

.lottery-number {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #ff9800;
    z-index: 2;
}

.new-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff4444;
    color: white;
    font-size: 8px;
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 2;
}


/* ============================================================
   INVITE PAGE
   ============================================================ */
.invite-page {
    padding: 12px;
    padding-bottom: 90px;
    background: #080808;
    min-height: 100vh;
}

.invite-page .title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.invite-page .box {
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.invite-page .step {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.invite-page .step img { width: 50px; }

.invite-page .step p {
    font-size: 12px;
    color: #000;
}

.invite-page .ref-box {
    background: #0e0e0e;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
}

.invite-page .link-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0e0e0e;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 12px;
}

.invite-page .link-box button {
    background: var(--primary);
    border: none;
    color: #0a0808;
    padding: 5px 10px;
    border-radius: 6px;
}

.invite-page table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.invite-page th,
.invite-page td {
    padding: 8px;
    border-bottom: 1px solid #0f0a0a;
    text-align: left;
}

.invite-page .empty {
    text-align: center;
    padding: 10px;
    color: #000;
}


/* ============================================================
   PROMO PAGE
   ============================================================ */
.promo-page {
    padding: 12px;
    padding-bottom: 90px;
    background: #f5f5f5;
    min-height: 100vh;
}

.promo-page .flex-left {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.promo-page .icon-circle {
    width: 32px;
    height: 32px;
    background: #1d1c1c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-page .icon-circle img { width: 16px; }

.promo-page .promo-text {
    font-size: 14px;
    font-weight: bold;
    color: #222;
}

.promo-page .category-tab {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.promo-page .btn-category {
    padding: 5px 12px;
    border-radius: 20px;
    background: #0e0d0d;
    border: none;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
}

.promo-page .btn-category.active {
    background: var(--primary);
    color: #fff;
}

.promo-page .promo-item { margin-bottom: 14px; }

.promo-page .promo-box { position: relative; }

.promo-page .promo-box img {
    width: 100%;
    border-radius: 12px;
}

.promo-page .detail {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
}

.promo-page .promo-content {
    display: none;
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    margin-top: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.promo-page .promo-close {
    text-align: right;
    cursor: pointer;
    color: #333;
    margin-bottom: 8px;
    font-size: 13px;
}

.promo-page .promo_article {
    color: #444;
    font-size: 12px;
    line-height: 1.5;
}

.promo-page .promo_article h3 {
    margin-bottom: 6px;
    color: #111;
}


/* ============================================================
   REGISTER PAGE
   ============================================================ */
.register-container {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 16px 16px 48px;
    box-sizing: border-box;
    position: relative;
}

.register-box {
    max-width: 400px;
    margin: 0 auto 32px;
    background: #fff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.register-tab {
    background: #f0f0f0;
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 12px 12px 0 0;
}

.tab-active {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

.register-form {
    padding: 20px 20px 28px;
    position: relative;
    z-index: 2;
}

.register-form .error-msg {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 16px;
}

.register-form .form-group { margin-bottom: 14px; }

.register-form .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
}

.register-form .form-group label span {
    font-weight: normal;
    color: #999;
    font-size: 10px;
}

.register-form .form-group input,
.register-form .form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
}

.register-form .form-group input:focus,
.register-form .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.password-input { position: relative; }
.password-input input { padding-right: 32px; }

.toggle-pwd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.6;
    z-index: 3;
}

.match-hint {
    font-size: 10px;
    margin-top: 4px;
    display: block;
}

.form-divider {
    font-weight: 600;
    color: var(--primary);
    margin: 16px 0 12px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.note-text {
    font-size: 11px;
    color: #888;
    margin: 12px 0;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 6px;
}

.note-text span {
    color: #ff9800;
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.checkbox-group input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 11px;
    color: #666;
    margin: 0;
}

.btn-register {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 4px;
    position: relative;
    z-index: 5;
    display: block;
}

.btn-register:hover { background: #5e10aa; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    /* Footer */
    #customFooter { padding: 16px 12px; }
    #customFooter h1 { font-size: 16px; }
    #customFooter h2 { font-size: 14px; }
    #customFooter p  { font-size: 12px; }

    /* Login Modal */
    #loginModal .modal-dialog {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    /* Deposit */
    .deposit-page { padding: 10px; padding-bottom: 70px; }
    .balance-value { font-size: 20px; }
    .nominal-grid { grid-template-columns: repeat(3, 1fr); }
    .bank-grid { gap: 6px; }
    .bank-logo { height: 40px; }
    .bank-logo img { max-height: 35px; }
    .bank-name { font-size: 10px; }

    /* Withdraw */
    .withdraw-page { padding: 10px; padding-bottom: 70px; }
    .nominal-grid { grid-template-columns: repeat(2, 1fr); }
    .bank-list .bank-name { font-size: 13px; }
    .bank-list .bank-number { font-size: 11px; }
    .bank-list .bank-owner { font-size: 10px; }

    /* Profile */
    .profile-page { padding: 10px; padding-bottom: 70px; }
    .profile-avatar i { font-size: 50px; }
    .profile-name { font-size: 16px; }
    .balance-value { font-size: 20px; }
    .mobileNav { padding: 8px; font-size: 11px; }
    .mobileNav i { font-size: 14px; }
    .table-label,
    .table-value { font-size: 12px; }
    .bank-number { font-size: 14px; }

    /* Account History */
    .table th,
    .table td { padding: 10px 6px; }
    .date-col { font-size: 10px; }
    .jenis-col { font-size: 11px; }
    .amount-col { font-size: 11px; }
    .status-badge { padding: 3px 8px; font-size: 9px; }
    .account-tab { padding: 6px; font-size: 11px; }

    /* Slot / Casino / Fish / Lottery / Poker */
    .slot-container,
    .casino-container,
    .fish-container,
    .lottery-container,
    .poker-container { padding: 6px; padding-bottom: 65px; }

    .filter-section { padding: 6px; gap: 6px; }
    .search-wrapper { padding: 6px 8px; }
    .search-icon { width: 12px; height: 12px; }
    .search-input { font-size: 11px; }
    .provider-select { padding: 6px 8px; }
    .provider-select span { font-size: 11px; max-width: 80px; }
    .game-grid { gap: 5px; }
    .game-info { padding: 5px; }
    .game-name { font-size: 9px; }
    .provider-tag,
    .category-tag { font-size: 7px; padding: 2px 4px; }
    .play-text { padding: 4px 8px; font-size: 9px; }
    .load-more-btn { padding: 6px 16px; font-size: 10px; }
    .free-spin-badge { font-size: 7px; padding: 2px 4px; }
    .lottery-number { font-size: 9px; bottom: 4px; right: 4px; }

    /* Notification */
    .notification-content { padding: 24px 20px 20px; }
    .notification-title { font-size: 16px; }
    .notification-message { font-size: 13px; }
}

@media (max-width: 500px) {
    .account-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table { min-width: 450px; }
}