@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #041421; --card-bg: #0a243a; --card-hover: #10324d; 
    --primary: #0ea5e9; --primary-hover: #0284c7; --text-main: #f0f9ff; 
    --text-muted: #94a3b8; --border-color: #173b5c; --success: #10b981; 
    --danger: #ef4444; --radius: 20px; --nav-bg: rgba(4, 20, 33, 0.85);
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

body.light-mode {
    --bg-color: #f0f9ff; --card-bg: #ffffff; --card-hover: #f4fbfd; 
    --primary: #0284c7; --primary-hover: #0369a1; --text-main: #0f172a; 
    --text-muted: #64748b; --border-color: #e0f2fe; --nav-bg: rgba(240, 249, 255, 0.85);
    --shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Nunito', system-ui, -apple-system, sans-serif; }

html, body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; padding: 0; overflow-x: hidden; }
body { background-color: var(--bg-color); color: var(--text-main); transition: background-color 0.4s ease, color 0.4s ease; }

.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-warning { color: #f59e0b; }
.text-success { color: var(--success); }
.w-100 { width: 100%; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background-color: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 50; transition: 0.4s ease; width: 100%; }
@media (min-width: 992px) { .navbar { padding: 16px 20px; } }

.nav-brand { font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 10px; white-space: nowrap; letter-spacing: 0.5px; }
.nav-actions { display: flex; gap: 16px; align-items: center; }
.btn-icon { background: none; border: none; color: var(--text-main); font-size: 20px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.btn-icon:hover { color: var(--primary); transform: scale(1.15) rotate(5deg); }

.search-input { display: none; flex: 1; margin-right: 16px; width: auto; padding: 12px 20px; border-radius: 20px; border: 2px solid var(--border-color); background-color: var(--card-bg); color: var(--text-main); outline: none; font-size: 15px; font-weight: 600; animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; box-shadow: var(--shadow); }
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

main.container { flex-grow: 1; width: 100%; max-width: 100% !important; margin: 15px auto; padding: 0 10px !important; display: flex; flex-direction: column; gap: 20px; padding-bottom: 140px; }
@media (min-width: 992px) { main.container { padding: 0 16px !important; } }

.card { background-color: var(--card-bg); padding: 24px 18px; border-radius: var(--radius); border: 1px solid var(--border-color); box-shadow: var(--shadow); transition: 0.3s ease; width: 100%; }
.card.border-0 { border: none; box-shadow: none; padding: 0; background: transparent; }

.section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 0 6px; }
.section-header h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.2px; margin: 0; }
.step-number { background-color: var(--primary); color: white; width: 30px; height: 30px; border-radius: 10px; display: flex; justify-content: center; align-items: center; font-size: 15px; font-weight: 800; box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3); flex-shrink: 0; }
.sub-heading { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; }

.input-wrapper { position: relative; display: flex; align-items: center; margin-bottom: 18px; width: 100%; }
.icon-input { position: absolute; left: 18px; color: var(--text-muted); font-size: 16px; }
.input-wrapper input, .input-wrapper textarea, .input-wrapper select { width: 100%; padding: 16px 16px 16px 48px; background-color: var(--bg-color); border: 2px solid var(--border-color); color: var(--text-main); border-radius: 16px; font-size: 16px; outline: none; transition: 0.3s ease; font-weight: 700; }
.input-wrapper input:focus, .input-wrapper textarea:focus, .input-wrapper select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15); background-color: var(--card-bg); }
.input-wrapper input::placeholder, .input-wrapper textarea::placeholder { font-weight: 500; opacity: 0.7; }
.helper-text { display: block; font-size: 13px; color: var(--text-muted); margin-top: -8px; font-weight: 600; }

.category-wrap, .type-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-category, .btn-type { padding: 12px 20px; background-color: var(--card-bg); border: 2px solid var(--border-color); border-radius: 14px; color: var(--text-muted); font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); user-select: none; flex-grow: 1; text-align: center; max-width: max-content; white-space: normal; word-wrap: break-word; }
.btn-category { font-size: 15px; padding: 14px 24px; border-radius: 16px; }
.btn-category:hover, .btn-type:hover { border-color: var(--primary); color: var(--text-main); transform: translateY(-2px); box-shadow: 0 6px 15px -3px rgba(14, 165, 233, 0.15); }
.btn-category.active, .btn-type.active { background-color: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35); }

