*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', sans-serif;
}

body{
    background:#f8f9fc;
    color:#333;
    transition:0.3s;
}

/* ================= POPUP ================= */
.popup{
    position:fixed;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:999;
}

.popup-card{
    background:white;
    padding:30px;
    border-radius:15px;
    text-align:center;
    width:320px;
    animation:fadeIn 0.3s ease-in-out;
}

.popup-card button{
    margin-top:15px;
    padding:10px 20px;
    border:none;
    background:#2563eb;
    color:white;
    border-radius:8px;
    cursor:pointer;
    transition:0.2s;
}

.popup-card button:hover{
    background:#1d4ed8;
}

.popup-logo{
    width:70px;
    margin-bottom:10px;
}

/* ================= HERO ================= */
.hero{
    text-align:center;
    padding:40px 20px;
}

.logo{
    width:90px;
    margin-bottom:10px;
}

.hero h1{
    font-size:28px;
}

.tagline{
    display:block;
    margin-top:10px;
    font-size:14px;
    color:#666;
}

/* ================= MENU ================= */
.menu{
    padding:20px;
    display:grid;
    gap:15px;
}

.menu-card{
    background:white;
    padding:20px;
    border-radius:15px;
    text-decoration:none;
    color:#333;
    box-shadow:0 4px 10px rgba(0,0,0,0.05);
    transition:0.2s;
}

.menu-card:hover{
    transform:translateY(-4px);
}

.menu-card .icon{
    font-size:24px;
    margin-bottom:5px;
}

.highlight{
    background:#2563eb;
    color:white;
}

/* ================= PREMIUM PAGE ================= */
.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px;
    background:#2563eb;
    color:white;
}

.back{
    color:white;
    text-decoration:none;
}

.product-container{
    padding:20px;
    display:grid;
    gap:15px;
}

.product-card{
    background:white;
    padding:20px;
    border-radius:15px;
    box-shadow:0 4px 10px rgba(0,0,0,0.05);
    transition:0.2s;
}

.product-card:hover{
    transform:translateY(-3px);
}

.product-card button{
    margin-top:10px;
    padding:8px 15px;
    border:none;
    background:#2563eb;
    color:white;
    border-radius:8px;
    cursor:pointer;
    transition:0.2s;
}

.product-card button:hover{
    background:#1d4ed8;
}

.price{
    display:block;
    margin-top:5px;
    font-weight:bold;
    color:#2563eb;
}

/* ================= DARK MODE ================= */
body.dark{
    background:#121212;
    color:#eee;
}

body.dark .product-card,
body.dark .menu-card,
body.dark .checkout-card{
    background:#1e1e1e;
}

body.dark .topbar{
    background:#111827;
}

body.dark .price{
    color:#60a5fa;
}

/* ================= TOGGLE SWITCH ================= */
.switch{
    position:relative;
    display:inline-block;
    width:40px;
    height:20px;
}

.switch input{
    display:none;
}

.slider{
    position:absolute;
    cursor:pointer;
    background:#ccc;
    border-radius:20px;
    top:0; left:0; right:0; bottom:0;
    transition:0.3s;
}

.slider:before{
    position:absolute;
    content:"";
    height:14px;
    width:14px;
    left:3px;
    bottom:3px;
    background:white;
    border-radius:50%;
    transition:0.3s;
}

input:checked + .slider{
    background:#2563eb;
}

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

/* ================= CHECKOUT MODAL ================= */
.checkout-modal{
    position:fixed;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999;
}

