:root {
  --bg: #0a0614;
  --bg2: #120a1f;
  --panel: rgba(22, 12, 40, 0.88);
  --panel-solid: #160c28;
  --text: #f4f0ff;
  --muted: #a89bc4;
  --line: rgba(180, 120, 255, 0.14);
  --line2: rgba(180, 120, 255, 0.22);
  --accent: #a855f7;
  --accent2: #c084fc;
  --accent3: #e9d5ff;
  --glow: rgba(168, 85, 247, 0.45);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f43f5e;
  --wa: #25d366;
  --radius: 16px;
  --nav-h: 72px;
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  color: var(--text);
  font: 14.5px/1.55 var(--font);
  background:
    radial-gradient(900px 480px at 90% -10%, rgba(168, 85, 247, 0.22), transparent 55%),
    radial-gradient(700px 400px at -10% 60%, rgba(124, 58, 237, 0.12), transparent 50%),
    radial-gradient(500px 300px at 50% 100%, rgba(192, 132, 252, 0.08), transparent 45%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 85%);
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
.shell { position: relative; z-index: 1; min-height: 100vh; padding-bottom: calc(var(--nav-h) + 12px); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(10, 6, 20, 0.85);
  border-bottom: 1px solid var(--line);
}
.navin {
  max-width: 1100px; margin: auto; padding: 10px 14px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0.02em; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 10px var(--glow)); }
.brand-text { font-size: 13px; background: linear-gradient(90deg, #fff, var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; gap: 2px; margin-left: auto; }
.links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 600; transition: .15s; }
.links a:hover { background: rgba(168,85,247,.12); color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 7px; }
.iconbtn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(168,85,247,.06); color: var(--text);
  transition: .15s;
}
.iconbtn:hover { border-color: var(--accent); background: rgba(168,85,247,.15); box-shadow: 0 0 16px var(--glow); }
.iconbtn.wa-btn { color: var(--wa); }
.dot {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px; background: var(--accent); font-size: 10px;
  display: grid; place-items: center; font-weight: 900; box-shadow: 0 0 10px var(--glow);
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  color: #fff; font-weight: 700; font-size: 13.5px;
  box-shadow: 0 6px 22px var(--glow); transition: .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px var(--glow); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.secondary {
  background: rgba(168,85,247,.08); border: 1px solid var(--line);
  box-shadow: none; color: var(--text);
}
.btn.secondary:hover { background: rgba(168,85,247,.16); border-color: var(--line2); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }
.btn.ok { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 6px 18px rgba(52,211,153,.3); }
.btn.danger { background: var(--danger); box-shadow: 0 6px 18px rgba(244,63,94,.3); }

/* LAYOUT */
.layout { max-width: 1100px; margin: auto; padding: 22px 14px 28px; }
.section { max-width: 1100px; margin: auto; padding: 28px 14px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; font-weight: 900; }
.section-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.row { display: flex; align-items: center; gap: 10px; }
.eyebrow {
  display: inline-flex; color: var(--accent2); font-weight: 700; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
}
.muted { color: var(--muted); }
.gradient {
  background: linear-gradient(100deg, #fff 10%, var(--accent2) 60%, #a855f7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-title { font-size: 24px; font-weight: 950; letter-spacing: -.02em; margin: 0; }

/* CARDS */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; backdrop-filter: blur(12px);
}
.form { max-width: 440px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.field input, .field textarea, .field select,
input[type=text], input[type=email], input[type=password], input[type=number], input[type=file], textarea, select {
  width: 100%; background: #0e0818; border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 13px; color: var(--text); outline: none; transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168,85,247,.15); }
.field textarea { min-height: 84px; resize: vertical; }

/* PRODUCT */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product-card {
  display: flex; flex-direction: column; gap: 9px; padding: 16px;
  transition: .2s border-color, .2s transform, .2s box-shadow;
}
.product-card:hover {
  border-color: rgba(168,85,247,.4); transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(88, 28, 135, .35);
}
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pc-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent2); background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.25);
  padding: 3px 9px; border-radius: 999px;
}
.pc-stock { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pc-stock.ok { color: var(--ok); background: rgba(52,211,153,.1); }
.pc-stock.danger { color: var(--danger); background: rgba(244,63,94,.1); }
.product-title { font-size: 15px; font-weight: 800; line-height: 1.3; }
.product-title a:hover { color: var(--accent2); }
.pc-desc { font-size: 12.5px; line-height: 1.45; flex: 1; }
.pc-tag { font-size: 11px; color: var(--ok); font-weight: 600; }
.pc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line);
}
.price { font-size: 16px; font-weight: 900; color: var(--accent3); }
.old { font-size: 11.5px; color: var(--muted); text-decoration: line-through; margin-left: 5px; }
.pc-discount {
  font-size: 10.5px; font-weight: 800; color: #fff; background: var(--accent);
  padding: 2px 7px; border-radius: 6px; margin-left: 6px;
}

