/* =========================================
   DESIGN SYSTEM — Lumina Professional
   Font: Plus Jakarta Sans
   Primary: #2563EB
========================================= */
:root {
    --primary:          #2563eb;
    --primary-dark:     #1d4ed8;
    --primary-light:    #dbeafe;
    --primary-xlight:   #eff6ff;

    --bg:               #f7f9fb;
    --surface:          #ffffff;
    --surface-low:      #f2f4f6;
    --surface-med:      #eceef0;
    --surface-high:     #e6e8ea;

    --on-surface:       #191c1e;
    --on-surface-2:     #434655;
    --on-surface-3:     #737686;

    --outline:          #c3c6d7;
    --outline-strong:   #a0a4b8;

    --green:            #16a34a;
    --green-bg:         #f0fdf4;
    --red:              #ba1a1a;
    --red-bg:           #fff1f2;
    --orange:           #c2410c;
    --orange-bg:        #fff7ed;

    --font:             'Plus Jakarta Sans', -apple-system, sans-serif;
    --header-h:         64px;

    --r-sm:  4px;
    --r-md:  8px;
    --r-lg:  12px;
    --r-xl:  16px;
    --r-2xl: 20px;
    --r-full: 9999px;

    --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-lg:  0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-xl:  0 10px 25px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--on-surface);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-size: 14px;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Loader ---- */
#site-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#site-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { width: 64px; height: 64px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); animation: popIn .5s ease; }
.loader-logo img { width: 100%; height: 100%; object-fit: cover; }
.loader-name { font-size: 24px; font-weight: 800; color: var(--on-surface); letter-spacing: -0.02em; }
.loader-name span { color: var(--primary); }
.loader-bar-track { width: 160px; height: 2px; background: var(--outline); border-radius: var(--r-full); overflow: hidden; }
.loader-bar-fill { height: 100%; width: 0; background: var(--primary); border-radius: var(--r-full); animation: fillBar 1.5s ease forwards; }
@keyframes popIn { from { opacity:0; transform:scale(.8); } to { opacity:1; transform:scale(1); } }
@keyframes fillBar { to { width: 100%; } }

/* ---- PWA Bar ---- */
#pwa-install-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 9998; background: var(--primary); display: none; }
.pwa-bar-inner { max-width: 1280px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 12px; }
#pwa-bar-dismiss { background: none; border: none; color: rgba(255,255,255,.7); font-size: 16px; padding: 4px 8px; flex-shrink: 0; }
.pwa-bar-logo { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.pwa-bar-text { flex: 1; font-size: 13px; color: rgba(255,255,255,.9); }
.pwa-bar-text strong { color: white; }
#pwa-bar-install-btn { background: white; color: var(--primary); border: none; border-radius: var(--r-md); padding: 6px 14px; font-size: 12px; font-weight: 700; flex-shrink: 0; }
body.pwa-bar-visible { padding-top: 44px; }

/* ---- Top Bar ---- */
.top-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--outline);
    padding: 6px 0;
    font-size: 12px;
    color: var(--on-surface-3);
}
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top-bar-marquee { flex: 1; overflow: hidden; }
.top-bar-links { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.top-bar-links a { display: flex; align-items: center; gap: 5px; color: var(--on-surface-2); font-weight: 500; font-size: 12px; transition: color .15s; }
.top-bar-links a:hover { color: var(--primary); }
.top-bar-sep { color: var(--outline); }

/* ---- Header ---- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--outline);
    position: sticky; top: 0; z-index: 200;
    height: var(--header-h);
    display: flex; align-items: center;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 20px; }
.header-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-logo { width: 36px; height: 36px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--outline); }
.header-logo img { width: 100%; height: 100%; object-fit: cover; }
.header-brand-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--on-surface); }
.header-brand-name span { color: var(--primary); }

/* Search */
.search-wrap { flex: 1; max-width: 440px; position: relative; }
.search-wrap form { display: flex; }
.search-input {
    flex: 1; background: var(--surface-low);
    border: 1px solid var(--outline); border-right: none;
    border-radius: var(--r-md) 0 0 var(--r-md);
    color: var(--on-surface); font-family: var(--font); font-size: 13px;
    padding: 9px 14px; outline: none;
    transition: border-color .15s, background .15s;
    min-width: 0;
}
.search-input::placeholder { color: var(--on-surface-3); }
.search-input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.search-btn {
    background: var(--primary); border: 1px solid var(--primary);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 9px 16px; color: white; font-size: 13px;
    font-weight: 600; display: flex; align-items: center; gap: 6px;
    transition: background .15s;
}
.search-btn:hover { background: var(--primary-dark); }
.search-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--outline);
    border-radius: var(--r-lg); box-shadow: var(--shadow-xl);
    z-index: 300; overflow: hidden; display: none;
    max-height: 340px; overflow-y: auto;
}
.search-suggest.show { display: block; }
.suggest-section { padding: 6px 0; }
.suggest-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-surface-3); padding: 6px 14px; display: block; }
.suggest-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; color: var(--on-surface); cursor: pointer; transition: background .12s; }
.suggest-item:hover { background: var(--surface-low); }
.suggest-item i { font-size: 11px; color: var(--primary); width: 14px; text-align: center; }
.suggest-sep { border: none; border-top: 1px solid var(--outline); margin: 0; }
.suggest-empty { padding: 20px 14px; font-size: 13px; color: var(--on-surface-3); text-align: center; }

