/* ===========================================================
   ANDRE STORE — UI v3 (tema terang putih-biru)
   Satu stylesheet untuk semua halaman publik. Tanpa font eksternal,
   tanpa icon font, tanpa blur/backdrop-filter. Terang = default (html[data-theme="light"]); token gelap tetap tersedia.
   =========================================================== */

/* ---------- FONT (self-host, tanpa request ke Google) ---------- */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/pjs-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: italic; font-weight: 200 800; font-display: swap; src: url('/fonts/pjs-italic.woff2') format('woff2'); }

/* ---------- TOKENS (hitam + biru; warna aksen diatur dari Admin > Tema) ---------- */
:root {
  --accent: #2563eb;
  --accent-bright: color-mix(in srgb, var(--accent) 78%, #fff);
  --accent-deep: color-mix(in srgb, var(--accent) 68%, #000);
  /* warna teks DI ATAS warna aksen (tombol emas = teks gelap). layout.ejs mengisinya otomatis dari kecerahan warna aksen. */
  --on-accent: #ffffff;
  --grad: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  --grad-soft: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent-deep) 16%, transparent));
  --accent-10: color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-18: color-mix(in srgb, var(--accent) 18%, transparent);
  --accent-30: color-mix(in srgb, var(--accent) 30%, transparent);
  --accent-50: color-mix(in srgb, var(--accent) 50%, transparent);

  --bg-main: #02040b;
  --bg-section: #060a16;
  --bg-card: #0a1020;
  --bg-hover: #101a33;
  --border: #14224a;
  --border-md: #1f3160;
  --text-1: #ffffff;
  --text-2: #a9b6d6;
  --text-3: #6b7a9e;
  --shadow: 0 10px 30px rgba(0, 0, 0, .55);
  --glow: 0 6px 18px color-mix(in srgb, var(--accent) 24%, transparent);
  --header-bg: #030610;

  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, .12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, .12);
  --amber: #f59e0b;
  --brand-wa: #25d366;

  /* alias lama (dipakai halaman lain) */
  --blue: var(--accent);
  --blue-dark: var(--accent-deep);
  --blue-dim: var(--accent-10);
  --blue-border: var(--accent-30);
  --blue-border-strong: var(--accent-50);
  --accent-color: var(--accent);
  --neon-purple: var(--accent);
  --neon-purple-10: var(--accent-10);
  --neon-purple-12: color-mix(in srgb, var(--accent) 12%, transparent);
  --neon-purple-18: var(--accent-18);
  --neon-purple-20: color-mix(in srgb, var(--accent) 20%, transparent);
  --neon-purple-25: color-mix(in srgb, var(--accent) 25%, transparent);
  --neon-purple-35: color-mix(in srgb, var(--accent) 35%, transparent);
  --glow-color: var(--accent-10);
  --catalog-card-bg: var(--bg-card);
  --catalog-card-text: var(--text-1);
  --catalog-card-text-muted: var(--text-2);
  --catalog-card-border: var(--border);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}

