:root {
    --bg-body: #f4f7f6;       
    --bg-card: #ffffff;       
    --text-main: #2c3e50;     
    --text-sub: #7f8c8d;      
    --primary-color: #00897b; 
    --primary-light: #e0f2f1;
    --border-color: #ecf0f1;  
    --nav-bg: #ffffff; 
    --accent-color: #f39c12;  
    --danger-color: #e74c3c;
    --popup-bg-detail: #f8f9fa;
    --header-overlay: rgba(0, 137, 123, 0.85);
}

body.dark-mode {
    --bg-body: #121212; 
    --bg-card: #1e1e1e; 
    --text-main: #ecf0f1; 
    --text-sub: #95a5a6; 
    --primary-color: #4db6ac; 
    --primary-light: #004d40; 
    --border-color: #2c3e50; 
    --nav-bg: #1e1e1e; 
    --popup-bg-detail: #252525;
    --header-overlay: rgba(0, 0, 0, 0.7);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Roboto, sans-serif; 
    -webkit-tap-highlight-color: transparent; 
}

body { 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    min-height: 100vh; 
    overflow-x: hidden; 
    display: block;
    padding-bottom: 70px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

@keyframes bellShake {
    0% { transform: rotate(0); }
    15% { transform: rotate(5deg); }
    30% { transform: rotate(-5deg); }
    45% { transform: rotate(4deg); }
    60% { transform: rotate(-4deg); }
    75% { transform: rotate(2deg); }
    85% { transform: rotate(-2deg); }
    100% { transform: rotate(0); }
}

.page-section { 
    display: none; 
    width: 100%; 
    animation: fadeIn 0.3s ease-in-out; 
}

.page-section.active { 
    display: block; 
}

.header-home { 
    background: var(--primary-color);
    color: white; 
    padding: 15px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-home h1 { 
    font-size: 18px; 
    font-weight: 600; 
    margin-left: 15px; 
    flex-grow: 1; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); 
}

.header-clean { 
    background-color: var(--bg-card); 
    color: var(--text-main); 
    padding: 15px 20px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    border-bottom: 1px solid var(--border-color); 
}

.header-solid { 
    background-color: var(--primary-color); 
    color: white; 
    padding: 15px 20px; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}

.sticky-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-solid-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px; 
    position: relative;
    z-index: 2;
}

.tab-solid-container {
    background-color: var(--primary-color);
    position: relative;
    top: 0; 
    z-index: 1;
    padding-bottom: 5px;
}

.tab-solid .tab-item-clean {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tab-solid .tab-item-clean:hover { color: white; }

.tab-solid .tab-item-clean.active {
    color: #ffffff;
}

.tab-solid .tab-item-clean.active::after {
    background-color: #f1c40f;
    height: 3px;
    border-radius: 3px;
    width: 60%;
    left: 20%;
    bottom: 5px;
    position: absolute;
    content: '';
}

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 998; display: none; cursor: pointer; }
.overlay.show { display: block; }

.sidebar { position: fixed; top: 0; left: -100%; width: 85%; max-width: 300px; height: 100%; background: var(--bg-card); z-index: 999; transition: left 0.3s; }
.sidebar.active { left: 0; }

