/* =====================================================================
   Daeng Game Store - Stylesheet utama
   Tema gelap, aksen ungu-sian, mobile first.
   ===================================================================== */

:root {
  --bg:          #080b14;
  --bg-soft:     #0e1322;
  --surface:     #121a2e;
  --surface-2:   #18213a;
  --border:      #253150;
  --border-soft: #1c2540;

  --text:        #e8edf9;
  --text-dim:    #93a1c0;
  --text-faint:  #64718f;

  --primary:     #7c5cff;
  --primary-600: #6a45ff;
  --accent:      #24d6c4;
  --success:     #22c55e;
  --warning:     #f5a524;
  --danger:      #f43f5e;
  --info:        #38bdf8;

  --grad: linear-gradient(135deg, #7c5cff 0%, #4f7dff 50%, #24d6c4 100%);

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 20px;

  --shadow:    0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 8% -8%, rgba(124, 92, 255, .16), transparent 60%),
    radial-gradient(800px 460px at 100% 0%, rgba(36, 214, 196, .10), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1rem; }

.muted     { color: var(--text-dim); }
.faint     { color: var(--text-faint); font-size: .85rem; }
.text-right{ text-align: right; }
.text-center { text-align: center; }
.nowrap    { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 18px; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------- Navbar */
.navbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 11, 20, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.navbar-inner { display: flex; align-items: center; gap: 14px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.logo-mark {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--grad);
  color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: 0 6px 18px rgba(124, 92, 255, .4);
}
.brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--text-faint); letter-spacing: .02em; }

.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  padding: 8px 13px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--text-dim);
  transition: .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-toggle { display: none; margin-left: auto; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 8px 11px; font-size: 1.05rem; cursor: pointer; }

/* ------------------------------------------------------------- Marquee */
.announce {
  background: linear-gradient(90deg, rgba(124, 92, 255, .18), rgba(36, 214, 196, .12));
  border-bottom: 1px solid var(--border-soft);
  font-size: .84rem; color: #d5deff;
  padding: 7px 0;
  overflow: hidden;
}
.announce span { display: inline-block; white-space: nowrap; padding-left: 100%; animation: marquee 22s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* -------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: inherit; font-size: .92rem; font-weight: 700;
  cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(124, 92, 255, .32); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(124, 92, 255, .45); }