.brand-wrap, .storefront-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; width: 100% !important; }
@media (min-width: 576px) { .brand-wrap, .storefront-grid { grid-template-columns: repeat(5, 1fr) !important; gap: 12px !important; } }
@media (min-width: 992px) { .brand-wrap, .storefront-grid { grid-template-columns: repeat(8, 1fr) !important; gap: 16px !important; } }

.storefront-card { background-color: var(--card-bg); border: 2px solid var(--border-color); border-radius: 16px; padding: 8px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 8px; position: relative; overflow: hidden; height: 100%; }
.storefront-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 20px -4px rgba(14, 165, 233, 0.25); }

.storefront-img-wrap { width: 100%; aspect-ratio: 1 / 1; background: transparent; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 0 !important; overflow: hidden; flex-shrink: 0; box-shadow: inset 0 2px 6px rgba(0,0,0,0.05); }
.storefront-img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 12px; }
.storefront-card:hover .storefront-img { transform: scale(1.10); }

.storefront-title { font-size: 11px; font-weight: 800; color: var(--text-main); line-height: 1.3; display: block; word-wrap: break-word; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; -webkit-line-clamp: unset !important; width: 100%; }

@media (min-width: 992px) { 
    .storefront-card { padding: 14px; gap: 12px; border-radius: 18px; }
    .storefront-img-wrap { border-radius: 14px; }
    .storefront-title { font-size: 13.5px; } 
}

.storefront-initials { font-size: 26px; font-weight: 900; color: var(--primary); text-transform: uppercase; text-shadow: 0 4px 10px rgba(14, 165, 233, 0.2); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; width: 100%; }
.product-card { background-color: var(--card-bg); border: 2px solid var(--border-color); border-radius: 18px; padding: 18px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 100px; position: relative; overflow: hidden; height: 100%; }
.product-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 20px -4px rgba(14, 165, 233, 0.2); }
.product-card.selected { border-color: var(--primary); background-color: rgba(14, 165, 233, 0.08); box-shadow: 0 0 0 1px var(--primary); }
.product-name { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text-main); word-wrap: break-word; }
.product-price { font-size: 16px; font-weight: 800; color: var(--primary); }

.payment-list { display: flex; flex-direction: column; gap: 14px; width: 100%; }
@media (min-width: 992px) { .payment-list { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; } }

.payment-card { background-color: var(--card-bg); border: 2px solid var(--border-color); border-radius: 18px; padding: 18px 20px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: space-between; height: 100%; }
.payment-card:hover { border-color: var(--primary); transform: translateX(6px); box-shadow: 0 6px 15px -3px rgba(14, 165, 233, 0.15); }
.payment-card.selected { border-color: var(--success); background-color: rgba(16, 185, 129, 0.06); box-shadow: 0 0 0 1px var(--success); }
.payment-card.disabled { opacity: 0.5; cursor: not-allowed; border-color: var(--border-color) !important; transform: none !important; background: var(--bg-color) !important; }
.payment-left { display: flex; align-items: center; gap: 18px; }
.payment-logo { width: 70px; height: 28px; object-fit: contain; background: white; padding: 4px 8px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.payment-name { font-size: 15px; font-weight: 800; color: var(--text-main); }
.payment-radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--text-muted); transition: 0.3s ease; position: relative; flex-shrink: 0; }
.payment-card.selected .payment-radio { border-color: var(--success); background-color: var(--success); }
.payment-card.selected .payment-radio::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; background: white; border-radius: 50%; }

.checkout-bar { position: fixed; bottom: 0; left: 0; right: 0; width: 100%; background-color: var(--card-bg); padding: 16px 20px; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; z-index: 100; transition: 0.4s ease; box-shadow: 0 -8px 24px rgba(0,0,0,0.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 992px) { .checkout-bar { padding: 16px 3vw; } }

.checkout-info { display: flex; flex-direction: column; }
.checkout-label { font-size: 13px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.checkout-price { font-size: 22px; font-weight: 900; color: var(--text-main); }
.checkout-breakdown { display: none; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; line-height:1.4; }
.checkout-breakdown.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.btn-primary { background-color: var(--primary); color: white; border: none; padding: 16px 32px; border-radius: 16px; font-size: 16px; font-weight: 800; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; gap: 10px; box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35); }
.btn-primary:hover:not(:disabled) { background-color: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(14, 165, 233, 0.45); }
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(0.96); }
.btn-primary:disabled { background-color: var(--border-color); color: var(--text-muted); cursor: not-allowed; box-shadow: none; transform: none; }

