* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #070707;
  --bg-2: #101010;
  --surface: rgba(255,255,255,0.055);
  --surface-2: rgba(255,255,255,0.085);
  --text: #f7f7f7;
  --muted: #ababab;
  --line: rgba(255,255,255,0.12);
  --shadow: 0 26px 80px rgba(0,0,0,0.34);
  --btn: #f5f5f5;
  --btn-text: #090909;
  --grid: rgba(255,255,255,0.045);
  --radius: 28px;
}

html[data-theme="light"] {
  --bg: #f5f5f5;
  --bg-2: #ffffff;
  --surface: rgba(0,0,0,0.04);
  --surface-2: rgba(0,0,0,0.065);
  --text: #0d0d0d;
  --muted: #666;
  --line: rgba(0,0,0,0.12);
  --shadow: 0 26px 80px rgba(0,0,0,0.09);
  --btn: #111;
  --btn-text: #fff;
  --grid: rgba(0,0,0,0.05);
}

html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 20% 8%, rgba(255,255,255,0.10), transparent 28rem),
    radial-gradient(circle at 80% 24%, rgba(255,255,255,0.06), transparent 25rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 88%);
}

.cursor-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  right: -120px;
  top: 120px;
  background: rgba(255,255,255,.075);
  filter: blur(48px);
  border-radius: 999px;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { cursor: pointer; border: none; }

