:root {
  --bg: #05060a;
  --bg2: #0a0c11;
  --panel: rgba(16, 18, 26, 0.88);
  --panel-solid: #12141c;
  --panel2: #171a24;
  --text: #f5f6fa;
  --muted: #8b90a0;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.12);
  --accent: #ff2d42;
  --accent2: #ff6b7a;
  --accent-glow: rgba(255, 45, 66, 0.35);
  --ok: #2ee59d;
  --warn: #ffb84d;
  --danger: #ff4d6a;
  --wa: #25d366;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius-sm: 12px;
  --nav-h: 72px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(255, 45, 66, 0.12), transparent 55%),
    radial-gradient(800px 420px at -5% 50%, rgba(99, 70, 255, 0.07), transparent 50%),
    var(--bg);
  color: var(--text);
  font: 14.5px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }
.shell { position: relative; z-index: 1; min-height: 100vh; padding-bottom: calc(var(--nav-h) + 16px); }

/* ===== TOP NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  background: rgba(5, 6, 10, 0.85);
  border-bottom: 1px solid var(--line);
}
.navin {
  max-width: 1100px;
  margin: auto;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), #9a1020);
  box-shadow: 0 0 24px var(--accent-glow);
  font-size: 12px;
  font-weight: 950;
}
.brand-text { font-size: 13.5px; letter-spacing: 0.08em; }
.links { display: flex; gap: 2px; margin-left: auto; }
.links a {
  padding: 8px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: 0.15s;
}
.links a:hover { background: rgba(255,255,255,0.06); 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: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  color: var(--text);
  transition: 0.15s;
}
.iconbtn:hover { border-color: rgba(255,45,66,0.35); background: rgba(255,45,66,0.08); }
.iconbtn.wa-btn { color: var(--wa); }
.iconbtn.wa-btn:hover { border-color: rgba(37,211,102,0.4); background: rgba(37,211,102,0.1); }
.dot {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #d4142a);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  box-shadow: 0 6px 20px var(--accent-glow);
  transition: 0.15s transform, 0.15s box-shadow;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px var(--accent-glow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn.secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--text);
}
.btn.secondary:hover { background: rgba(255,255,255,0.09); border-color: var(--line2); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 10px; }
.btn.danger { background: var(--danger); box-shadow: 0 6px 18px rgba(255,77,106,0.3); }
.btn.ok { background: linear-gradient(135deg, #1dbf73, #0d9a5a); box-shadow: 0 6px 18px rgba(46,229,157,0.25); }

/* ===== LAYOUT ===== */
.layout { max-width: 1100px; margin: auto; padding: 24px 16px 32px; }
.section { max-width: 1100px; margin: auto; padding: 32px 16px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.section-head h2 { font-size: 22px; font-weight: 900; }
.section-head p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.row { display: flex; align-items: center; gap: 10px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent2);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.gradient {
  background: linear-gradient(100deg, #fff 20%, var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== CARDS ===== */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(14px);
}
.form { max-width: 440px; }
.field { margin-bottom: 13px; }
.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: #0c0e14;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(255, 45, 66, 0.5);
}
.field textarea { min-height: 88px; resize: vertical; }

/* ===== PRODUCT CARDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.product-card.text-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.product-card.text-card:hover {
  border-color: rgba(255, 45, 66, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pc-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(255, 45, 66, 0.1);
  border: 1px solid rgba(255, 45, 66, 0.2);
  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(46, 229, 157, 0.1); }
.pc-stock.danger { color: var(--danger); background: rgba(255, 77, 106, 0.1); }
.product-title { font-size: 15.5px; 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: 16.5px; font-weight: 900; }
.old { font-size: 11.5px; color: var(--muted); text-decoration: line-through; margin-left: 5px; }

/* ===== HERO ===== */
.hero {
  max-width: 1100px;
  margin: auto;
  padding: 52px 16px 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.08;
  margin: 10px 0 12px;
  font-weight: 950;
  letter-spacing: -0.03em;
}
.hero p { color: var(--muted); max-width: 460px; margin: 0 0 20px; font-size: 14.5px; }
.hero-actions { gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.mini-stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 400px;
}
.mini-stat > div {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 13px;
}
.mini-stat strong { display: block; font-size: 18px; font-weight: 900; }
.mini-stat small { color: var(--muted); font-size: 10.5px; }
.hero-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,45,66,0.1), rgba(16,18,26,0.95));
  border: 1px solid rgba(255,45,66,0.2);
  border-radius: 22px;
  padding: 26px;
  min-height: 300px;
  overflow: hidden;
}
.hero-card .orb {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,45,66,0.3), transparent 70%);
  right: -36px;
  bottom: -36px;
}
.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: 0.04em;
}
.badge.ok { background: rgba(46,229,157,0.12); color: var(--ok); border: 1px solid rgba(46,229,157,0.22); }
.badge.warn { background: rgba(255,184,77,0.12); color: var(--warn); border: 1px solid rgba(255,184,77,0.22); }
.badge.danger { background: rgba(255,77,106,0.12); color: var(--danger); border: 1px solid rgba(255,77,106,0.22); }