.checkout-card{
    background:white;
    padding:25px;
    border-radius:15px;
    width:320px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.checkout-card input{
    padding:10px;
    border-radius:8px;
    border:1px solid #ccc;
}

.checkout-card button{
    padding:10px;
    border:none;
    border-radius:8px;
    background:#2563eb;
    color:white;
    cursor:pointer;
    transition:0.2s;
}

.checkout-card button:hover{
    background:#1d4ed8;
}

.close-btn{
    background:#888 !important;
}

/* ================= ANIMATION ================= */
@keyframes fadeIn{
    from{
        opacity:0;
        transform:scale(0.9);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

/* ================= PREMIUM MODERN ================= */

.premium-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px;
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:white;
}

.header-center{
    text-align:center;
    flex:1;
}

.premium-header{
    display:flex;
    align-items:center;
    padding:20px;
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:white;
    gap:10px;
}

.premium-header h2{
    font-size:20px;
    margin-bottom:4px;
}

.header-desc{
    font-size:12px;
    opacity:0.9;
}

.back-btn{
    color:white;
    text-decoration:none;
    font-weight:bold;
}

.premium-container{
    padding:20px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    gap:15px;
}

.premium-card{
    background:white;
    padding:20px;
    border-radius:16px;
    box-shadow:0 6px 15px rgba(0,0,0,0.08);
    text-align:center;
    transition:0.3s;
}

.premium-card:hover{
    transform:translateY(-5px);
}

.premium-price{
    display:block;
    margin:10px 0;
    font-weight:bold;
    color:#2563eb;
    font-size:18px;
}

.premium-card button{
    padding:10px;
    border:none;
    border-radius:8px;
    background:#2563eb;
    color:white;
    cursor:pointer;
    width:100%;
}

.premium-card button:hover{
    background:#1d4ed8;
}

/* CHECKOUT MODAL RESPONSIVE */
.checkout-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    backdrop-filter:blur(4px);
    display:none;
    justify-content:center;
    align-items:center;
    padding:20px;
    z-index:999;
}

.checkout-box{
    background:white;
    width:100%;
    max-width:400px;
    border-radius:20px;
    padding:25px;
    display:flex;
    flex-direction:column;
    gap:12px;
    animation:fadeIn 0.3s ease;

    max-height:85vh;          /* BATAS TINGGI MODAL */
    overflow:hidden;          /* supaya tidak keluar */
}

.checkout-box h3{
    text-align:center;
    margin-bottom:5px;
}

.checkout-box input,
.checkout-box select,
.checkout-box textarea{
    padding:12px;
    border-radius:10px;
    border:1px solid #ddd;
    font-size:14px;
    width:100%;
}

.checkout-box textarea{
    resize:none;
}

/* INPUT DINAMIS CONTAINER */
#checkoutInputsContainer{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.checkout-input{
    padding:12px !important;
    border-radius:10px !important;
    border:1px solid #ddd !important;
    font-size:14px !important;
    width:100% !important;
    box-sizing:border-box !important;
}

body.dark .checkout-input{
    background:#2a2a2a !important;
    color:#fff !important;
    border:1px solid #444 !important;
}

.checkout-box button{
    padding:12px;
    border:none;
    border-radius:10px;
    background:#2563eb;
    color:white;
    font-weight:bold;
    cursor:pointer;
    transition:0.2s;
}

.checkout-box button:hover{
    background:#1d4ed8;
}

.cancel-btn{
    background:#999 !important;
}

/* DARK MODE SUPPORT */
body.dark .premium-card,
body.dark .checkout-box{
    background:#1e1e1e;
    color:white;
}

body.dark .premium-price{
    color:#60a5fa;
}

/* APP LIST */
.app-container{
    padding:20px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
    gap:15px;
}

.app-card{
    background:white;
    padding:15px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.05);
    cursor:pointer;
    transition:0.3s;
}

.app-card:hover{
    transform:translateY(-5px);
}

.app-card img{
    width:50px;
    margin-bottom:10px;
}

/* PACKAGE */
.package-container{
    padding:20px;
    display:grid;
    gap:15px;
}

.package-card{
    background:white;
    padding:20px;
    border-radius:15px;
    box-shadow:0 4px 10px rgba(0,0,0,0.05);
}

.package-card button{
    margin-top:10px;
    padding:10px;
    border:none;
    border-radius:8px;
    background:#2563eb;
    color:white;
    cursor:pointer;
    width:100%;
}

.category-title{
    padding:25px 20px 10px;
    font-weight:bold;
}

.app-card{
    position:relative;
    background:white;
    padding:15px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.05);
    cursor:pointer;
    transition:0.3s;
}

.app-card:hover{
    transform:translateY(-5px);
}

.app-card img{
    width:60px;
    height:60px;
    object-fit:contain;
    margin-bottom:8px;
}

.badge{
    position:absolute;
    top:8px;
    right:8px;
    font-size:10px;
    padding:4px 8px;
    border-radius:20px;
}

.badge.normal{
    background:#2563eb;
    color:white;
}

.badge.glow{
    background:#ef4444;
    color:white;
    animation:glow 1.5s infinite alternate;
}

@keyframes glow{
    from{box-shadow:0 0 5px #ef4444;}
    to{box-shadow:0 0 20px #ef4444;}
}

/* ================= PREMIUM HERO ================= */
.premium-hero{
    background:linear-gradient(135deg,#2563eb,#1e40af);
    color:white;
    padding:30px 20px 40px;
    border-bottom-left-radius:30px;
    border-bottom-right-radius:30px;
}

.hero-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.premium-hero h1{
    font-size:24px;
    margin-bottom:8px;
}

.premium-hero p{
    font-size:14px;
    opacity:0.9;
}

.hero-badges{
    margin-top:15px;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    font-size:12px;
}

.hero-badges span{
    background:rgba(255,255,255,0.15);
    padding:6px 10px;
    border-radius:20px;
}

.order-btn{
    background:white;
    color:#2563eb;
    border:none;
    padding:8px 14px;
    border-radius:20px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.order-btn:hover{
    background:#e5e7eb;
}

/* ================= SCROLL PAKET ================= */
#modalPackages{
    overflow-y:auto;
    max-height:50vh;   /* Tinggi area paket */
    padding-right:5px;
}

/* Scrollbar modern */
#modalPackages::-webkit-scrollbar{
    width:6px;
}

#modalPackages::-webkit-scrollbar-thumb{
    background:#2563eb;
    border-radius:10px;
}

#modalPackages::-webkit-scrollbar-track{
    background:#f1f1f1;
}

