/* ==========================================================================
   NeonTopUp — tampilan mengikuti referensi ourastore.com
   Palet: charcoal gelap + aksen emas/khaki, kartu membulat, tab berbentuk pill.
   Ukuran & bentuk diambil dari hasil pengukuran langsung situs referensi:
     body #262727 · permukaan #373B3F · kartu/input #5F666D · garis #4D5256
     teks #FAFAF9 · aksen #A58C6F · header rgba(33,33,33,.8) + blur(8px)
     radius: tab/input 8px · kartu 12px · gambar kartu 24px (atas)
   ========================================================================== */
:root {
  --bg: #262727;
  --bg-deep: #212121;
  --surface: #373b3f;
  --surface-2: #5f666d;
  --surface-3: #4d5256;
  --line: #4d5256;
  --line-soft: rgba(250, 250, 249, .1);
  --text: #fafaf9;
  --muted: #a9aeb3;
  --primary: #a58c6f;
  --primary-hover: #b89e80;
  --primary-ink: #262727;
  --ok: #6fbf8b;
  --warn: #d9b26a;
  --err: #d97a7a;
  --info: #7fa8c9;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 24px;
  --shadow: 0 12px 28px rgba(0, 0, 0, .35);
  --grad: linear-gradient(120deg, #a58c6f, #c8ae8b);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 10px; font-weight: 600; letter-spacing: .2px; }
h1 { font-size: 32px; }
h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .6px; }
h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .5px; }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 600; }