/* HERO */
.hero {
  max-width: 1100px; margin: auto; padding: 48px 14px 32px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
}
.hero h1 { font-size: 42px; line-height: 1.08; margin: 10px 0 12px; font-weight: 950; letter-spacing: -.03em; }
.hero p { color: var(--muted); max-width: 460px; margin: 0 0 18px; }
.hero-actions { gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.mini-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 400px; }
.mini-stat > div {
  background: rgba(168,85,247,.06); border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px;
}
.mini-stat strong { display: block; font-size: 17px; font-weight: 900; }
.mini-stat small { color: var(--muted); font-size: 10.5px; }
.hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(168,85,247,.18), rgba(22,12,40,.95));
  border: 1px solid rgba(168,85,247,.3); border-radius: 22px; padding: 24px; min-height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.hero-card .logo-big {
  width: min(220px, 70%); height: auto; object-fit: contain;
  filter: drop-shadow(0 0 28px var(--glow)); margin-bottom: 12px;
}
.hero-card .orb {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.4), transparent 70%);
  right: -40px; bottom: -40px; pointer-events: none;
}

/* BADGE */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.badge.ok { background: rgba(52,211,153,.12); color: var(--ok); border: 1px solid rgba(52,211,153,.25); }
.badge.warn { background: rgba(251,191,36,.12); color: var(--warn); border: 1px solid rgba(251,191,36,.25); }
.badge.danger { background: rgba(244,63,94,.12); color: var(--danger); border: 1px solid rgba(244,63,94,.25); }

/* FEATURE / FAQ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(168,85,247,.14); border: 1px solid rgba(168,85,247,.25);
  margin-bottom: 10px; font-weight: 900; font-size: 13px; color: var(--accent2);
}
.promo {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  background: linear-gradient(120deg, rgba(168,85,247,.14), rgba(22,12,40,.9));
  border-color: rgba(168,85,247,.28);
}
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px;
  padding: 13px 15px; margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; font-size: 13.5px; }

/* ACCOUNT / QRIS */
.account-box {
  margin-top: 12px; background: rgba(52,211,153,.06); border: 1px solid rgba(52,211,153,.22);
  border-radius: 13px; padding: 13px;
}
.account-box-title { font-size: 11px; font-weight: 800; color: var(--ok); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
.account-pre {
  white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55;
}
.qris-wrap { text-align: center; padding: 14px; }
.qris-wrap img {
  width: 100%; max-width: 240px; border-radius: 14px; background: #fff; padding: 10px;
  box-shadow: 0 10px 36px rgba(0,0,0,.4);
}
.qris-hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* TIMELINE */
.timeline { display: flex; align-items: flex-start; justify-content: space-between; margin: 14px 0; }
.tl-step { display: flex; flex-direction: column; align-items: center; gap: 7px; max-width: 70px; text-align: center; }
.tl-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 2px solid var(--line2);
}
.tl-step.done .tl-dot { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 10px rgba(52,211,153,.4); }
.tl-step.active .tl-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--glow); transform: scale(1.15); }
.tl-label { font-size: 10px; color: var(--muted); font-weight: 600; }
.tl-step.done .tl-label, .tl-step.active .tl-label { color: var(--text); }
.tl-line { flex: 1; height: 2px; background: var(--line); margin-top: 11px; min-width: 10px; }

/* ANNOUNCE */
.announce { max-width: 1100px; margin: 12px auto 0; padding: 0 14px; }
.announce-inner {
  background: linear-gradient(90deg, rgba(168,85,247,.2), rgba(168,85,247,.06));
  border: 1px solid rgba(168,85,247,.3); border-radius: 12px; padding: 11px 14px;
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600;
}
.ann-icon {
  width: 28px; height: 28px; border-radius: 8px; background: rgba(168,85,247,.25);
  display: grid; place-items: center; flex-shrink: 0;
}