.btn-ghost   { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-success { background: var(--success); color: #052e14; }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #3a2500; }
.btn-wa      { background: #25d366; color: #05331a; }
.btn-block   { display: flex; width: 100%; }
.btn-lg      { padding: 14px 26px; font-size: 1rem; }
.btn-sm      { padding: 7px 13px; font-size: .82rem; border-radius: 8px; }

/* --------------------------------------------------------------- Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
}
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }

/* -------------------------------------------------------------- Alerts */
.alert {
  padding: 12px 15px; border-radius: var(--radius-sm);
  border: 1px solid; font-size: .9rem; margin-bottom: 14px;
}
.alert-success { background: rgba(34, 197, 94, .12);  border-color: rgba(34, 197, 94, .35);  color: #8ff0b4; }
.alert-danger  { background: rgba(244, 63, 94, .12);  border-color: rgba(244, 63, 94, .35);  color: #ffb4c1; }
.alert-warning { background: rgba(245, 165, 36, .12); border-color: rgba(245, 165, 36, .35); color: #ffd79a; }
.alert-info    { background: rgba(56, 189, 248, .12); border-color: rgba(56, 189, 248, .32); color: #a9e2ff; }

/* -------------------------------------------------------------- Badges */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 100px;
  font-size: .73rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.badge-success { background: rgba(34, 197, 94, .16);  color: #6ee7a0; }
.badge-warning { background: rgba(245, 165, 36, .16); color: #ffc971; }
.badge-danger  { background: rgba(244, 63, 94, .16);  color: #ff9fb1; }
.badge-info    { background: rgba(56, 189, 248, .16); color: #8fd8ff; }
.badge-muted   { background: rgba(148, 163, 184, .14); color: #a7b3cc; }
.badge-hot     { background: linear-gradient(135deg, #ff6b3d, #f43f5e); color: #fff; }

/* --------------------------------------------------------------- Forms */
.form-group { margin-bottom: 15px; }
.form-group > label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: #c6d1ea; }
.form-group small { display: block; margin-top: 5px; font-size: .78rem; color: var(--text-faint); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-section-title {
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-faint); margin: 22px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft);
}
.form-section-title:first-child { margin-top: 0; }

input[type=text], input[type=password], input[type=number], input[type=email],
input[type=date], input[type=search], input[type=tel], select, textarea {
  width: 100%; padding: 11px 13px;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .93rem; transition: .16s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18);
}
input::placeholder, textarea::placeholder { color: #536183; }
textarea { resize: vertical; min-height: 92px; line-height: 1.55; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2393a1c0' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
.check-row { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; color: var(--text-dim); }
.check-row input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--primary); flex: none; }

/* ---------------------------------------------------------------- Hero */
.hero { padding: 46px 0 34px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center; }
.hero h1 { font-size: 2.6rem; margin-bottom: 14px; }
.hero p.lead { font-size: 1.03rem; color: var(--text-dim); max-width: 46ch; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill {
  padding: 6px 13px; border-radius: 100px; font-size: .78rem; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
}
.pill b { color: var(--accent); }

.hero-visual {
  position: relative; border-radius: var(--radius-lg); padding: 24px;
  background: linear-gradient(160deg, rgba(124, 92, 255, .2), rgba(36, 214, 196, .08));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.hero-visual .mini-order { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--border-soft); font-size: .87rem; }
.mini-row:last-child { border-bottom: 0; }
.mini-row b { font-weight: 700; }

/* --------------------------------------------------------- Section head */
.section { padding: 30px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; font-size: .88rem; color: var(--text-dim); }

/* ----------------------------------------------------------- Game grid */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 15px; }
.game-card {
  position: relative; display: block;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden; transition: .2s;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 14px 34px rgba(124, 92, 255, .22); }
.game-card .thumb { aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; }
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-card .meta { padding: 11px 12px 13px; }
.game-card .meta strong { display: block; font-size: .88rem; line-height: 1.35; margin-bottom: 3px; }
.game-card .meta span { font-size: .74rem; color: var(--text-faint); }
.game-card .flag {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  padding: 3px 9px; border-radius: 100px; font-size: .67rem; font-weight: 800;
  background: rgba(8, 11, 20, .8); backdrop-filter: blur(6px); border: 1px solid var(--border);
}
.game-card .flag.hot { background: linear-gradient(135deg, #ff6b3d, #f43f5e); border-color: transparent; color: #fff; }

/* -------------------------------------------------------- Search & tabs */
.search-bar { position: relative; margin-bottom: 18px; }
.search-bar input { padding-left: 40px; height: 46px; }
.search-bar .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  padding: 7px 15px; border-radius: 100px; font-size: .84rem; font-weight: 700; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; transition: .16s;
}
.chip.active { background: var(--grad); border-color: transparent; color: #fff; }

/* -------------------------------------------------------- Halaman order */
.order-hero {
  display: flex; gap: 18px; align-items: center;
  background: linear-gradient(140deg, rgba(124, 92, 255, .18), rgba(36, 214, 196, .06));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; margin: 22px 0 24px;
}
.order-hero .cover { width: 108px; flex: none; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.order-hero h1 { font-size: 1.55rem; margin-bottom: 4px; }
.order-hero .tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }

.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }

.step-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.step-title { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.step-num {
  width: 27px; height: 27px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--grad); color: #fff; font-size: .82rem; font-weight: 800;
}
.step-title h3 { margin: 0; font-size: 1.02rem; }
.step-title p { margin: 1px 0 0; font-size: .78rem; color: var(--text-faint); font-weight: 500; }

/* Grid nominal produk */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 11px; }
.product-item { position: relative; }
.product-item input { position: absolute; opacity: 0; pointer-events: none; }
.product-item label {
  display: block; height: 100%; cursor: pointer;
  padding: 13px 13px 12px;
  background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: .16s;
}
.product-item label:hover { border-color: #4a5b86; }
.product-item input:checked + label {
  border-color: var(--primary); background: rgba(124, 92, 255, .12);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .14);
}
.product-item .p-name { display: block; font-size: .86rem; font-weight: 700; line-height: 1.32; margin-bottom: 6px; }
.product-item .p-price { display: block; font-size: .95rem; font-weight: 800; color: var(--accent); }
.product-item .p-note { display: block; font-size: .72rem; color: var(--text-faint); margin-top: 3px; }
.product-item .p-hot {
  position: absolute; top: -7px; right: 8px; z-index: 2;
  padding: 2px 8px; border-radius: 100px; font-size: .63rem; font-weight: 800;
  background: linear-gradient(135deg, #ff6b3d, #f43f5e); color: #fff;
}

/* Daftar metode pembayaran */
.pay-group + .pay-group { margin-top: 16px; }
.pay-group-label { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); margin-bottom: 8px; }
.pay-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pay-item { position: relative; }
.pay-item input { position: absolute; opacity: 0; pointer-events: none; }
.pay-item label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 13px;
  background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .87rem; font-weight: 600; transition: .16s;
}
.pay-item input:checked + label { border-color: var(--primary); background: rgba(124, 92, 255, .12); }
.pay-item .pay-ic {
  width: 34px; height: 34px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-2); font-size: .66rem; font-weight: 800; color: var(--accent); letter-spacing: .02em;
}
.pay-item .pay-fee { display: block; font-size: .72rem; color: var(--text-faint); font-weight: 500; }

/* Ringkasan (sidebar) */
.summary { position: sticky; top: 82px; }
.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.summary-head { padding: 15px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border-soft); font-weight: 800; font-size: .95rem; }
.summary-body { padding: 16px 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .87rem; padding: 6px 0; }
.sum-row .k { color: var(--text-dim); }
.sum-row .v { font-weight: 700; text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 13px; border-top: 1px dashed var(--border); }
.sum-total .k { font-size: .88rem; color: var(--text-dim); }
.sum-total .v { font-size: 1.35rem; font-weight: 800; color: var(--accent); }
.summary-foot { padding: 0 18px 18px; }

.promo-row { display: flex; gap: 8px; }
.promo-row input { text-transform: uppercase; }

/* --------------------------------------------------------- Invoice page */
.invoice-wrap { max-width: 720px; margin: 26px auto 40px; }
.invoice-top {
  text-align: center; padding: 26px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0;
}
.invoice-icon { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; }
.invoice-icon.ok   { background: rgba(34, 197, 94, .16);  color: #6ee7a0; }
.invoice-icon.wait { background: rgba(245, 165, 36, .16); color: #ffc971; }
.invoice-icon.bad  { background: rgba(244, 63, 94, .16);  color: #ff9fb1; }
.invoice-icon.proc { background: rgba(56, 189, 248, .16); color: #8fd8ff; }
.invoice-body { background: var(--surface); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 4px 22px 22px; }
.inv-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--border-soft); font-size: .89rem; }
.inv-row:last-child { border-bottom: 0; }
.inv-row .k { color: var(--text-dim); flex: none; }
.inv-row .v { font-weight: 700; text-align: right; word-break: break-word; }

.pay-box {
  background: linear-gradient(140deg, rgba(124, 92, 255, .16), rgba(36, 214, 196, .05));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 18px 0;
}
.pay-amount { font-size: 1.85rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.copy-field {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px;
}
.copy-field .val { font-family: "Consolas", "Courier New", monospace; font-size: 1rem; font-weight: 700; flex: 1; word-break: break-all; }

.countdown { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--warning); font-variant-numeric: tabular-nums; }

.timeline { margin-top: 6px; }
.tl-item { display: flex; gap: 13px; padding-bottom: 15px; position: relative; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.tl-dot { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--primary); margin-top: 2px; z-index: 1; }
.tl-body strong { display: block; font-size: .88rem; }
.tl-body span { font-size: .78rem; color: var(--text-faint); }
.tl-body p { margin: 4px 0 0; font-size: .83rem; color: var(--text-dim); }

/* ---------------------------------------------------------- Cara pesan */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; }
.how-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; }
.how-item .n {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent); font-weight: 800; margin-bottom: 12px;
}
.how-item h4 { margin: 0 0 5px; font-size: .97rem; }
.how-item p { margin: 0; font-size: .85rem; color: var(--text-dim); }

/* ------------------------------------------------------- Bukti / review */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.trust-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px; text-align: center; }
.trust-item .num { font-size: 1.55rem; font-weight: 800; }
.trust-item .lbl { font-size: .8rem; color: var(--text-dim); }

/* --------------------------------------------------------------- Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .87rem; min-width: 640px; }
table.table th {
  text-align: left; padding: 12px 14px; background: var(--surface-2);
  font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
table.table td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover { background: rgba(124, 92, 255, .05); }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.empty-state { text-align: center; padding: 44px 20px; color: var(--text-dim); }
.empty-state .ic { font-size: 2.4rem; margin-bottom: 10px; opacity: .6; }

/* -------------------------------------------------------------- Footer */
.footer { margin-top: 46px; border-top: 1px solid var(--border-soft); background: rgba(8, 11, 20, .6); padding: 32px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 26px; }
.footer h5 { margin: 0 0 11px; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 7px; font-size: .87rem; }
.footer li a { color: var(--text-dim); }
.footer li a:hover { color: var(--text); }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-soft); font-size: .82rem; color: var(--text-faint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: #05331a;
  display: grid; place-items: center; font-size: 1.5rem;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
}

/* ------------------------------------------------------ Halaman polos */
.page-plain { display: block; }
.install-wrap { min-height: 100vh; display: grid; place-items: center; padding: 34px 16px; }
.install-card { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.install-head { text-align: center; margin-bottom: 22px; }
.install-head .logo-mark { margin: 0 auto 14px; width: 50px; height: 50px; font-size: 1.1rem; }
.install-head h1 { font-size: 1.4rem; }
.install-head p { font-size: .88rem; }
.install-db-note { background: var(--bg-soft); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .8rem; color: var(--text-dim); margin: 18px 0; }
.install-next ol { padding-left: 20px; font-size: .88rem; color: var(--text-dim); }
.install-next li { margin-bottom: 6px; }
code { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: 5px; padding: 1px 6px; font-size: .85em; color: var(--accent); }

/* ================================================================ ADMIN */
.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.sidebar { background: var(--bg-soft); border-right: 1px solid var(--border-soft); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { margin-bottom: 22px; padding: 0 6px; }
.side-label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); padding: 0 10px; margin: 18px 0 7px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px; margin-bottom: 3px;
  font-size: .88rem; font-weight: 600; color: var(--text-dim); transition: .16s;
}
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active { background: rgba(124, 92, 255, .15); color: #fff; box-shadow: inset 2px 0 0 var(--primary); }
.side-link .ic { width: 19px; text-align: center; font-size: .95rem; }
.side-link .count { margin-left: auto; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800; padding: 1px 7px; border-radius: 100px; }

.admin-main { min-width: 0; }
.admin-top {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px; border-bottom: 1px solid var(--border-soft);
  background: rgba(8, 11, 20, .8); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 40;
}
.admin-top h1 { margin: 0; font-size: 1.15rem; }
.admin-top .spacer { margin-left: auto; }
.admin-user { display: flex; align-items: center; gap: 9px; font-size: .85rem; }
.avatar { width: 33px; height: 33px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: .82rem; color: #fff; }
.admin-body { padding: 22px 24px 44px; }
.sidebar-toggle { display: none; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 17px 18px; }
.stat-card .lbl { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); }
.stat-card .val { font-size: 1.55rem; font-weight: 800; margin: 5px 0 2px; letter-spacing: -.02em; }
.stat-card .sub { font-size: .78rem; color: var(--text-dim); }
.stat-card.accent { background: linear-gradient(140deg, rgba(124, 92, 255, .2), rgba(36, 214, 196, .07)); border-color: var(--border); }

.panel-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.filter-bar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 15px; }
.filter-bar input, .filter-bar select { width: auto; min-width: 150px; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }

.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 10px; }
.bar-chart .bar { flex: 1; background: var(--grad); border-radius: 5px 5px 0 0; min-height: 3px; position: relative; opacity: .85; transition: .2s; }
.bar-chart .bar:hover { opacity: 1; }
.bar-chart .bar span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: .68rem; color: var(--text-faint); }
.chart-legend { margin-top: 26px; font-size: .8rem; color: var(--text-faint); }

/* --------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .order-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .panel-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 100;
    transform: translateX(-100%); transition: transform .22s; height: 100vh;
  }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .sidebar-toggle { display: inline-flex; }
  .admin-body { padding: 18px 15px 40px; }
  .admin-top { padding: 12px 15px; }
}

@media (max-width: 720px) {
  h1 { font-size: 1.55rem; }
  .hero { padding: 28px 0 20px; }
  .hero h1 { font-size: 2rem; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; gap: 2px; padding: 12px;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 13px; }
  .nav-toggle { display: inline-flex; }
  .form-row { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 11px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .order-hero { flex-direction: column; align-items: flex-start; text-align: left; }
  .order-hero .cover { width: 84px; }
  .footer-grid { grid-template-columns: 1fr; }
  .step-card, .card { padding: 16px; }
  .invoice-body { padding: 4px 16px 18px; }
}

/* Bar aksi mengambang di mobile untuk halaman order */
.mobile-bar { display: none; }
@media (max-width: 980px) {
  .mobile-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 11px 15px calc(11px + env(safe-area-inset-bottom));
    background: rgba(14, 19, 34, .96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  .mobile-bar .amt { flex: 1; }
  .mobile-bar .amt small { display: block; font-size: .7rem; color: var(--text-faint); }
  .mobile-bar .amt b { font-size: 1.1rem; color: var(--accent); }
  body.has-mobile-bar { padding-bottom: 78px; }
  .fab-wa { bottom: 84px; }
}

@media print {
  .navbar, .footer, .fab-wa, .mobile-bar, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .invoice-body, .invoice-top { background: #fff; border-color: #ccc; }
}