.btn-cs-floating { position: fixed; bottom: 110px; right: 24px; background-color: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 30px; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); cursor: pointer; z-index: 105; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: none; text-decoration: none; }
.btn-cs-floating:hover { transform: scale(1.15) rotate(-10deg); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5); }

.footer { border-top: 1px solid var(--border-color); background-color: var(--bg-color); text-align: center; padding: 24px 20px; font-size: 14px; color: var(--text-muted); font-weight: 600; margin-top: auto; width: 100%; z-index: 10; position: relative; }

.marquee-container { background: linear-gradient(90deg, var(--primary), var(--primary-hover)); color: white; padding: 12px 20px; font-size: 15px; font-weight: 800; overflow: hidden; white-space: nowrap; display: flex; align-items: center; box-shadow: inset 0 -2px 4px rgba(0,0,0,0.05); width: 100%; }
.marquee-text { display: inline-block; animation: scrollText 15s linear infinite; }
@keyframes scrollText { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

.banner-wrapper { position: relative; width: 100%; display: none; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.banner-slider { width: 100%; aspect-ratio: 16/9; overflow-x: auto; scroll-snap-type: x mandatory; display: flex; gap: 16px; scrollbar-width: none; }
.banner-slider::-webkit-scrollbar { display: none; }
.banner-slide { min-width: 100%; height: 100%; scroll-snap-align: start; object-fit: cover; border-radius: calc(var(--radius) - 2px); }
@media (min-width: 992px) { .banner-slider { aspect-ratio: 24/7; } .slide-nav { display: flex !important; } }

.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.35); color: white; border: none; width: 44px; height: 44px; border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 10; font-size: 20px; backdrop-filter: blur(6px); transition: 0.3s; opacity: 0.8; }
.slide-nav:hover { background: rgba(0, 0, 0, 0.7); opacity: 1; transform: translateY(-50%) scale(1.1); }
.slide-nav.prev { left: 16px; }
.slide-nav.next { right: 16px; }

.section-flash { background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, var(--card-bg) 100%); padding: 24px; border-radius: var(--radius); border: 2px solid rgba(239, 68, 68, 0.3); animation: glowFlash 2.5s infinite alternate ease-in-out; width: 100%; }
@keyframes glowFlash { from { border-color: rgba(239, 68, 68, 0.2); box-shadow: 0 0 10px rgba(239, 68, 68, 0.05); } to { border-color: rgba(239, 68, 68, 0.8); box-shadow: 0 0 25px rgba(239, 68, 68, 0.35); } }
.section-trending { background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, var(--card-bg) 100%); padding: 24px; border-radius: var(--radius); border: 2px solid rgba(245, 158, 11, 0.3); animation: glowTrending 2.5s infinite alternate ease-in-out; width: 100%; }
@keyframes glowTrending { from { border-color: rgba(245, 158, 11, 0.2); box-shadow: 0 0 10px rgba(245, 158, 11, 0.05); } to { border-color: rgba(245, 158, 11, 0.8); box-shadow: 0 0 25px rgba(245, 158, 11, 0.35); } }