/* ================= GARANSI 24 JAM ================= */

.garansi-box{
    background:linear-gradient(135deg,#ecfdf5,#d1fae5);
    padding:15px;
    border-radius:15px;
    border:1px solid #10b981;
    font-size:13px;
    text-align:center;
}

.garansi-title{
    font-weight:bold;
    margin-bottom:5px;
    color:#065f46;
}

.garansi-desc{
    margin-bottom:8px;
}

.countdown{
    font-size:18px;
    font-weight:bold;
    color:#dc2626;
    margin-bottom:8px;
}

.garansi-bonus{
    font-size:12px;
    color:#065f46;
}

/* LOADING SCREEN */

#loading-screen{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
}

.loader-content{
text-align: center;
color: white;
font-family: sans-serif;
}

.loading-logo{
width: 90px;
margin-bottom: 20px;
}

/* SPINNER */

.spinner{
width: 40px;
height: 40px;
border: 4px solid rgba(255,255,255,0.2);
border-top: 4px solid #38bdf8;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: auto;
margin-bottom: 10px;
}

@keyframes spin{
0%{ transform: rotate(0deg); }
100%{ transform: rotate(360deg); }
}

/* DARK MODE FLOAT BUTTON */
.dark-toggle{
    position:fixed;
    top:15px;
    right:15px;
    z-index:9999;
}

#darkModeToggle{
    font-size:20px;
    border:none;
    background:rgba(255,255,255,0.8);
    padding:8px 10px;
    border-radius:50%;
    cursor:pointer;
    backdrop-filter:blur(6px);
}

body.dark #darkModeToggle{
    background:rgba(30,30,30,0.8);
    color:#fff;
}

/* ================= DARK MODE TEXT ================= */

body.dark{
    background:#121212;
    color:#e4e4e4;
}

/* Semua text umum */
body.dark p,
body.dark span,
body.dark li,
body.dark label{
    color:#e4e4e4;
}

/* Heading */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6{
    color:#ffffff;
}

/* Link */
body.dark a{
    color:#4da3ff;
}

/* Card / container */
body.dark .card,
body.dark .box,
body.dark .container{
    background:#1e1e1e;
    color:#e4e4e4;
}

/* Input */
body.dark input,
body.dark select,
body.dark textarea{
    background:#2a2a2a;
    color:#fff;
    border:1px solid #444;
}

/* Placeholder */
body.dark input::placeholder{
    color:#aaa;
}

/* Button */
body.dark button{
    background:#333;
    color:#fff;
}

/* CARD APK PREMIUM DARK MODE */
body.dark .app-card,
body.dark .apk-card,
body.dark .product-card,
body.dark .service-card{
    background:#1e1e1e !important;
    border:1px solid #333;
}

/* container dalam card */
body.dark .app-card div,
body.dark .apk-card div{
    background:transparent;
}

/* teks di card */
body.dark .app-card h3,
body.dark .app-card p{
    color:#ffffff;
}

/* ================= DARK MODE PACKAGE ================= */

body.dark .package-card{
    background:#2a2a2a;
    color:#fff;
    border:1px solid #444;
}

body.dark .package-card button{
    background:#3b82f6;
}

body.dark #modalPackages::-webkit-scrollbar-track{
    background:#1e1e1e;
}

body.dark #modalPackages::-webkit-scrollbar-thumb{
    background:#3b82f6;
}

/* SEARCH PRODUK */

.search-box{
    width:100%;
    max-width:400px;
    margin:20px auto;
}

.search-box input{
    width:100%;
    padding:10px 14px;
    border-radius:10px;
    border:1px solid #ccc;
    font-size:14px;
}

/* dark mode */
body.dark .search-box input{
    background:#2a2a2a;
    border:1px solid #444;
    color:#fff;
}

/* PRODUCT CARD MODERN */