.sidebar-header {
    background: var(--primary-color);
    padding: 40px 20px 30px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-pic {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 30px;
    margin: 0 auto 15px auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.shape-blob {
    position: absolute;
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 50%;
    z-index: 1;
}

.shape-blob.one {
    width: 150px;
    height: 150px;
    top: -50px;
    right: -50px;
}

.shape-blob.two {
    width: 100px;
    height: 100px;
    top: 20px;
    right: -20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}

.sidebar-menu { list-style: none; }
.sidebar-menu li {
    padding: 15px 25px;
    border-bottom: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar-menu li:hover {
    color: var(--primary-color);
}

.sidebar-menu li i {
    width: 25px;
    color: var(--text-sub);
}

.saldo-wrapper { padding: 10px 20px 0 20px; }
.saldo-card {
    background: var(--bg-card);
    border-radius: 15px; 
    padding: 0;
    margin-bottom: 5px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

.saldo-top {
    padding: 25px 25px 20px 25px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-divider {
    height: 1px;
    background: var(--border-color); 
    margin: 0 25px;
    width: auto;
}

.saldo-stats {
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-body); 
    border-top: 1px solid var(--border-color); 
}

.saldo-info h3 { 
    font-size: 13px; 
    color: var(--text-sub); 
    margin: 0; 
}

.saldo-info .amount { 
    font-size: 20px;
    font-weight: 800; 
    color: var(--primary-color); 
    letter-spacing: 0.5px;
    margin-top: 2px;
}

#eyeIcon:hover {
    color: var(--primary-color);
}

.qr-icon { background: var(--accent-color); color: white; width: 45px; height: 45px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; transition: transform 0.1s; cursor: pointer; }
.qr-icon:active { transform: scale(0.9); }

.banner-section {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 15px;
    padding: 0; 
    overflow: hidden; 
}

.carousel {
    width: 90%; 
    margin: 0 auto; 
    position: relative;
    overflow: visible; 
    aspect-ratio: 20 / 9;
    height: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%; 
    height: 100%;
    position: relative;
    padding: 0 6px; 
    box-sizing: border-box; 
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0,0,0,0.2); 
    padding: 4px 8px;
    border-radius: 20px;
}

.dot { 
    width: 8px; 
    height: 8px; 
    background: rgba(255,255,255,0.5); 
    border-radius: 50%; 
    transition: 0.3s; 
    cursor: pointer;
}

.dot.active { 
    width: 25px; 
    background: #fff; 
    border-radius: 10px; 
}

.section-label { padding: 0 20px 10px 20px; font-size: 15px; font-weight: 700; color: var(--text-main); }

#page-panel { padding-bottom: 100px; }
.panel-hero { position: relative; height: 180px; width: 100%; background: url('images/panel.jpg') center/cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%); }
.hero-content { position: absolute; bottom: 20px; left: 20px; right: 20px; display: flex; align-items: center; color: white; }
.hero-thumb-img { width: 60px; height: 60px; border-radius: 10px; border: 2px solid white; margin-right: 15px; object-fit: cover; background: #fff; }
.hero-details h2 { font-size: 18px; margin-bottom: 5px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.cara-beli-btn { font-size: 12px; background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 20px; color: white; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(4px); }

.panel-content { padding: 20px 15px; }
.step-box { background: var(--bg-card); border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); border: 1px solid var(--border-color); }
.step-header { display: flex; align-items: center; margin-bottom: 15px; }
.step-badge { background: var(--primary-color); color: white; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 13px; margin-right: 10px; }
.step-title { font-weight: bold; font-size: 15px; color: var(--text-main); }
.panel-input { width: 100%; padding: 14px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-body); color: var(--text-main); font-size: 14px; outline: none; }

.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prod-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px; /* Tinggi seragam */
    text-align: center;
}

.prod-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.prod-card.selected {
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
}

.prod-card.disabled {
    background-color: #f9f9f9; 
    opacity: 0.6;
    cursor: not-allowed !important;
    border-color: #eee;
    filter: grayscale(0.2);
    pointer-events: none;
}

.badge-habis {
    background-color: #ffebee; 
    color: #c62828;            
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin: 5px 0;
}

/* Badge Ready (Hijau Soft) */
.badge-ready {
    background-color: #e0f2f1;
    color: #00695c;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin: 5px 0;
}

.prod-name { font-size: 14px; font-weight: bold; color: var(--text-main); margin-bottom: 5px; display: block; line-height: 1.3; }
.prod-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.prod-card.disabled .prod-price {
    color: #95a5a6;
    text-decoration: line-through;
}

