:root {
    --primary: #caff00;
    --bg-dark: #0a0a0a;
    --card-bg: #111111;
    --card-hover: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #888888;
    --danger: #ff4444;
    --success: #caff00;
    --border-color: rgba(255, 255, 255, 0.05);
    --modal-bg: rgba(0, 0, 0, 0.85);
    --input-bg: #000000;
}

/* FIX LIGHT MODE: Warna Success/Ikon diubah menjadi gelap agar terbaca */
/* ==============================
           PERBAIKAN LIGHT MODE & IKON
           ============================== */
body.light-mode {
    --bg-dark: #f0f2f5;
    --card-bg: #ffffff;
    --card-hover: #f9f9f9;
    --text-light: #111111;
    --text-muted: #666666;
    --border-color: rgba(0, 0, 0, 0.1);
    --modal-bg: rgba(255, 255, 255, 0.85);
    --input-bg: #f9f9f9;

    /* Menggelapkan warna hijau agar ikon dan teks sangat jelas di latar putih */
    --success: #caff00;
    --primary: #c5dd2f;
}

/* Mencegah semua ikon berubah jadi hitam, gepeng, atau terpotong di pinggir */
svg {
    fill: none !important;
    overflow: visible !important;
    /* Rahasia agar garis ikon tidak terpotong */
    flex-shrink: 0;
}

/* Memastikan ketebalan garis ikon tetap stabil */
.icon-circle svg,
.ref-icon-sq svg,
.stat-card svg {
    stroke-width: 2;
}

.btn-main,
.speed-btn.active,
.toggle-btn.active {
    color: #000 !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* AUTH SCREEN */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px 20px;
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.auth-toggle {
    display: flex;
    background: var(--input-bg);
    border-radius: 12px;
    margin-bottom: 25px;
    padding: 5px;
    border: 1px solid var(--border-color);
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
}

.toggle-btn.active {
    background: var(--primary);
}

.input-group {
    margin-bottom: 15px;
    width: 100%;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-light);
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input {
    flex: 1;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke-width: 2;
}

.password-strength-group {
    margin-bottom: 15px;
}

.strength-indicator {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: var(--input-bg);
    border-radius: 3px;
    transition: 0.3s;
}

.strength-bar.weak {
    background-color: var(--danger);
}

.strength-bar.medium {
    background-color: #ff9f43;
}

.strength-bar.strong {
    background-color: #f1c40f;
}

.strength-bar.very-strong {
    background-color: var(--success);
}

.captcha-display {
    background: var(--input-bg);
    color: var(--success);
    font-weight: 800;
    letter-spacing: 5px;
    font-size: 1.4rem;
    padding: 10px 15px;
    border-radius: 12px;
    border: 2px dashed var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.captcha-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--text-muted) 1px, transparent 1px), repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(128, 128, 128, 0.05) 10px, rgba(128, 128, 128, 0.05) 11px);
    background-size: 4px 4px, 100% 100%;
    opacity: 0.5;
}

.btn-main {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    font-weight: 800;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-main:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* CUSTOM SELECT DROPODWN BANK */
.custom-select {
    width: 100%;
    padding: 15px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-light);
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-weight: 600;
}

body.light-mode .custom-select {
    color: #000;
}

/* DASHBOARD LAYOUT MOBILE BASE */
.app-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    display: none;
}

.main-content {
    flex: 1;
    width: 100%;
    padding-bottom: 100px;
}

/* Hapus overflow-y: auto di sini */

.sidebar {
    display: none;
}

.main-content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    /* YANG SCROLL CUMA KONTEN */
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.header-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn:hover {
    color: var(--text-light);
}

