/* =========================================================
   GokilCraft Token — warna & gaya mengikuti store.css GokilCraft
   ========================================================= */
: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; --purple: #b58cff; --crystal: #7fd6ff;
  --text: #ece8dc; --muted: #8f96ad; --danger: #ff6b6b; --ok: #5fdc8a; --warn: #ffb45a;
  --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; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6;
  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);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  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%);
}
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); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.right { text-align: right; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.stack > * + * { margin-top: 14px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); background: rgba(11,14,21,.78); border-bottom: 1px solid rgba(38,45,66,.7); }
.nav__inner { display: flex; align-items: center; gap: 20px; 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: 18px; margin-left: auto; }
.nav__links a { color: var(--muted); font-weight: 600; font-size: 14px; }
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__user { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; padding: 6px 10px; }

/* buttons */
.btn { --b: var(--gold); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font: 700 14px/1 var(--font); cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s; white-space: nowrap; color: var(--text); background: var(--surface-2); }
.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 { color: #1a1408; box-shadow: 0 0 0 1px rgba(242,214,140,.5) inset, 0 14px 36px -10px rgba(217,180,90,.8); }
.btn--teal { background: linear-gradient(180deg, #a6ece3, var(--teal) 60%, #4fb3a8); color: #06211e; }
.btn--purple { background: linear-gradient(180deg, #d2bcff, var(--purple) 60%, #8a5fe0); color: #1b0f33; }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--gold-lo); }
.btn--danger { background: rgba(255,107,107,.12); color: var(--danger); border-color: rgba(255,107,107,.35); }
.btn--block { width: 100%; } .btn--sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* cards */
.card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; }
.card--flat { box-shadow: none; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card__title h3 { font-family: var(--pixel); font-weight: 400; font-size: 15px; color: var(--gold); margin: 0; }
.stat { padding: 18px; text-align: center; }
.stat strong { display: block; font-family: var(--pixel); font-weight: 400; font-size: 22px; color: var(--gold-hi); line-height: 1.2; word-break: break-word; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat--crystal strong { color: var(--crystal); } .stat--teal strong { color: var(--teal); } .stat--purple strong { color: var(--purple); } .stat--danger strong { color: var(--danger); }

/* hero / sections */
.hero { padding: 56px 0 28px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; 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(30px, 4.2vw, 50px); line-height: 1.08; margin: 18px 0 14px; }
.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: 560px; margin: 0 0 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { display: grid; place-items: center; }
.hero__art img { width: 260px; filter: drop-shadow(0 20px 40px rgba(217,180,90,.25)); }
.section { padding: 36px 0 8px; }
.section__title { font-family: var(--pixel); font-weight: 400; font-size: 20px; margin: 0 0 6px; }
.section__title .step-no { color: var(--gold); margin-right: 10px; }
.section__lead { color: var(--muted); max-width: 640px; margin: 0 0 20px; }
.page { padding: 36px 0 60px; }
.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page__head h1 { font-family: var(--pixel); font-weight: 400; font-size: 24px; margin: 0; }
.page__head p { margin: 4px 0 0; color: var(--muted); }

/* flow */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: step; }
.flow__step { padding: 18px 16px; position: relative; }
.flow__step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; font-family: var(--pixel); font-size: 14px; color: #1a1408; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); margin-bottom: 10px; }
.flow__step h4 { margin: 0 0 4px; font-size: 15px; } .flow__step p { margin: 0; color: var(--muted); font-size: 13px; }

/* forms */
label.field { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.input { width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 600 15px var(--font); outline: none; }
.input:focus { border-color: var(--gold-lo); box-shadow: 0 0 0 3px rgba(217,180,90,.15); }
textarea.input { height: auto; padding: 10px 14px; resize: vertical; font-weight: 500; }
.input--code { font-family: var(--pixel); letter-spacing: .25em; text-transform: uppercase; text-align: center; font-size: 20px; height: 56px; }
.help { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* badges / alerts */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1px solid transparent; }
.badge--ok { color: var(--ok); background: rgba(95,220,138,.1); border-color: rgba(95,220,138,.3); }
.badge--warn { color: var(--warn); background: rgba(255,180,90,.1); border-color: rgba(255,180,90,.3); }
.badge--danger { color: var(--danger); background: rgba(255,107,107,.1); border-color: rgba(255,107,107,.3); }
.badge--muted { color: var(--muted); background: rgba(143,150,173,.1); border-color: rgba(143,150,173,.3); }
.badge--gold { color: var(--gold-hi); background: rgba(217,180,90,.12); border-color: rgba(217,180,90,.35); }
.badge--teal { color: var(--teal); background: rgba(109,211,199,.1); border-color: rgba(109,211,199,.3); }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface-2); font-size: 14px; }
.alert--warn { border-color: rgba(255,180,90,.4); background: rgba(255,180,90,.08); color: #ffd9a6; }
.alert--danger { border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.08); color: #ffb3b3; }
.alert--ok { border-color: rgba(95,220,138,.4); background: rgba(95,220,138,.08); color: #bdf5cf; }
.alert--info { border-color: rgba(109,211,199,.35); background: rgba(109,211,199,.07); color: #c9f1ec; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table--wrap { overflow-x: auto; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-all; }

/* listings */
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.listing { padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, transform .2s; }
.listing:hover { border-color: var(--gold-lo); transform: translateY(-2px); }
.listing__icon { width: 54px; height: 54px; display: grid; place-items: center; font-family: var(--pixel); font-size: 11px; color: var(--gold-hi); text-align: center; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 4px; line-height: 1.1; }
.listing__name { font-weight: 800; font-size: 15px; margin: 0; }
.listing__meta { color: var(--muted); font-size: 12px; }
.listing__lore { color: var(--purple); font-size: 12px; white-space: pre-line; max-height: 70px; overflow: hidden; }
.listing__price { font-family: var(--pixel); color: var(--gold-hi); font-size: 15px; margin-top: auto; }
.listing--locked { opacity: .6; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(5,7,12,.75); backdrop-filter: blur(6px); padding: 16px; }
.modal__box { width: min(520px, 100%); max-height: 92vh; overflow: auto; }
.modal__close { position: absolute; top: 12px; right: 12px; }
.progress { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.progress li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.progress li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); flex: none; }
.progress li.active { color: var(--text); } .progress li.active::before { background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 1.2s infinite; }
.progress li.done { color: var(--ok); } .progress li.done::before { background: var(--ok); }
.progress li.fail { color: var(--danger); } .progress li.fail::before { background: var(--danger); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* toast */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; }
.toast { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; max-width: 360px; animation: in .2s ease; }
.toast--ok { border-color: var(--ok); } .toast--err { border-color: var(--danger); }
@keyframes in { from { transform: translateY(8px); opacity: 0; } }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { background: none; border: 0; color: var(--muted); font: 700 14px var(--font); padding: 10px 14px; border-bottom: 2px solid transparent; cursor: pointer; }
.tabs button.active { color: var(--text); border-bottom-color: var(--gold); }
.footer { margin-top: 60px; padding: 26px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer a { margin-right: 14px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--muted); padding: 30px; }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; } .hero__art { display: none; }
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .nav__links.open { display: flex; } .nav__toggle { display: inline-block; }
  .flow { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; }
}
