/* =========================================================
   GokilCraft Store - warna diambil dari logo
   ========================================================= */
:root {
  --bg: #0b0e15;
  --bg-2: #0f131c;
  --surface: #141925;
  --surface-2: #1b2131;
  --surface-3: #232a3e;
  --line: #262d42;
  --line-2: #333b55;
  --gold: #d9b45a;
  --gold-hi: #f2d68c;
  --gold-lo: #8a6a22;
  --teal: #6dd3c7;
  --teal-lo: #2b8a80;
  --text: #ece8dc;
  --muted: #8f96ad;
  --danger: #ff6b6b;
  --ok: #5fdc8a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Silkscreen", "Plus Jakarta Sans", monospace;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(217, 180, 90, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(109, 211, 199, .07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* pola grid tipis seperti sisi kubus */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(217, 180, 90, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 180, 90, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  z-index: 0;
}

a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; position: relative; z-index: 1; }
.pixel { font-family: var(--pixel); letter-spacing: .02em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------- navbar */
.nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(11, 14, 21, .72);
  border-bottom: 1px solid rgba(38, 45, 66, .7);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand img { width: 34px; height: 51px; object-fit: contain; }
.brand__name { font-family: var(--pixel); font-size: 18px; line-height: 1; }
.brand__name span { color: var(--gold); }
.brand__sub { display: block; font-family: var(--font); font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--muted); font-weight: 600; font-size: 14px; }
.nav__links a:hover { color: var(--text); }