/* FEATURE / PROMO / 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(255,45,66,0.1);
  border: 1px solid rgba(255,45,66,0.18);
  margin-bottom: 11px;
  font-weight: 900;
  font-size: 13px;
  color: var(--accent2);
}
.promo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(120deg, rgba(255,45,66,0.08), rgba(16,18,26,0.9));
  border-color: rgba(255,45,66,0.18);
}
.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; font-size: 14px; }
.faq p { margin: 8px 0 0; font-size: 13.5px; }

/* ACCOUNT DATA */
.account-box {
  margin-top: 12px;
  background: rgba(46,229,157,0.06);
  border: 1px solid rgba(46,229,157,0.2);
  border-radius: 13px;
  padding: 13px;
}
.account-box-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--ok);
  text-transform: uppercase;
  letter-spacing: 0.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 */
.qris-wrap { text-align: center; padding: 16px; }
.qris-wrap img {
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.35);
}
.qris-hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ===== BOTTOM NAV — PREMIUM ===== */
.bottom {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--nav-h);
  padding: 0 8px calc(env(safe-area-inset-bottom, 0px) + 4px);
  background: rgba(8, 9, 14, 0.92);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-top: 1px solid var(--line);
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}
.bnav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  max-width: 80px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  border-radius: 14px;
  transition: color 0.18s, background 0.18s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.bnav svg {
  width: 22px;
  height: 22px;
  opacity: 0.7;
  transition: 0.18s;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bnav span { line-height: 1; }
.bnav:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.bnav:hover svg { opacity: 1; }
.bnav.active {
  color: var(--accent2);
}
.bnav.active svg {
  opacity: 1;
  stroke: var(--accent2);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.bnav.active::before {
  content: "";
  position: absolute;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.bnav-center {
  max-width: 88px;
}
.bnav-fab {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-top: -22px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--accent), #c41228);
  color: #fff;
  box-shadow:
    0 8px 24px var(--accent-glow),
    0 0 0 4px var(--bg),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transition: 0.18s transform, 0.18s box-shadow;
}
.bnav-fab svg {
  opacity: 1;
  stroke: #fff;
  width: 22px;
  height: 22px;
}
.bnav-center:hover .bnav-fab,
.bnav-center.active .bnav-fab {
  transform: scale(1.06);
  box-shadow:
    0 12px 32px var(--accent-glow),
    0 0 0 4px var(--bg),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.bnav-center.active::before { display: none; }
.bnav-center span:last-child {
  margin-top: 2px;
  font-size: 10px;
}

/* ===== ADMIN ===== */
.adminnav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.adminnav a {
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  transition: 0.15s;
  white-space: nowrap;
}
.adminnav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.adminnav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #c41228);
  box-shadow: 0 4px 14px var(--accent-glow);
}
.statgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat {
  padding: 16px;
}
.stat strong {
  font-size: 26px;
  display: block;
  margin-top: 6px;
  font-weight: 950;
}
.stat .muted { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* AUTH */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px 100px;
}
.auth .card { width: 100%; max-width: 400px; }

/* TOAST */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 20px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1d28;
  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: var(--shadow);
  animation: toastIn 0.22s ease;
  white-space: nowrap;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.empty {
  text-align: center;
  padding: 44px 18px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 24px 16px calc(var(--nav-h) + 20px);
  color: var(--muted);
  text-align: center;
  font-size: 12.5px;
}
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  background-size: 200% 100%;
  animation: shine 1.2s infinite;
  border-radius: 11px;
}
@keyframes shine { to { background-position: -200% 0; } }

.wa-float {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  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, 0.4);
  transition: 0.15s transform;
}
.wa-float:hover { transform: scale(1.08); }

/* TABLE-LIKE */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.admin-table th {
  color: var(--muted);
  font-weight: 650;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* RESPONSIVE */
@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) {
  .navin { padding: 10px 12px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 32px; }
  .hero-card { min-height: 240px; }
  .grid { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .layout { padding: 18px 14px 28px; }
  .section { padding: 22px 14px; }
  .bottom { display: flex; }
  .mini-stat { grid-template-columns: 1fr 1fr; }
  .mini-stat > div:last-child { display: none; }
  .brand-text { font-size: 12px; }
  .statgrid { grid-template-columns: 1fr 1fr; }
  .adminnav { gap: 4px; padding: 5px; }
  .adminnav a { padding: 8px 11px; font-size: 12px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 28px; }
  .card { padding: 14px; }
  .bnav { font-size: 9.5px; }
}

/* Timeline */
.timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  margin: 16px 0;
  padding: 8px 0;
}
.tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 72px;
  text-align: center;
}
.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--line2);
  transition: 0.2s;
}
.tl-step.done .tl-dot {
  background: var(--ok);
  border-color: var(--ok);
  box-shadow: 0 0 10px rgba(46,229,157,0.35);
}
.tl-step.active .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: scale(1.15);
}
.tl-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.25;
}
.tl-step.done .tl-label,
.tl-step.active .tl-label { color: var(--text); }
.tl-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin-top: 12px;
  min-width: 12px;
}
.tl-step.done + .tl-line,
.timeline .tl-line:has(+ .tl-step.done) { background: rgba(46,229,157,0.4); }

/* Announcement banner */
.announce {
  max-width: 1100px;
  margin: 12px auto 0;
  padding: 0 16px;
}
.announce-inner {
  background: linear-gradient(90deg, rgba(255,45,66,0.15), rgba(255,45,66,0.05));
  border: 1px solid rgba(255,45,66,0.25);
  border-radius: 12px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.announce-inner .ann-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,45,66,0.2);
  display: grid;
  place-items: center;
  font-size: 14px;
}

/* Copy btn */
.btn-copy {
  font-size: 12px;
  padding: 6px 12px;
}

/* Flash / discount ribbon */
.pc-discount {
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 6px;
}