.app-card{
    position:relative;
    background:#fff;
    border-radius:18px;
    padding:20px;
    text-align:center;
    transition:0.25s;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

/* image */

.app-card img{
    width:65px;
    height:65px;
    object-fit:contain;
    margin-bottom:10px;
}

/* title */

.app-card h3{
    font-size:16px;
    margin-bottom:8px;
}

/* rating + sold */

.product-info{
    font-size:12px;
    opacity:0.8;
    display:flex;
    justify-content:center;
    gap:10px;
}

/* promo badge */

.promo-badge{
    position:absolute;
    top:10px;
    right:10px;
    background:#ff3b3b;
    color:#fff;
    font-size:11px;
    padding:4px 8px;
    border-radius:20px;
}

/* hover animation */

.app-card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

/* dark mode */

body.dark .app-card{
    background:#1e1e1e;
}

.payment-section{
margin-top:20px;
}

.payment-title{
margin:15px 0 10px;
font-weight:bold;
opacity:0.8;
}

/* CARD METODE PEMBAYARAN */

.payment-item{
background:#ffffff;
border-radius:14px;
margin-bottom:12px;
overflow:hidden;
border:1px solid #e2e2e2;
transition:0.2s;
}

.payment-item:hover{
transform:translateY(-2px);
box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.payment-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:14px 16px;
}

.payment-left{
display:flex;
align-items:center;
gap:10px;
}

.payment-left img{
width:28px;
height:28px;
object-fit:contain;
}

.badge{
background:#4ade80;
color:#000;
font-size:11px;
padding:2px 6px;
border-radius:6px;
margin-left:6px;
}

.payment-right{
display:flex;
align-items:center;
gap:10px;
}

.arrow{
cursor:pointer;
opacity:0.6;
font-size:14px;
}

.payment-detail{
display:none;
padding:15px;
background:#f7f7f7;
border-top:1px solid #e2e2e2;
text-align:center;
}

.qris-img{
width:200px;
max-width:100%;
aspect-ratio:1/1;
object-fit:contain;
}

.payment-section{
max-height:60vh;
overflow-y:auto;
padding-right:5px;
}

/* scrollbar kecil */

.payment-section::-webkit-scrollbar{
width:5px;
}

.payment-section::-webkit-scrollbar-thumb{
background:#555;
border-radius:10px;
}


body.dark .payment-item{
background:#2b2b2b;
border:1px solid #444;
}

body.dark .payment-detail{
background:#1f1f1f;
border-top:1px solid #444;
}

.payment-popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
display:none;
align-items:center;
justify-content:center;
z-index:999;
}

.payment-container{
background:white;
width:420px;
max-height:80vh;
overflow:auto;
border-radius:14px;
padding:20px;
animation:popup .25s ease;
}

@keyframes popup{
from{transform:scale(.9);opacity:0}
to{transform:scale(1);opacity:1}
}

.payment-header{
display:flex;
justify-content:space-between;
margin-bottom:10px;
}

.payment-category{
font-weight:700;
margin:15px 0 8px;
color:#666;
}

.payment-item{
display:flex;
align-items:center;
justify-content:space-between;
padding:10px;
border-radius:8px;
background:#f7f7f7;
margin-bottom:8px;
}

.payment-logo{
width:35px;
height:35px;
object-fit:contain;
}

.payment-name{
flex:1;
margin-left:10px;
font-weight:600;
}

.payment-actions{
display:flex;
gap:6px;
}

.detail-btn{
background:#eee;
border:none;
padding:6px 10px;
border-radius:6px;
cursor:pointer;
}

.select-btn{
background:#2ecc71;
color:white;
border:none;
padding:6px 12px;
border-radius:6px;
cursor:pointer;
}

.payment-detail{
display:none;
background:#fafafa;
padding:10px;
border-radius:6px;
margin-bottom:10px;
font-size:14px;
}

.qris-img{
width:160px;
display:block;
margin:auto;
}

.selected-payment{
margin-top:8px;
font-weight:600;
color:#27ae60;
}

.keunggulan{
padding:60px 20px;
text-align:center;
background:#0f172a;
color:white;
}

.section-title{
font-size:26px;
margin-bottom:35px;
}

.keunggulan-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
gap:20px;
max-width:900px;
margin:auto;
}

.keunggulan-card{
background:#1e293b;
padding:20px;
border-radius:12px;
transition:0.3s;
}

.keunggulan-card:hover{
transform:translateY(-5px);
background:#334155;
}

.keunggulan-card .icon{
font-size:30px;
margin-bottom:10px;
}

.keunggulan-card h3{
font-size:18px;
margin-bottom:6px;
}

.keunggulan-card p{
font-size:13px;
color:#cbd5f5;
}

/* CARA TOPUP */

.cara-topup{
padding:60px 20px;
text-align:center;
}

.topup-steps{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
max-width:900px;
margin:auto;
}

.step-card{
background:var(--card-bg);
color:var(--text-color);
padding:20px;
border-radius:10px;
border:1px solid var(--border-color);
transition:0.3s;
}

.step-card:hover{
transform:translateY(-5px);
}