.topbar {
  width: min(1160px, calc(100% - 28px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 86%, transparent);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 14px;
  z-index: 50;
  box-shadow: var(--shadow);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #fff; }
.top-actions { display: flex; gap: 8px; align-items: center; }

.theme-btn, .nav-pill, .menu-btn, .primary-btn, .secondary-btn, .copy-btn, .category-btn, .menu-link, .variant-item {
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
}
.theme-btn, .nav-pill, .menu-btn, .category-btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.theme-btn { width: 42px; height: 42px; border-radius: 50%; }
.nav-pill { padding: 12px 18px; border-radius: 999px; font-size: .94rem; font-weight: 700; }
.nav-pill.active, .category-btn.active { background: var(--btn); color: var(--btn-text); }
.menu-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; gap: 4px; }
.menu-btn span { width: 16px; height: 2px; display: block; border-radius: 10px; background: var(--text); }

main { width: min(1160px, calc(100% - 28px)); margin: 0 auto; padding: 34px 0 80px; position: relative; z-index: 1; }
.hero, .payment-hero { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; }
.payment-hero { min-height: 55vh; }
.hero-logo-card { width: 210px; height: 210px; border-radius: 42px; padding: 10px; background: linear-gradient(145deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-logo-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; background: #fff; }
.badge, .mini-label, .pay-label, .product-type, .number { display: inline-flex; width: fit-content; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; }
.badge { padding: 11px 17px; font-size: .94rem; }
.hero h1, .payment-hero h1 { max-width: 870px; font-size: clamp(2.5rem, 7vw, 6.6rem); line-height: .96; letter-spacing: -.07em; font-weight: 900; }
.payment-hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
.hero-text { max-width: 740px; color: var(--muted); line-height: 1.85; font-size: 1.06rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.primary-btn, .secondary-btn, .copy-btn { display: inline-flex; justify-content: center; align-items: center; padding: 14px 20px; min-height: 48px; border-radius: 17px; font-size: .96rem; font-weight: 800; }
.primary-btn { background: var(--btn); color: var(--btn-text); }
.secondary-btn, .copy-btn { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.full { width: 100%; }

.section { padding: 42px 0 18px; }
.section-head { margin-bottom: 18px; }
.split-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.mini-label, .pay-label { padding: 8px 12px; margin-bottom: 10px; font-size: .83rem; }
.section h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.04em; }
.search-wrap { width: min(100%, 360px); }
.search-wrap input { width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 15px 18px; color: var(--text); outline: none; background: var(--surface); }
.category-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.category-btn { padding: 11px 16px; border-radius: 999px; font-weight: 800; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card, .panel, .modal-card, .empty-state { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(12px); border-radius: var(--radius); box-shadow: var(--shadow); }
.product-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 330px; animation: cardIn .65s ease both; animation-delay: var(--delay); }
.product-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.number { padding: 8px 11px; color: var(--text); font-weight: 900; }
.product-type { padding: 8px 11px; font-size: .79rem; }
.product-card h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; }
.product-card p { color: var(--muted); line-height: 1.65; }
.price-list { display: grid; gap: 10px; margin-top: auto; }
.price-list div { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.price-list span { color: var(--muted); font-size: .9rem; }
.price-list strong { white-space: nowrap; }
.product-actions, .modal-actions, .qris-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.empty-state { padding: 30px; color: var(--muted); grid-column: 1 / -1; text-align: center; }

.payment-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.panel { padding: 24px; }
.payment-card h3 { font-size: 1.35rem; margin: 8px 0; letter-spacing: -.03em; }
.payment-card p, .qris-info p { color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.qris-panel { overflow: hidden; }
.qris-info { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.qris-info h3 { font-size: 1.45rem; margin-bottom: 8px; }
.qris-box { max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-14px); transition: max-height .65s ease, opacity .45s ease, transform .55s ease, margin-top .45s ease; }
.qris-box.show { max-height: 820px; opacity: 1; transform: translateY(0); margin-top: 22px; }
.qris-box img { width: min(100%, 360px); display: block; border-radius: 24px; border: 1px solid var(--line); background: #fff; }
.qris-actions { margin-top: 14px; max-width: 360px; }

.side-menu { position: fixed; top: 16px; right: 16px; width: min(370px, calc(100% - 24px)); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 95%, transparent); backdrop-filter: blur(18px); border-radius: 30px; z-index: 100; padding: 22px; opacity: 0; pointer-events: none; transform: translateY(-18px) scale(.96); transition: all .32s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow); }
.side-menu.active { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.menu-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.menu-kicker, .menu-footer { color: var(--muted); }
.close-btn, .modal-close { background: transparent; color: var(--text); font-size: 2rem; line-height: 1; }
.menu-links { display: grid; gap: 11px; }
.menu-link { display: block; padding: 17px; border-radius: 18px; color: var(--text); background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.menu-footer { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.7; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; z-index: 90; transition: .25s ease; }
.overlay.active { opacity: 1; pointer-events: auto; }

.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.42); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: .28s ease; }
.modal.show { opacity: 1; pointer-events: auto; }
.modal-card { width: min(560px, 100%); padding: 24px; position: relative; transform: translateY(20px) scale(.96); transition: .34s cubic-bezier(.2,.8,.2,1); }
.modal.show .modal-card { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 16px; right: 18px; }
.modal-card h3 { font-size: 1.8rem; letter-spacing: -.04em; padding-right: 34px; }
.modal-desc { margin: 10px 0 16px; color: var(--muted); line-height: 1.7; }
.variant-list { display: grid; gap: 10px; margin-bottom: 14px; }
.variant-item { display: flex; justify-content: space-between; gap: 12px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 16px; padding: 14px; }
.variant-item span { color: var(--muted); }
.variant-item:hover { transform: translateY(-2px); }

.footer { width: min(1160px, calc(100% - 28px)); margin: 0 auto 30px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(18px); background: var(--btn); color: var(--btn-text); padding: 12px 16px; border-radius: 999px; font-weight: 800; opacity: 0; pointer-events: none; z-index: 130; transition: .28s ease; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.float-slow { animation: floating 4.7s ease-in-out infinite; }
@keyframes floating { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.theme-btn:hover, .nav-pill:hover, .menu-btn:hover, .primary-btn:hover, .secondary-btn:hover, .copy-btn:hover, .category-btn:hover, .menu-link:hover, .product-card:hover { transform: translateY(-2px); }
.product-card:hover { border-color: color-mix(in srgb, var(--text) 28%, transparent); }

@media (max-width: 980px) { .product-grid, .payment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split-head { align-items: start; flex-direction: column; } .search-wrap { width: 100%; } }
@media (max-width: 680px) {
  .nav-pill { display: none; }
  .hero, .payment-hero { min-height: auto; padding: 52px 0 30px; }
  .hero-logo-card { width: 170px; height: 170px; border-radius: 34px; }
  .hero-logo-card img { border-radius: 25px; }
  .hero h1, .payment-hero h1 { font-size: 2.75rem; }
  .product-grid, .payment-grid, .product-actions, .modal-actions, .qris-actions { grid-template-columns: 1fr; }
  .primary-btn, .secondary-btn, .copy-btn, .qris-btn { width: 100%; }
  .topbar { padding: 10px 12px; }
  .brand span { max-width: 155px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
