:root {
  --primary: #2563eb;
  --primary-2: #7c3aed;
  --primary-soft: rgba(37, 99, 235, .12);
  --bg: #080f1f;
  --surface: rgba(255, 255, 255, .92);
  --surface-2: rgba(255, 255, 255, .78);
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, .28);
  --green: #16a34a;
  --green-soft: #dcfce7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --orange: #ea580c;
  --orange-soft: #ffedd5;
  --shadow: 0 28px 80px rgba(2, 6, 23, .18);
  --soft-shadow: 0 14px 35px rgba(15, 23, 42, .10);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(37, 99, 235, .34), transparent 30%),
    radial-gradient(circle at 84% 0%, rgba(124, 58, 237, .32), transparent 34%),
    linear-gradient(180deg, #071225 0%, #0b1220 32%, #f6f8fb 32%, #f8fafc 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.bg-orb {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: .22;
  pointer-events: none;
  z-index: -1;
}
.orb-a { left: -110px; top: 180px; background: #38bdf8; }
.orb-b { right: -130px; top: 260px; background: #a78bfa; }

.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px max(18px, calc((100vw - 1180px) / 2));
  background: rgba(8, 15, 31, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
  color: white;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .24);
  background: white;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
.brand small {
  display: block;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}
.top-links {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link,
.version-badge {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .10);
  color: white;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.nav-link-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .25);
}
.version-badge { color: rgba(255, 255, 255, .78); }

.page-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 70px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
  margin: 6px 0 22px;
}
.hero-copy,
.hero-card,
.checkout-card,
.result-card,
.catalog-section {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-copy {
  padding: clamp(26px, 5vw, 42px);
  color: white;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .95), rgba(30, 41, 59, .88)),
    radial-gradient(circle at 80% 15%, rgba(37, 99, 235, .40), transparent 34%);
  border-color: rgba(255, 255, 255, .16);
  position: relative;
  overflow: hidden;
}
.hero-copy::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .34), rgba(124, 58, 237, .30));
}
.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .12);
  color: var(--primary);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .02em;
}
.hero-copy .eyebrow {
  background: rgba(255, 255, 255, .12);
  color: #bfdbfe;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: .98;
  letter-spacing: -.05em;
  max-width: 780px;
}
h2 { margin-bottom: 6px; font-size: 26px; letter-spacing: -.03em; }
h3 { margin-bottom: 8px; }
.hero-copy p {
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 680px;
  position: relative;
  z-index: 1;
}
.hero-actions,
.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.trust-row span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 800;
}
.hero-card {
  padding: 25px;
  background: rgba(255, 255, 255, .90);
}
.hero-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 18px;
}
.live-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(22, 163, 74, .12);
}
ol { padding-left: 22px; margin: 0; color: var(--muted); line-height: 1.9; }

.alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(22, 163, 74, .2);
  font-weight: 800;
  box-shadow: var(--soft-shadow);
}
.alert.error { background: var(--red-soft); color: var(--red); border-color: rgba(220, 38, 38, .2); }

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
  align-items: start;
}
.catalog-section { padding: 20px; background: var(--surface); }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); margin-bottom: 0; }
.search {
  width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 14px;
  outline: none;
  background: white;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .03);
}
.search:focus,
input:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, .48);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tab-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .76);
  color: var(--muted);
  padding: 11px 14px;
  border-radius: 999px;
  font-weight: 900;
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(37, 99, 235, .22);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  border: 1px solid rgba(148, 163, 184, .22);
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .07);
  transition: .18s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(15, 23, 42, .11); }