.pay-method-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px; border-radius: 10px; border: 1px solid var(--border-color);
    background: var(--bg-body); cursor: pointer; transition: 0.2s;
}
.pay-method-item:hover { background: #f0f0f0; }
.pay-method-item.active {
    background: var(--primary-light); border: 1px solid var(--primary-color);
}
.pay-method-item .check-icon { display: none; color: var(--primary-color); font-size: 20px; }
.pay-method-item.active .check-icon { display: block; }

.panel-list-item {
    background: var(--bg-card); padding: 15px; border-radius: 10px;
    margin-bottom: 10px; border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sticky-footer { 
    position: fixed; bottom: 0; left: 0; width: 100%; background: var(--bg-card); 
    border-top: 1px solid var(--border-color); padding: 15px 20px; 
    display: flex; flex-direction: column; gap: 10px; z-index: 950;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05); 
}
.footer-alert { background: #fff3cd; color: #856404; font-size: 12px; padding: 10px; border-radius: 6px; display: flex; align-items: center; gap: 8px; }
.footer-action { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.f-price { font-size: 18px; font-weight: bold; color: var(--primary-color); }
.btn-buy { background: #bdc3c7; color: white; padding: 12px 30px; border-radius: 25px; font-weight: bold; font-size: 14px; border: none; cursor: not-allowed; transition: 0.3s; }
.btn-buy.active { background: var(--primary-color); cursor: pointer; }

.tab-clean { display: flex; justify-content: space-around; }
.tab-item-clean { padding: 15px 0; font-size: 14px; font-weight: 600; color: var(--text-sub); cursor: pointer; flex: 1; text-align: center; position: relative; }
.trx-list { padding: 0; }
.trx-item { background: var(--bg-card); padding: 15px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.status-badge { font-size: 10px; padding: 4px 8px; border-radius: 4px; color: white; font-weight: bold; }
.st-sukses { background: #4caf50; } 
.st-gagal { background: #e74c3c; } 
.st-pending { background: #ff9800; }

.confirm-modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.7); z-index: 2100; 
    display: none; justify-content: center; align-items: center; padding: 20px; 
}
.confirm-box-pro { 
    background: var(--bg-card); width: 100%; max-width: 340px; 
    border-radius: 20px; overflow: hidden; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.25); 
    opacity: 0; transform: scale(0.9); transition: all 0.3s; 
    max-height: 90vh; display: flex; flex-direction: column;
}
.confirm-modal-overlay.show { display: flex; }
.confirm-modal-overlay.show .confirm-box-pro { opacity: 1; transform: scale(1); }

.confirm-pro-header { padding: 20px 20px 10px; display: flex; justify-content: space-between; align-items: center; }
.confirm-pro-header h3 { font-size: 16px; margin: 0; color: var(--text-main); font-weight: 700; }
.icon-shield { width: 32px; height: 32px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 14px; margin-right: 10px; }

.invoice-box { margin: 10px 20px; padding: 15px; border-radius: 12px; background: var(--popup-bg-detail); border: 1px solid var(--border-color); }
.inv-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.inv-label { color: var(--text-sub); }
.inv-val { font-weight: 600; color: var(--text-main); text-align: right; }
.total-section { padding: 15px 20px 20px; display: flex; justify-content: space-between; align-items: center; }
.total-label { font-size: 14px; color: var(--text-sub); }
.total-val { font-size: 20px; font-weight: 800; color: var(--primary-color); }
.btn-pay-pro { margin: 0 20px 20px; width: calc(100% - 40px); padding: 14px; background: var(--primary-color); color: white; border: none; border-radius: 12px; font-weight: bold; font-size: 14px; cursor: pointer; box-shadow: 0 6px 15px rgba(0, 137, 123, 0.25); transition: transform 0.1s; }
.btn-pay-pro:active { transform: scale(0.98); }

.invoice-list { display: flex; flex-direction: column; gap: 10px; }
.inv-row-detail { display: flex; justify-content: space-between; align-items: flex-start; font-size: 13px; }
.inv-lbl { color: var(--text-sub); flex: 1; }
.inv-val { color: var(--text-main); font-weight: 600; flex: 1.5; text-align: right; word-break: break-all; }

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; display: none; justify-content: center; align-items: center; }
.modal.show { display: flex; }
.modal-content { background: var(--bg-card); width: 90%; max-width: 320px; padding: 25px; border-radius: 15px; position: relative; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.cs-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; margin-bottom: 10px; border-radius: 10px; color: white; text-decoration: none; font-weight: bold; font-size: 14px; }

.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--nav-bg); display: flex; justify-content: space-around; padding: 10px 0; z-index: 1000; border-top: 1px solid var(--border-color); box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }
.nav-item { flex: 1; text-align: center; color: var(--text-sub); cursor: pointer; }
.nav-item i { font-size: 20px; margin-bottom: 4px; display: block; }
.nav-item span { font-size: 10px; font-weight: 500; }
.nav-item.active { color: var(--primary-color); }

.profile-header-container {
    position: relative;
    margin-bottom: 50px;
}

.profile-banner {
    width: 100%;
    height: 160px;
    background-color: #ddd;
    background-image: url('images/logo.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.edit-btn-banner {
    position: absolute;
    right: 15px;
    bottom: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.profile-avatar-wrapper {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    background: var(--bg-card);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.profile-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.edit-btn-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    border: 2px solid var(--bg-card);
}

.profile-body {
    padding: 10px 20px;
}

.form-group-pro { margin-bottom: 15px; }
.form-group-pro label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 5px; }
.input-pro {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    outline: none;
}
.input-pro.readonly { background: #eee; color: #888; cursor: not-allowed; }

.profile-pic-container {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    overflow: hidden;
    background: white;
}

.profile-pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-fullname {
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin-bottom: 2px;
    text-transform: capitalize;
}

.side-username {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    margin-bottom: 2px;
}

.side-phone {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-family: monospace;
}

.auth-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('images/logo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    text-align: center;
}

.auth-header {
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.auth-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.input-box {
    position: relative;
    margin-bottom: 15px;
}

.input-box i.icon-start {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
    z-index: 2;
}

.input-box input {
    width: 100%;
    padding: 14px 45px;
    border-radius: 12px;
    border: none;
    background: #ffffff;
    font-size: 14px;
    color: #333;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.input-box input::placeholder {
    color: #aaa;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    font-size: 16px;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-weight: 800;
    font-size: 16px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 137, 123, 0.4);
    transition: transform 0.2s;
}

.btn-auth:active {
    transform: scale(0.98);
}

.auth-footer {
    margin-top: 25px;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.auth-footer a {
    color: #81ecec;
    font-weight: bold;
    text-decoration: none;
}

.otp-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.otp-box {
    width: 45px;
    height: 55px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.swal2-container {
    z-index: 20000 !important;
}

.swal2-popup {
    font-size: 14px !important;
    border-radius: 15px !important;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    padding: 0 20px 15px 20px;
    gap: 15px;
    margin-top: 15px; 
}

.stat-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 15px 10px;
    flex: 1;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s, box-shadow 0.2s;
}

.stat-card:active {
    transform: scale(0.95);
}

.stat-icon-bg {
    width: 40px;
    height: 40px;
    background: #ffebee; 
    color: #e74c3c;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
}

.stat-num {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-sub);
    font-weight: 500;
}

.fin-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.fin-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.fin-icon.green { background: #e0fdf4; color: #10b981; }
.fin-icon.orange { background: #fff7ed; color: #f97316; }

.fin-label { font-size: 11px; color: #94a3b8; margin-bottom: 3px; font-weight: 500; }
.fin-value { font-size: 15px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }
.fin-value.green { color: #10b981; }

.fin-separator {
    width: 1px;
    height: 40px; 
    background: #f1f2f6;
    margin: 0 15px;
}

.account-stats-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-card {
    background: #2c3e50;
    border-radius: 15px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    position: relative;
}

.chart-card::before {
    display: none; 
}

.chart-badge {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.stats-grid-rekap {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.rekap-box {
    flex: 1;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rk-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.rk-icon.in { background: #e8f5e9; color: #2ecc71; }
.rk-icon.out { background: #ffebee; color: #e74c3c; }

.rk-label { font-size: 11px; color: var(--text-sub); margin-bottom: 2px; }
.rk-val { font-size: 14px; font-weight: 800; color: var(--text-main); }

.detail-rekap-list {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.rk-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 13px;
}
.rk-row:last-child { border-bottom: none; }
.rk-left { display: flex; align-items: center; gap: 10px; color: var(--text-sub); }
.rk-right { font-weight: 600; color: var(--text-main); }

.product-container {
    background: var(--bg-card);
    width: 100%;
    margin: 15px 0 0 0;
    padding: 0;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.03); 
    border-top: 1px solid var(--border-color);
    transition: background 0.3s ease; 
}

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

.prod-header h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.bonus-badge {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(46, 204, 113, 0.08);
}

.menu-grid-clean {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px 10px;
    padding: 25px 20px 40px 20px;
}

.menu-item-clean {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-item-clean:active { transform: scale(0.98); }

.prod-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 8px;
}

.menu-item-clean span {
    font-size: 12px;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.2;
}

.panel-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.panel-scroll-container::-webkit-scrollbar {
    height: 4px; 
}
.panel-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}

.panel-card-item {
    min-width: 280px; 
    max-width: 280px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    flex-shrink: 0;
}

.panel-card-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px dashed #eee; padding-bottom: 10px; margin-bottom: 10px;
}

.panel-label { font-size: 10px; color: #888; margin-top: 8px; }
.panel-val { font-size: 13px; font-weight: bold; color: #333; word-break: break-all; font-family: monospace; }
.panel-val.highlight { color: var(--primary-color); }

.btn-copy-panel {
    margin-top: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-copy-panel:active { transform: scale(0.95); }

.btn-claim-warranty {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 8px;
    border-radius: 8px;
    font-size: 11px;
    margin-top: 10px;
    cursor: pointer;
    text-align: center;
}

.nav-item { position: relative; }

.nav-badge {
    position: absolute;
    top: 5px;
    right: 25px; 
    width: 10px;
    height: 10px;
    background-color: #e74c3c;
    border-radius: 50%;
    border: 2px solid white;
    display: none; 
    z-index: 10;
}

.nav-badge.show { display: block; }
.shake-bell { animation: bellShake 2s infinite; color: #e74c3c !important; }

@media (min-width: 768px) {
    .banner-section { margin-top: 30px; }
}

.notif-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notif-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notif-card.deposit { border-left-color: #2ecc71; }
.notif-card.panel { border-left-color: #3498db; }
.notif-card.admin { border-left-color: #f39c12; background: #fffdf5; }

body.dark-mode .notif-card.admin { background: #2c2518; }

.notif-icon {
    min-width: 35px;
    height: 35px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.notif-content { flex: 1; }
.notif-desc { font-size: 11px; color: var(--text-sub); line-height: 1.4; }
.notif-time { font-size: 10px; color: #aaa; margin-top: 5px; text-align: right; }
.notif-time i { font-size: 9px; margin-right: 3px; }

.sms-popup {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 350px;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    border: 1px solid rgba(0,0,0,0.05);
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

body.dark-mode .sms-popup {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid #333;
    color: white;
}

.sms-popup.show {
    top: 20px;
}

.sms-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #00897b, #2ecc71);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

.sms-content {
    flex: 1;
}

.sms-title {
    font-size: 12px;
    font-weight: bold;
    color: #00897b;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sms-text {
    font-size: 13px;
    color: #333;
    line-height: 1.3;
    font-weight: 500;
}

body.dark-mode .sms-text {
    color: #ddd;
}

#page-script {
    padding-bottom: 120px; 
}

.sticky-footer {
    z-index: 2000;
}

/* ========================================= */
/* PREMIUM LOADER STYLE (V2)           */
/* ========================================= */

.premium-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradasi Background Mewah (Light Mode) */
    background: linear-gradient(135deg, #ffffff 0%, #f4f7f6 100%);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
}

/* Support Dark Mode Automatis */
body.dark-mode .premium-loader {
    /* Gradasi Dark Mode Mewah */
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
}

.loader-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 20px;
}

/* --- 1. LOGO ANIMATION --- */
.loader-logo-box {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 25px auto;
}

.floating-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Bulat */
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 3px solid var(--primary-color);
    animation: float 3s ease-in-out infinite; /* Animasi Melayang */
}

/* Efek Cahaya di belakang logo */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    filter: blur(20px);
    opacity: 0.4;
    animation: pulse-glow 2s infinite;
    z-index: 1;
}

/* --- 2. TYPOGRAPHY --- */
.text-animate-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.loader-brand {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.loader-welcome {
    font-size: 14px;
    color: var(--text-sub);
    font-weight: 500;
    margin-bottom: 20px;
}

/* --- 3. TYPING EFFECT STYLE --- */
.typing-wrapper {
    font-size: 15px;
    color: var(--text-main);
    font-weight: 600;
    height: 30px; /* Menjaga tinggi agar tidak goyang */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.dynamic-text {
    color: var(--accent-color); /* Warna Emas/Orange biar kontras */
}

.cursor-blink {
    animation: blink 0.7s infinite;
    font-weight: 300;
    color: var(--text-sub);
}

/* --- 4. PROGRESS BAR --- */
.progress-container {
    width: 200px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 30px auto 0 auto;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    border-radius: 10px;
    animation: progressFill 3s ease-in-out forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.1; }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes progressFill {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

.premium-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.strength-container {
    margin-top: -10px;
    margin-bottom: 15px;
    display: none; 
}

.strength-bar-bg {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
    border-radius: 2px;
}

.strength-text {
    font-size: 11px;
    font-weight: 600;
    text-align: right;
}

.st-weak { background-color: #e74c3c; }
.st-medium { background-color: #f1c40f; } 
.st-strong { background-color: #2ecc71; } 

.txt-weak { color: #e74c3c; }
.txt-medium { color: #f1c40f; }
.txt-strong { color: #2ecc71; }

.menu-header {
    font-size: 10px;
    font-weight: 900;
    color: #aab7b8; 
    letter-spacing: 1.2px;
    padding: 25px 25px 8px 25px; 
    margin-top: 5px;
    border-top: 1px solid rgba(0, 0, 0, 0.06); 
    pointer-events: none;
    background: transparent !important;
    display: block;
}

.menu-header:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 10px;
}

body.dark-mode .menu-header {
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Switch Toggle untuk Proxy Cloudflare */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #f39c12; /* Warna Orange Cloudflare */
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