.flash-card { border-color: rgba(239, 68, 68, 0.4) !important; background: var(--bg-color) !important; }
.flash-card .product-price { color: #ef4444 !important; }
.flash-card:hover { border-color: #ef4444 !important; box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25); }

/* Fix Timer Responsif HP */
.flash-timer { background: linear-gradient(90deg, #ef4444, #dc2626); color: white; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 800; letter-spacing: 1px; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35); display: inline-block; text-align: center; white-space: normal; }
@media (max-width: 576px) { .flash-timer { font-size: 11px; padding: 8px 12px; letter-spacing: 0.5px; line-height: 1.4; word-wrap: break-word; } }

.trending-card { border-color: rgba(245, 158, 11, 0.4) !important; background: var(--bg-color) !important; color: #d97706 !important; }
.trending-card:hover { border-color: #f59e0b !important; box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2); }

.info-section { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--card-bg); padding: 36px 24px; border-radius: var(--radius); border: 1px solid var(--border-color); box-shadow: var(--shadow); width: 100%; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 440px; margin-top: 12px; }
.contact-cta { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px; border-radius: 14px; font-weight: 800; text-decoration: none; transition: 0.3s; border: 2px solid var(--border-color); color: var(--text-main); font-size: 15px; background: var(--bg-color); }
.contact-cta:hover { border-color: var(--primary); background: var(--primary); transform: translateY(-3px); color: white; box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3); }

.policy-links { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; border-top: 1px solid var(--border-color); padding-top: 24px; width: 100%; margin-top: 16px; }
.policy-links a { color: var(--text-muted); text-decoration: none !important; font-size: 13.5px; font-weight: 800; text-transform: uppercase; transition: 0.2s; letter-spacing: 0.5px; display: inline-block; }
.policy-links a:hover, .policy-links a:active { color: var(--primary); }

.carousel-wrapper { overflow: hidden; width: 100%; padding: 10px 0; }
.carousel-track { display: flex; gap: 16px; width: max-content; animation: scrollCarousel 30s linear infinite; }
.carousel-track:hover, .carousel-track:active { animation-play-state: paused; }
.carousel-item { width: 150px; height: 80px; border-radius: 16px; background-color: #ffffff !important; display: flex; align-items: center; justify-content: center; padding: 12px; flex-shrink: 0; border: 2px solid #e2e8f0; box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.05); transition: 0.3s; }
.carousel-item:hover { transform: scale(1.08); box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1); border-color: var(--primary); }
.carousel-item img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }
@keyframes scrollCarousel { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 8px)); } }

.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 999; opacity: 0; pointer-events: none; transition: 0.4s ease; }
.sidebar-overlay.active { opacity: 1; pointer-events: all; }
.sidebar-menu { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background-color: var(--card-bg); z-index: 1000; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.1); border-left: 1px solid var(--border-color); }
.sidebar-menu.active { right: 0; }
.sidebar-header { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); }
.sidebar-content { padding: 24px; flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar-cta { display: flex; align-items: center; justify-content: center; gap: 10px; background-color: var(--success); color: white; padding: 12px 16px; border-radius: 12px; font-weight: 800; text-decoration: none !important; transition: 0.3s; margin-bottom: 24px; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); font-size: 14.5px; }
.sidebar-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); color: white; }
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.sidebar-nav li a { display: flex; align-items: center; gap: 16px; padding: 14px 20px; color: var(--text-main); text-decoration: none !important; font-weight: 700; font-size: 15px; border-radius: 14px; transition: 0.2s; background: transparent; }
.sidebar-nav li a i { font-size: 18px; color: var(--text-muted); width: 24px; text-align: center; transition: 0.2s; }
.sidebar-nav li a:hover, .sidebar-nav li a:active { background-color: rgba(14, 165, 233, 0.08); color: var(--primary); }
.sidebar-nav li a:hover i, .sidebar-nav li a:active i { color: var(--primary); }
.sidebar-footer { padding: 20px; text-align: center; font-size: 13px; font-weight: 700; color: var(--text-muted); border-top: 1px solid var(--border-color); background-color: var(--bg-color); letter-spacing: 0.5px; }