/* Nav */
.header-nav { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.header-nav a {
    display: flex; align-items: center; gap: 6px; padding: 7px 11px;
    border-radius: var(--r-md); font-size: 13px; font-weight: 500;
    color: var(--on-surface-2); transition: background .12s, color .12s; white-space: nowrap;
}
.header-nav a i { font-size: 11px; }
.header-nav a:hover { background: var(--surface-low); color: var(--on-surface); }
.header-nav a.active { color: var(--primary); background: var(--primary-xlight); }
.header-nav a.btn-cek { background: var(--primary); color: white; font-weight: 600; padding: 7px 14px; border-radius: var(--r-md); }
.header-nav a.btn-cek:hover { background: var(--primary-dark); color: white; }
.header-nav a.btn-user { background: var(--surface-low); border: 1px solid var(--outline); border-radius: var(--r-md); padding: 6px 12px; gap: 7px; font-weight: 600; }
.header-nav a.btn-user:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-xlight); }
.header-nav a.btn-user .user-avatar { width: 22px; height: 22px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.header-nav a.btn-login { border: 1px solid var(--outline); border-radius: var(--r-md); padding: 6px 13px; font-weight: 600; }
.header-nav a.btn-login:hover { border-color: var(--primary); color: var(--primary); }
.header-nav .role-tag { font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; }
.header-nav .role-tag.reseller { background: #fffbeb; color: #d97706; border: 1px solid rgba(217,119,6,.2); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 4px; background: var(--surface-low); border: 1px solid var(--outline); border-radius: var(--r-md); padding: 0; width: 38px; height: 38px; align-items: center; justify-content: center; transition: background .12s; }
.hamburger:hover { background: var(--surface-med); }
.hamburger span { display: block; width: 16px; height: 2px; background: var(--on-surface-2); border-radius: 2px; }

/* Side menu */
.side-overlay { position: fixed; inset: 0; background: rgba(25,28,30,.45); z-index: 299; display: none; }
.side-overlay.active { display: block; }
.side-menu { position: fixed; top: 0; right: -300px; width: 276px; height: 100%; background: var(--surface); box-shadow: -8px 0 32px rgba(0,0,0,.1); z-index: 300; transition: right .28s ease; overflow-y: auto; padding-bottom: 20px; }
.side-menu.active { right: 0; }
.side-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--outline); }
.side-menu-brand { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.side-menu-brand span { color: var(--primary); }
.side-menu-close { width: 30px; height: 30px; background: var(--surface-low); border: 1px solid var(--outline); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; color: var(--on-surface-2); font-size: 13px; transition: background .15s; }
.side-menu-close:hover { background: var(--red-bg); color: var(--red); }
.side-menu ul { list-style: none; padding: 10px; }
.side-menu ul li a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); font-size: 14px; font-weight: 500; color: var(--on-surface-2); transition: background .12s, color .12s; margin-bottom: 2px; }
.side-menu ul li a i { width: 15px; text-align: center; color: var(--primary); font-size: 12px; }
.side-menu ul li a:hover { background: var(--surface-low); color: var(--on-surface); }