.product-card.open,
.product-card.selected { border-color: rgba(37, 99, 235, .45); }
.product-main {
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  color: var(--text);
}
.product-title-wrap,
.product-price-wrap { display: grid; gap: 6px; }
.product-title-wrap strong { font-size: 17px; letter-spacing: -.02em; }
.product-title-wrap small,
.product-price-wrap small { color: var(--muted); font-size: 12px; font-weight: 800; }
.product-price-wrap { text-align: right; justify-items: end; min-width: 105px; }
.product-price-wrap b { color: var(--primary); font-size: 15px; }
.product-detail { padding: 0 16px 16px; }
.product-description {
  margin: 0 0 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  padding: 12px;
  line-height: 1.55;
  font-size: 13px;
}
.variant-list { display: grid; gap: 8px; }
.variant-btn {
  border: 1px solid rgba(148, 163, 184, .22);
  background: white;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  align-items: center;
}
.variant-btn strong { display: block; font-size: 14px; }
.variant-btn small { color: var(--muted); font-size: 12px; }
.variant-btn .price {
  display: grid;
  justify-items: end;
  color: var(--primary);
  font-weight: 900;
  white-space: nowrap;
}
.normal-price {
  color: var(--muted);
  font-size: 12px;
  text-decoration: line-through;
  font-weight: 600;
}
.variant-btn.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.empty {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.checkout-card {
  position: sticky;
  top: 92px;
  padding: 20px;
  background: rgba(255, 255, 255, .96);
}
.checkout-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.checkout-head span { font-weight: 900; }
.checkout-head small { display: block; color: var(--muted); margin-top: 3px; }
.checkout-head strong { color: var(--primary); font-size: 23px; }
.selected-box {
  border: 1px solid rgba(148, 163, 184, .22);
  background: #f8fafc;
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 14px;
  line-height: 1.6;
}
label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
  background: white;
  color: var(--text);
}
textarea { resize: vertical; min-height: 92px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 900;
  text-decoration: none;
  transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; box-shadow: 0 16px 32px rgba(37, 99, 235, .24); }
.btn.soft { background: #eef2ff; color: var(--primary); border-color: rgba(37, 99, 235, .12); }
.btn.ghost { background: white; color: var(--text); border-color: var(--line); }
.btn.glass { background: rgba(255, 255, 255, .10); color: white; border-color: rgba(255, 255, 255, .18); }
.btn.full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.small-note { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 12px 0 0; }
.order-created { animation: pulseCard .9s ease; }
@keyframes pulseCard { 0%, 100% { box-shadow: var(--shadow); } 50% { box-shadow: 0 0 0 7px rgba(37, 99, 235, .12), var(--shadow); } }

.order-result { margin-top: 18px; }
.result-card { padding: 22px; background: rgba(255, 255, 255, .96); }
.result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.status-pill {
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.result-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
}
.qris-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  text-align: center;
}
.qris-box img {
  width: 100%;
  max-width: 280px;
  border-radius: 22px;
  background: white;
  border: 1px solid rgba(148, 163, 184, .20);
  padding: 10px;
}
.qris-box p { color: var(--muted); margin: 12px 0 0; }
.payment-detail { display: grid; gap: 10px; }
.line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .18);
}
.line span { color: var(--muted); }
.line.total {
  background: linear-gradient(135deg, rgba(37, 99, 235, .10), rgba(124, 58, 237, .08));
  border-color: rgba(37, 99, 235, .25);
}
.line.total strong { color: var(--primary); font-size: 20px; }
.instruction-box,
.proof-box {
  border: 1px solid rgba(148, 163, 184, .22);
  background: white;
  border-radius: 20px;
  padding: 15px;
}
.instruction-box p,
.proof-box p { color: var(--muted); line-height: 1.55; margin: 8px 0 0; }
.proof-upload-area { margin-top: 12px; display: grid; gap: 10px; }
.proof-preview {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  color: var(--green);
  font-weight: 900;
}
.proof-preview img {
  width: min(100%, 340px);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}
.proof-preview.sent {
  background: var(--green-soft);
  border: 1px solid rgba(22, 163, 74, .20);
  border-radius: 18px;
  padding: 12px;
}
.proof-status { font-weight: 800; }

@media (max-width: 1040px) {
  .hero,
  .shop-layout,
  .result-grid { grid-template-columns: 1fr; }
  .checkout-card { position: static; }
  .product-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; }
  .search { width: 100%; }
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at 20% 0%, rgba(37, 99, 235, .34), transparent 32%),
      linear-gradient(180deg, #071225 0%, #0b1220 24%, #f6f8fb 24%, #f8fafc 100%);
  }
  .store-header {
    align-items: flex-start;
    padding: 12px 14px;
  }
  .brand img { width: 42px; height: 42px; border-radius: 15px; }
  .brand strong { max-width: 150px; font-size: 15px; }
  .top-links { gap: 6px; }
  .nav-link, .version-badge { padding: 8px 10px; font-size: 11px; }
  .page-wrap { width: min(100% - 24px, 1180px); padding-top: 18px; }
  .hero-copy,
  .hero-card,
  .checkout-card,
  .result-card,
  .catalog-section { border-radius: 22px; }
  .hero-copy { padding: 24px; }
  h1 { font-size: 34px; }
  h2 { font-size: 22px; }
  .product-main { padding: 16px; }
  .result-head { flex-direction: column; }
  .line { font-size: 14px; }
  .result-actions .btn { flex: 1 1 100%; }
}

.status-pill.paid{background:#dcfce7;color:#166534;border-color:#86efac;}