.level-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-top: 8px; }
.level-member { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: white; }
.level-reseller { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.level-vip { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }

.modal-overlay { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; background: rgba(0,0,0,0.85) !important; backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important; z-index: 999999 !important; display: flex !important; justify-content: center !important; align-items: center !important; opacity: 0; pointer-events: none; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: var(--card-bg); padding: 36px; border-radius: 24px; width: 90%; max-width: 440px; text-align: center; border: 1px solid var(--border-color); transform: translateY(20px) scale(0.95); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 24px 40px -10px rgba(0, 0, 0, 0.2); }
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-icon { font-size: 60px; margin-bottom: 24px; animation: bounceIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes bounceIn { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
.modal-content h3 { margin-bottom: 14px; font-size: 24px; font-weight: 800; color: var(--text-main); }
.modal-content p { color: var(--text-muted); font-size: 15px; line-height: 1.6; font-weight: 500; }

.custom-popup-overlay { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; background: rgba(0,0,0,0.6) !important; backdrop-filter: blur(5px) !important; -webkit-backdrop-filter: blur(5px) !important; z-index: 999999 !important; display: flex !important; justify-content: center !important; align-items: center !important; opacity: 0; pointer-events: none; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.custom-popup-overlay.active { opacity: 1; pointer-events: all; }
.custom-popup-box { background: var(--card-bg); width: 90%; max-width: 380px; border-radius: 24px; padding: 32px 24px; text-align: center; border: 1px solid var(--border-color); box-shadow: 0 20px 40px rgba(0,0,0,0.4); transform: scale(0.9); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.custom-popup-overlay.active .custom-popup-box { transform: scale(1); }
.popup-icon-container { font-size: 56px; margin-bottom: 20px; animation: bounceIn 0.5s ease; }
.popup-icon-container.info { color: var(--primary); text-shadow: 0 4px 15px rgba(14,165,233,0.4); }
.popup-icon-container.warning { color: #f59e0b; text-shadow: 0 4px 15px rgba(245,158,11,0.4); }
.popup-icon-container.error { color: var(--danger); text-shadow: 0 4px 15px rgba(239,68,68,0.4); }
.popup-icon-container.success { color: var(--success); text-shadow: 0 4px 15px rgba(16,185,129,0.4); }
.custom-popup-title { font-size: 22px; font-weight: 900; color: var(--text-main); margin-bottom: 12px; }
.custom-popup-msg { font-size: 15px; font-weight: 600; color: var(--text-muted); line-height: 1.6; margin-bottom: 28px; }
.custom-popup-actions { display: flex; gap: 12px; justify-content: center; }
.btn-popup { flex: 1; padding: 14px; border-radius: 14px; font-weight: 800; font-size: 15px; cursor: pointer; border: none; transition: 0.2s; }
.btn-popup-cancel { background: var(--bg-color); color: var(--text-main); border: 2px solid var(--border-color); }
.btn-popup-cancel:hover { background: var(--border-color); transform: translateY(-2px); }
.btn-popup-confirm { background: var(--primary); color: white; box-shadow: 0 6px 15px rgba(14,165,233,0.3); }
.btn-popup-confirm:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* ==============================================
   PRO ENGINEER: AUTO-LAYOUT SYSTEM HALAMAN CUSTOMER
============================================== */
body.page-cek main.container,
body.page-order main.container,
body.page-profil main.container,
body.page-deposit main.container { 
    display: block !important;
    max-width: 100% !important; 
    width: 100% !important;
    padding: 0 10px !important; 
}

@media (min-width: 992px) { 
    body.page-cek main.container,
    body.page-order main.container,
    body.page-profil main.container,
    body.page-deposit main.container { 
        padding: 0 16px !important; 
    } 
}

body.page-cek .card, 
body.page-order .card, 
body.page-profil .card, 
body.page-deposit .card { 
    width: 100% !important; 
    max-width: 100% !important; 
    text-align: left !important;
}

body.page-order main.container { padding-bottom: 140px !important; }
body.page-order .footer { margin-bottom: 100px !important; }

body.page-auth main.container { display: grid !important; place-items: center !important; align-content: center !important; min-height: calc(100vh - 160px) !important; padding: 20px !important; margin: 0 !important; }
body.page-auth .card { max-width: 420px !important; width: 100% !important; margin: 0 !important; padding: 40px 24px !important; border-radius: 24px !important; box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;}
body.page-auth .card h1, body.page-auth .card h2, body.page-auth .card h3, body.page-auth .card p, body.page-auth .card span, body.page-auth .card a, body.page-auth .card div { text-align: center !important; justify-content: center !important; }
body.page-auth .card form, body.page-auth .card .input-wrapper { width: 100% !important; }
body.page-auth .card input, body.page-auth .card input::placeholder { text-align: left !important; }
body.page-auth .card img, body.page-auth .card .icon-container { margin-left: auto !important; margin-right: auto !important; display: block !important; }

body.page-deposit .nominal-grid, body.page-deposit .product-grid, body.page-deposit .brand-wrap, body.page-deposit .category-wrap { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; width: 100%; }
body.page-deposit .payment-list { display: grid !important; grid-template-columns: 1fr !important; gap: 12px; }
@media (min-width: 576px) { body.page-deposit .nominal-grid, body.page-deposit .product-grid, body.page-deposit .brand-wrap, body.page-deposit .category-wrap { grid-template-columns: repeat(4, 1fr) !important; gap: 12px !important; } body.page-deposit .payment-list { grid-template-columns: repeat(2, 1fr) !important; } }
@media (min-width: 992px) { body.page-deposit .nominal-grid, body.page-deposit .product-grid, body.page-deposit .brand-wrap, body.page-deposit .category-wrap { grid-template-columns: repeat(5, 1fr) !important; gap: 16px !important; } body.page-deposit .payment-list { grid-template-columns: repeat(3, 1fr) !important; } }

@media (min-width: 992px) { .section-input, .section-types, .section-contact, .section-payment, .section-brands, .section-promo { max-width: 100% !important; width: 100% !important; } }

body.page-profil form, body.page-profil .input-wrapper, body.page-profil .row, body.page-profil .col-md-6 { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

/* ==============================================
   PRO ENGINEER: SHIMMERING EFFECT BULETPROOF (iOS/SAFARI COMPATIBLE)
   Menyala secara terbalik (-200%)
============================================== */
.shimmer-text {
    background: linear-gradient(90deg, var(--primary) 0%, #ffffff 50%, var(--primary) 100%);
    background-size: 200% auto;
    color: var(--primary); /* Fallback aman jika gradient gagal */
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important; /* WAJIB UNTUK HP APPLE/SAFARI */
    -webkit-animation: shimmerEffect 2.5s linear infinite;
    animation: shimmerEffect 2.5s linear infinite;
}
body.light-mode .shimmer-text {
    background: linear-gradient(90deg, var(--primary) 0%, #0f172a 50%, var(--primary) 100%);
    background-size: 200% auto;
    color: var(--primary);
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important; /* WAJIB UNTUK HP APPLE/SAFARI */
    -webkit-animation: shimmerEffect 2.5s linear infinite;
    animation: shimmerEffect 2.5s linear infinite;
}
@-webkit-keyframes shimmerEffect {
    to { background-position: -200% center; }
}
@keyframes shimmerEffect {
    to { background-position: -200% center; }
}

/* ==============================================
   CSS RAHASIA BUKTI TRANSAKSI (NOTA A4)
============================================== */
.invoice-print-wrapper { position: fixed; left: -9999px; top: 0; width: 800px; background: #ffffff; color: #1e293b; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; padding: 50px; box-sizing: border-box; z-index: -100; }
.inv-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #f1f5f9; padding-bottom: 25px; margin-bottom: 30px; }
.inv-logo-box { width: 200px; display: flex; align-items: center; justify-content: flex-start; }
.inv-logo-box img { max-width: 100%; max-height: 80px; object-fit: contain; }
.inv-title-box { text-align: right; }
.inv-title-box h1 { margin: 0 0 10px 0; font-size: 38px; font-weight: 900; color: #0f172a; letter-spacing: 2px; text-transform: uppercase; }
.inv-store-name { font-size: 16px; font-weight: 800; color: #0ea5e9; margin-bottom: 4px; }
.inv-store-address { font-size: 13px; color: #64748b; white-space: pre-wrap; line-height: 1.5; }
.inv-meta-row { display: flex; justify-content: space-between; margin-bottom: 30px; background: #f8fafc; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; }
.inv-meta-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #475569; }
.inv-meta-col strong { color: #0f172a; font-weight: 800; }
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.inv-table th { background: #0f172a; color: white; font-size: 14px; font-weight: 700; padding: 14px 16px; text-align: left; text-transform: uppercase; letter-spacing: 0.5px; }
.inv-table th:last-child { text-align: right; border-radius: 0 8px 8px 0; }
.inv-table th:first-child { border-radius: 8px 0 0 8px; }
.inv-table td { padding: 16px; font-size: 15px; color: #1e293b; border-bottom: 1px solid #e2e8f0; font-weight: 600; }
.inv-table td:last-child { text-align: right; font-weight: 800; color: #0ea5e9; }
.inv-summary-wrap { display: flex; justify-content: flex-end; }
.inv-summary-box { width: 350px; background: #f8fafc; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; }
.inv-summary-item { display: flex; justify-content: space-between; font-size: 15px; color: #475569; margin-bottom: 12px; }
.inv-summary-total { display: flex; justify-content: space-between; border-top: 2px solid #cbd5e1; margin-top: 10px; padding-top: 15px; font-size: 22px; font-weight: 900; color: #0f172a; }
.inv-footer { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #e2e8f0; font-size: 13px; color: #64748b; font-weight: 600; white-space: pre-wrap; line-height: 1.6; }

/* PRO ENGINEER FIX: JUDUL TABEL NOTA RATA TENGAH */
.table th, th, table th {
    text-align: center !important;
}