/* ---- Category Bar ---- */
.cat-bar-wrap { background: var(--surface); border-bottom: 1px solid var(--outline); position: sticky; top: var(--header-h); z-index: 100; }
.cat-bar-outer { display: flex; align-items: center; position: relative; }
.cat-scroll-btn { width: 30px; height: 30px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; color: var(--on-surface-2); font-size: 11px; transition: all .15s; z-index: 2; opacity: 0; pointer-events: none; margin: 10px 4px; box-shadow: var(--shadow-sm); }
.cat-scroll-btn.visible { opacity: 1; pointer-events: auto; }
.cat-scroll-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.cat-bar { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 10px 4px; scrollbar-width: none; flex: 1; scroll-behavior: smooth; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-btn {
    display: flex; align-items: center; gap: 6px; padding: 6px 14px;
    border-radius: var(--r-full); font-size: 13px; font-weight: 500; white-space: nowrap;
    border: 1px solid var(--outline); color: var(--on-surface-2); background: var(--surface);
    flex-shrink: 0; transition: all .15s;
}
.cat-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-xlight); }
.cat-btn.active { background: var(--primary); color: white; border-color: var(--primary); font-weight: 600; }
.cat-btn i { font-size: 11px; }
.cat-count { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: var(--r-full); background: rgba(0,0,0,.08); }
.cat-btn.active .cat-count { background: rgba(255,255,255,.25); }

/* Mobile search bar */
.search-wrap-mobile { display: none; padding: 10px 0; background: var(--surface); border-bottom: 1px solid var(--outline); position: relative; }
.search-wrap-mobile form { display: flex; }
.search-suggest-mobile { position: absolute; top: 100%; left: 24px; right: 24px; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-lg); box-shadow: var(--shadow-xl); z-index: 300; overflow: hidden; display: none; max-height: 280px; overflow-y: auto; margin-top: 4px; }
.search-suggest-mobile.show { display: block; }

/* ---- Page Body ---- */
.page-body { padding: 28px 0 80px; }

/* ---- Hero Banner ---- */
.banner-section { margin-bottom: 32px; }
.banner-swiper { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--outline); }
.banner-swiper img { width: 100%; aspect-ratio: 21/7; object-fit: cover; }
.swiper-pagination-bullet { background: rgba(255,255,255,.5) !important; }
.swiper-pagination-bullet-active { background: white !important; }