.balance-badge {
    background: rgba(202, 255, 0, 0.1);
    color: var(--success);
    padding: 8px 15px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid rgba(202, 255, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.overview-header {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 25px 20px;
    margin: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}

.avatar-circle {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #000;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.stat-card h2 {
    font-size: 1.5rem;
    margin: 0;
}

.stat-card small {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.section-panel {
    padding: 0 20px;
    margin-top: 20px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.quick-link-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 800;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--input-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    border: 1px solid var(--border-color);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.info-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-val {
    font-weight: 800;
    font-size: 0.9rem;
}

/* REFERRAL & KEUANGAN UI */
.ref-hero-text {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.ref-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.ref-icon-sq {
    width: 40px;
    height: 40px;
    background: rgba(202, 255, 0, 0.05);
    border: 1px solid rgba(202, 255, 0, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--success);
}

.ref-code-input {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 15px 20px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 1.1rem;
    flex: 1;
    outline: none;
}

.live-badge {
    background: rgba(202, 255, 0, 0.1);
    color: var(--success);
    border: 1px solid rgba(202, 255, 0, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 1px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--success);
}

.warning-box {
    background: rgba(255, 165, 0, 0.05);
    border: 1px solid rgba(255, 165, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.btn-warning {
    background: #ffa500;
    color: #000;
    font-weight: 800;
    padding: 12px;
    border-radius: 10px;
    border: none;
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
    text-transform: uppercase;
}

.quick-amount-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.quick-amount-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 15px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    flex: 1;
    min-width: 60px;
    text-align: center;
    font-size: 0.8rem;
}

.quick-amount-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(202, 255, 0, 0.05);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.history-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 800;
}

.speed-btn {
    flex: 1;
    padding: 12px 5px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}

.speed-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

.session-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--input-bg);
}

/* MODAL UI & POPUPS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: 20px;
    opacity: 1;
    transition: 0.3s;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--card-bg);
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 25px 20px;
    position: relative;
    transform: translateY(0);
    transition: 0.3s;
}

.modal-overlay.hidden .modal-content {
    transform: translateY(50px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.close-btn {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.sync-pill {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.m-tab {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.m-tab.active {
    background: var(--input-bg);
    color: var(--text-light);
}

.qr-placeholder {
    background: #fff;
    padding: 15px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.pairing-code-box {
    background: var(--input-bg);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.pairing-code-text {
    color: var(--success);
    font-size: 2.2rem;
    letter-spacing: 8px;
    margin: 0;
    font-weight: 800;
    white-space: nowrap;
    /* RAHASIA: Mencegah teks turun ke baris baru */
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    padding: 10px 15px 20px 15px;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    flex: 1;
}

.nav-item.active {
    color: var(--success);
}

.nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.hidden {
    display: none !important;
}

/* ====================================================
           🚀 DESKTOP & LAPTOP OPTIMIZATION (PROPORTIONAL) 🚀
           ==================================================== */
@media (min-width: 1100px) {
    .app-layout {
        height: 100vh;
        overflow: hidden;
        display: flex;
        width: 100%;
    }

    .bottom-nav {
        display: none !important;
    }

    /* -- SIDEBAR KIRI (Ukuran Proporsional) -- */
    .sidebar {
        display: flex;
        flex-direction: column;
        width: 280px;
        background: #050505;
        border-right: 1px solid var(--border-color);
        padding: 25px;
        height: 100vh;
        flex-shrink: 0;
        overflow-y: auto;
    }

    body.light-mode .sidebar {
        background: #ffffff;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
    }

    .sidebar-logo {
        font-weight: 800;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 40px;
        color: var(--text-light);
    }

    .sidebar-logo svg {
        width: 28px;
        height: 28px;
        stroke: var(--success);
    }

    body.light-mode .sidebar-logo {
        color: #000;
    }

    .sidebar-menu {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .side-item {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
        color: var(--text-muted);
        font-weight: 600;
        cursor: pointer;
        border-radius: 12px;
        font-size: 1rem;
    }

    .side-item:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-light);
    }

    body.light-mode .side-item:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #000;
    }

    .side-item.active {
        background: rgba(202, 255, 0, 0.1);
        color: var(--success);
        font-weight: 800;
    }

    body.light-mode .side-item.active {
        background: rgba(92, 122, 0, 0.1);
        color: var(--success);
    }

    .side-item svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .side-item.active svg {
        filter: drop-shadow(0 0 8px var(--success));
    }

    body.light-mode .side-item.active svg {
        filter: none;
    }

    .side-label {
        font-size: 0.8rem;
        color: var(--text-muted);
        font-weight: 800;
        letter-spacing: 1.5px;
        margin: 25px 0 10px 15px;
    }

    .hot-badge {
        background: rgba(255, 68, 68, 0.1);
        color: var(--danger);
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 0.75rem;
        border: 1px solid rgba(255, 68, 68, 0.3);
        margin-left: auto;
        font-weight: 800;
    }

    .sidebar-profile {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 15px;
        margin-top: auto;
    }

    body.light-mode .sidebar-profile {
        background: #f9f9f9;
    }

    .sidebar-profile .avatar-circle {
        width: 45px;
        height: 45px;
    }

    .sidebar-profile [style*="font-size: 0.9rem"] {
        font-size: 1rem !important;
    }

    .sidebar-profile [style*="font-size: 0.7rem"] {
        font-size: 0.8rem !important;
    }

    .btn-side-logout {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 12px;
        background: transparent;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        font-weight: 600;
        border-radius: 10px;
        font-size: 1rem;
        margin-top: 15px;
    }

    .btn-side-logout:hover {
        background: rgba(255, 68, 68, 0.1);
        color: var(--danger);
    }

    .btn-side-logout svg {
        width: 20px;
        height: 20px;
    }

    /* -- KONTEN UTAMA KANAN -- */
    .main-content {
        flex: 1;
        height: 100vh;
        overflow-y: auto;
        background: var(--bg-dark);
    }

    .app-header {
        padding: 20px 40px;
        background: transparent;
        border-bottom: none;
        gap: 20px;
    }

    .logo-mobile {
        display: none !important;
    }

    .search-bar-desktop {
        display: flex !important;
        flex: 1;
        max-width: 400px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        padding: 12px 20px;
        border-radius: 12px;
        align-items: center;
        gap: 10px;
        color: var(--text-muted);
        margin-left: 20px;
    }

    .search-bar-desktop input {
        background: transparent;
        border: none;
        outline: none;
        color: var(--text-light);
        width: 100%;
        font-family: 'Inter', sans-serif;
        font-size: 0.9rem;
    }

    body.light-mode .search-bar-desktop input {
        color: #000;
    }

    .search-bar-desktop svg {
        width: 18px;
        height: 18px;
    }

    .balance-badge {
        font-size: 1rem;
        padding: 10px 20px;
        border-radius: 16px;
        gap: 8px;
    }

    .balance-badge svg {
        width: 18px;
        height: 18px;
    }

    .header-actions {
        gap: 15px;
    }

    .header-btn svg {
        width: 24px;
        height: 24px;
    }

    .overview-header {
        margin: 0 40px 30px 40px;
        padding: 30px 40px;
        border-radius: 20px;
        gap: 20px;
    }

    .overview-header h2 {
        font-size: 1.8rem !important;
    }

    .overview-header [style*="font-size: 0.8rem"] {
        font-size: 0.9rem !important;
    }

    .avatar-circle {
        width: 70px;
        height: 70px;
        border-width: 3px;
    }

    .avatar-circle svg {
        width: 35px;
        height: 35px;
    }

    .section-panel {
        padding: 0 40px;
        margin-bottom: 40px;
    }

    .section-panel>h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .section-panel>p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    #tab-dashboard .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 0 40px;
        margin-bottom: 40px;
    }

    #tab-whatsapp .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-card {
        padding: 30px;
        border-radius: 20px;
        gap: 10px;
    }

    .stat-card h2 {
        font-size: 2.2rem !important;
    }

    .stat-card small {
        font-size: 0.85rem !important;
    }

    .stat-card [style*="font-size: 0.8rem"] {
        font-size: 0.9rem !important;
        margin-bottom: 10px;
    }

    .icon-circle {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .icon-circle svg {
        width: 24px;
        height: 24px;
    }

    .stat-card p {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }

    .quick-links-grid {
        gap: 20px;
    }

    .quick-link-btn {
        padding: 25px 15px;
        font-size: 0.9rem;
        border-radius: 16px;
        gap: 10px;
    }

    .quick-link-btn .icon-circle {
        width: 50px;
        height: 50px;
        margin-bottom: 5px;
    }

    .quick-link-btn svg {
        width: 24px;
        height: 24px;
    }

    .info-grid {
        gap: 20px;
    }

    .info-box {
        padding: 30px;
        border-radius: 20px;
    }

    .info-box svg {
        width: 18px;
        height: 18px;
    }

    .info-label {
        font-size: 0.85rem;
    }

    .info-val {
        font-size: 1.2rem;
    }

    .info-row {
        margin-bottom: 10px;
    }

    .ref-hero-text {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    #tab-referral p,
    #tab-keuangan p,
    #tab-profil p {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
    }

    .ref-box {
        padding: 40px;
        border-radius: 20px;
        margin-bottom: 30px;
    }

    .ref-icon-sq {
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }

    .ref-icon-sq svg {
        width: 22px;
        height: 22px;
    }

    .ref-box [style*="font-weight: 800; letter-spacing: 1px;"] {
        font-size: 0.9rem !important;
    }

    .ref-box [style*="font-size: 0.65rem;"] {
        font-size: 0.75rem !important;
    }

    #ref-balance-view,
    #withdraw-balance {
        font-size: 3rem;
        margin: 10px 0 20px 0 !important;
    }

    #tab-referral .btn-main {
        font-size: 1rem !important;
        padding: 15px !important;
        border-radius: 12px !important;
    }

    .live-badge {
        font-size: 0.8rem;
        padding: 8px 15px;
    }

    .ref-code-input {
        font-size: 1.1rem;
        padding: 15px 20px;
        border-radius: 12px;
    }

    #tab-referral h2 {
        font-size: 1.8rem !important;
    }

    #tab-referral .history-badge {
        font-size: 0.8rem;
        padding: 8px 15px;
    }

    .btn-main {
        font-size: 1rem;
        padding: 18px;
        border-radius: 12px;
    }

    /* Modal & Popups Proportional Size */
    #auth-screen {
        padding: 20px;
    }

    .auth-card {
        max-width: 450px;
        padding: 40px;
        border-radius: 20px;
    }

    .auth-card h2 {
        font-size: 1.8rem !important;
        margin-bottom: 25px !important;
    }

    .input-group label {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .input-group input {
        font-size: 1rem;
        padding: 12px;
        border-radius: 12px;
    }

    .captcha-display {
        font-size: 1.5rem;
        padding: 10px 15px;
    }

    .modal-content {
        max-width: 500px;
        padding: 40px;
        border-radius: 24px;
    }

    .modal-header h3 {
        font-size: 1.2rem !important;
    }

    .modal-header svg {
        width: 24px;
        height: 24px;
    }

    .sync-pill {
        font-size: 1rem;
        padding: 15px 20px;
        border-radius: 12px;
    }

    .m-tab {
        font-size: 1rem;
        padding: 15px;
        border-radius: 12px;
    }

    .qr-placeholder img {
        width: 200px;
        height: 200px;
    }

    .pairing-code-text {
        font-size: 2.8rem;
        /* Ukuran disesuaikan agar pas di laptop */
        letter-spacing: 12px;
    }

    #custom-popup .modal-content {
        max-width: 400px;
        padding: 40px;
        border-radius: 24px;
    }

    #custom-popup h3 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }

    #custom-popup p {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
    }

    #custom-popup svg {
        width: 50px;
        height: 50px;
    }

    #custom-popup .btn-main {
        font-size: 1rem !important;
        padding: 12px 25px !important;
        border-radius: 12px !important;
    }

    #popup-input {
        font-size: 1rem !important;
        padding: 15px !important;
        border-radius: 12px !important;
    }

    #tab-whatsapp h3 {
        font-size: 1.5rem !important;
        gap: 10px;
    }

    #tab-whatsapp h3 svg {
        width: 28px;
        height: 28px;
    }

    #pool-count {
        font-size: 1.1rem !important;
    }

    .speed-btn {
        font-size: 1rem !important;
        padding: 15px 10px !important;
        border-radius: 12px !important;
    }

    #session-list-container div[style*="text-align: center"] {
        font-size: 1rem !important;
        padding: 40px !important;
        border-radius: 16px !important;
    }

    .session-card {
        padding: 25px !important;
        border-radius: 16px !important;
        margin-bottom: 20px !important;
        gap: 20px;
    }

    .session-card [style*="font-size: 0.95rem"] {
        font-size: 1.2rem !important;
    }

    .session-card [style*="font-size: 0.75rem"] {
        font-size: 0.9rem !important;
        margin-top: 5px;
    }

    .status-badge {
        font-size: 0.8rem !important;
        padding: 8px 15px !important;
        border-radius: 8px !important;
    }

    .session-card button svg {
        width: 20px !important;
        height: 20px !important;
    }

    .session-card button {
        width: 45px !important;
        height: 45px !important;
        border-radius: 12px !important;
    }

    #wa-success,
    #wa-failed {
        font-size: 2.2rem !important;
    }

    [style*="background: rgba(202, 255, 0, 0.1)"] {
        font-size: 1.1rem !important;
        padding: 20px !important;
        border-radius: 16px !important;
    }
}

/* Styling agar select mengikuti tema gelap */
.custom-select {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--input-bg);
    /* Mengikuti variabel --input-bg Anda */
    color: var(--text-light);
    /* Warna teks putih */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    appearance: none;
    /* Menghilangkan gaya bawaan sistem */
    -webkit-appearance: none;
    /* Safari/Chrome */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
}

/* Warna saat diklik/fokus */
.custom-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Styling dropdown option agar tidak putih (hanya berlaku di beberapa browser) */
.custom-select option {
    background-color: #1a1a1a;
    color: white;
}