/* BOTTOM NAV */
.bottom {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h); padding: 0 6px calc(env(safe-area-inset-bottom, 0px) + 4px);
  background: rgba(12, 6, 22, 0.94); backdrop-filter: blur(24px);
  border-top: 1px solid var(--line); justify-content: space-around; align-items: center;
  box-shadow: 0 -8px 32px rgba(0,0,0,.45);
}
.bnav {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; max-width: 78px; color: var(--muted); font-size: 10px; font-weight: 650;
  border-radius: 12px; padding: 6px 2px; transition: .15s; position: relative;
}
.bnav svg { width: 22px; height: 22px; opacity: .75; }
.bnav:hover, .bnav.active { color: var(--accent2); }
.bnav.active svg { opacity: 1; stroke: var(--accent2); filter: drop-shadow(0 0 6px var(--glow)); }
.bnav.active::before {
  content: ""; position: absolute; top: 5px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--glow);
}
.bnav-fab {
  display: grid; place-items: center; width: 50px; height: 50px; margin-top: -20px;
  border-radius: 16px; background: linear-gradient(145deg, #a855f7, #7c3aed); color: #fff;
  box-shadow: 0 8px 24px var(--glow), 0 0 0 4px var(--bg);
}
.bnav-fab svg { opacity: 1; stroke: #fff; }
.bnav-center.active::before { display: none; }

/* ADMIN */
.adminnav {
  display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 18px; padding: 5px;
  background: rgba(168,85,247,.05); border: 1px solid var(--line); border-radius: 14px;
  overflow-x: auto;
}
.adminnav a {
  padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 12.5px; font-weight: 650; white-space: nowrap;
}
.adminnav a:hover { color: var(--text); background: rgba(168,85,247,.12); }
.adminnav a.active {
  color: #fff; background: linear-gradient(135deg, #9333ea, #7c3aed); box-shadow: 0 4px 14px var(--glow);
}
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat strong { font-size: 24px; display: block; margin-top: 6px; font-weight: 950; }

/* AUTH / MISC */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 14px 100px; }
.auth .card { width: 100%; max-width: 400px; }
.auth .brand-logo { width: 72px; height: 72px; margin: 0 auto 12px; display: block; filter: drop-shadow(0 0 16px var(--glow)); }
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 18px); left: 50%; transform: translateX(-50%);
  background: #1a0f2e; border: 1px solid var(--line2); color: var(--text);
  padding: 11px 18px; border-radius: 12px; z-index: 100; font-size: 13.5px; font-weight: 650;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); white-space: nowrap;
}
.empty {
  text-align: center; padding: 40px 16px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.footer {
  border-top: 1px solid var(--line); margin-top: 36px;
  padding: 22px 14px calc(var(--nav-h) + 16px); color: var(--muted); text-align: center; font-size: 12.5px;
}
.load-box { padding: 36px 14px; text-align: center; color: var(--muted); }
.wa-float {
  position: fixed; bottom: calc(var(--nav-h) + 14px); right: 14px; z-index: 55;
  width: 52px; height: 52px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 28px rgba(37,211,102,.4);
}
.proof-drop {
  display: block; border: 1.5px dashed var(--line2); border-radius: 14px; padding: 24px 14px;
  text-align: center; cursor: pointer; background: rgba(168,85,247,.04);
}
.proof-drop:hover { border-color: var(--accent); background: rgba(168,85,247,.1); }
.progress-wrap { margin-top: 12px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress-bar {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s;
}
.qty-ctrl {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.qty-ctrl button { width: 36px; height: 36px; background: rgba(168,85,247,.08); font-weight: 800; }
.qty-ctrl span { min-width: 36px; text-align: center; font-weight: 800; }
.linkish { color: var(--accent2); font-size: 12.5px; font-weight: 650; text-decoration: underline; cursor: pointer; }
.w-full { width: 100%; }
.filt.active, .cat-btn.active {
  background: linear-gradient(135deg, #9333ea, #7c3aed) !important; border: none !important; color: #fff !important;
  box-shadow: 0 4px 14px var(--glow);
}
.admin-search {
  width: 100%; max-width: 320px; background: #0e0818; border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 13px; color: var(--text); margin-bottom: 14px;
}
.warn-banner {
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.25);
  border-radius: 12px; padding: 10px 12px; color: var(--warn); font-weight: 650; font-size: 13px;
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  .links { display: none; }
}
@media (max-width: 680px) {
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 30px; }
  .grid { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .bottom { display: flex; }
  .mini-stat { grid-template-columns: 1fr 1fr; }
  .mini-stat > div:last-child { display: none; }
  .brand-text { font-size: 11px; max-width: 110px; line-height: 1.15; }
}
