*{
    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;
}

.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;
width: 100%;
height: 100vh;
background: #0f172a;
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}

.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;
}

function togglePayment(id,event){

event.stopPropagation()

const detail=document.getElementById(id)

const all=document.querySelectorAll(".payment-detail")

all.forEach(el=>{
if(el!==detail){
el.style.display="none"
}
})

if(detail.style.display==="block"){
detail.style.display="none"
}else{

detail.style.display="block"

setTimeout(()=>{
detail.scrollIntoView({
behavior:"smooth",
block:"center"
})
},120)

}

}

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);
}

}