/* Tema terang sudah tidak dipakai (desain baru hanya hitam-emas); blok ini dibiarkan supaya kelas lama tidak error. */
html[data-theme="light"] {
  --bg-main: #f4f8ff;
  --bg-section: #eaf2ff;
  --bg-card: #ffffff;
  --bg-hover: #eef4ff;
  --border: #dbe6fa;
  --border-md: #c3d5f5;
  --text-1: #0b1b3a;
  --text-2: #4a5d82;
  --text-3: #7d8db0;
  --shadow: 0 8px 24px rgba(37, 99, 235, .10);
  --header-bg: #ffffff;
  --green-dim: rgba(34, 197, 94, .14);
  color-scheme: light;
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg-main); }
body {
  margin: 0; min-height: 100dvh; width: 100%; max-width: 100%;
  font-family: var(--font); background: var(--bg-main); color: var(--text-1);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
iconify-icon { display: inline-block; width: 1em; height: 1em; line-height: 1; vertical-align: -.125em; flex-shrink: 0; }
iconify-icon svg { display: block; width: 1em; height: 1em; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }
@keyframes slideRight { from { opacity: 0; transform: translateX(100%) } to { opacity: 1; transform: translateX(0) } }
@keyframes slideBottom { from { transform: translateY(100%) } to { transform: translateY(0) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes marquee { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: translateY(0) } }
@keyframes pulseDot { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.animate-spin { animation: spin 1s linear infinite; }
.fade-in-up { animation: slideUp .3s ease both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- KOMPONEN LAMA (dipakai buy/dashboard/dll) ---------- */
.glass, .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
.glass-strong { background: var(--bg-card); border: 1px solid var(--border-md); border-radius: 14px; }
.card-hover { transition: border-color .2s, background .2s; cursor: pointer; }
.card-hover:hover { border-color: var(--accent-50); background: var(--bg-hover); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 13px; border-radius: 12px; cursor: pointer; transition: opacity .15s, transform .1s; border: none; text-decoration: none; font-family: inherit; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: var(--on-accent); padding: 11px 18px; }
.btn-primary:hover { opacity: .9; }
.btn-outline { background: transparent; border: 1px solid var(--border-md); color: var(--text-2); padding: 10px 16px; }
.btn-outline:hover { border-color: var(--accent); color: var(--text-1); }
.btn-green { background: var(--green); color: #fff; padding: 11px 18px; }
.btn-red { background: var(--red); color: #fff; padding: 11px 18px; }
.btn-green:hover, .btn-red:hover { opacity: .88; }
.btn-ghost { background: var(--bg-hover); border: 1px solid var(--border); color: var(--text-2); padding: 10px 14px; }
.btn-ghost:hover { border-color: var(--border-md); color: var(--text-1); }
:where(.hm-input, .form-input) {
  width: 100%; padding: 11px 14px; border-radius: 12px; background: var(--bg-section);
  border: 1px solid var(--border-md); color: var(--text-1); font-size: 13px; font-family: inherit; transition: border-color .15s;
}
.hm-input:focus, .form-input:focus { outline: none; border-color: var(--accent); background: var(--accent-10); }
.hm-input::placeholder, .form-input::placeholder { color: var(--text-3); }
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.status-pending { background: rgba(245, 158, 11, .12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, .25); }
.status-done { background: var(--green-dim); color: #4ade80; border: 1px solid rgba(34, 197, 94, .25); }
.status-cancelled { background: var(--red-dim); color: #f87171; border: 1px solid rgba(239, 68, 68, .25); }
.product-card { transition: border-color .2s, opacity .15s; }
.product-card:hover { border-color: var(--accent-50) !important; }
.h-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll-item { scroll-snap-align: start; flex-shrink: 0; }
.filter-pill { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-2); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: all .15s; }
.filter-pill.active, .filter-pill:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.section-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.marquee-track { animation: marquee 22s linear infinite; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); z-index: 9000; display: flex; align-items: flex-end; }
.modal-sheet { width: 100%; background: var(--bg-card); border-top: 1px solid var(--border); border-radius: 24px 24px 0 0; max-height: 92dvh; overflow-y: auto; animation: slideBottom .22s ease both; }
.side-drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--bg-card); border-left: 1px solid var(--border); overflow-y: auto; animation: slideRight .22s ease both; }
#paymentModal { position: fixed !important; z-index: 99999 !important; }
#toast-container { position: fixed; bottom: 20px; left: 12px; right: 12px; z-index: 9500; display: flex; flex-direction: column-reverse; gap: 6px; pointer-events: none; }
#toast-container > * { pointer-events: auto; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border-md); background: var(--bg-hover); font-size: 12px; color: var(--text-1); animation: toastIn .2s ease both; max-width: 100%; box-shadow: var(--shadow); }
#purchase-notif-container { position: fixed; bottom: 84px; left: 12px; z-index: 9200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.purchase-notif { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--accent-30); animation: toastIn .3s ease both; max-width: 270px; box-shadow: var(--shadow); }
.purchase-notif-avatar { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; }
.purchase-notif-name { font-size: 11px; font-weight: 800; color: var(--text-1); }
.purchase-notif-product { font-size: 10px; color: var(--text-2); }
.purchase-notif-price { font-size: 10px; font-weight: 800; color: var(--green); white-space: nowrap; }
.avatar-wrap { position: relative; cursor: pointer; }
.avatar-wrap:hover .avatar-overlay { opacity: 1; }
.avatar-overlay { position: absolute; inset: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.search-result-row { cursor: pointer; }

/* Kelas Tailwind "terang" yang masih dipakai halaman lama -> ikut tema */
html[data-theme="dark"] .bg-white { background-color: var(--bg-card) !important; }
html[data-theme="dark"] .bg-zinc-50, html[data-theme="dark"] .bg-zinc-100 { background-color: var(--bg-hover) !important; }
html[data-theme="dark"] .bg-zinc-200 { background-color: var(--border) !important; }
html[data-theme="dark"] .text-zinc-900, html[data-theme="dark"] .text-zinc-800, html[data-theme="dark"] .text-zinc-700, html[data-theme="dark"] .text-black { color: var(--text-1) !important; }
html[data-theme="dark"] .text-zinc-600, html[data-theme="dark"] .text-zinc-500 { color: var(--text-2) !important; }
html[data-theme="dark"] .text-zinc-400, html[data-theme="dark"] .text-zinc-300 { color: var(--text-3) !important; }
html[data-theme="dark"] .border-zinc-100, html[data-theme="dark"] .border-zinc-200, html[data-theme="dark"] .border-zinc-300 { border-color: var(--border) !important; }
html[data-theme="dark"] .hover\:bg-zinc-50:hover, html[data-theme="dark"] .hover\:bg-zinc-100:hover { background-color: var(--bg-hover) !important; }
html[data-theme="light"] .text-white\/70, html[data-theme="light"] .text-white\/60, html[data-theme="light"] .text-white\/50, html[data-theme="light"] .text-white\/40, html[data-theme="light"] .text-white\/30 { color: var(--text-2) !important; }

/* ---------- HEADER (Valora: logo + wordmark, hamburger bulat, garis emas) ---------- */
.ag-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 66px; background: linear-gradient(180deg, #0d0d10, #050507); box-shadow: 0 1px 0 var(--accent-30), 0 8px 26px color-mix(in srgb, var(--accent) 10%, transparent); }
.ag-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent) 25%, var(--accent-bright) 50%, var(--accent) 75%, transparent); opacity: .9; pointer-events: none; }
.ag-header-in { max-width: 1080px; height: 100%; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ag-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ag-brand img.ag-logo { height: 46px; width: auto; max-width: 150px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 35%, transparent)); }
.ag-footer .ag-brand img.ag-logo { height: 40px; }
.ag-menu-title img.ag-logo { height: 36px; width: auto; max-width: 120px; object-fit: contain; }
.ag-brand img:not(.ag-logo) { height: 24px !important; max-width: 100%; }
.ag-nav { display: none; align-items: center; gap: 4px; }
.ag-nav a { padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--text-2); transition: color .15s, background .15s; }
.ag-nav a:hover, .ag-nav a.active { color: var(--accent); background: var(--accent-10); }
.ag-nav a.ag-cta { color: var(--on-accent); background: var(--grad); }
.ag-actions { display: flex; align-items: center; gap: 8px; }
.ag-icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border-md); background: var(--bg-card); color: var(--text-1); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: border-color .15s; }
.ag-icon-btn:hover { border-color: var(--accent); }
.ag-burger { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--accent); background: var(--accent-10); color: var(--accent); font-size: 22px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ag-burger:hover { background: var(--accent-18); }
.ag-btn-sm { padding: 9px 15px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; border: 1px solid var(--accent-50); background: transparent; color: var(--accent); }
.ag-btn-sm.solid { border: none; background: var(--grad); color: var(--on-accent); }
.ag-spacer { height: 66px; }
/* Masuk/Daftar/akun di header hanya di desktop; di HP semuanya ada di menu (hamburger) */
.ag-actions .ag-btn-sm, .ag-actions .ag-acc-btn { display: none; }
@media (min-width: 820px) { .ag-nav { display: flex; } .ag-actions .ag-btn-sm, .ag-actions .ag-acc-btn { display: inline-flex; } }

/* ---------- SIDE MENU (drawer) ---------- */
.ag-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ag-menu-title { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 14px; letter-spacing: .4px; }
.ag-menu-section { padding: 14px 16px 6px; font-size: 10px; font-weight: 900; letter-spacing: 2px; color: var(--text-3); }
.ag-menu-links { padding: 4px 10px; display: flex; flex-direction: column; gap: 4px; }
.ag-menu-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; font-size: 13px; font-weight: 700; color: var(--text-2); border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.ag-menu-link:hover, .ag-menu-link.active { background: var(--accent-10); border-color: var(--accent-30); color: var(--text-1); }
.ag-menu-link iconify-icon.lead { font-size: 18px; color: var(--accent-bright); }
.ag-menu-link .grow { flex: 1; min-width: 0; }
.ag-menu-link small { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-3); margin-top: 1px; }
.ag-chip-vip { font-size: 9px; font-weight: 900; padding: 2px 7px; border-radius: 999px; background: rgba(245, 158, 11, .15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, .35); }
.ag-account { margin: 12px 16px; padding: 12px; border-radius: 16px; background: var(--bg-hover); border: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.ag-status { margin: 6px 16px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); font-size: 11px; color: var(--text-2); }
.ag-status b { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .5px; color: var(--text-1); margin-bottom: 2px; }
.ag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.ag-dot.live { animation: pulseDot 1.6s ease-in-out infinite; }
.ag-dot.maint { background: var(--amber); }
.ag-dot.patch { background: var(--red); }

