/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --success-color: #4ade80;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-primary); color: var(--text-primary); padding-bottom: 90px; transition: background-color var(--transition), color var(--transition); min-height: 100vh; overflow-x: hidden; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; }

.glass-header, .glass-card { background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); box-shadow: var(--shadow); transition: background var(--transition), border var(--transition), box-shadow var(--transition); }

/* ========== AUTH ========== */
.auth-banner { width: 100%; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 15px; }
.auth-banner img { width: 100%; height: 120px; object-fit: cover; display: block; }
.auth-wrapper { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; background: var(--bg-primary); }
.auth-box { width: 100%; max-width: 380px; padding: 30px 25px; border-radius: 24px; text-align: center; animation: fadeUp 0.6s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.input-group { background: var(--bg-primary); border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); padding: 12px 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; transition: border-color var(--transition), box-shadow var(--transition); }
.input-group:focus-within { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.input-group i { color: var(--text-secondary); font-size: 16px; width: 18px; text-align: center; }
.input-group input, .input-group select { background: transparent; border: none; outline: none; color: var(--text-primary); width: 100%; font-size: 14px; }
.input-group input::placeholder { color: var(--text-secondary); opacity: 0.6; }
.input-group textarea { background: transparent; border: none; outline: none; color: var(--text-primary); width: 100%; font-size: 13px; resize: vertical; font-family: inherit; }
.input-group textarea::placeholder { color: var(--text-secondary); opacity: 0.6; }

.btn-primary { width: 100%; padding: 13px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--accent-color), var(--accent-hover)); color: #fff; border: none; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); display: flex; justify-content: center; align-items: center; gap: 8px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); }
.btn-primary:active { transform: scale(0.95); }

/* ========== HEADER ========== */
header { position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; margin-bottom: 10px; border-bottom: 1px solid var(--glass-border); }
.logo-area { display: flex; align-items: center; gap: 10px; }
.hamburger-icon { font-size: 22px; cursor: pointer; color: var(--text-primary); transition: color var(--transition), transform var(--transition); padding: 5px; }
.hamburger-icon:hover { color: var(--accent-color); transform: scale(1.1); }
.logo { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; }
.logo-area h1 { font-size: 18px; font-weight: 700; line-height: 1.1; }
.logo-area small { font-size: 10px; color: var(--text-secondary); display: block; margin-top: -2px; }
.header-actions { display: flex; align-items: center; gap: 5px; }
.header-actions i { font-size: 20px; padding: 8px; border-radius: 50%; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); }
.header-actions i:hover { background: var(--glass-bg); color: var(--text-primary); transform: scale(1.05); }

/* ========== SIDEBAR ========== */
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 998; display: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sidebar-overlay.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.liquid-glass { background: rgba(30, 41, 59, 0.65) !important; backdrop-filter: blur(20px) saturate(1.4) !important; -webkit-backdrop-filter: blur(20px) saturate(1.4) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 80px rgba(255, 255, 255, 0.02) !important; }
body.light-mode .liquid-glass { background: rgba(255, 255, 255, 0.7) !important; border: 1px solid rgba(255, 255, 255, 0.3) !important; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 0 80px rgba(255, 255, 255, 0.3) !important; }

.sidebar { position: fixed; top: 0; left: -340px; width: 320px; height: 100%; z-index: 999; padding: 20px 16px; transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; border-radius: 0 20px 20px 0; }
.sidebar.active { left: 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); margin-bottom: 16px; }
.sidebar-profile { display: flex; align-items: center; gap: 12px; }
.sidebar-profile .avatar-circle { width: 48px; height: 48px; font-size: 20px; background: linear-gradient(135deg, var(--accent-color), var(--accent-hover)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; overflow: hidden; flex-shrink: 0; }
.sidebar-profile .avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-profile h4 { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.sidebar-profile small { font-size: 11px; color: var(--text-secondary); display: block; }
.sidebar-close { background: none; border: none; color: var(--text-secondary); font-size: 22px; cursor: pointer; padding: 4px; transition: all var(--transition); }
.sidebar-close:hover { color: var(--danger-color); transform: rotate(90deg); }

.menu-group { margin-bottom: 16px; }
.menu-label { font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, 0.25); letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px 8px 12px; }
body.light-mode .menu-label { color: rgba(0, 0, 0, 0.3); }

.sidebar-item { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text-secondary); cursor: pointer; transition: all var(--transition); position: relative; font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.sidebar-item i { width: 22px; font-size: 17px; text-align: center; flex-shrink: 0; color: var(--text-secondary); transition: color var(--transition); }
.sidebar-item span { flex: 1; }
.sidebar-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); transform: translateX(4px); }
.sidebar-item:hover i { color: var(--accent-color); }
.sidebar-item.active { background: rgba(59, 130, 246, 0.12); color: var(--accent-color); border-left: 3px solid var(--accent-color); }
.sidebar-item.active i { color: var(--accent-color); }

