/* Brilliant Digital — playful neo-brutalism, Brilliant blue + gold.
   Thick borders, offset shadows, cream grid paper (dark purple in
   dark mode). No external assets. */
:root {
  --paper: #fff6df;
  --card: #ffffff;
  --ink: #161616;
  --line: #161616;
  --blue: #1e6feb;
  --blue-deep: #0b4fbd;
  --gold: #ffc531;
  --green: #22a355;
  --red: #e5484d;
  --muted: #5c5546;
  --shadow: 6px 6px 0 var(--line);
  --shadow-sm: 4px 4px 0 var(--line);
  --grid-line: rgba(22, 22, 22, 0.07);
}
[data-theme="dark"] {
  --paper: #17122e;
  --card: #251e47;
  --ink: #f4efe4;
  --line: #0a0a12;
  --blue: #4d8dff;
  --blue-deep: #2f6fe0;
  --gold: #ffc531;
  --muted: #b6aed6;
  --shadow: 6px 6px 0 #000;
  --shadow-sm: 4px 4px 0 #000;
  --grid-line: rgba(255, 255, 255, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--blue-deep); }
[data-theme="dark"] a { color: var(--blue); }
.container { width: min(1120px, 100% - 32px); margin: 0 auto; }
main.container { flex: 1; padding: 28px 0 56px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 16px;
  background: var(--paper);
  border-bottom: 3px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-bot { width: 42px; height: 42px; flex: none; }
.brand-name { font-weight: 900; letter-spacing: 0.5px; font-size: 20px; line-height: 1; }
.brand-name em { display: block; font-style: normal; color: var(--blue); font-size: 13px; letter-spacing: 4px; }
.site-nav { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.site-nav a, .site-nav button {
  font: inherit; font-weight: 700; cursor: pointer;
  color: var(--ink); text-decoration: none;
  background: var(--card); border: 3px solid var(--line);
  padding: 6px 14px; box-shadow: var(--shadow-sm);
}
.site-nav a:hover, .site-nav button:hover { transform: translate(-1px, -1px); }
.header-tools { display: flex; gap: 8px; }
.tool-btn {
  font: inherit; font-weight: 800; cursor: pointer;
  background: var(--gold); color: #161616;
  border: 3px solid var(--line); width: 44px; height: 40px;
  box-shadow: var(--shadow-sm);
}

/* ---------- generic ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 800; cursor: pointer;
  text-decoration: none; text-align: center;
  color: #fff; background: var(--blue);
  border: 3px solid var(--line); padding: 10px 20px;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translate(-1px, -1px); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.btn.gold { background: var(--gold); color: #161616; }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.block { display: block; width: 100%; }
.card {
  background: var(--card); border: 3px solid var(--line);
  box-shadow: var(--shadow); padding: 20px;
}
.chip {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.4px;
  border: 2px solid var(--line); padding: 2px 9px; background: var(--gold); color: #161616;
}
.chip.blue { background: var(--blue); color: #fff; }
.chip.green { background: var(--green); color: #fff; }
.chip.red { background: var(--red); color: #fff; }
.chip.grey { background: var(--card); color: var(--muted); }
.muted { color: var(--muted); }
.error-box {
  background: #ffe3e3; color: #7a1013; border: 3px solid var(--line);
  padding: 10px 14px; font-weight: 700; margin-bottom: 14px;
}
[data-theme="dark"] .error-box { background: #4a1d22; color: #ffb9bc; }
h1.page-title { font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin: 6px 0 4px; }
.lede { font-size: 17px; margin: 0 0 20px; }

/* ---------- catalog ---------- */
.cat-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 22px; }
.cat-row button {
  font: inherit; font-weight: 800; cursor: pointer;
  background: var(--card); color: var(--ink);
  border: 3px solid var(--line); padding: 6px 14px; box-shadow: var(--shadow-sm);
}
.cat-row button.active { background: var(--blue); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; gap: 10px; }
.product-card h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.product-card .blurb { margin: 0; color: var(--muted); font-size: 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-usdt { font-size: 22px; font-weight: 900; }
.price-idr { color: var(--muted); font-weight: 700; font-size: 14px; }
.card-actions { display: flex; gap: 8px; align-items: center; }
.stock-note { font-size: 13px; font-weight: 700; }

/* ---------- product detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-grid h1 { margin: 8px 0; font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; }
.text-block { white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.55; }
.section-title { font-size: 19px; font-weight: 900; margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ""; flex: 1; border-top: 3px solid var(--line); }
.buy-box .price-usdt { font-size: 30px; }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.qty-row button {
  font: inherit; font-weight: 900; width: 42px; height: 42px; cursor: pointer;
  background: var(--gold); color: #161616; border: 3px solid var(--line); box-shadow: var(--shadow-sm);
}
.qty-row input {
  font: inherit; font-weight: 800; text-align: center; width: 72px; height: 42px;
  border: 3px solid var(--line); background: var(--card); color: var(--ink);
}

/* ---------- forms ---------- */
.form-card { max-width: 460px; margin: 24px auto; }
.form-card label { display: block; font-weight: 800; margin: 14px 0 6px; }
.form-card input {
  width: 100%; font: inherit; padding: 11px 12px;
  border: 3px solid var(--line); background: var(--card); color: var(--ink);
}
.form-card .btn { margin-top: 20px; }

/* ---------- orders / payment ---------- */
.order-list { display: grid; gap: 14px; }
.order-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; text-decoration: none; color: var(--ink); }
.order-row:hover { transform: translate(-1px, -1px); }
.pay-panel { text-align: center; }
.qr-wrap {
  display: inline-block; background: #fff; border: 3px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 14px; margin: 12px 0;
}
.qr-wrap img { display: block; width: min(300px, 72vw); height: auto; image-rendering: pixelated; }
.due-amount { font-size: 32px; font-weight: 900; }
.countdown { font-size: 22px; font-weight: 900; color: var(--blue-deep); }
[data-theme="dark"] .countdown { color: var(--blue); }
.countdown.late { color: var(--red); }
.delivery-box {
  white-space: pre-wrap; word-break: break-word; text-align: left;
  font-family: "Courier New", monospace; font-size: 15px;
  background: var(--paper); border: 3px dashed var(--line); padding: 14px; margin: 12px 0;
}
.state-chip { font-size: 13px; }
.help-strip { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 3px solid var(--line); background: var(--card); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; padding: 26px 0; }
.footer-brand { font-weight: 900; font-size: 18px; margin: 0 0 6px; }
.footer-title { font-weight: 900; margin: 0 0 8px; }
.footer-note { color: var(--muted); margin: 4px 0; }
.site-footer p { margin: 5px 0; }
.mini-badge { display: inline-block; font-weight: 900; font-size: 12px; border: 2px solid var(--line); padding: 2px 8px; background: var(--blue); color: #fff; margin-right: 6px; }
.mini-badge.gold { background: var(--gold); color: #161616; }
.spinner {
  display: inline-block; width: 18px; height: 18px; vertical-align: -3px;
  border: 3px solid var(--muted); border-top-color: var(--blue);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* parity additions: FAQ accordion, structured terms, restock waitlist */
.faq-item { margin-bottom: 12px; }
.faq-item summary { font-weight: 800; cursor: pointer; }
.faq-item p { margin: 8px 0 2px; }
.terms-rows p { margin: 7px 0; }
.waitlist-box { margin-top: 14px; }
.waitlist-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.waitlist-form input { flex: 1; min-width: 170px; }