.step-number{
width:35px;
height:35px;
background:#22c55e;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-weight:bold;
margin:auto;
margin-bottom:10px;
}


/* APK PREMIUM */

.layanan-premium{
padding:60px 20px;
text-align:center;
}

.apk-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
gap:20px;
max-width:800px;
margin:auto;
}

.apk-card{
background:#111827;
padding:15px;
border-radius:10px;
text-decoration:none;
color:white;
transition:0.3s;
}

.apk-card:hover{
transform:scale(1.05);
}

.apk-card img{
width:50px;
margin-bottom:10px;
}

/* REVIEW SECTION */

.review-section{
padding:80px 20px;
background:var(--bg-color);
text-align:center;
}

.store-rating{
display:flex;
align-items:center;
justify-content:center;
gap:15px;
margin-bottom:30px;
}

.rating-score{
font-size:42px;
font-weight:700;
color:#22c55e;
}

.rating-stars{
color:#fbbf24;
font-size:20px;
}

.rating-info p{
font-size:13px;
opacity:0.7;
}

.review-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
gap:20px;
max-width:1100px;
margin:auto;
}

.review-card{
background:var(--card-bg);
border:1px solid var(--border-color);
border-radius:12px;
padding:18px;
text-align:left;
transition:0.3s;
animation:slideReview 0.5s ease;
}

.review-card:hover{
transform:translateY(-5px);
}

@keyframes slideReview{
from{
opacity:0;
transform:translateY(15px);
}
to{
opacity:1;
transform:translateY(0);
}
}

.review-header{
display:flex;
align-items:center;
gap:10px;
margin-bottom:8px;
}

.review-avatar{
width:40px;
height:40px;
border-radius:50%;
background:#22c55e;
display:flex;
align-items:center;
justify-content:center;
font-weight:bold;
color:white;
}

.review-name{
font-weight:600;
font-size:14px;
}

.review-location{
font-size:12px;
opacity:0.7;
}

.review-badge{
background:#22c55e;
color:white;
font-size:10px;
padding:2px 6px;
border-radius:6px;
margin-left:5px;
}

.review-stars{
color:#fbbf24;
font-size:14px;
margin:4px 0;
}

.review-product{
font-size:13px;
color:#22c55e;
margin-bottom:5px;
}

.review-date{
font-size:12px;
opacity:0.6;
margin-top:6px;
}

/* ORDER LOADING */