.logout-item { color: #ef4444 !important; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 14px; margin-top: 4px; }
.logout-item i { color: #ef4444 !important; }
.logout-item:hover { background: rgba(239, 68, 68, 0.08) !important; color: #ef4444 !important; }
.sidebar-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 8px; margin-top: 4px; }

/* ========== BANNER ========== */
.banner-slider { position: relative; width: 100%; height: 150px; overflow: hidden; margin-bottom: 15px; border-radius: var(--radius); box-shadow: var(--shadow); }
.banner-large { height: 200px; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; }
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.5); color: #fff; border: none; padding: 10px 14px; cursor: pointer; font-size: 18px; border-radius: 50%; transition: background var(--transition); z-index: 10; }
.banner-btn:hover { background: rgba(0, 0, 0, 0.8); }
.banner-prev { left: 8px; }
.banner-next { right: 8px; }
.banner-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.banner-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: background var(--transition); }
.banner-dots .dot.active { background: #fff; }

/* ========== BERANDA ========== */
.beranda-container { padding: 0 15px 20px; }

/* User Card */
.user-card { margin-bottom: 15px; padding: 18px 20px; border-radius: var(--radius); }
.user-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.profile { display: flex; align-items: center; gap: 12px; }
.avatar-circle { width: 45px; height: 45px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-color), var(--accent-hover)); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; cursor: pointer; overflow: hidden; }
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.profile small { font-size: 11px; color: var(--text-secondary); }
.profile h3 { font-size: 16px; font-weight: 600; }
.balance small { font-size: 11px; color: var(--text-secondary); display: block; text-align: right; }
.balance h3 { color: var(--success-color); font-size: 18px; font-weight: 700; }
.btn-deposit { width: 100%; background: linear-gradient(135deg, var(--warning-color), #d97706); border: none; padding: 11px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; color: #000; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; transition: transform var(--transition), box-shadow var(--transition); }
.btn-deposit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }

/* ===== QUICK MENU ===== */
.quick-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.quick-item { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; background: var(--bg-secondary); border-radius: var(--radius); cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); border: 1px solid var(--glass-border); position: relative; }
.quick-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quick-item i { font-size: 22px; color: var(--accent-color); margin-bottom: 4px; }
.quick-item span { font-size: 10px; color: var(--text-secondary); font-weight: 500; }
.quick-badge { position: absolute; top: -4px; right: -4px; background: var(--danger-color); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ===== STATS ===== */
.stats-simple { display: flex; justify-content: space-around; padding: 14px; border-radius: var(--radius); margin-bottom: 18px; background: var(--bg-secondary); border: 1px solid var(--glass-border); }
.stat-item { text-align: center; }
.stat-value { display: block; font-size: 18px; font-weight: 700; color: var(--accent-color); }
.stat-label { font-size: 10px; color: var(--text-secondary); }
.stat-divider { width: 1px; background: var(--border-color); }

/* ===== INFO BANNER ===== */
.info-banner { display: flex; align-items: center; padding: 14px 16px; border-radius: var(--radius); gap: 14px; margin-bottom: 12px; background: var(--bg-secondary); border: 1px solid var(--glass-border); border-left: 3px solid var(--accent-color); }
.info-banner div { flex: 1; }
.info-banner h4 { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.info-banner small { font-size: 11px; color: var(--text-secondary); }

/* ========== CATEGORY & SEARCH ========== */
.category-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0 14px 0; white-space: nowrap; scrollbar-width: none; flex-wrap: nowrap; }
.category-scroll::-webkit-scrollbar { display: none; }
.cat-item { padding: 8px 18px; border-radius: 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all var(--transition); flex-shrink: 0; border: none; color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.cat-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); }
.cat-item:active { transform: scale(0.95); }
.cat-item.active { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }

/* ========== SEARCH WRAPPER - LIQUID GLASS ========== */
.search-wrapper { 
    margin-bottom: 12px; 
    padding: 10px 15px; 
    border-radius: var(--radius-sm); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: rgba(30, 41, 59, 0.65) !important;
    backdrop-filter: blur(20px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 80px rgba(255, 255, 255, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.light-mode .search-wrapper { 
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 0 80px rgba(255, 255, 255, 0.3) !important;
}

.search-wrapper:focus-within { 
    border-color: var(--accent-color); 
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 8px 32px rgba(0, 0, 0, 0.3); 
    transform: translateY(-1px); 
}
.search-wrapper i { 
    color: var(--text-secondary); 
    transition: color 0.3s ease; 
}
.search-wrapper:focus-within i { 
    color: var(--accent-color); 
}
.search-wrapper input { 
    background: transparent; 
    border: none; 
    color: var(--text-primary); 
    outline: none; 
    width: 100%; 
    font-size: 14px; 
    transition: color 0.3s ease; 
}
.search-wrapper input::placeholder { 
    color: var(--text-secondary); 
    opacity: 0.6; 
    transition: opacity 0.3s ease; 
}
.search-wrapper:focus-within input::placeholder { 
    opacity: 0.4; 
}

/* ========== SALDO PAYGET ========== */
.saldo-info { background: linear-gradient(135deg, #1a3a5c, #0f2a4a); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; transition: all var(--transition); }
.saldo-info:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15); }
.saldo-info h2 { color: #60a5fa; font-size: 22px; font-weight: 700; margin-top: -2px; letter-spacing: -0.5px; }
.saldo-large { padding: 18px 22px !important; }
.saldo-large h2 { font-size: 28px !important; }
.saldo-large .fa-wallet { font-size: 26px !important; }

/* ========== PRODUCT GRID ========== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.product-item { background: var(--bg-secondary); padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); border: 1px solid var(--glass-border); display: flex; flex-direction: column; min-height: 220px; }
.product-item:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); }
.product-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 8px; }
.product-item h4 { font-size: 12px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; min-height: 32px; }
.product-item .price { color: var(--success-color); font-weight: 700; font-size: 13px; margin-top: 2px; }
.product-item .btn-group { display: flex; gap: 5px; margin-top: auto; padding-top: 8px; }
.product-item button { flex: 1; padding: 6px 8px; border: none; border-radius: 16px; font-size: 10px; font-weight: 600; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); }
.product-item button:hover:not(:disabled) { transform: translateY(-2px); }
.product-item button:active:not(:disabled) { transform: scale(0.95); }
.product-item button:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-buy { background: #4ade80; color: #000; }
.btn-buy:hover:not(:disabled) { box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3); }
.btn-cart { background: var(--accent-color); color: #fff; }
.btn-cart:hover:not(:disabled) { box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.btn-review { background: #8b5cf6; color: #fff; padding: 6px 8px; border: none; border-radius: 16px; font-size: 10px; font-weight: 600; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); }
.btn-review:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }

/* ========== BOTTOM NAV - LIQUID GLASS ========== */
.bottom-nav { 
    position: fixed; 
    bottom: 12px; 
    left: 12px; 
    right: 12px; 
    border-radius: 20px; 
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    padding: 10px 0; 
    background: rgba(30, 41, 59, 0.65) !important;
    backdrop-filter: blur(20px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 80px rgba(255, 255, 255, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 100; 
}

body.light-mode .bottom-nav { 
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 0 80px rgba(255, 255, 255, 0.3) !important;
}

.nav-item { 
    text-align: center; 
    color: var(--text-secondary); 
    font-size: 10px; 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative; 
    padding: 2px 10px; 
    border: none; 
    background: transparent; 
}
.nav-item.active { 
    color: var(--accent-color); 
    transform: translateY(-4px); 
}
.nav-item i { 
    font-size: 22px; 
    display: block; 
    margin-bottom: 1px; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}
.nav-item.active i { 
    transform: scale(1.1); 
}
.nav-item span { 
    font-size: 10px; 
    font-weight: 500; 
}
.badge-cart { 
    position: absolute; 
    top: -6px; 
    right: -4px; 
    background: var(--danger-color); 
    color: #fff; 
    border-radius: 50%; 
    width: 18px; 
    height: 18px; 
    font-size: 10px; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    font-weight: 700; 
    transition: all 0.3s ease; 
}

/* ========== DEPOSIT ========== */
.nominal-btn { background: var(--bg-primary); border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); padding: 8px 6px; color: var(--text-primary); font-size: 12px; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.nominal-btn:hover { border-color: var(--accent-color); background: rgba(59, 130, 246, 0.05); }
.nominal-btn.active { border-color: var(--accent-color); background: rgba(59, 130, 246, 0.1); color: var(--accent-color); }
.metode-btn { background: var(--bg-primary); border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); padding: 8px 6px; color: var(--text-primary); font-size: 11px; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.metode-btn:hover { border-color: var(--accent-color); background: rgba(59, 130, 246, 0.05); }
.metode-btn.active { border-color: var(--accent-color); background: rgba(59, 130, 246, 0.1); color: var(--accent-color); }
#depositModal .modal-input { width: 100%; background: var(--bg-primary); border: 1.5px solid var(--border-color); padding: 12px 15px; border-radius: var(--radius-sm); color: var(--text-primary); font-size: 16px; outline: none; transition: border-color var(--transition), box-shadow var(--transition); }
#depositModal .modal-input:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
#depositModal .btn-primary { font-size: 14px; padding: 12px; }
#depositModal .btn-primary:hover { transform: translateY(-2px); }

/* ========== QRIS ========== */
#qrisContainer { position: relative; background: #fff; border-radius: 12px; padding: 20px; display: inline-block; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
#qrisContainer img { max-width: 100%; height: auto; }
#qrisManualModal .btn-primary { font-size: 13px; padding: 10px 14px; }
#qrisManualModal .btn-primary i { font-size: 14px; }
#qrisManualModal .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }

/* ========== MODALS ========== */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: center; z-index: 9999; visibility: hidden; opacity: 0; transition: all var(--transition); padding: 20px; }
.modal.show { visibility: visible; opacity: 1; }
.modal-content { width: 100%; max-width: 400px; padding: 25px; border-radius: 24px; transform: scale(0.9) translateY(20px); transition: all var(--transition); max-height: 90vh; overflow-y: auto; background: var(--bg-secondary); border: 1px solid var(--glass-border); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.modal.show .modal-content { transform: scale(1) translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-header h3 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.close-modal { font-size: 28px; cursor: pointer; color: var(--text-secondary); transition: all var(--transition); line-height: 1; padding: 0 5px; }
.close-modal:hover { color: var(--danger-color); transform: rotate(90deg); }
.modal-input { width: 100%; background: var(--bg-primary); border: 1.5px solid var(--border-color); padding: 12px 15px; border-radius: var(--radius-sm); color: var(--text-primary); font-size: 16px; outline: none; transition: border-color var(--transition), box-shadow var(--transition); }
.modal-input:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

/* ========== STAR RATING ========== */
.star-rating { font-size: 30px; cursor: pointer; transition: color var(--transition); }
.star-rating:hover { transform: scale(1.1); }

/* ========== HISTORY MODAL (BESAR) ========== */
#historyModal .modal-content { max-width: 600px !important; max-height: 80vh !important; padding: 20px !important; }
#historyModal .modal-content::-webkit-scrollbar { width: 4px; }
#historyModal .modal-content::-webkit-scrollbar-track { background: var(--bg-primary); border-radius: 10px; }
#historyModal .modal-content::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; }

/* ========== NOKOS MODAL ========== */
#nokosListContainer::-webkit-scrollbar { width: 4px; }
#nokosListContainer::-webkit-scrollbar-track { background: var(--bg-primary); border-radius: 10px; }
#nokosListContainer::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; }

/* ========== MANAGE PRODUCTS ========== */
#productListContainer::-webkit-scrollbar { width: 4px; }
#productListContainer::-webkit-scrollbar-track { background: var(--bg-primary); border-radius: 10px; }
#productListContainer::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; }

#productForm textarea { background: transparent; border: none; outline: none; color: var(--text-primary); width: 100%; font-size: 13px; resize: vertical; font-family: inherit; }
#productForm textarea::placeholder { color: var(--text-secondary); opacity: 0.6; }

/* ========== VOUCHER ========== */
#voucherListContainer::-webkit-scrollbar { width: 4px; }
#voucherListContainer::-webkit-scrollbar-track { background: var(--bg-primary); border-radius: 10px; }
#voucherListContainer::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; }

/* ========== STATISTICS ========== */
#statisticsSection .glass-card { background: var(--bg-secondary); }

/* ========== FORGOT PASSWORD ========== */
#forgotPasswordSection .glass-card { background: var(--bg-secondary); }

/* ========== WITHDRAW ========== */
#withdrawSection .glass-card { background: var(--bg-secondary); }

/* ========== CUSTOMER SERVICE ========== */
#customerServiceSection .glass-card { background: var(--bg-secondary); }

.sosmed-card { display: flex; align-items: center; padding: 14px 16px; border-radius: var(--radius); gap: 14px; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); border: 1px solid var(--glass-border); }
.sosmed-card:hover { transform: translateX(5px); box-shadow: var(--shadow); }
.sosmed-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; backdrop-filter: blur(4px); }
.sosmed-info { flex: 1; }
.sosmed-info h4 { font-size: 14px; font-weight: 600; }
.sosmed-info small { font-size: 11px; color: rgba(255, 255, 255, 0.5); }

.payget-wa { background: linear-gradient(135deg, #0a1a0f, #142a1a) !important; border: 1px solid rgba(37, 211, 102, 0.15) !important; }
.payget-tele { background: linear-gradient(135deg, #081420, #142838) !important; border: 1px solid rgba(0, 136, 204, 0.15) !important; }
.payget-wa-channel { background: linear-gradient(135deg, #0a1a0f, #142a1a) !important; border: 1px solid rgba(37, 211, 102, 0.15) !important; }

body.light-mode .payget-wa { background: linear-gradient(135deg, #e8f5e9, #c8e6c9) !important; border: 1px solid rgba(37, 211, 102, 0.25) !important; }
body.light-mode .payget-tele { background: linear-gradient(135deg, #e3f2fd, #bbdefb) !important; border: 1px solid rgba(0, 136, 204, 0.25) !important; }
body.light-mode .payget-wa-channel { background: linear-gradient(135deg, #e8f5e9, #c8e6c9) !important; border: 1px solid rgba(37, 211, 102, 0.25) !important; }
body.light-mode .sosmed-info small { color: rgba(0, 0, 0, 0.5) !important; }

/* ============================================
   NOVACTRL RAINBOW BORDER
   ============================================ */

@keyframes rainbowBorder {
    0% { border-color: #ff0000; }
    16% { border-color: #ff8800; }
    33% { border-color: #ffff00; }
    50% { border-color: #00ff00; }
    66% { border-color: #0088ff; }
    83% { border-color: #8800ff; }
    100% { border-color: #ff0000; }
}

.novactrl-rainbow {
    border: 3px solid transparent !important;
    animation: rainbowBorder 3s linear infinite !important;
    background: linear-gradient(135deg, var(--bg-secondary), #1a1a2e) !important;
}

.novactrl-rainbow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
}

/* ============================================
   NOVACTRL MODAL
   ============================================ */

#novactrlModal .modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
    max-width: 550px;
}

#novactrlModal .modal-header h3 {
    color: #8b5cf6;
}
#novactrlModal .modal-header h3 i {
    color: #8b5cf6;
}

#novactrlPackages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

#novactrlPackages > div {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

#novactrlPackages > div .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 7px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    color: #fff;
}

#novactrlPackages > div .package-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

#novactrlPackages > div .package-name {
    font-weight: 600;
    font-size: 11px;
    color: var(--text-primary);
}

#novactrlPackages > div .package-price {
    font-size: 16px;
    font-weight: 700;
    color: #4ade80;
    margin: 4px 0;
}

#novactrlPackages > div .package-duration {
    font-size: 9px;
    color: var(--text-secondary);
}

#novactrlPackages > div .package-role {
    font-size: 8px;
    margin-top: 2px;
}

.btn-novactrl {
    padding: 8px 20px;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    transition: all var(--transition);
}

.btn-novactrl:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-novactrl:active {
    transform: scale(0.95);
}

/* ============================================
   JASA BUG MODAL
   ============================================ */

#bugServiceModal .modal-content {
    border: 1px solid rgba(239, 68, 68, 0.2);
}

#bugServiceModal .modal-header h3 {
    color: #ef4444;
}
#bugServiceModal .modal-header h3 i {
    color: #ef4444;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .sidebar { width: 280px; left: -300px; padding: 16px; }
    .sidebar.active { left: 0; }
    .banner-large { height: 160px; }
    .banner-slider { height: 120px; }
    .auth-banner img { height: 100px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .product-item { padding: 8px; min-height: 170px; }
    .product-item img { aspect-ratio: 1/1; }
    .product-item h4 { font-size: 10px; min-height: 24px; }
    .product-item .price { font-size: 11px; }
    .product-item button { font-size: 9px; padding: 4px 6px; }
    .quick-menu { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .quick-item { padding: 10px 6px; }
    .quick-item i { font-size: 18px; }
    .quick-item span { font-size: 9px; }
    .stats-simple { padding: 12px; }
    .stat-value { font-size: 15px; }
    .modal-content { padding: 20px; max-width: 95%; }
    .bottom-nav { padding: 8px 0; bottom: 8px; left: 8px; right: 8px; }
    .nav-item i { font-size: 20px; }
    .banner-btn { padding: 6px 10px; font-size: 14px; }
    #qrisContainer img { width: 150px; height: 150px; }
    #qrisManualModal .btn-primary { font-size: 11px; padding: 8px 12px; min-width: 80px; }
    .category-scroll { gap: 6px; padding: 6px 0 10px 0; }
    .cat-item { font-size: 11px; padding: 6px 14px; }
    .nominal-btn { font-size: 10px; padding: 6px 4px; }
    .metode-btn { font-size: 10px; padding: 6px 4px; }
    #depositModal .modal-content { padding: 18px; max-width: 100%; }
    .sidebar-item { font-size: 13px; padding: 8px 12px; }
    .sidebar-item i { font-size: 15px; width: 20px; }
    .menu-label { font-size: 9px; padding: 2px 10px 6px 10px; }
    .saldo-large h2 { font-size: 22px !important; }
    .saldo-large .fa-wallet { font-size: 20px !important; }
    .saldo-large { padding: 14px 16px !important; }
    #historyModal .modal-content { max-width: 95% !important; max-height: 85vh !important; padding: 16px !important; }
    #productForm { padding: 14px !important; }
    .star-rating { font-size: 24px; }
    .sosmed-card { padding: 12px 14px; }
    .sosmed-icon { width: 38px; height: 38px; font-size: 17px; }
    .sosmed-info h4 { font-size: 13px; }
    
    /* NOVACTRL Responsive */
    #novactrlModal .modal-content { padding: 15px; max-width: 95%; }
    #novactrlPackages { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
    #novactrlPackages > div { padding: 10px 8px; }
    #novactrlPackages > div .package-icon { font-size: 20px; }
    #novactrlPackages > div .package-name { font-size: 10px; }
    #novactrlPackages > div .package-price { font-size: 14px; }
    #novactrlPackages > div .package-duration { font-size: 8px; }
    
    /* NOVACTRL Rainbow Responsive */
    .novactrl-rainbow { padding: 12px 14px !important; }
    .novactrl-rainbow .fa-mobile-alt { font-size: 28px !important; }
    .novactrl-rainbow h4 { font-size: 12px !important; }
    .novactrl-rainbow .btn-novactrl { font-size: 10px !important; padding: 6px 14px !important; }
}

@media (min-width: 768px) {
    .banner-large { height: 250px; }
    .banner-slider { height: 200px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .product-item { min-height: 280px; }
    #novactrlPackages { grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }
}

@media (min-width: 1024px) {
    .banner-large { height: 300px; }
    .banner-slider { height: 250px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
    .product-item { min-height: 320px; }
    .bottom-nav { max-width: 500px; left: 50%; right: auto; transform: translateX(-50%); }
    #novactrlPackages { grid-template-columns: repeat(4, 1fr) !important; gap: 14px !important; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#novactrlPackages > div .badge {
    animation: pulse 2s infinite;
}

.btn-novactrl {
    position: relative;
    overflow: hidden;
}

.btn-novactrl::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-novactrl:hover::after {
    opacity: 1;
}