/* ---- Section ---- */
.section-block { margin-bottom: 44px; }
.section-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.section-title { font-size: 20px; font-weight: 700; color: var(--on-surface); display: flex; align-items: center; gap: 10px; letter-spacing: -0.02em; }
.section-title .ttl-accent { color: var(--primary); }
.section-title-bar { width: 3px; height: 20px; background: var(--primary); border-radius: 2px; flex-shrink: 0; }
.section-badge { display: inline-flex; align-items: center; gap: 5px; background: #fff7ed; color: var(--orange); font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: var(--r-full); border: 1px solid rgba(194,65,12,.15); }
.section-link { font-size: 13px; font-weight: 500; color: var(--primary); display: flex; align-items: center; gap: 4px; transition: gap .15s; }
.section-link:hover { gap: 7px; }

/* ---- Product Cards ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 14px; }
.product-card {
    background: var(--surface); border: 1px solid var(--outline);
    border-radius: var(--r-xl); overflow: hidden; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    opacity: 0; transform: translateY(8px);
}
.product-card.visible { opacity: 1; transform: translateY(0); transition: opacity .4s ease, transform .4s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.card-img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--surface-low); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .card-img-wrap img { transform: scale(1.05); }
.card-discount { position: absolute; top: 8px; right: 8px; background: var(--red); color: white; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-sm); }
.card-hot { position: absolute; top: 8px; left: 8px; background: var(--orange); color: white; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-sm); display: flex; align-items: center; gap: 3px; }
.card-body { padding: 12px; }
.card-cat { display: inline-flex; align-items: center; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); background: var(--primary-xlight); padding: 2px 8px; border-radius: var(--r-sm); margin-bottom: 7px; }
.card-name { font-size: 13px; font-weight: 600; color: var(--on-surface); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.card-price-wrap { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-now { font-size: 15px; font-weight: 800; color: var(--primary); letter-spacing: -0.01em; }
.price-plain { font-size: 15px; font-weight: 800; color: var(--on-surface); letter-spacing: -0.01em; }
.price-old { font-size: 11px; color: var(--on-surface-3); text-decoration: line-through; }
.reseller-price-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 99px; background: #fffbeb; color: #d97706; border: 1px solid rgba(217,119,6,.2); }
.card-sold { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--on-surface-3); margin-top: 6px; }
.card-sold i { color: var(--orange); font-size: 10px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-full); margin-top: 6px; }
.badge-success { background: var(--green-bg); color: var(--green); }
.badge-warning { background: var(--orange-bg); color: var(--orange); }
.badge-error { background: var(--red-bg); color: var(--red); }

/* ---- Komunitas / Grup ---- */
.grup-section { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a2d4a 100%); padding: 24px 0; border-radius: var(--r-xl); margin-bottom: 32px; overflow: hidden; position: relative; }
.grup-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.grup-title { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; z-index: 1; }
.grup-title i { color: #60a5fa; }
.grup-swiper { overflow: hidden; position: relative; mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); padding: 4px 0 12px; }
.grup-swiper .swiper-wrapper { transition-timing-function: linear !important; }
.grup-card { display: flex; align-items: center; gap: 14px; width: auto; max-width: 280px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-xl); padding: 12px 16px; color: white; transition: all .25s; backdrop-filter: blur(8px); }
.grup-card:hover { background: rgba(255,255,255,.14); border-color: rgba(96,165,250,.4); transform: translateY(-2px); }
.grup-card-img { width: 48px; height: 48px; border-radius: var(--r-lg); overflow: hidden; flex-shrink: 0; border: 2px solid rgba(255,255,255,.15); }
.grup-card-img img { width: 100%; height: 100%; object-fit: cover; }
.grup-card-info h4 { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.grup-card-info span { font-size: 11px; color: rgba(255,255,255,.5); }

/* ---- Why cards ---- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-xl); padding: 24px; display: flex; align-items: flex-start; gap: 16px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.why-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.why-card-border-left { border-left: 3px solid var(--primary); }
.why-icon { width: 44px; height: 44px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.why-icon.blue { background: var(--primary-xlight); color: var(--primary); }
.why-icon.indigo { background: #eef2ff; color: #6366f1; }
.why-icon.slate { background: #f0f9ff; color: #0284c7; }
.why-info h4 { font-size: 15px; font-weight: 700; color: var(--on-surface); margin-bottom: 5px; }
.why-info p { font-size: 13px; color: var(--on-surface-2); line-height: 1.6; }

/* ---- Steps ---- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-xl); padding: 24px 16px; text-align: center; position: relative; transition: border-color .15s, transform .15s, box-shadow .15s; }
.step-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step-num { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; font-size: 11px; font-weight: 700; width: 22px; height: 22px; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; }
.step-icon { width: 48px; height: 48px; border-radius: var(--r-lg); background: var(--primary-xlight); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; margin: 0 auto 12px; }
.step-card h4 { font-size: 14px; font-weight: 700; color: var(--on-surface); margin-bottom: 6px; }
.step-card p { font-size: 12.5px; color: var(--on-surface-2); line-height: 1.6; }

/* ---- Testimonial ---- */
.testi-card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-xl); padding: 22px; height: 100%; transition: border-color .15s, box-shadow .15s; }
.testi-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.testi-stars { color: #f59e0b; margin-bottom: 10px; font-size: 13px; display: flex; gap: 2px; }
.testi-text { font-size: 13.5px; color: var(--on-surface-2); line-height: 1.65; margin-bottom: 14px; font-style: italic; }
.testi-author { font-size: 13px; font-weight: 600; color: var(--on-surface); }

/* ---- Special panels (Attic / Necro / Ultra) ---- */
.special-panel { display: none; }
.special-panel.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.panel-header { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r-xl); margin-bottom: 20px; border: 1px solid var(--outline); }
.panel-header.attic { background: var(--primary-xlight); border-color: rgba(37,99,235,.25); }
.panel-header.necro { background: var(--red-bg); border-color: rgba(186,26,26,.25); }
.panel-header.ultra { background: #f5f3ff; border-color: rgba(124,58,237,.25); }
.panel-logo { width: 50px; height: 50px; border-radius: var(--r-lg); overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.panel-logo img { width: 100%; height: 100%; object-fit: cover; }
.panel-info h3 { font-size: 17px; font-weight: 700; color: var(--on-surface); margin-bottom: 2px; }
.panel-info p { font-size: 12.5px; color: var(--on-surface-2); }
.panel-steps { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px; }
.ps { flex: 1; display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 12.5px; font-weight: 500; color: var(--on-surface-3); transition: all .2s; }
.ps.active.attic-clr { color: var(--primary); background: var(--primary-xlight); font-weight: 600; }
.ps.active.necro-clr { color: var(--red); background: var(--red-bg); font-weight: 600; }
.ps.active.ultra-clr { color: #7c3aed; background: #f5f3ff; font-weight: 600; }
.ps.done { color: var(--green); }
.ps-num { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.ps.active.attic-clr .ps-num { background: var(--primary); border-color: var(--primary); color: white; }
.ps.active.necro-clr .ps-num { background: var(--red); border-color: var(--red); color: white; }
.ps.active.ultra-clr .ps-num { background: #7c3aed; border-color: #7c3aed; color: white; }
.ps.done .ps-num { background: var(--green); border-color: var(--green); color: white; }
.ps-sep { width: 1px; height: 32px; background: var(--outline); flex-shrink: 0; }
.panel-lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-surface-3); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.panel-lbl i { color: var(--primary); }
.panel-lbl.necro { color: var(--red); }
.panel-lbl.ultra { color: #7c3aed; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.game-card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-lg); padding: 18px 12px; text-align: center; cursor: pointer; transition: all .15s; }
.game-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.game-card.selected.attic-sel { border-color: var(--primary); background: var(--primary-xlight); }
.game-card.selected.necro-sel { border-color: var(--red); background: var(--red-bg); }
.game-card.selected.ultra-sel { border-color: #7c3aed; background: #f5f3ff; }
.game-icon { width: 44px; height: 44px; border-radius: var(--r-lg); margin: 0 auto 10px; background: var(--primary-xlight); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; overflow: hidden; }
.game-icon.necro-icon { background: var(--red-bg); color: var(--red); }
.game-icon.ultra-icon { background: #f5f3ff; color: #7c3aed; }
.game-name { font-size: 12.5px; font-weight: 600; color: var(--on-surface); line-height: 1.3; }
.game-code { font-size: 10px; color: var(--on-surface-3); margin-top: 2px; }
.game-status { display: inline-block; margin-top: 5px; padding: 2px 7px; border-radius: var(--r-full); font-size: 9.5px; font-weight: 600; }
.game-status.safe { background: var(--green-bg); color: var(--green); }
.game-status.unsafe { background: var(--red-bg); color: var(--red); }
.game-check { display: none; width: 18px; height: 18px; border-radius: 50%; color: white; font-size: 8px; align-items: center; justify-content: center; margin: 6px auto 0; }
.game-card.selected.attic-sel .game-check { display: flex; background: var(--primary); }
.game-card.selected.necro-sel .game-check { display: flex; background: var(--red); }
.game-card.selected.ultra-sel .game-check { display: flex; background: #7c3aed; }
.durasi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
.durasi-card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-lg); padding: 18px 16px; cursor: pointer; transition: all .15s; display: block; position: relative; }
.durasi-card.attic-dur:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.durasi-card.necro-dur:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.durasi-card.ultra-dur:hover { border-color: #7c3aed; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dur-days { font-size: 24px; font-weight: 800; color: var(--on-surface); line-height: 1; letter-spacing: -0.02em; }
.dur-days span { font-size: 12px; font-weight: 500; color: var(--on-surface-2); }
.dur-price { font-size: 14px; font-weight: 700; color: var(--green); margin: 6px 0 2px; }
.dur-note { font-size: 10.5px; color: var(--on-surface-3); }
.dur-arrow { position: absolute; bottom: 10px; right: 12px; font-size: 11px; color: var(--primary); opacity: 0; transition: opacity .15s, transform .15s; }
.durasi-card.necro-dur .dur-arrow { color: var(--red); }
.durasi-card.ultra-dur .dur-arrow { color: #7c3aed; }
.durasi-card:hover .dur-arrow { opacity: 1; transform: translateX(3px); }
.panel-loading { display: flex; gap: 6px; justify-content: center; padding: 30px; }
.panel-loading span { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: dotBounce 1s ease-in-out infinite; }
.panel-loading span:nth-child(2) { animation-delay: .12s; }
.panel-loading span:nth-child(3) { animation-delay: .24s; }
@keyframes dotBounce { 0%, 100% { transform: scaleY(1); opacity: .4; } 45% { transform: scaleY(1.6); opacity: 1; } }
.panel-empty { text-align: center; padding: 36px; color: var(--on-surface-3); background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-lg); }
.panel-empty i { font-size: 24px; opacity: .3; display: block; margin-bottom: 10px; }
.panel-empty p { font-size: 13px; }

/* ---- Footer ---- */
.site-footer { background: var(--surface); border-top: 1px solid var(--outline); }
.footer-main { padding: 48px 0 36px; border-bottom: 1px solid var(--outline); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.footer-logo { width: 40px; height: 40px; border-radius: var(--r-lg); margin-bottom: 14px; overflow: hidden; border: 1px solid var(--outline); }
.footer-logo img { width: 100%; height: 100%; object-fit: cover; }
.footer-brand-name { font-size: 16px; font-weight: 800; color: var(--on-surface); margin-bottom: 8px; letter-spacing: -0.01em; }
.footer-brand-name span { color: var(--primary); }
.footer-desc { font-size: 13px; color: var(--on-surface-2); line-height: 1.65; margin-bottom: 18px; }
.footer-socials { display: flex; gap: 8px; }
.social-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: var(--r-md); font-size: 12.5px; font-weight: 600; color: white; transition: opacity .15s, transform .15s; }
.social-btn.tg { background: #0088cc; }
.social-btn.wa { background: #25D366; }
.social-btn:hover { transform: translateY(-1px); opacity: .9; }
.footer-col-title { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-surface-3); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13.5px; color: var(--on-surface-2); font-weight: 500; transition: color .15s; }
.footer-links a:hover { color: var(--primary); }
.footer-img-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 18px; }
.footer-img-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--outline); background: white; transition: transform .15s; }
.footer-img-grid img:hover { transform: scale(1.04); }
.footer-bottom { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12.5px; color: var(--on-surface-3); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12.5px; color: var(--on-surface-3); transition: color .15s; }
.footer-bottom-links a:hover { color: var(--primary); }

/* ---- FAB & Help popup ---- */
.help-fab { position: fixed; bottom: 24px; right: 24px; z-index: 999; width: 50px; height: 50px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .15s, background .15s; }
.help-fab:hover { transform: scale(1.06); background: var(--primary-dark); }
.help-popup { position: fixed; bottom: 86px; right: 24px; z-index: 998; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-xl); padding: 20px; min-width: 252px; box-shadow: var(--shadow-xl); transform: translateY(8px) scale(.96); opacity: 0; visibility: hidden; transition: all .2s ease; }
.help-popup.show { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.help-popup-close { position: absolute; top: 10px; right: 14px; font-size: 18px; color: var(--on-surface-3); cursor: pointer; }
.help-popup h4 { font-size: 14px; font-weight: 700; color: var(--on-surface); margin-bottom: 3px; }
.help-popup p { font-size: 12.5px; color: var(--on-surface-2); margin-bottom: 14px; }
.help-popup-btns { display: flex; flex-direction: column; gap: 6px; }
.help-popup-btns a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-md); font-size: 13px; font-weight: 600; color: white; transition: opacity .15s, transform .15s; }
.help-popup-btns a:hover { transform: translateY(-1px); opacity: .92; }
.help-popup-btns a.tg { background: #0088cc; }
.help-popup-btns a.wa { background: #25D366; }

/* ---- Purchase notif ---- */
.purch-notif { position: fixed; bottom: 20px; left: 20px; max-width: 295px; background: var(--surface); border: 1px solid var(--outline); border-left: 3px solid var(--primary); padding: 12px 14px; border-radius: var(--r-lg); box-shadow: var(--shadow-xl); display: flex; align-items: center; gap: 10px; transform: translateX(-130%); transition: transform .35s cubic-bezier(.4,0,.2,1); z-index: 490; }
.purch-notif.show { transform: translateX(0); }
.purch-notif-img { width: 40px; height: 40px; border-radius: var(--r-lg); object-fit: cover; border: 1px solid var(--outline); flex-shrink: 0; }
.purch-notif-body { flex: 1; min-width: 0; }
.purch-notif-text { font-size: 12.5px; color: var(--on-surface); line-height: 1.4; }
.purch-notif-time { font-size: 10.5px; color: var(--on-surface-3); margin-top: 2px; }
.purch-notif-close { font-size: 18px; color: var(--on-surface-3); cursor: pointer; flex-shrink: 0; }

/* ---- Info popup ---- */
.popup-overlay { position: fixed; inset: 0; background: rgba(25,28,30,.5); z-index: 500; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .25s; }
.popup-overlay.show { opacity: 1; visibility: visible; }
.popup-box { background: var(--surface); border-radius: var(--r-2xl); width: 90%; max-width: 400px; overflow: hidden; box-shadow: var(--shadow-xl); transform: scale(.94); transition: transform .25s; }
.popup-overlay.show .popup-box { transform: scale(1); }
.popup-head { background: var(--primary); color: white; padding: 12px 20px; font-size: 13px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.popup-body img { width: 100%; display: block; }
.popup-foot { padding: 20px; }
.popup-marquee { font-size: 13px; color: var(--on-surface); margin-bottom: 12px; display: block; font-weight: 500; }
.popup-join { display: block; width: 100%; padding: 12px; background: var(--primary); color: white; border-radius: var(--r-lg); text-align: center; font-weight: 700; font-size: 14px; margin-bottom: 12px; transition: background .15s; }
.popup-join:hover { background: var(--primary-dark); }
.popup-controls { display: flex; align-items: center; justify-content: space-between; }
.popup-hide { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--on-surface-2); cursor: pointer; }
.popup-hide input[type="checkbox"] { appearance: none; width: 15px; height: 15px; border: 2px solid var(--outline-strong); border-radius: var(--r-sm); background: white; cursor: pointer; position: relative; transition: all .15s; }
.popup-hide input:checked { background: var(--primary); border-color: var(--primary); }
.popup-hide input:checked::after { content: ''; position: absolute; top: -1px; left: 3px; width: 5px; height: 8px; border: 2px solid white; border-top: none; border-left: none; transform: rotate(45deg); }
.popup-close-btn { padding: 7px 16px; background: var(--surface-low); border: 1px solid var(--outline); border-radius: var(--r-md); font-size: 13px; font-weight: 600; color: var(--on-surface-2); cursor: pointer; transition: background .15s; }
.popup-close-btn:hover { background: var(--surface-med); color: var(--on-surface); }

/* ---- Empty state ---- */
.empty-state { grid-column: 1/-1; text-align: center; padding: 50px 20px; color: var(--on-surface-3); background: var(--surface); border: 1px dashed var(--outline-strong); border-radius: var(--r-xl); }
.empty-state i { font-size: 30px; opacity: .2; display: block; margin-bottom: 10px; }
.empty-state p { font-size: 14px; }

/* ---- Bottom Nav (Mobile) ---- */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--surface); border-top: 1px solid var(--outline); padding: 8px 0 max(8px, env(safe-area-inset-bottom)); }
.bottom-nav-inner { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 12px; border-radius: var(--r-lg); color: var(--on-surface-3); font-size: 10px; font-weight: 500; transition: color .15s, background .15s; min-width: 56px; }
.bottom-nav-btn.active { color: var(--primary); }
.bottom-nav-btn i { font-size: 20px; }
.bottom-nav-btn .msym { font-size: 22px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-nav a span { display: none; }
}
@media (max-width: 768px) {
    .header-nav, .top-bar { display: none; }
    .hamburger { display: flex; }
    .why-grid { grid-template-columns: 1fr; gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .help-fab { bottom: 72px; right: 18px; }
    .purch-notif { bottom: 72px; left: 14px; max-width: 265px; }
    .help-popup { right: 14px; min-width: unset; left: 14px; bottom: 130px; }
    .ps span { display: none; }
    .search-wrap { display: none; }
    .search-wrap-mobile { display: block; }
    .cat-scroll-btn { display: none !important; }
    .section-title { font-size: 18px; }
    .page-body { padding: 20px 0 70px; }
    .bottom-nav { display: block; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .product-grid { gap: 8px; }
    .card-body { padding: 10px; }
    .card-name { font-size: 12.5px; }
    .price-now, .price-plain { font-size: 14px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }
}