.order-loading{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;

/* overlay transparan */

background:rgba(0,0,0,0.35);
backdrop-filter:blur(4px);

display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.loading-card{
background:#ffffff;
color:#111;
padding:28px;
border-radius:16px;
width:280px;
text-align:center;
box-shadow:0 20px 40px rgba(0,0,0,0.25);
transition:0.3s;
}

@keyframes popIn{
from{
transform:scale(.9);
opacity:0;
}
to{
transform:scale(1);
opacity:1;
}
}

.spinner{
width:42px;
height:42px;
border:4px solid rgba(0,0,0,0.1);
border-top:4px solid #22c55e;
border-radius:50%;
margin:auto;
margin-bottom:15px;
animation:spin 1s linear infinite;
}

@keyframes spin{
0%{transform:rotate(0)}
100%{transform:rotate(360deg)}
}

.loading-card h3{
margin-bottom:5px;
}

.loading-status{
font-size:13px;
opacity:.8;
margin-bottom:12px;
}

.loading-steps{
display:flex;
flex-direction:column;
gap:6px;
font-size:12px;
}

.step{
opacity:.4;
}

.step.active{
opacity:1;
color:#22c55e;
font-weight:600;
}

.order-summary{
background:var(--card-bg);
border:1px solid var(--border-color);
padding:10px;
border-radius:10px;
margin:12px 0;
font-size:13px;
}

.summary-item{
display:flex;
justify-content:space-between;
margin-bottom:4px;
}

.cancel-order{
margin-top:15px;
background:#ef4444;
color:white;
border:none;
padding:8px 14px;
border-radius:8px;
cursor:pointer;
font-size:13px;
transition:0.2s;
}

.cancel-order:hover{
opacity:.85;
}

body.dark .loading-card{
background:#1e293b;
color:#f1f5f9;
box-shadow:0 20px 40px rgba(0,0,0,0.5);
}

body.dark .summary-item span{
color:#cbd5f5;
}

body.dark .spinner{
border:4px solid rgba(255,255,255,0.15);
border-top:4px solid #3b82f6;
}

/* FAQ MODERN */

.faq-section{
padding:70px 20px;
background:var(--bg-color);
}

.faq-container{
max-width:900px;
margin:auto;
display:flex;
flex-direction:column;
gap:14px;
}

/* CARD */

.faq-item{
background:var(--card-bg);
border:1px solid var(--border-color);
border-radius:14px;
overflow:hidden;
transition:0.25s;
box-shadow:0 4px 12px rgba(0,0,0,0.05);
}

body.dark .faq-item{
box-shadow:none;
}

/* BUTTON */

.faq-question{
width:100%;
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 20px;
font-size:15px;
font-weight:600;
background:none;
border:none;
cursor:pointer;
color:var(--text-color);
}

/* ARROW */

.faq-icon{
font-size:18px;
transition:0.3s;
}

.faq-item.active .faq-icon{
transform:rotate(180deg);
}

/* ANSWER */

.faq-answer{
max-height:0;
overflow:hidden;
transition:max-height 0.35s ease;
padding:0 20px;
}

.faq-answer p{
padding-bottom:18px;
font-size:14px;
opacity:0.85;
line-height:1.5;
}

/* OPEN STATE */

.faq-item.active .faq-answer{
max-height:200px;
}

/* HOVER EFFECT */

.faq-item:hover{
transform:translateY(-2px);
}

/* FOOTER */

.footer{
margin-top:80px;
background:var(--card-bg);
border-top:1px solid var(--border-color);
}

.footer-container{
max-width:1100px;
margin:auto;
padding:40px 20px;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:30px;
}

.footer-brand h3{
margin-bottom:10px;
}

.footer-brand p{
font-size:14px;
opacity:0.8;
line-height:1.6;
}

.footer-links h4{
margin-bottom:12px;
}

.footer-links ul{
list-style:none;
padding:0;
}

.footer-links li{
margin-bottom:8px;
font-size:14px;
opacity:0.85;
}

.footer-links a{
text-decoration:none;
color:var(--text-color);
}

.footer-links a:hover{
color:#3b82f6;
}

.footer-bottom{
text-align:center;
padding:15px;
font-size:13px;
border-top:1px solid var(--border-color);
opacity:0.7;
}

.legal-container{
max-width:800px;
margin:auto;
padding:60px 20px;
line-height:1.7;
color:var(--text-color);
}

.legal-container h1{
margin-bottom:20px;
}

.legal-container h2{
margin-top:25px;
margin-bottom:10px;
}

.legal-container ul{
padding-left:18px;
}

html{
scroll-behavior:smooth;
}

/* CARD HOVER */

.card,
.product-card,
.apk-card,
.faq-item,
.testimoni-card{

transition:all .25s ease;
}

.card:hover,
.product-card:hover,
.apk-card:hover,
.faq-item:hover,
.testimoni-card:hover{

transform:translateY(-6px);
box-shadow:0 12px 25px rgba(0,0,0,0.08);
}

/* SCROLL ANIMATION */

.reveal{
opacity:0;
transform:translateY(30px);
transition:all .6s ease;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}

body{
animation:fadePage .5s ease;
}

@keyframes fadePage{

from{
opacity:0;
transform:translateY(10px);
}

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

}

/* META PRODUK */
.product-meta{
font-size:13px;
color:#666;
margin:5px 0 8px;
}

/* DARK MODE */
.dark .product-meta{
color:#ccc;
}

/* ================= RESPONSIVE WEBSITE ================= */

/* Container agar tidak terlalu lebar di layar besar */
.container{
max-width:1200px;
margin:auto;
padding:0 16px;
}

/* Grid produk otomatis responsive */
.apps-grid,
.topup-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
gap:15px;
}

/* Card produk */
.app-card,
.topup-card{
width:100%;
box-sizing:border-box;
}

/* Logo */
.hero-logo{
max-width:120px;
width:100%;
height:auto;
}

/* Text hero */
.hero h1{
font-size:28px;
}

.hero p{
font-size:16px;
}

/* ================= MOBILE ================= */

@media (max-width:600px){

.hero h1{
font-size:24px;
}

.hero p{
font-size:14px;
}

.apps-grid,
.topup-grid{
grid-template-columns:repeat(2,1fr);
}

.online-counter{
font-size:13px;
padding:8px 12px;
}

}

/* ================= TABLET ================= */

@media (min-width:601px) and (max-width:1024px){

.apps-grid,
.topup-grid{
grid-template-columns:repeat(3,1fr);
}

.hero h1{
font-size:26px;
}

}

/* ================= DESKTOP ================= */

@media (min-width:1025px){

.apps-grid,
.topup-grid{
grid-template-columns:repeat(5,1fr);
}

.hero h1{
font-size:32px;
}

}

.online-widget{
position:fixed;
right:15px;
bottom:20px;
z-index:999;
cursor:pointer;
font-size:13px;
}

.online-badge{
display:flex;
align-items:center;
gap:5px;

background:#2ecc71;
color:#fff;

padding:6px 10px;
border-radius:20px;
font-weight:500;
}