/* ---------- CHAT ADMIN (melayang) + NAV BAWAH ---------- */
/* Tombol "Report masalah / Hubungi WA" melayang kanan bawah (kartu miring + bulatan WA, beranimasi) */
.ag-report { position: fixed; right: 14px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); z-index: 900; display: flex; align-items: center; animation: agFloat 3.2s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.ag-report-card { position: relative; overflow: hidden; margin-right: -26px; padding: 9px 38px 9px 16px; border-radius: 16px; background: linear-gradient(135deg, #0f172a, #1e3a8a); border: 1px solid rgba(96, 165, 250, .45); box-shadow: 0 10px 26px rgba(30, 58, 138, .38); transform: rotate(-6deg); transform-origin: right center; animation: agTilt 4.5s ease-in-out infinite; display: flex; flex-direction: column; line-height: 1.15; }
.ag-report-card small { font-size: 10px; font-weight: 900; letter-spacing: 1.6px; color: #60a5fa; }
.ag-report-card b { margin-top: 2px; font-size: 16px; font-weight: 900; color: #fff; white-space: nowrap; }
.ag-report-card::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-18deg); animation: agShine 3.6s ease-in-out infinite; }
.ag-report-wa { position: relative; z-index: 1; width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-wa); color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .45); }
.ag-report-wa iconify-icon { font-size: 34px; animation: agRing 2.8s ease-in-out infinite; transform-origin: 50% 60%; }
.ag-report-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand-wa); z-index: -1; animation: agPulse 2s ease-out infinite; }
.ag-report:active .ag-report-wa { transform: scale(.94); }
@keyframes agFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes agTilt { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(-3deg) translateX(-2px); } }
@keyframes agShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes agPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes agRing { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(-14deg); } 72% { transform: rotate(12deg); } 78% { transform: rotate(-10deg); } 84% { transform: rotate(8deg); } 90% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .ag-report, .ag-report-card, .ag-report-card::after, .ag-report-wa iconify-icon, .ag-report-wa::before { animation: none; } }
.vnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: linear-gradient(180deg, rgba(14, 14, 18, .97), #000); box-shadow: 0 -1px 0 var(--accent-30), 0 -10px 28px rgba(0, 0, 0, .7); }
.vnav::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-bright) 50%, var(--accent) 70%, transparent); opacity: .8; pointer-events: none; }
.vnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #d6d6de; font-size: 11px; font-weight: 600; position: relative; }
.vnav a iconify-icon { font-size: 22px; }
.vnav a.on { color: var(--accent); }
.vnav a.on::after { content: ""; position: absolute; bottom: 6px; width: 32px; height: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 80%, transparent); }
@media (min-width: 820px) { .vnav { display: none; } .ag-report { bottom: 22px; } }
#toast-container { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

/* ---------- HALAMAN: pembungkus ---------- */
.ag-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.ag-section-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-size: 15px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; }
.ag-section-title .ag-dot { width: 9px; height: 9px; }

/* ---------- BANNER (carousel + titik emas) ---------- */
.vhome { padding-top: 14px; }
.ag-banner { position: relative; margin: 0; }
.ag-banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 20px; }
.ag-banner-track::-webkit-scrollbar { display: none; }
.ag-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 10px 34px rgba(0, 0, 0, .6), 0 0 26px color-mix(in srgb, var(--accent) 12%, transparent); background: var(--bg-section); }
.ag-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 760px) { .ag-slide { aspect-ratio: 21 / 9; } }
.ag-banner-dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; justify-content: center; gap: 6px; pointer-events: none; z-index: 3; }
.ag-banner-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: width .2s, background .2s; }
.ag-banner-dots i.on { width: 22px; border-radius: 6px; background: var(--accent); }
/* banner bawaan (kalau belum ada banner di Admin > Settings) */
.ag-hero { display: flex; align-items: center; padding: 22px 20px; aspect-ratio: auto; min-height: 190px; background: radial-gradient(120% 140% at 90% 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%), linear-gradient(135deg, #14090b 0%, #070708 60%, #1b0a0d 100%); }
.ag-hero::before, .ag-hero::after { content: ""; position: absolute; pointer-events: none; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .75; transform: rotate(-32deg); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); }
.ag-hero::before { width: 46%; right: -8%; bottom: 30px; }
.ag-hero::after { width: 32%; right: -6%; bottom: 48px; opacity: .45; }
.ag-hero-txt { position: relative; z-index: 2; max-width: 62%; }
.ag-hero-pill { display: inline-block; border: 1px solid var(--accent-50); border-radius: 999px; padding: 4px 11px; font-size: 10.5px; font-weight: 700; color: var(--accent); background: var(--accent-10); }
.ag-hero h1 { margin: 10px 0 0; font-style: italic; font-weight: 800; font-size: clamp(24px, 7vw, 36px); line-height: 1.02; color: #f4f4f4; letter-spacing: -.01em; }
.ag-hero h1 b { background: linear-gradient(180deg, var(--accent-bright), var(--accent) 60%, var(--accent-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ag-hero p { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: #b6b2a6; }
.ag-hero-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 18px; border-radius: 999px; background: var(--grad); color: var(--on-accent); font-weight: 800; font-size: 12.5px; box-shadow: var(--glow); }
.ag-hero-logo { position: absolute; right: 12px; top: 50%; transform: translateY(-52%); width: 36%; max-width: 170px; height: auto; object-fit: contain; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 45%, transparent)); z-index: 1; }

/* ---------- MARQUEE + TOMBOL CARA BELI ---------- */
.ag-marquee { margin-top: 12px; border-radius: 14px; border: 1px solid var(--accent-30); background: var(--bg-card); overflow: hidden; padding: 9px 0; }
.ag-marquee .marquee-track { display: flex; white-space: nowrap; width: max-content; }
.ag-marquee span.item { display: inline-flex; align-items: center; gap: 22px; padding: 0 22px; font-size: 11px; font-weight: 700; letter-spacing: .4px; color: var(--text-1); }
.ag-marquee iconify-icon { color: var(--accent); font-size: 13px; }
.ag-howto { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 0; border-radius: 14px; font-size: 12px; font-weight: 800; letter-spacing: .5px; color: var(--on-accent); background: var(--grad); box-shadow: var(--glow); }

/* ---------- JUDUL SEKSI (garis emas di kiri) ---------- */
.vs-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 2px 11px; gap: 10px; }
.vs-head h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--text-1); display: flex; align-items: center; gap: 10px; }
.vs-head h2::before { content: ""; width: 4px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, var(--accent-bright), var(--accent)); box-shadow: 0 0 10px var(--accent-50); }
.vs-head a { color: var(--accent); font-size: 12.5px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.ag-section-title { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; font-size: 17px; font-weight: 800; }

/* ---------- KATEGORI (4 ubin) ---------- */
.vcat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.vcat-i { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 78px; padding: 10px 4px; border-radius: 15px; border: 1px solid var(--accent-50); background: linear-gradient(180deg, #16161b, #09090c); color: #f2f2f2; font-size: 12px; font-weight: 700; text-align: center; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 8%, transparent); }
.vcat-i iconify-icon { font-size: 24px; color: var(--accent); }
.vcat-i:hover, .vcat-i.on { background: linear-gradient(180deg, var(--accent-18), var(--accent-10)); border-color: var(--accent); box-shadow: 0 0 18px var(--accent-30); }
.vcat-i:active { transform: scale(.97); }

/* ---------- TOOLBAR: chip kategori + cari ---------- */
.ag-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--accent-30); position: relative; }
.ag-toolbar-icon { width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-10); color: var(--accent); flex-shrink: 0; }
.ag-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.ag-chips::-webkit-scrollbar { display: none; }
.ag-chip { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-md); background: transparent; color: var(--text-2); font-size: 11.5px; font-weight: 700; letter-spacing: .3px; cursor: pointer; white-space: nowrap; font-family: inherit; transition: all .15s; }
.ag-chip:hover { color: var(--text-1); border-color: var(--accent-50); }
.ag-chip.active { background: var(--grad); color: var(--on-accent); border-color: transparent; box-shadow: var(--glow); }
.ag-chips2 { margin-top: 8px; padding: 0 2px; }
.ag-search-toggle { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--border-md); background: var(--bg-hover); color: var(--text-1); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; cursor: pointer; flex-shrink: 0; }
.ag-search { display: none; align-items: center; gap: 8px; position: absolute; inset: 0; padding: 8px; border-radius: 18px; background: var(--bg-card); z-index: 2; }
.ag-toolbar.searching .ag-search { display: flex; }
.ag-search input { flex: 1; min-width: 0; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--accent-50); background: var(--bg-section); color: var(--text-1); font-size: 13px; font-family: inherit; outline: none; }

