/* ===================== Halaman order (beli) ===================== */
.od { --od-b: rgba(255, 255, 255, .075); --od-p: #171720; --od-r: #1d1d28; --od-i: #f1f0f7; --od-m: #aaa9ba; --od-d: #79788e; --od-a: #8c79ff; padding: 18px 0 40px; }

/* ---------- Kepala ---------- */
.od-hero { position: relative; overflow: hidden; border: 1px solid var(--od-b); border-radius: 20px; background: #12121a; }
.od-hero-banner { position: relative; aspect-ratio: 1240 / 330; max-height: 340px; overflow: hidden; }
.od-hero-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.od-hero-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 26, 0) 35%, rgba(18, 18, 26, .7) 75%, #12121a 100%); }
.od-hero-isi { position: relative; display: flex; align-items: flex-end; gap: 18px; margin-top: -64px; padding: 0 24px 22px; }
.od-logo { width: 112px; height: 112px; flex: none; overflow: hidden; border: 3px solid #12121a; border-radius: 22px; background: #1d1d28; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.od-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.od-hero-teks { min-width: 0; flex: 1; padding-bottom: 4px; }
.od-jejak { margin-bottom: 4px; color: var(--od-d); font-size: 12px; }
.od-jejak a { color: var(--od-m); }
.od-jejak a:hover { color: #c8bfff; }
.od-hero-teks h1 { margin: 0; color: var(--od-i); font-family: var(--display); font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -.04em; line-height: 1.15; }
.od-hero-teks .od-sub { margin-top: 3px; color: var(--od-m); font-size: 14px; }
.od-lencana { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.od-lencana span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--od-b); border-radius: 999px; background: rgba(255, 255, 255, .04); color: #d8d5e6; font-size: 12px; font-weight: 700; }
.od-lencana i { font-size: 11px; }
.od-lencana .kuning i { color: #f3cd8a; }
.od-lencana .hijau i { color: #5fd1a3; }
.od-lencana .biru i { color: #8ec2ff; }
.od-lencana .ungu i { color: #b4a8ff; }
@media (max-width: 640px) {
  .od-hero { border-radius: 16px; }
  .od-hero-banner { aspect-ratio: 16 / 7; }
  .od-hero-isi { align-items: center; gap: 12px; margin-top: -36px; padding: 0 14px 16px; }
  .od-logo { width: 76px; height: 76px; border-radius: 16px; }
  .od-lencana span { font-size: 11px; padding: 4px 8px; }
}

/* ---------- Tata letak 2 kolom ---------- */
.od-tata { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; margin-top: 20px; }
.od-kiri { display: grid; gap: 16px; min-width: 0; }
.od-kanan { position: sticky; top: 88px; display: grid; gap: 14px; }
@media (max-width: 1023px) {
  .od-tata { grid-template-columns: 1fr; }
  .od-kanan { position: static; }
}

/* ---------- Kartu langkah ---------- */
.od-kiri > [id^="data"] { overflow: hidden; border: 1px solid var(--od-b) !important; border-radius: 16px !important; background: var(--od-p) !important; box-shadow: none !important; transition: border-color .2s; }
.od-kiri > [id^="data"].selesai { border-color: rgba(95, 209, 163, .28) !important; }
.od-langkah { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--od-b); }
.od-nomor { display: grid; width: 36px; height: 36px; flex: none; place-items: center; border-radius: 11px; background: var(--accent-strong, #725cf4); color: #fff; font-family: var(--display); font-size: 16px; font-weight: 800; box-shadow: 0 6px 16px rgba(114, 92, 244, .3); transition: background .2s; }
.od-nomor .cek { display: none; }
.selesai .od-nomor { background: #2fb47d; box-shadow: 0 6px 16px rgba(47, 180, 125, .3); }
.selesai .od-nomor .angka { display: none; }
.selesai .od-nomor .cek { display: inline; }
.od-langkah h3 { margin: 0; color: var(--od-i); font-size: 16px; font-weight: 800; }
.od-langkah p { margin: 2px 0 0; color: var(--od-d); font-size: 12.5px; }
.od-langkah .od-aksi { margin-left: auto; }

/* Cari nominal */
.od-cari { display: flex; align-items: center; gap: 8px; width: 220px; height: 36px; padding: 0 12px; border: 1px solid var(--od-b); border-radius: 10px; background: #12121a; color: var(--od-d); }
.od-cari:focus-within { border-color: rgba(157, 140, 255, .6); }
.od-cari input { width: 100%; border: 0; outline: 0; background: none; color: var(--od-i); font-size: 13px; }
.od-cari-kosong { padding: 26px 10px; color: var(--od-d); font-size: 13px; text-align: center; }
@media (max-width: 640px) {
  .od-langkah { flex-wrap: wrap; padding: 14px; }
  .od-langkah .od-aksi { width: 100%; margin-left: 0; }
  .od-cari { width: 100%; }
}

/* ---------- Ringkasan pesanan (sidebar) ---------- */
.od-kartu { overflow: hidden; border: 1px solid var(--od-b); border-radius: 16px; background: var(--od-p); }
.od-kartu-kepala { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--od-b); color: var(--od-i); font-size: 14px; font-weight: 800; }
.od-kartu-kepala i { color: var(--od-a); }
.od-ringkas { padding: 14px 16px 16px; }
.od-ringkas-game { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.od-ringkas-game img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; }
.od-ringkas-game b { display: block; color: var(--od-i); font-size: 14px; }
.od-ringkas-game small { color: var(--od-d); font-size: 12px; }
.od-baris { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed rgba(255, 255, 255, .07); color: var(--od-m); font-size: 13px; }
.od-baris b { max-width: 60%; color: var(--od-i); font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.od-baris b.kosong { color: var(--od-d); font-weight: 500; font-style: italic; }
.od-total { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(140, 121, 255, .09); }
.od-total span { color: var(--od-m); font-size: 13px; font-weight: 700; }
.od-total b { color: #fff; font-family: var(--display); font-size: 20px; font-weight: 800; }
.od-catatan { margin: -6px 0 12px; color: var(--od-d); font-size: 11.5px; }
.od-kanan #btn-order, .od-bar #od-bar-beli { display: inline-flex; width: 100%; height: 48px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: var(--accent-strong, #725cf4); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 10px 24px rgba(114, 92, 244, .3); cursor: pointer; transition: transform .15s, filter .15s; }
.od-kanan #btn-order:hover, .od-bar #od-bar-beli:hover { transform: translateY(-1px); filter: brightness(1.1); }
.od-aman { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; color: var(--od-d); font-size: 11.5px; }
.od-aman i { color: #5fd1a3; }

.od-tentang { padding: 14px 16px 16px; color: var(--od-m); font-size: 13px; line-height: 1.7; }
.od-tentang-isi { position: relative; max-height: 140px; overflow: hidden; transition: max-height .25s; }
.od-tentang-isi::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 50px; background: linear-gradient(transparent, var(--od-p)); }
.od-tentang.buka .od-tentang-isi { max-height: 2000px; }
.od-tentang.buka .od-tentang-isi::after { display: none; }
.od-tentang button { margin-top: 8px; padding: 0; border: 0; background: none; color: #b4a8ff; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.od-tentang p { margin: 0 0 .7em; }

.od-jaminan { display: grid; gap: 10px; padding: 14px 16px; }
.od-jaminan div { display: flex; align-items: center; gap: 11px; }
.od-jaminan i { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 9px; background: rgba(140, 121, 255, .12); color: #b4a8ff; font-size: 13px; }
.od-jaminan b { display: block; color: var(--od-i); font-size: 13px; }
.od-jaminan small { color: var(--od-d); font-size: 11.5px; }

/* ---------- Bilah beli mobile ---------- */
.od-bar { display: none; }
@media (max-width: 1023px) {
  /* Tombol bayar di kartu ringkasan tetap tampil di mobile (muncul tepat setelah langkah 4) */
  .od-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 70; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--od-b); background: rgba(18, 18, 26, .97); backdrop-filter: blur(12px); }
  .od-bar > div { min-width: 0; flex: 1; }
  .od-bar small { display: block; overflow: hidden; color: var(--od-d); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
  .od-bar b { color: #fff; font-family: var(--display); font-size: 17px; font-weight: 800; }
  .od-bar #od-bar-beli { width: auto; height: 44px; padding: 0 22px; }
  .od { padding-bottom: 96px; }
}
@media (max-width: 700px) {
  /* di atas navigasi bawah situs (56px) */
  .od-bar { bottom: 56px; }
  .od { padding-bottom: 160px; }
}

/* Kepala: logo | judul, lencana di bawah judul (desktop) / selebar penuh (mobile) */
.od-hero-isi { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo teks" "logo lencana"; column-gap: 18px; row-gap: 0; align-items: end; }
.od-logo { grid-area: logo; align-self: end; }
.od-hero-teks { grid-area: teks; }
.od-lencana { grid-area: lencana; }
@media (max-width: 640px) {
  .od-hero-isi { grid-template-areas: "logo teks" "lencana lencana"; column-gap: 12px; align-items: center; }
  .od-lencana { margin-top: 12px; }
}
/* env() di shorthand padding diabaikan sebagian browser -> pisahkan */
@media (max-width: 1023px) {
  .od-bar { padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
/* site.css memaksa padding 0 pada .page-shell > div > div; bilah beli butuh padding sendiri */
.page-shell .od > .od-bar { padding-left: 14px !important; padding-right: 14px !important; }
/* Judul langkah selalu di samping nomor */
.od-langkah > div { flex: 1 1 0; min-width: 0; }

/* ---------- Rekomendasi game ---------- */
.od-populer { display: grid; gap: 2px; padding: 8px; }
.od-game { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 11px; transition: background .15s; }
.od-game:hover { background: rgba(255, 255, 255, .04); }
.od-game img { width: 42px; height: 42px; flex: none; border-radius: 10px; object-fit: cover; }
.od-game b { display: block; overflow: hidden; color: var(--od-i); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.od-game small { display: block; overflow: hidden; color: var(--od-d); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.od-game > span:nth-child(2) { min-width: 0; flex: 1; }
.od-game-panah { color: var(--od-a); font-size: 18px; transition: transform .15s; }
.od-game:hover .od-game-panah { transform: translateX(3px); }

.od-rek { margin-top: 34px; }
.od-rek-kepala { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.od-rek-kepala h2 { margin: 0; color: var(--od-i); font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.od-rek-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .od-rek-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .od-rek-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .od-rek-kepala h2 { font-size: 19px; } }
.od-rek-kartu { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--od-b); border-radius: 14px; background: var(--od-p); transition: transform .18s, border-color .18s, box-shadow .18s; }
.od-rek-kartu:hover { transform: translateY(-3px); border-color: rgba(178, 160, 255, .35); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.od-rek-img { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: #14141c; }
.od-rek-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.od-rek-kartu:hover .od-rek-img img { transform: scale(1.06); }
.od-rek-label { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 7px; background: rgba(16, 16, 24, .82); color: #f3cd8a; font-size: 10px; font-weight: 800; backdrop-filter: blur(4px); }
.od-rek-isi { padding: 10px 11px 12px; }
.od-rek-isi b { display: block; overflow: hidden; color: var(--od-i); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.od-rek-isi small { display: block; overflow: hidden; margin-top: 2px; color: var(--od-d); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .od-rek-isi { padding: 8px; } .od-rek-isi b { font-size: 12px; } }

/* Bilah bayar mobile: di atas navigasi bawah situs (z-index 80) & memperhitungkan area aman (iPhone, dll.) */
@media (max-width: 1023px) {
  .od-bar { z-index: 90; }
}
@media (max-width: 700px) {
  .od-bar { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
  .od { padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Kupon / voucher ---------- */
.od-opsional { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--od-m); font-size: 10.5px; font-weight: 700; vertical-align: middle; }
.od-nomor-kupon { background: linear-gradient(135deg, #f08a5d, #e8578a); box-shadow: 0 6px 16px rgba(232, 87, 138, .3); font-size: 14px; }
.od-kupon-form { display: flex; gap: 8px; }
.od-kupon-form input { flex: 1; min-width: 0; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.od-kupon-form input::placeholder { font-weight: 400; letter-spacing: 0; text-transform: none; }
.od-kupon-form button { flex: none; padding: 0 18px; border-radius: 10px; background: var(--accent-strong, #725cf4); color: #fff; font-size: 14px; font-weight: 800; transition: filter .15s; }
.od-kupon-form button:hover { filter: brightness(1.1); }
.od-kupon-form button:disabled { opacity: .7; cursor: wait; }
.od-kupon-aktif { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed rgba(95, 209, 163, .55); border-radius: 12px; background: rgba(95, 209, 163, .08); }
.od-kupon-aktif[hidden] { display: none; }
.od-kupon-aktif > i { color: #5fd1a3; font-size: 18px; }
.od-kupon-aktif span { flex: 1; min-width: 0; }
.od-kupon-aktif b { display: block; color: #fff; font-size: 15px; letter-spacing: .06em; }
.od-kupon-aktif small { display: block; color: #8fdcbb; font-size: 12px; }
.od-kupon-aktif button { color: #f0828e; font-size: 13px; font-weight: 700; }
.od-kupon-pesan { margin: 8px 0 0; font-size: 12.5px; }
.od-kupon-pesan.ok { color: #5fd1a3; }
.od-kupon-pesan.gagal { color: #f0828e; }
.od-kupon-daftar { margin-top: 14px; }
.od-kupon-daftar > p { margin: 0 0 8px; color: var(--od-m); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.od-kupon-daftar { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.od-kupon-daftar > p { grid-column: 1 / -1; }
.od-kupon-chip { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 12px 10px 16px; border: 1px solid rgba(240, 138, 93, .3); border-radius: 12px; background: linear-gradient(135deg, rgba(240, 138, 93, .10), rgba(232, 87, 138, .06)); text-align: left; transition: border-color .15s, transform .15s; }
.od-kupon-chip::before { content: ""; position: absolute; top: 50%; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--od-p); transform: translateY(-50%); }
.od-kupon-chip:hover { border-color: rgba(240, 138, 93, .7); transform: translateY(-1px); }
.od-kupon-chip.dipakai { border-color: #5fd1a3; background: rgba(95, 209, 163, .1); }
.od-kupon-chip-nilai { color: #ffb08a; font-size: 13px; font-weight: 800; }
.od-kupon-chip b { color: #fff; font-size: 13px; letter-spacing: .06em; }
.od-kupon-chip small { color: var(--od-d); font-size: 11px; line-height: 1.35; }
.od-kupon-masuk { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed rgba(255, 255, 255, .14); border-radius: 12px; color: var(--od-m); font-size: 13.5px; transition: border-color .15s; }
.od-kupon-masuk:hover { border-color: var(--od-a); }
.od-kupon-masuk span { flex: 1; }
.od-kupon-masuk b { color: #c8bfff; }
.od-kupon-masuk > i:first-child { color: #ffb08a; font-size: 16px; }
.od-baris-kupon b { color: #5fd1a3; }
.od-baris-kupon em { color: #fff; font-style: normal; font-weight: 700; letter-spacing: .04em; }
.od-total s { margin-right: 8px; color: var(--od-d); font-size: 13px; font-weight: 600; }
.od-total s[hidden] { display: none; }
.selesai .od-nomor-kupon { background: #2fb47d; box-shadow: 0 6px 16px rgba(47, 180, 125, .3); }