.online-dot{
width:8px;
height:8px;
background:#fff;
border-radius:50%;
}

.online-detail{
position:absolute;
right:0;
bottom:40px;

background:#fff;
color:#333;

padding:8px 12px;
border-radius:10px;

box-shadow:0 5px 15px rgba(0,0,0,0.15);

opacity:0;
transform:translateX(20px);
transition:0.3s;
white-space:nowrap;
}

.online-widget.active .online-detail{
opacity:1;
transform:translateX(0);
}

/* dark mode */
.dark .online-detail{
background:#1e1e1e;
color:#ddd;
}

.sold-popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.5);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.sold-box{
background:#fff;
padding:20px;
border-radius:12px;
text-align:center;
width:80%;
max-width:300px;
}

.sold-box h3{
margin-bottom:10px;
}

.sold-box button{
margin-top:15px;
padding:10px 20px;
border:none;
border-radius:8px;
background:#2ecc71;
color:white;
cursor:pointer;
}

.dark .sold-box{
background:#1e1e1e;
color:#fff;
}

/* ===== FIX HEADER DARK MODE ===== */

body.dark .header{
    background:#1e1e1e !important;
    color:#ffffff !important;
}

body.dark .header-desc{
    color:#d1d5db !important;
    opacity:1 !important;
}

/* ================= DARK MODE ================= */
body.dark{
    background:#121212;
    color:#eee;
}

body.dark .product-card,
body.dark .menu-card,
body.dark .checkout-card,
body.dark .popup-card{
    background:#1e1e1e;
    color:#eee;
}

body.dark .topbar{
    background:#111827;
}

body.dark .price{
    color:#60a5fa;
}

body.dark .popup{
    background:rgba(0,0,0,0.8);
}

body.dark .popup-card button{
    background:#3b82f6;
}

body.dark .popup-card button:hover{
    background:#2563eb;
}

/* ================= SOLD OUT BUTTON ================= */

button.soldout{
background:#ef4444 !important;
color:white !important;
cursor:pointer;
opacity:0.9;
border:none;
}

button.soldout:hover{
background:#dc2626 !important;
}

.top-banner {
  width: 100%;
  padding: 0 12px; /* kasih jarak kiri kanan */
  box-sizing: border-box;
  margin-top: 10px;
}

.banner-slider {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000; /* opsional, biar area kosong terlihat rapi */
}

/* ================= HEADER BARU ================= */
.store-header{
    position:sticky;
    top:0;
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:14px 16px;
    background:rgba(255,255,255,0.9);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(15,23,42,0.08);
}

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

.brand-wrap{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:inherit;
    min-width:0;
}

.brand-logo{
    width:46px;
    height:46px;
    object-fit:contain;
    border-radius:14px;
    background:#ffffff;
    padding:4px;
    box-shadow:0 6px 18px rgba(37,99,235,0.15);
}

.brand-text h1{
    font-size:20px;
    line-height:1.1;
    margin:0;
}

.brand-text p{
    margin:4px 0 0;
    font-size:12px;
    color:#64748b;
}

.header-icon-btn{
    width:42px;
    height:42px;
    border:none;
    border-radius:14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:20px;
    cursor:pointer;
    background:#f1f5f9;
    color:#0f172a;
    transition:0.25s ease;
}

.header-icon-btn:hover{
    transform:translateY(-1px);
}

.theme-toggle-btn{
    font-size:18px;
}

.header-drawer{
    display:none;
    padding:0 16px 16px;
    background:rgba(255,255,255,0.97);
    border-bottom:1px solid rgba(15,23,42,0.08);
}

.header-drawer.show{
    display:grid;
    gap:10px;
}

.header-drawer a{
    text-decoration:none;
    color:#0f172a;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:12px;
    padding:12px 14px;
    font-weight:600;
}

.hero-compact{
    text-align:left;
    padding:22px 20px 10px;
}

.hero-compact h2{
    font-size:28px;
    line-height:1.2;
    margin-bottom:10px;
}

.hero-compact p{
    max-width:700px;
    color:#475569;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    padding:8px 12px;
    margin-bottom:14px;
    border-radius:999px;
    background:#dbeafe;
    color:#1d4ed8;
    font-size:12px;
    font-weight:700;
}

/* rapikan tombol dark mode lama supaya tidak dipakai */
.dark-toggle{
    display:none;
}

body.dark .store-header{
    background:rgba(15,23,42,0.92);
    border-bottom-color:rgba(148,163,184,0.18);
}

body.dark .brand-logo{
    background:#0f172a;
    box-shadow:none;
}

body.dark .brand-text p,
body.dark .hero-compact p{
    color:#cbd5e1;
}

body.dark .header-icon-btn{
    background:#1e293b;
    color:#e2e8f0;
}