/* ---------------------------------------------------- tombol */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: 700 15px/1 var(--font);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #c49a3c);
  color: #1a1408;
  box-shadow: 0 0 0 1px rgba(242, 214, 140, .35) inset, 0 10px 30px -10px rgba(217, 180, 90, .6);
}
.btn--gold:hover { box-shadow: 0 0 0 1px rgba(242, 214, 140, .5) inset, 0 14px 36px -10px rgba(217, 180, 90, .8); color: #1a1408; }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--gold-lo); color: var(--text); }
.btn--block { width: 100%; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ---------------------------------------------------- hero */
.hero { padding: 64px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(109, 211, 199, .08); border: 1px solid rgba(109, 211, 199, .25);
  color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.hero h1 {
  font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08;
  margin: 18px 0 16px;
}
.hero h1 em { font-style: normal; color: var(--gold); text-shadow: 0 0 30px rgba(217, 180, 90, .35); }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 540px; margin: 0 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 8px 0 16px;
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
  font-family: var(--pixel); font-size: 14px; color: var(--text); cursor: pointer;
}
.ip small { font-family: var(--font); color: var(--muted); font-size: 11px; }
.ip .btn { height: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust i { width: 8px; height: 8px; background: var(--gold); display: inline-block; }

.hero__art { position: relative; display: grid; place-items: center; }
.hero__art::before {
  content: ""; position: absolute; width: min(78%, 420px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 180, 90, .28), rgba(109, 211, 199, .08) 45%, transparent 70%);
  filter: blur(10px);
}
.hero__art img { position: relative; width: min(340px, 80%); height: auto; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------------------------------------------------- panel / kartu */
.section { padding: 28px 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 16px; margin-bottom: 18px; }
.section__title { font-family: var(--pixel); font-size: 20px; margin: 0; font-weight: 400; }
.step-no {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px;
  background: var(--gold); color: #1a1408; font-family: var(--pixel); font-size: 14px; vertical-align: 3px;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------------------------------------------------- layout belanja */
.shop { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }

.player { display: flex; gap: 18px; align-items: center; padding: 20px; }
.player__avatar {
  width: 64px; height: 64px; flex: none; border-radius: 10px;
  background: var(--surface-3) center/cover no-repeat; image-rendering: pixelated;
  border: 1px solid var(--line-2);
}
.field { flex: 1; min-width: 0; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.input {
  width: 100%; height: 48px; padding: 0 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: 600 16px var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #5b6280; font-weight: 500; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 180, 90, .18); }
.hint { font-size: 13px; margin-top: 6px; min-height: 20px; color: var(--muted); }
.hint.ok { color: var(--ok); }
.hint.err { color: var(--danger); }

.tabs { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); font: 700 14px var(--font); cursor: pointer;
}
.tab img { width: 20px; height: 20px; image-rendering: pixelated; }
.tab[aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }

.cat-desc { color: var(--muted); font-size: 14px; margin: 12px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }

.product {
  position: relative; text-align: left; cursor: pointer;
  padding: 18px; min-height: 178px;
  display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); font: inherit;
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
}
.product:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .9); }
.product[aria-pressed="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset, 0 18px 40px -18px rgba(217, 180, 90, .55);
}
.product__icon { width: 40px; height: 40px; image-rendering: pixelated; margin-bottom: 6px; }
.product__amount { font-family: var(--pixel); font-size: 22px; line-height: 1.1; }
.product__unit { color: var(--muted); font-size: 13px; font-weight: 600; }
.product__price { margin-top: auto; font-weight: 800; font-size: 17px; color: var(--gold-hi); }
.product__tag {
  position: absolute; top: 12px; right: 12px;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(109, 211, 199, .12); color: var(--teal); border: 1px solid rgba(109, 211, 199, .3);
  font-size: 11px; font-weight: 800; letter-spacing: .03em;
}
.product__check {
  position: absolute; bottom: 16px; right: 16px; width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--line-2); display: grid; place-items: center; transition: .18s;
}
.product[aria-pressed="true"] .product__check { background: var(--gold); border-color: var(--gold); }
.product[aria-pressed="true"] .product__check::after { content: ""; width: 9px; height: 5px; border: 2.5px solid #1a1408; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* ---------------------------------------------------- ringkasan / checkout */
.summary { position: sticky; top: 88px; padding: 22px; }
.summary h3 { font-family: var(--pixel); font-size: 18px; font-weight: 400; margin: 0 0 16px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.summary__row span:first-child { color: var(--muted); }
.summary__row strong { text-align: right; overflow-wrap: anywhere; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 18px; }
.summary__total span { color: var(--muted); font-weight: 700; }
.summary__total strong { font-size: 26px; color: var(--gold-hi); font-weight: 800; }
.summary .field { margin-bottom: 14px; }
.summary .input { height: 44px; font-size: 14px; }
.check { display: flex; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 16px; cursor: pointer; }
.check input { accent-color: var(--gold); width: 16px; height: 16px; margin-top: 3px; flex: none; }
.pay-note { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.pay-note span { font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; }
.form-error { color: var(--danger); font-size: 13px; margin: -6px 0 12px; min-height: 0; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(26, 20, 8, .3); border-top-color: #1a1408; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------- rank milestone */
.ladder { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; padding: 22px; }
.ladder__item { text-align: center; padding: 14px 6px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.ladder__item img { height: 18px; width: auto; margin: 0 auto 10px; image-rendering: pixelated; }
.ladder__item strong { display: block; font-size: 13px; }
.ladder__item small { color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------- cara beli & faq */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps .card { padding: 22px; }
.steps h4 { margin: 12px 0 6px; font-size: 16px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 20px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--pixel); }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--muted); margin: 10px 0 0; font-size: 14px; }

/* ---------------------------------------------------- halaman pesanan */
.order { max-width: 640px; margin: 48px auto; padding: 28px; }
.order__head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.order__head img { width: 56px; height: 56px; border-radius: 10px; image-rendering: pixelated; border: 1px solid var(--line-2); }
.order__head h1 { font-family: var(--pixel); font-size: 22px; margin: 0; }
.order__id { font-family: ui-monospace, Consolas, monospace; color: var(--muted); font-size: 13px; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0; }
.progress__step { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.progress__step::before {
  content: ""; display: block; height: 6px; border-radius: 6px; margin-bottom: 10px;
  background: var(--surface-3);
}
.progress__step.done { color: var(--text); }
.progress__step.done::before { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); box-shadow: 0 0 14px rgba(217, 180, 90, .45); }
.status-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line-2); font-weight: 700;
}
.status-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); flex: none; animation: pulse 1.6s ease-in-out infinite; }
.status-pill.ok::before { background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: none; }
.status-pill.err::before { background: var(--danger); box-shadow: 0 0 12px var(--danger); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
.order__actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* ---------------------------------------------------- footer & toast */
.footer { margin-top: 56px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text);
  padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; z-index: 50;
  transition: .25s ease; pointer-events: none; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------- responsif */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art img { width: 150px; }
  .shop { grid-template-columns: 1fr; }
  .summary { position: static; }
  .ladder { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav__links { display: none; }
  .hero { padding-top: 32px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product { min-height: 160px; padding: 14px; }
  .product__amount { font-size: 19px; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .player { flex-direction: column; align-items: stretch; }
  .player__avatar { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