p { margin: 0 0 12px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
small { font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* Latar dekoratif dibuat sangat halus (referensi nyaris polos) */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 460px at 12% -8%, rgba(165, 140, 111, .10), transparent 62%),
    radial-gradient(760px 420px at 92% 4%, rgba(95, 102, 109, .22), transparent 60%),
    var(--bg);
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

.gradient-text { color: var(--primary); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(33, 33, 33, .82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  font-size: 19px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
}
/* Logo: tinggi tetap 40px (rapi sejajar nama toko), lebar menyesuaikan bentuk logo.
   Logo persegi (mis. 512×512) tampil 40×40; logo memanjang (wordmark) tampil
   sampai 165px tanpa gepeng — karena itu object-fit: contain + width: auto. */
.brand-mark.has-logo {
  background: transparent;
  padding: 0;
  width: auto;
  min-width: 40px;
  height: auto;
  overflow: visible;
}
/* Tinggi dipatok di elemen gambarnya supaya tinggi logo SELALU 40px apa pun
   bentuk logonya (persegi -> 40×40, memanjang -> sampai 165px lebar). */
.brand-mark.has-logo img {
  height: 40px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 18px; letter-spacing: .4px; text-transform: uppercase; }
.brand-text small { color: var(--muted); font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav > a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.main-nav > a:hover { color: var(--text); background: var(--surface); }
.main-nav > a.active { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; gap: 8px; margin-left: 6px; }
.header-search { flex: 1; max-width: 340px; margin-left: 10px; }
.header-search .search-box { padding: 3px 3px 3px 34px; position: relative; background: rgba(95, 102, 109, .8); }
.header-search .search-box::before {
  content: "🔍"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 13px; opacity: .7;
}
.header-search input { padding: 7px 0; font-size: 14px; }
.nav-toggle {
  display: none; margin-left: auto;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-size: 19px; border-radius: var(--radius-sm); padding: 6px 12px; cursor: pointer;
}
.mode-banner {
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .3px;
  padding: 8px 16px;
  color: var(--primary-ink);
  background: var(--primary);
  font-weight: 600;
}

/* ------------------------------------------------------------------ tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit; font-weight: 600; font-size: 14.5px;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  transition: background .15s, transform .12s, border-color .15s;
  text-align: center;
}
.btn:hover { background: var(--surface-3); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-hot { background: #c8ae8b; color: var(--primary-ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn-danger { background: rgba(217, 122, 122, .16); border-color: rgba(217, 122, 122, .45); color: #f0c4c4; }
.btn-ok { background: rgba(111, 191, 139, .16); border-color: rgba(111, 191, 139, .45); color: #c6ead4; }
.btn-wa { background: #2f6f4f; color: #eafaf1; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ kartu */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
}
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .spacer { margin-left: auto; }
.card-soft {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px;
}

.section { padding: 36px 0; }
.section-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 19px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }
.section-head h1 { text-transform: uppercase; }
.section-head .spacer { margin-left: auto; }

.eyebrow {
  display: inline-block; font-size: 11.5px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin-bottom: 8px;
}

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-soft);
}
.badge-flash { background: var(--primary); border-color: transparent; color: var(--primary-ink); }
.badge-ok { background: rgba(111, 191, 139, .18); border-color: rgba(111, 191, 139, .4); color: #c6ead4; }
.badge-warn { background: rgba(217, 178, 106, .18); border-color: rgba(217, 178, 106, .4); color: #f0dcb4; }
.badge-err { background: rgba(217, 122, 122, .18); border-color: rgba(217, 122, 122, .4); color: #f0c4c4; }
.badge-info { background: rgba(127, 168, 201, .18); border-color: rgba(127, 168, 201, .4); color: #cfe2f0; }
.badge-neon { background: rgba(165, 140, 111, .2); border-color: rgba(165, 140, 111, .45); color: #e8d9c5; }

.alert {
  border-radius: var(--radius); padding: 13px 16px; margin-bottom: 14px;
  border: 1px solid var(--line-soft); background: var(--surface-2);
  font-size: 14px;
}
.alert-success { border-color: rgba(111, 191, 139, .45); background: rgba(111, 191, 139, .12); }
.alert-warn { border-color: rgba(217, 178, 106, .45); background: rgba(217, 178, 106, .12); }
.alert-error { border-color: rgba(217, 122, 122, .45); background: rgba(217, 122, 122, .12); }
.alert-info { border-color: rgba(127, 168, 201, .4); background: rgba(127, 168, 201, .1); }


/* ------------------------------------------------------------------ banner beranda
   Slider seperti referensi: satu banner besar, gambar + teks overlay,
   tombol navigasi bulat & titik indikator. Bisa digeser (swipe) di layar sentuh. */
.banner-wrap { margin-top: 22px; }
.banner-slider { position: relative; border-radius: var(--radius); overflow: hidden; }
.banner-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 26px 28px;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
}
.banner-slide:hover { color: var(--text); }
.banner-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.banner-slide.has-img .banner-body { position: relative; z-index: 2; }
.banner-body {
  position: relative;
  z-index: 2;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.banner-eyebrow {
  font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase;
  font-weight: 600; opacity: .95;
}
.banner-title { font-size: 30px; font-weight: 700; line-height: 1.15; }
.banner-cta { margin-top: 6px; }

/* Tema banner (dipakai juga saat banner tanpa gambar) */
.banner-gold { background: linear-gradient(120deg, #a58c6f, #c8ae8b 55%, #8d7458); color: #262727; }
.banner-gold .banner-cta.btn-primary { background: #262727; color: #fafaf9; }
.banner-gold .banner-eyebrow { color: #453a2c; }
.banner-dark { background: linear-gradient(120deg, #2f3438, #454b50 60%, #23272a); color: var(--text); }
.banner-light { background: linear-gradient(120deg, #e9e5df, #fafaf9 55%, #ded8cf); color: #262727; }
.banner-light .banner-cta.btn-primary { background: #262727; color: #fafaf9; }
.banner-light .banner-eyebrow { color: #6a6156; }

/* Kalau ada gambar, beri lapisan gelap supaya teks tetap terbaca */
.banner-slide:has(.banner-img)::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20, 20, 20, .82) 0%, rgba(20, 20, 20, .55) 45%, rgba(20, 20, 20, .15) 100%);
}
.banner-slide:has(.banner-img) .banner-title,
.banner-slide:has(.banner-img) .banner-eyebrow { color: #fafaf9; }
.banner-slide:has(.banner-img) { background: #23272a; }

.banner-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: rgba(20, 20, 20, .55);
  color: #fafaf9;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s;
}
.banner-nav:hover { background: rgba(20, 20, 20, .8); }
.banner-nav.prev { left: 12px; }
.banner-nav.next { right: 12px; }
.banner-dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  z-index: 3;
  display: flex; gap: 7px; justify-content: center;
}
.banner-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(250, 250, 249, .45);
  cursor: pointer;
  transition: width .2s, background .2s;
}
.banner-dots button.active { width: 22px; border-radius: 5px; background: var(--primary); }

@media (max-width: 760px) {
  .banner-slide { min-height: 170px; padding: 18px 18px 34px; }
  .banner-title { font-size: 22px; }
  .banner-nav { width: 32px; height: 32px; font-size: 18px; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding: 40px 0 10px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
/* Kalau panel kanan (langkah-langkah/catatan voucher) disembunyikan di Pengaturan,
   hero jadi satu kolom supaya tidak menyisakan ruang kosong. */
.hero.hero-solo { grid-template-columns: 1fr; align-items: start; }
.hero.hero-solo p.lead { max-width: 700px; }
.hero h1 { font-size: 34px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.hero p.lead { font-size: 16.5px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.hero-stat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; }
.hero-stat strong { display: block; font-size: 24px; font-weight: 700; color: var(--primary); }
.hero-search { margin-top: 22px; }
.search-box {
  display: flex; gap: 10px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 6px 6px 6px 16px;
}
.search-box input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font-family: inherit; font-size: 15px; padding: 8px 0; }
.search-box input::placeholder { color: var(--muted); }

.hero-panel { display: grid; gap: 14px; }
.step-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 16px 18px;
}
.step-num {
  flex: 0 0 32px; height: 32px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 16px;
}
.step-card strong { display: block; font-size: 15px; }
.step-card p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------ kategori */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--text);
  transition: background .15s;
}
.chip:hover { background: var(--surface-3); }
.chip.active { background: var(--primary); color: var(--primary-ink); }

/* ------------------------------------------------------------------ grid game */
.grid-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 18px; }
.game-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .2s, border-color .2s, outline-color .15s;
  outline: 2px solid transparent;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(165, 140, 111, .6);
  outline-color: rgba(165, 140, 111, .25);
  box-shadow: var(--shadow);
}
.game-card .badge { position: absolute; top: 12px; right: 12px; z-index: 2; }
.game-thumb {
  height: 150px;
  background-size: cover; background-position: center;
  display: grid; place-items: center; font-size: 42px;
  background-color: var(--surface-2);
  background-image: linear-gradient(135deg, #5f666d, #454b50);
}
.game-meta { padding: 12px 14px 14px; }
.game-meta strong {
  display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.game-meta small { color: rgba(250, 250, 249, .75); display: block; margin-top: 2px; font-size: 13.5px; }
.game-foot { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.game-foot .badge { font-size: 10.5px; }

/* ------------------------------------------------------------------ produk */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.product-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .15s, border-color .18s, background .18s;
}
.product-card:hover { transform: translateY(-2px); border-color: var(--primary); background: #666d74; }
.product-card .badge { position: absolute; top: 10px; right: 10px; }
.product-name { font-weight: 600; font-size: 14.5px; padding-right: 44px; }
.product-price { font-size: 18px; font-weight: 700; color: var(--text); }
.product-old { color: var(--muted); text-decoration: line-through; font-size: 12.5px; }
.product-stock { font-size: 11.5px; color: var(--ok); margin-top: 2px; }
.product-stock.off { color: var(--err); }

/* kelompok per layanan di halaman kategori */
.service-group { margin-bottom: 26px; }
.service-group .group-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); border-left: 3px solid var(--primary);
}
.service-group .group-head strong { font-size: 15px; text-transform: uppercase; letter-spacing: .4px; }
.service-group .group-head .spacer { margin-left: auto; }
.service-group .group-head .thumb-sm { font-size: 18px; }

/* ------------------------------------------------------------------ detail layanan */
.games-head { display: grid; grid-template-columns: 124px 1fr; gap: 22px; align-items: center; }
.games-head .thumb {
  height: 124px; border-radius: var(--radius-lg); display: grid; place-items: center; font-size: 46px;
  background-image: linear-gradient(135deg, #5f666d, #454b50);
  background-size: cover; background-position: center;
  border: 1px solid var(--line-soft);
}
.meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ------------------------------------------------------------------ form */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.form-grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field .hint { font-size: 12px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], input[type=file], select, textarea {
  width: 100%; padding: 11px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); font-family: inherit; font-size: 14.5px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(165, 140, 111, .18); }
input::placeholder, textarea::placeholder { color: #9aa0a6; }
textarea { min-height: 104px; resize: vertical; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--primary); }
/* Kolom pencarian di kartu filter disembunyikan di layar besar supaya tidak ada
   dua kolom pencarian sekaligus (di layar besar pakai pencarian header).
   Ditulis setelah .field agar tidak tertimpa oleh display:flex milik .field. */
.field.only-narrow { display: none; }
.radio-list { display: grid; gap: 10px; }
.radio-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.radio-card:hover { border-color: var(--primary); }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--surface-3); }
.radio-card input { margin-top: 3px; accent-color: var(--primary); width: 17px; height: 17px; }
.radio-card strong { display: block; font-size: 14.5px; }
.radio-card small { color: var(--muted); }

/* ------------------------------------------------------------------ tabel */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-soft); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data th { background: var(--bg-deep); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255, 255, 255, .025); }
table.data td.actions { white-space: nowrap; }
table.data td.actions form { display: inline; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ invoice */
.invoice-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: start; }
.detail-list { display: grid; gap: 0; }
.detail-row { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row .k { color: var(--muted); flex: 0 0 44%; }
.detail-row .v { font-weight: 600; word-break: break-word; }
.amount-box {
  text-align: center; padding: 20px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line-soft);
}
.amount-box .label { font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.amount-box .value { font-size: 32px; font-weight: 700; color: var(--primary); }
.pay-code {
  font-family: ui-monospace, monospace; font-size: 22px; letter-spacing: 1.5px;
  padding: 13px; border-radius: var(--radius-sm); background: var(--bg-deep);
  border: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; word-break: break-all;
}
.qr-img { width: 220px; height: 220px; margin: 0 auto; background: #fff; padding: 10px; border-radius: var(--radius); }
ol.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13.5px; display: grid; gap: 7px; }
.timeline { display: grid; gap: 13px; }
.timeline .tl { display: flex; gap: 12px; align-items: flex-start; }
.timeline .dot { flex: 0 0 11px; height: 11px; border-radius: 50%; margin-top: 6px; background: var(--surface-3); }
.timeline .tl.done .dot { background: var(--ok); }
.timeline .tl.now .dot { background: var(--primary); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.timeline strong { display: block; font-size: 14px; }
.timeline small { color: var(--muted); }

/* ------------------------------------------------------------------ auth */
.auth-wrap { max-width: 452px; margin: 44px auto 60px; }

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: 52px; border-top: 1px solid var(--line-soft); background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 26px; padding: 38px 18px 26px; }
.footer-grid h4 { margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 18px 24px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 13px;
}

/* ------------------------------------------------------------------ admin
   Sidebar gaya dashboard Atlantic (referensi): menu bisa punya sub-menu yang
   dibuka/tutup, ada judul seksi, dan menu aktif ditandai garis aksen kiri. */
.admin-shell { display: grid; grid-template-columns: 262px 1fr; min-height: 100vh; }

.admin-side {
  background: #14181c;
  border-right: 1px solid var(--line-soft);
  padding: 16px 12px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-side-top { display: flex; align-items: center; gap: 10px; }
.admin-side-top .brand { margin: 0; flex: 1; min-width: 0; }
.admin-side-top .brand-text strong { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.admin-side-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-sm); padding: 5px 10px; font-size: 17px; cursor: pointer;
}

.admin-menu { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.admin-menu a, .admin-group-toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #b9bec2;
  font-family: inherit;
  font-size: 14px; font-weight: 600;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.admin-menu a .ic, .admin-group-toggle .ic { width: 18px; text-align: center; font-size: 15px; flex: 0 0 18px; }
.admin-menu a .tx, .admin-group-toggle .tx { flex: 1; min-width: 0; }
.admin-menu a:hover, .admin-group-toggle:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.admin-menu a.active {
  background: rgba(165, 140, 111, .16);
  border-left-color: var(--primary);
  color: var(--text);
}
.admin-group-toggle .chev {
  font-size: 18px; line-height: 1; color: var(--muted);
  transition: transform .18s ease;
  transform: rotate(0deg);
}
.admin-group.open .admin-group-toggle .chev { transform: rotate(90deg); }
.admin-group.open .admin-group-toggle { color: var(--text); }

.admin-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 3px 0 5px 21px;
  padding-left: 9px;
  border-left: 1px solid var(--line);
}
.admin-group.open .admin-submenu { display: flex; }
.admin-submenu a {
  padding: 8px 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: #9ba1a6;
  border-left-width: 2px;
}
.admin-submenu a.active {
  background: rgba(165, 140, 111, .14);
  border-left-color: var(--primary);
  color: var(--text);
}
.admin-menu-label {
  margin: 16px 0 6px;
  padding: 0 13px;
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: #7d848a; font-weight: 700;
}

.admin-side-user {
  border-top: 1px solid var(--line-soft);
  padding: 14px 13px 0;
}

.admin-main { padding: 24px 24px 60px; min-width: 0; }
.admin-mobile-bar { display: none; }
.admin-scrim { display: none; }

.admin-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-top h1 { margin: 0; font-size: 24px; }
.admin-top .spacer { margin-left: auto; }
.settings-tabs { margin-bottom: 18px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; }
.stat-card .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.stat-card .v { font-size: 25px; font-weight: 700; margin-top: 5px; color: var(--primary); }
.stat-card .s { font-size: 12.5px; color: var(--muted); }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filter-bar .field { min-width: 168px; }
.banner { border-radius: var(--radius); padding: 13px 16px; font-size: 14px; border: 1px solid; margin-bottom: 18px; }
.banner-sim { border-color: rgba(217, 178, 106, .45); background: rgba(217, 178, 106, .12); color: #f0dcb4; }
.banner-live { border-color: rgba(111, 191, 139, .45); background: rgba(111, 191, 139, .12); color: #c6ead4; }
.banner code { background: rgba(0, 0, 0, .35); padding: 2px 6px; border-radius: 6px; }
.pagination { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.pagination a, .pagination span { padding: 7px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: 13.5px; }
.pagination a:hover { border-color: var(--primary); }
.pagination .current { background: var(--primary); border-color: transparent; color: var(--primary-ink); font-weight: 700; }
.split-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.note-list { display: grid; gap: 12px; }

/* ------------------------------------------------------------------ responsif */
@media (max-width: 1100px) {
  .header-search { display: none; }
  .field.only-narrow { display: flex; }
}
/* Sidebar admin jadi laci (drawer) di layar kecil supaya konten tetap lega.
   Diletakkan pada 1080px karena sidebar 262px + konten butuh ruang. */
@media (max-width: 1080px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: fixed; top: 0; bottom: 0; left: 0;
    width: 282px; max-width: 86vw;
    z-index: 90;
    transform: translateX(-104%);
    transition: transform .2s ease;
    overflow-y: auto;
    border-right: 1px solid var(--line-soft);
    border-bottom: 0;
  }
  body.admin-menu-open .admin-side { transform: translateX(0); }
  body.admin-menu-open .admin-scrim {
    display: block; position: fixed; inset: 0; z-index: 80;
    background: rgba(0, 0, 0, .5);
  }
  .admin-side-toggle { display: block; }
  .admin-mobile-bar {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 14px;
    background: var(--surface); border: 1px solid var(--line); color: var(--text);
    border-radius: var(--radius-sm); padding: 8px 13px;
    font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  }
  .admin-main { padding: 18px 16px 50px; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .header-search { display: none; }
  .hero h1 { font-size: 31px; }
  .invoice-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  /* Header mobile sempit: batasi lebar logo + nama toko supaya tidak berdesakan */
  .brand-mark.has-logo img { height: 34px; max-width: 118px; }
  .brand-text strong { font-size: 16px; }
  .main-nav {
    display: none;
    position: absolute; top: 88px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-deep); border-bottom: 1px solid var(--line-soft);
    padding: 14px 18px 20px;
  }
  .main-nav.open { display: flex; }
  .nav-actions { flex-direction: column; margin: 10px 0 0; }
  .header-search { display: none; }
  .nav-toggle { display: block; }
  .games-head { grid-template-columns: 1fr; }
  .games-head .thumb { height: 108px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
  .section { padding: 26px 0; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .grid-games { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .game-thumb { height: 118px; }
}