body.dark .header-drawer{
    background:rgba(15,23,42,0.97);
    border-bottom-color:rgba(148,163,184,0.18);
}

body.dark .header-drawer a{
    background:#111827;
    border-color:#334155;
    color:#e2e8f0;
}

body.dark .hero-badge{
    background:rgba(37,99,235,0.18);
    color:#93c5fd;
}

body.dark .keunggulan{
    background:#0b1120;
}

@media (max-width:640px){
    .store-header{
        align-items:flex-start;
    }

    .brand-text h1{
        font-size:18px;
    }

    .brand-text p{
        font-size:11px;
    }

    .header-actions{
        gap:8px;
    }

    .hero-compact h2{
        font-size:24px;
    }
}

/* ========== MENU UTAMA - LAYOUT BARU ========== */
.menu-layanan {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.menu-item {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Efek background saat hover */
.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.03), rgba(37, 99, 235, 0.08));
    transition: width 0.4s ease;
    z-index: 0;
}

.menu-item:hover::before {
    width: 100%;
}

.menu-item:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

/* Icon Styling */
.menu-icon-wrapper {
    position: relative;
    z-index: 1;
}

.menu-icon-bg {
    width: 56px;
    height: 56px;
    background: #f0f7ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-item:hover .menu-icon-bg {
    background: #2563eb;
    transform: scale(1.05);
}

.menu-icon {
    font-size: 28px;
    transition: all 0.3s ease;
}

.menu-item:hover .menu-icon {
    color: white;
    transform: scale(1.05);
}

/* Text Styling */
.menu-text {
    flex: 1;
    z-index: 1;
}

.menu-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #111827;
    transition: color 0.2s;
}

.menu-text p {
    font-size: 13px;
    margin: 0;
    color: #6b7280;
    line-height: 1.4;
    transition: color 0.2s;
}

.menu-item:hover .menu-text h3 {
    color: #2563eb;
}

.menu-item:hover .menu-text p {
    color: #4b5563;
}

/* Arrow Styling */
.menu-arrow {
    font-size: 20px;
    color: #cbd5e1;
    transition: all 0.3s ease;
    z-index: 1;
}

.menu-item:hover .menu-arrow {
    color: #2563eb;
    transform: translateX(4px);
}

/* Highlight untuk CS (opsional, bedakan sedikit) */
.menu-item-highlight .menu-icon-bg {
    background: #eef2ff;
}

.menu-item-highlight:hover .menu-icon-bg {
    background: #2563eb;
}

/* Dark Mode Support */
body.dark .menu-item {
    background: #1e1e2f;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

body.dark .menu-text h3 {
    color: #f3f4f6;
}

body.dark .menu-text p {
    color: #9ca3af;
}

body.dark .menu-icon-bg {
    background: #2d2d3a;
}

body.dark .menu-item:hover .menu-text h3 {
    color: #60a5fa;
}

body.dark .menu-arrow {
    color: #4b5563;
}

body.dark .menu-item:hover .menu-arrow {
    color: #60a5fa;
}

/* Responsif untuk HP */
@media (max-width: 640px) {
    .menu-layanan {
        padding: 20px 16px;
    }

    .menu-grid {
        gap: 16px;
    }

    .menu-item {
        padding: 16px;
        gap: 14px;
    }

    .menu-icon-bg {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .menu-icon {
        font-size: 24px;
    }

    .menu-text h3 {
        font-size: 16px;
    }

    .menu-text p {
        font-size: 12px;
    }

    .menu-arrow {
        font-size: 18px;
    }
}

/* ================= ADMIN SELECTION POPUP ================= */
.admin-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.admin-popup.show {
    display: flex;
}

.admin-popup-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-popup-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 700;
}

.admin-popup-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.admin-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-btn {
    padding: 14px 20px;
    border: 2px solid #2563eb;
    background: white;
    color: #2563eb;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.admin-btn:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.admin-btn:active {
    transform: translateY(0);
}

.admin-btn.akbar {
    border-color: #2563eb;
}

.admin-btn.akbar:hover {
    background: #2563eb;
}

.admin-btn.faris {
    border-color: #7c3aed;
}

.admin-btn.faris:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

.admin-btn.resty {
    border-color: #ec4899;
}

.admin-btn.resty:hover {
    background: #ec4899;
    border-color: #ec4899;
    color: white;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode */
body.dark .admin-popup-card {
    background: #1e1e1e;
    color: white;
}

body.dark .admin-popup-card h2 {
    color: #ffffff;
}

body.dark .admin-popup-card p {
    color: #aaa;
}

body.dark .admin-btn {
    background: transparent;
    color: #60a5fa;
    border-color: #60a5fa;
}

body.dark .admin-btn:hover {
    background: #60a5fa;
    color: #1e1e1e;
}