/* ---------- KARTU PRODUK (gambar persegi + status + tombol emas) ---------- */
.dc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
@media (min-width: 640px) { .dc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 960px) { .dc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dc-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); background: linear-gradient(180deg, #16161b, #09090c); box-shadow: 0 8px 26px rgba(0, 0, 0, .5), 0 0 18px color-mix(in srgb, var(--accent) 6%, transparent); transition: transform .2s, box-shadow .2s, border-color .2s; content-visibility: auto; contain-intrinsic-size: auto 330px; }
.dc-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 26px color-mix(in srgb, var(--accent) 16%, transparent); }
.dc-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--bg-section); overflow: hidden; }
.dc-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.dc-card:hover .dc-img { transform: scale(1.05); }
.dc-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75)); pointer-events: none; }
.dc-tags { position: absolute; top: 9px; left: 9px; right: 9px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 3; }
.dc-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: rgba(0, 0, 0, .78); border: 1px solid rgba(255, 255, 255, .16); color: #e8e8e8; }
.dc-status i { width: 7px; height: 7px; border-radius: 50%; background: #9aa0a6; }
.dc-status.online { color: #4ade80; border-color: rgba(74, 222, 128, .45); } .dc-status.online i { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.dc-status.maint { color: #fbbf24; border-color: rgba(251, 191, 36, .5); } .dc-status.maint i { background: #f59e0b; }
.dc-status.out { color: #fb7185; border-color: rgba(251, 113, 133, .5); } .dc-status.out i { background: #f43f5e; }
.dc-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; background: var(--grad); color: var(--on-accent); max-width: 100%; }
.dc-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 13px; flex: 1; }
.dc-cat { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-bright); font-weight: 800; }
.dc-name { margin: 0; font-size: 14px; font-weight: 800; line-height: 1.28; color: var(--text-1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-name a { color: inherit; }
.dc-desc { margin: 0; display: flex; gap: 6px; font-size: 11.5px; line-height: 1.45; color: #b0b0bb; }
.dc-desc iconify-icon { color: var(--accent); margin-top: 2px; font-size: 12px; }
.dc-desc span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: #a4a4b0; }
.dc-meta iconify-icon { color: var(--accent); margin-right: 2px; }
.dc-price { margin-top: auto; padding-top: 4px; font-size: 16px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.dc-price small { font-size: 10.5px; font-weight: 600; color: var(--text-2); margin-right: 3px; }
.dc-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin-top: 8px; }
.dc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-width: 0; padding: 11px 6px; border-radius: 12px; border: 1px solid transparent; font-family: inherit; font-weight: 800; font-size: 12px; letter-spacing: .03em; cursor: pointer; white-space: nowrap; transition: transform .12s, filter .2s; }
.dc-btn iconify-icon { font-size: 15px; }
.dc-btn:active:not(:disabled) { transform: scale(.97); }
/* TOMBOL BELI SEKARANG: emas + teks gelap, selalu kebaca (!important supaya tidak ketimpa kelas lain) */
.dc-buy { background: var(--grad) !important; color: var(--on-accent) !important; text-shadow: 0 1px 1px rgba(0,0,0,.25); box-shadow: 0 5px 14px color-mix(in srgb, var(--accent) 24%, transparent); }
.dc-buy iconify-icon { color: var(--on-accent) !important; }
.dc-buy:disabled { background: #e3e9f6 !important; color: #8a97b5 !important; border-color: #d3dcf0; box-shadow: none; cursor: not-allowed; }
.dc-buy:disabled iconify-icon { color: #c4c4cf !important; }
.dc-dl { background: transparent; color: var(--accent); border-color: var(--accent-50); }
.dc-dl:hover { background: var(--accent-10); }
.dc-card.is-maint { border-color: rgba(251, 191, 36, .45); }
.dc-card.is-maint .dc-img { filter: grayscale(1) brightness(.5); }
.dc-card.is-maint .dc-media::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; z-index: 4; background: repeating-linear-gradient(-45deg, #facc15 0 9px, #111 9px 18px); }
.dc-maint-panel { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(0, 0, 0, .35); }
.dc-gear { color: #facc15; font-size: 56px; line-height: 1; animation: spin 9s linear infinite; filter: drop-shadow(0 0 10px rgba(250, 204, 21, .45)); }
.dc-maint-txt { font-size: 10.5px; font-weight: 800; letter-spacing: .2em; color: #facc15; text-shadow: 0 1px 4px #000; }
.ag-empty { text-align: center; padding: 46px 0; color: var(--text-3); font-size: 12.5px; grid-column: 1 / -1; }
.dc-note { margin: 12px 2px 0; font-size: 12.5px; color: #b0b0bb; }

/* ---------- ULASAN (slider scroll-snap) ---------- */
.ag-reviews { margin-top: 30px; }
.ag-reviews-head { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border); }
.ag-reviews-icon { width: 42px; height: 42px; border-radius: 14px; background: var(--grad); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.ag-reviews-head h3 { margin: 0; font-size: 13px; font-weight: 900; letter-spacing: 1.2px; }
.ag-stars { color: #4a4a55; letter-spacing: 1px; font-size: 13px; }
.ag-stars .on { color: #ffb020; }
.ag-reviews-total { margin-left: auto; text-align: right; }
.ag-reviews-total b { display: block; font-size: 20px; font-weight: 900; line-height: 1; }
.ag-reviews-total small { font-size: 9px; letter-spacing: 1px; color: var(--text-3); font-weight: 800; }
.ag-reviews-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 10px; padding-bottom: 4px; }
.ag-reviews-track::-webkit-scrollbar { display: none; }
.ag-review { flex: 0 0 86%; max-width: 360px; scroll-snap-align: start; padding: 14px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.ag-review-who { display: flex; align-items: center; gap: 10px; }
.ag-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: var(--on-accent); font-weight: 900; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ag-review-name { font-size: 13px; font-weight: 800; }
.ag-verified { font-size: 9.5px; font-weight: 900; letter-spacing: .6px; color: #4ade80; display: inline-flex; align-items: center; gap: 4px; }
.ag-review-time { margin-left: auto; font-size: 10.5px; color: var(--text-3); }
.ag-review-text { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ag-review-prod { font-size: 10.5px; font-weight: 800; color: var(--accent-bright); }
@media (min-width: 760px) { .ag-review { flex-basis: 340px; } }

/* ---------- STRIP KEUNGGULAN ---------- */
.vtrust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 22px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--accent-50); background: linear-gradient(180deg, #121216, #070709); }
.vtrust div { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 9.5px; color: #e8e8e8; font-weight: 600; line-height: 1.15; text-align: left; padding: 0 2px; }
.vtrust iconify-icon { color: var(--accent); font-size: 17px; flex: 0 0 auto; }
.vtrust div + div { border-left: 1px solid var(--border); }
@media (min-width: 640px) { .vtrust div { font-size: 12px; gap: 8px; } .vtrust iconify-icon { font-size: 20px; } }

/* ---------- FOOTER ---------- */
.ag-footer { margin-top: 34px; background: linear-gradient(180deg, #0c0c10, #08080a); border-top: 1px solid var(--accent-30); padding: 28px 0 110px; }
.ag-footer h4 { margin: 0 0 10px; font-size: 10.5px; font-weight: 800; letter-spacing: 2px; color: var(--text-3); }
.ag-footer .cols { display: grid; gap: 22px; }
@media (min-width: 760px) { .ag-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } .ag-footer { padding-bottom: 40px; } }
.ag-footer .about { font-size: 12.5px; color: var(--text-2); line-height: 1.6; max-width: 340px; margin: 10px 0 0; }
.ag-footer .links { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.ag-footer .links a:hover { color: var(--accent); }
.ag-pay { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ag-pay-box { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.ag-pay-box img { height: 20px; width: auto; object-fit: contain; }
.ag-pay-badge { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border-md); font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--text-2); }
.ag-pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ag-pill { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); font-size: 11.5px; font-weight: 700; }
.ag-pill i { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-size: 15px; }
.ag-pill i.wa { background: #25d366; } .ag-pill i.tg { background: #2aa3ef; } .ag-pill i.ig { background: linear-gradient(45deg, #f9a03f, #dc2743, #8a3ab9); } .ag-pill i.yt { background: #ff0000; }
.ag-footer .bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; font-size: 10.5px; color: var(--text-3); }
.ag-secure { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .8px; }
.ag-secure iconify-icon { color: var(--green); font-size: 14px; }

/* ---------- MODAL LOGIN / DAFTAR + CS ---------- */
.ag-overlay { position: fixed; inset: 0; z-index: 9600; background: rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ag-overlay.hidden { display: none; }
.ag-modal { position: relative; width: 100%; max-width: 380px; padding: 24px 20px 20px; border-radius: 24px; background: var(--bg-card); border: 1px solid var(--accent-30); box-shadow: var(--shadow); max-height: 92dvh; overflow-y: auto; }
.ag-modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-md); background: var(--bg-hover); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; }
.ag-modal h3 { margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.ag-tabs { display: flex; gap: 4px; margin: 14px 0; border-bottom: 1px solid var(--border); }
.ag-tab { flex: 1; padding: 10px 0; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-3); font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit; }
.ag-tab.on { color: var(--accent-bright); border-bottom-color: var(--accent); }
.ag-field { margin-bottom: 10px; position: relative; }
.ag-field label { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 800; color: var(--text-2); }
.ag-input { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border-md); background: var(--bg-section); color: var(--text-1); font-size: 13px; font-family: inherit; outline: none; }
.ag-input:focus { border-color: var(--accent); }
.ag-eye { position: absolute; right: 8px; bottom: 6px; width: 30px; height: 30px; border: none; background: none; color: var(--text-3); cursor: pointer; font-size: 17px; }
.ag-submit { width: 100%; padding: 12px; border-radius: 14px; border: none; background: var(--grad); color: var(--on-accent); font-size: 13px; font-weight: 900; cursor: pointer; font-family: inherit; box-shadow: var(--glow); }
.ag-submit[disabled] { opacity: .6; cursor: wait; }
.ag-google { margin-top: 10px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 14px; border: 1px solid var(--border-md); background: var(--bg-hover); font-size: 12.5px; font-weight: 800; color: var(--text-1); }
.ag-err { margin-bottom: 10px; padding: 9px 12px; border-radius: 12px; font-size: 12px; color: #fca5a5; background: var(--red-dim); border: 1px solid rgba(239, 68, 68, .3); }
.ag-err.hidden { display: none; }
.ag-cs { text-align: center; }
.ag-cs .ico { width: 64px; height: 64px; margin: 4px auto 12px; border-radius: 50%; background: rgba(37, 211, 102, .14); display: flex; align-items: center; justify-content: center; font-size: 34px; color: #25d366; }
.ag-cs p { font-size: 13px; line-height: 1.55; color: var(--text-2); margin: 6px 0 16px; }
.ag-cs .go { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; background: #25d366; color: #fff; font-size: 13px; font-weight: 900; }
.ag-cs .later { margin-top: 10px; width: 100%; padding: 11px; border-radius: 14px; border: 1px solid var(--border-md); background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 800; cursor: pointer; font-family: inherit; }

/* ---------- PANEL PENCARIAN / KERANJANG / TRACK (layout) ---------- */
.ag-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); }
.ag-brand img:not(.ag-logo){display:block}
html[data-theme="light"] .ag-brand img:not(.ag-logo),html[data-theme="light"] .ag-menu-title img:not(.ag-logo){filter:brightness(.28) saturate(1.5)}

/* Tema terang untuk halaman lama yang ditulis dengan class "text-white"/"bg-white/5" (basis gelap) */
html[data-theme="light"] .text-white { color: var(--text-1) !important; }
html[data-theme="light"] .text-white\/70, html[data-theme="light"] .text-white\/60 { color: var(--text-2) !important; }
html[data-theme="light"] .text-white\/50, html[data-theme="light"] .text-white\/40, html[data-theme="light"] .text-white\/30, html[data-theme="light"] .text-white\/25, html[data-theme="light"] .text-white\/20, html[data-theme="light"] .text-white\/15 { color: var(--text-3) !important; }
html[data-theme="light"] .placeholder-white\/25::placeholder, html[data-theme="light"] .placeholder-white::placeholder { color: var(--text-3) !important; }
html[data-theme="light"] .bg-white\/5 { background-color: var(--bg-hover) !important; }
html[data-theme="light"] .bg-white\/10 { background-color: var(--border) !important; }
html[data-theme="light"] .border-white\/5, html[data-theme="light"] .border-white\/10, html[data-theme="light"] .border-white\/15, html[data-theme="light"] .border-white { border-color: var(--border) !important; }
html[data-theme="light"] :is(button, .btn, .ag-submit, [class*="bg-red"], [class*="bg-green"], [class*="bg-blue"], [class*="bg-emerald"], [class*="bg-violet"], [class*="bg-amber"], [class*="bg-yellow"], [class*="bg-orange"], [class*="bg-purple"]).text-white,
html[data-theme="light"] :is(button, .btn, .ag-submit, [class*="bg-red"], [class*="bg-green"], [class*="bg-blue"], [class*="bg-emerald"], [class*="bg-violet"], [class*="bg-amber"], [class*="bg-yellow"], [class*="bg-orange"], [class*="bg-purple"]) .text-white { color: #fff !important; }
html[data-theme="dark"] .text-black { color: var(--text-1) !important; }

/* ===========================================================
   BUY SHEET (2 langkah: Durasi -> Konfirmasi) — sama dengan ThanHub
   =========================================================== */
.ag-sheet-overlay { position: fixed; inset: 0; z-index: 9400; display: none; align-items: flex-end; justify-content: center; background: rgba(4, 0, 4, .78); }
.ag-sheet-overlay.show { display: flex; }
.ag-sheet { width: 100%; max-width: 460px; max-height: 92dvh; overflow-y: auto; padding: 0 18px 22px; border-radius: 28px 28px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, var(--bg-card)) 0%, var(--bg-card) 40%); border: 1px solid var(--accent-50); border-bottom: 0; animation: slideBottom .22s ease both; overscroll-behavior: contain; }
html[data-theme="light"] .ag-sheet { background: var(--bg-card); }
.ag-sheet-handle { width: 44px; height: 4px; border-radius: 999px; background: var(--accent-50); margin: 10px auto 16px; }
.ag-stepper { display: flex; align-items: flex-start; justify-content: center; margin-bottom: 18px; }
.ag-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 96px; }
.ag-step-dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; color: var(--text-3); background: var(--bg-main); border: 1px solid var(--accent-50); transition: all .25s; }
.ag-step-dot.active { color: var(--on-accent); background: var(--grad); border-color: transparent; box-shadow: 0 0 16px var(--accent-50); }
.ag-step-dot.done { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.ag-step-label { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--accent-bright); }
.ag-step-line { flex: 0 0 70px; height: 2px; margin-top: 16px; background: var(--accent-50); }
.ag-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 0 14px; border-top: 1px solid var(--accent-30); }
.ag-sheet-kicker { font-size: 11px; font-weight: 900; letter-spacing: 2px; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.ag-sheet-title { margin: 6px 0 0; font-size: 22px; font-weight: 900; line-height: 1.15; color: var(--text-1); }
.ag-sheet-close { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; font-size: 18px; color: var(--text-1); background: var(--accent-18); border: 1px solid var(--accent-50); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ag-panel { display: none; }
.ag-panel.active { display: block; }
.ag-dur-list { display: flex; flex-direction: column; gap: 10px; }
.ag-dur { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; cursor: pointer; background: color-mix(in srgb, var(--accent) 9%, var(--bg-card)); border: 1px solid var(--accent-30); transition: border-color .2s, background .2s, transform .15s; font-family: inherit; text-align: left; width: 100%; color: inherit; }
html[data-theme="light"] .ag-dur { background: var(--bg-hover); }
.ag-dur:hover { border-color: var(--accent); }
.ag-dur:active { transform: scale(.99); }
.ag-dur.disabled { opacity: .45; cursor: not-allowed; }
.ag-dur-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--accent); background: var(--bg-main); border: 1px solid var(--accent-30); }
.ag-dur-info { flex: 1; min-width: 0; }
.ag-dur-label { font-size: 15px; font-weight: 800; color: var(--text-1); }
.ag-dur-sub { margin-top: 3px; font-size: 11.5px; color: var(--text-2); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ag-dur-stock { padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; color: var(--text-1); background: var(--bg-main); }
.ag-dur-stock.out { color: #ff4d6d; }
.ag-dur-price { font-size: 14.5px; font-weight: 900; color: var(--accent-bright); white-space: nowrap; }
.ag-dur-chev { font-size: 14px; color: var(--text-3); }
.ag-summary { padding: 14px 16px; border-radius: 16px; background: var(--bg-main); border: 1px solid var(--accent-30); margin-bottom: 16px; }
.ag-summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.ag-summary-row.total { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--accent-30); font-size: 15px; font-weight: 900; color: var(--text-1); }
.ag-total { color: var(--accent-bright); }
.ag-discount { color: var(--green); }
.ag-tfield { margin-bottom: 14px; }
.ag-tlabel { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; font-size: 12px; font-weight: 800; letter-spacing: .4px; color: var(--text-2); }
.ag-tlabel iconify-icon { color: var(--accent); }
.ag-tlabel small { font-weight: 600; color: var(--text-3); }
.ag-tinput { width: 100%; padding: 13px 14px; border-radius: 12px; font-size: 14px; font-family: inherit; color: var(--text-1); background: var(--bg-main); border: 1px solid var(--accent-30); outline: none; }
.ag-tinput::placeholder { color: var(--text-3); }
.ag-tinput:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-18); }
.ag-voucher { display: flex; gap: 8px; }
.ag-voucher .ag-tinput { flex: 1; text-transform: uppercase; }
.ag-voucher-btn { flex: 0 0 auto; padding: 0 16px; border-radius: 12px; font-size: 13px; font-weight: 800; color: var(--on-accent); background: var(--accent); border: none; cursor: pointer; font-family: inherit; }
.ag-voucher-btn:disabled { opacity: .6; }
.ag-voucher-fb { margin: 6px 0 0; font-size: 12px; }
.ag-pay-btn { width: 100%; margin-top: 4px; padding: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; border: none; font-size: 14px; font-weight: 900; letter-spacing: 1px; color: var(--on-accent); background: var(--grad); box-shadow: var(--glow); cursor: pointer; font-family: inherit; }
.ag-pay-btn.wallet { margin-top: 10px; background: linear-gradient(135deg, #f59e0b, #b45309); box-shadow: 0 8px 22px rgba(245, 158, 11, .3); }
.ag-pay-btn:disabled { opacity: .7; cursor: wait; }
.ag-back-btn { width: 100%; margin-top: 10px; padding: 12px; background: transparent; border: none; font-size: 13px; font-weight: 700; color: var(--text-2); cursor: pointer; font-family: inherit; }
.ag-back-btn:hover { color: var(--text-1); }
.ag-redirect { padding: 28px 0; text-align: center; font-size: 13px; color: var(--text-2); }
.ag-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--accent-30); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -4px; }
.ag-redirect .ag-spinner { width: 32px; height: 32px; border-width: 3px; margin: 0 auto 14px; display: block; }
.ag-pay-btn .ag-spinner { border-color: rgba(26, 18, 0, .3); border-top-color: var(--on-accent); }

/* ---------- HALAMAN PEMBAYARAN & STATUS (ThanHub: pay-page / status-page) ---------- */
.ag-pay-page { max-width: 480px; margin: 0 auto; padding: 24px 16px 40px; }
.ag-pay-card { background: var(--bg-card); border: 1px solid var(--accent-30); border-radius: 18px; padding: 20px; }
.ag-pay-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ag-pay-head > iconify-icon { font-size: 26px; color: var(--accent); }
.ag-pay-title { font-size: 16px; font-weight: 800; }
.ag-pay-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; word-break: break-all; }
.ag-qr-wrap { display: flex; justify-content: center; padding: 16px; background: #fff; border-radius: 16px; margin-bottom: 16px; min-height: 120px; }
.ag-qr-wrap img { max-width: 100%; height: auto; }
.ag-amount { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-2); padding: 12px 0; border-top: 1px dashed var(--accent-30); }
.ag-amount b { font-size: 20px; color: var(--green); font-weight: 800; }
.ag-fee-note { font-size: 11px; color: var(--text-3); margin-bottom: 8px; }
.ag-howto-box { background: var(--bg-hover); border-radius: 14px; padding: 14px; margin: 12px 0 16px; }
.ag-howto-title { font-size: 13px; font-weight: 700; color: var(--accent-bright); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.ag-howto-box ol { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.ag-status-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.ag-countdown { text-align: center; font-size: 13px; color: var(--text-3); margin: 6px 0 12px; }
.ag-btn-full { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 14px; border: none; font-size: 13px; font-weight: 900; letter-spacing: .6px; color: var(--on-accent); background: var(--grad); box-shadow: var(--glow); cursor: pointer; font-family: inherit; }
.ag-btn-line { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; padding: 13px; margin-top: 10px; border-radius: 14px; border: 1px solid var(--border-md); background: transparent; font-size: 13px; font-weight: 800; color: var(--text-2); cursor: pointer; font-family: inherit; }
.ag-status-page { max-width: 480px; margin: 0 auto; padding: 36px 16px 40px; text-align: center; }
.ag-status-icon { width: 78px; height: 78px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 38px; }
.ag-status-icon.success { background: rgba(34, 197, 94, .15); color: var(--green); border: 2px solid var(--green); }
.ag-status-icon.pending { background: rgba(245, 158, 11, .15); color: var(--amber); border: 2px solid var(--amber); }
.ag-status-icon.failed { background: rgba(239, 68, 68, .15); color: var(--red); border: 2px solid var(--red); }
.ag-status-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.ag-status-desc { font-size: 13px; color: var(--text-2); margin-bottom: 22px; }
.ag-key-box { text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--bg-card); border: 1px dashed var(--accent-50); margin-bottom: 10px; }
.ag-key-label { font-size: 11px; font-weight: 800; letter-spacing: .6px; color: var(--text-3); margin-bottom: 6px; }
.ag-key-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; font-weight: 700; word-break: break-all; color: var(--accent-bright); user-select: all; }
.ag-key-meta { font-size: 11.5px; margin-top: 6px; color: var(--text-3); }
.ag-copy { margin-top: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--accent-50); background: var(--accent-10); color: var(--accent-bright); font-size: 11.5px; font-weight: 800; cursor: pointer; font-family: inherit; }

/* ---------- AKUN / RIWAYAT (ThanHub: account) ---------- */
.ag-static { max-width: 640px; margin: 0 auto; padding: 22px 16px 40px; }
.ag-profile { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ag-profile .ag-avatar { width: 56px; height: 56px; font-size: 22px; overflow: hidden; }
.ag-profile .ag-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ag-h1 { margin: 0 0 14px; font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.ag-h1 iconify-icon { color: var(--accent); }
.ag-wallet { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(245, 158, 11, .14), rgba(180, 83, 9, .08)); border: 1px solid rgba(245, 158, 11, .35); }
.ag-wallet small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; color: #fbbf24; }
.ag-wallet b { font-size: 22px; font-weight: 900; color: #fbbf24; }
.ag-order { padding: 14px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); margin-bottom: 10px; }
.ag-order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.ag-order-name { font-weight: 800; font-size: 14px; }
.ag-order-id { font-size: 11px; color: var(--text-3); margin-top: 2px; word-break: break-all; }
.ag-badge { font-size: 10px; font-weight: 900; letter-spacing: .5px; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.ag-badge.paid { color: var(--green); border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .1); }
.ag-badge.pending { color: var(--amber); border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .1); }
.ag-badge.failed { color: var(--red); border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .1); }
.ag-order-meta { font-size: 12px; color: var(--text-2); }
.ag-empty-state { text-align: center; padding: 40px 0; color: var(--text-3); font-size: 13px; }
.ag-empty-state iconify-icon { display: block; margin: 0 auto 10px; font-size: 40px; }

/* Variasi UI berdasarkan status login (cookie 'agu'); HTML identik untuk semua pengunjung */
html[data-auth="guest"] .ag-user-only, html[data-auth="user"] .ag-guest-only, html[data-auth="admin"] .ag-guest-only { display: none !important; }
html[data-auth="admin"] .ag-nonadmin-only, html:not([data-auth="admin"]) .ag-admin-only { display: none !important; }
html:not([data-reseller="1"]) .ag-reseller-only { display: none !important; }

/* atribut hidden harus selalu menang atas display:flex komponen di atas */
[hidden] { display: none !important; }
.ag-howto-box ol { list-style: decimal; }

/* Maintenance */
.ag-pill-status.maint { color: #fbbf24; border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .1); }
.ag-maint-banner { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .4); color: #fbbf24; }
.ag-maint-banner iconify-icon { font-size: 26px; flex-shrink: 0; }
.ag-maint-banner b { display: block; font-size: 13px; }
.ag-maint-banner span { display: block; font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.ag-copyline { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ag-codebox { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--bg-hover); border: 1px dashed var(--accent-50); font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; font-size: 14px; letter-spacing: .5px; color: var(--accent-bright); }

/* Wordmark di header: kecilkan di layar sempit supaya tidak menabrak tombol menu */
@media (max-width: 360px) { .ag-brand img:not(.ag-logo) { height: 19px !important; } .ag-brand img.ag-logo { height: 40px; } }

/* CTA Open Reseller di beranda */
.ag-reseller-cta { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; padding: 16px 18px; border-radius: 20px; text-decoration: none; color: inherit; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--bg-card)), var(--bg-card)); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); transition: transform .15s, box-shadow .2s; }
.ag-reseller-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 25%, transparent); }
.ag-reseller-cta .ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--grad, var(--accent)); color: var(--on-accent); }
.ag-reseller-cta .tx { flex: 1; min-width: 0; }
.ag-reseller-cta b { display: block; font-size: 15px; font-weight: 900; letter-spacing: .04em; color: var(--text-1); }
.ag-reseller-cta small { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.ag-reseller-cta > iconify-icon { font-size: 24px; color: var(--accent-bright, var(--accent)); }

/* ---------- UTILITAS AKSEN (dipakai halaman lama: informasi, login, register, invoice, dll) ---------- */
.ag-acc-tx { color: var(--accent) !important; }
.ag-acc-bg { background: var(--grad) !important; color: var(--on-accent) !important; }
.ag-acc-bg iconify-icon { color: inherit !important; }
body { padding-bottom: 0; }

/* Tombol utama halaman login / aktivasi key (sebelumnya kelas ini belum punya style -> tombol tidak terlihat) */
.btn-gaming { padding: 12px 16px; border-radius: 14px; border: none; background: var(--grad); color: var(--on-accent); font-size: 13px; font-weight: 800; letter-spacing: .5px; cursor: pointer; font-family: inherit; box-shadow: var(--glow); }
.btn-gaming:disabled { opacity: .6; cursor: wait; }
.btn-gaming iconify-icon { color: inherit; }

/* ── Tulisan merek di samping logo (ANDRE gelap + STORE biru) ── */
.ag-brandtxt { display: inline-flex; align-items: baseline; gap: .28em; flex-shrink: 1; min-width: 0; white-space: nowrap; font-size: 18px; line-height: 1; font-weight: 900; font-style: italic; letter-spacing: .015em; text-transform: uppercase; }
.ag-brandtxt b { font-weight: 900; }
.ag-brandtxt .w { color: #0b1b3a; }
.ag-brandtxt .r { color: #2563eb; }
.ag-brandtxt.sm { font-size: 15px; }
@media (max-width: 400px) { .ag-brandtxt { font-size: 15px; } .ag-brand { gap: 7px; } .ag-brand img.ag-logo { max-width: 84px; } }
@media (max-width: 340px) { .ag-brandtxt { font-size: 13px; } }

/* ===========================================================
   TEMA FINAL — BIRU & PUTIH (tanpa hitam). Dipasang paling akhir supaya menimpa gaya gelap lama.
   Referensi tata letak: dashboard Thanhub (banner, judul + titik live, toolbar chip, kartu, strip keunggulan, FAB WA).
   =========================================================== */
:root {
  --bg-main: #f3f7ff; --bg-section: #e9f1ff; --bg-card: #ffffff; --bg-hover: #eef4ff;
  --border: #dbe6fa; --border-md: #c3d5f5;
  --text-1: #0b1b3a; --text-2: #4a5d82; --text-3: #7d8db0;
  --shadow: 0 8px 24px rgba(37, 99, 235, .12); --header-bg: #ffffff; color-scheme: light;
}
html, body { background: var(--bg-main); color: var(--text-1); }
body { background-image: radial-gradient(circle at 12% 0%, rgba(37, 99, 235, .08), transparent 42%), radial-gradient(circle at 92% 100%, rgba(56, 189, 248, .08), transparent 40%); background-attachment: fixed; }

/* Header */
.ag-header { background: #ffffff; box-shadow: 0 1px 0 var(--border), 0 6px 20px rgba(37, 99, 235, .08); }
.ag-header::after { opacity: .55; }
.ag-brand img.ag-logo { filter: none; }
.ag-brand { flex: 1 1 auto; min-width: 0; }
.ag-actions { flex: 0 0 auto; }
.ag-burger { background: #eaf1ff; }
.ag-icon-btn { background: #fff; color: var(--text-1); }

/* Navigasi bawah (HP) */
.vnav { background: #ffffff; box-shadow: 0 -1px 0 var(--border), 0 -8px 22px rgba(37, 99, 235, .10); }
.vnav::before { opacity: .5; }
.vnav a { color: #64748b; }
.vnav a.on { color: var(--accent); }
.vnav a.on::after { box-shadow: none; }

/* Banner */
.ag-slide { border: 1px solid var(--border-md); box-shadow: 0 10px 28px rgba(37, 99, 235, .14); }
.ag-hero { background: radial-gradient(120% 140% at 92% 50%, rgba(37, 99, 235, .22), transparent 58%), linear-gradient(135deg, #ffffff 0%, #eaf2ff 55%, #dbeafe 100%); }
.ag-hero::before, .ag-hero::after { box-shadow: none; opacity: .5; }
.ag-hero h1 { color: #0b1b3a; }
.ag-hero p { color: var(--text-2); }
.ag-hero-pill { background: #fff; }
.ag-hero-logo { filter: drop-shadow(0 8px 18px rgba(37, 99, 235, .3)); }
.ag-banner-dots i { background: rgba(37, 99, 235, .25); }
.ag-marquee { background: #fff; border-color: var(--border-md); }

/* Judul seksi + titik live (gaya Thanhub) */
.vs-head h2::before { box-shadow: none; }
.vs-head h2.live::after, .th-live-dot { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: agLive 1.8s ease-out infinite; flex: 0 0 9px; }
.th-live-dot { display: inline-block; margin-left: 8px; }
@keyframes agLive { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 100% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } }

/* Kategori */
.vcat-i { background: #fff; color: var(--text-1); border: 1px solid var(--border-md); box-shadow: 0 3px 10px rgba(37, 99, 235, .07); }
.vcat-i:hover, .vcat-i.on { background: #eaf1ff; border-color: var(--accent); box-shadow: 0 6px 16px rgba(37, 99, 235, .16); }

/* Kartu produk */
.dc-card { background: #fff; border: 1px solid var(--border-md); box-shadow: 0 6px 18px rgba(37, 99, 235, .09); }
.dc-card:hover { border-color: var(--accent); box-shadow: 0 12px 28px rgba(37, 99, 235, .18); }
.dc-media { background: #eaf1ff; }
.dc-media::after { background: linear-gradient(180deg, transparent, rgba(11, 27, 58, .22)); }
.dc-status { background: rgba(255, 255, 255, .95); border: 1px solid var(--border-md); color: var(--text-2); }
.dc-status.online { color: #15803d; border-color: #86efac; } .dc-status.online i { box-shadow: none; }
.dc-status.maint { color: #b45309; border-color: #fcd34d; }
.dc-status.out { color: #be123c; border-color: #fda4af; }
.dc-desc { color: var(--text-2); }
.dc-meta { color: var(--text-3); }
.dc-note { color: var(--text-2); }
.dc-card.is-maint .dc-img { filter: grayscale(1) brightness(.85); }
.dc-card.is-maint .dc-media::before { background: repeating-linear-gradient(-45deg, #facc15 0 9px, #fef3c7 9px 18px); }
.dc-maint-panel { background: rgba(255, 255, 255, .55); }
.dc-maint-txt { color: #b45309; text-shadow: none; }
.dc-buy { text-shadow: none; }

/* Strip keunggulan */
.vtrust { background: #fff; border: 1px solid var(--border-md); box-shadow: 0 3px 10px rgba(37, 99, 235, .07); }
.vtrust div { color: var(--text-1); }

/* Ulasan */
.ag-stars { color: #cbd5e1; }
.ag-verified { color: #15803d; }

/* Footer */
.ag-footer { background: linear-gradient(180deg, #ffffff, #eaf1ff); border-top: 1px solid var(--border-md); }
.ag-pay-box { background: #fff; }

/* Overlay / modal / drawer */
.modal-overlay, .ag-overlay { background: rgba(15, 23, 42, .45); }
#menu-drawer > div[onclick] { background: rgba(15, 23, 42, .45) !important; }
#cart-panel > div[onclick], #track-panel > div[onclick] { background: rgba(15, 23, 42, .45) !important; }
.ag-sheet-overlay { background: rgba(15, 23, 42, .5); }
.ag-wallet small, .ag-wallet b { color: #b45309; }
.ag-maint-banner { color: #92400e; }
.ag-pill-status.maint { color: #b45309; }
.status-pending { color: #b45309; } .status-done { color: #15803d; } .status-cancelled { color: #be123c; }
.ag-dur-stock.out { color: #e11d48; }
.toast { background: #fff; }

/* Tombol WA melayang: biru terang (bukan hitam) */
.ag-report-card { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: rgba(255, 255, 255, .55); box-shadow: 0 10px 24px rgba(37, 99, 235, .4); }
.ag-report-card small { color: #bfdbfe; }

/* ---------- Perbaikan tampilan HP ---------- */
html, body { overflow-x: hidden; }
.ag-wrap { padding-left: 14px; padding-right: 14px; }
.ag-brand > * { min-width: 0; }
.ag-hero { overflow: hidden; }
.ag-hero-txt { max-width: 64%; }
.dc-name, .dc-desc span { overflow-wrap: anywhere; }
.dc-price { font-size: clamp(13px, 4vw, 16px); white-space: normal; }
.dc-btn { white-space: normal; line-height: 1.15; }
.ag-modal, .modal-sheet { max-width: 100%; }
img, video, iframe { max-width: 100%; }
@media (max-width: 420px) {
  .vs-head h2 { font-size: 15.5px; }
  .vcat { gap: 7px; }
  .vcat-i { min-height: 70px; font-size: 11px; padding: 8px 2px; }
  .vcat-i iconify-icon { font-size: 22px; }
  .vtrust { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
  .vtrust div:nth-child(3) { border-left: 0; }
  .vtrust div { font-size: 11px; justify-content: flex-start; padding-left: 10px; }
  .dc-grid { gap: 10px; }
  .dc-body { padding: 10px 10px 11px; }
  .ag-hero { min-height: 170px; padding: 18px 14px; }
  .ag-hero-txt { max-width: 66%; }
  .ag-hero-logo { width: 30%; right: 8px; }
  .ag-report-card { padding: 7px 34px 7px 12px; }
  .ag-report-card b { font-size: 14px; }
  .ag-report-wa { width: 52px; height: 52px; flex-basis: 52px; }
  .ag-report-wa iconify-icon { font-size: 30px; }
  .ag-report { right: 10px; }
  #purchase-notif-container { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 24px); }
}
@media (max-width: 340px) { .dc-grid { grid-template-columns: 1fr; } .ag-report-card small { font-size: 9px; letter-spacing: 1.2px; } }
