/* ==========================================================================
   RYVO Sport — stylesheet
   Token diambil persis dari "RVYO Sport App.dc.html" (Claude Design).
   Ubah nilai di :root untuk re-skin seluruh situs.
   ========================================================================== */

/* ===== Huruf =============================================================
   Disimpan di server sendiri (public/fonts/), bukan dari Google Fonts:
   CSP halaman cukup 'self', dan alamat IP pengunjung tidak dikirim ke pihak
   luar. Ketiganya variable font — satu berkas melayani semua ketebalan.
   Subset latin saja; karakter di luarnya (mis. panah) jatuh ke huruf sistem.
   Lisensi: SIL Open Font License 1.1 (lihat public/fonts/LISENSI.txt).
   ========================================================================== */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/space-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/fonts/dm-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono.woff2') format('woff2');
}

:root {
  /* — Warna inti — */
  --ink:        #0c0f0d;   /* hitam kehijauan: header, footer, panel gelap */
  --ink-2:      #1b211d;
  --ink-3:      #1d241f;   /* hover tombol gelap */
  --ink-4:      #232a25;
  --ink-5:      #2a312c;   /* body text di atas paper */

  --paper:      #f7f6f2;   /* latar halaman (cream) */
  --paper-2:    #f5f3ec;
  --paper-3:    #eceae2;
  --paper-4:    #efece4;   /* slot terbooking */
  --white:      #ffffff;

  --line:       #e3e0d7;   /* border default */
  --line-2:     #d8d4c9;
  --line-3:     #e8e5dc;

  --muted:      #636c65;   /* teks sekunder di atas terang (>= 4,5:1 di paper-3) */
  --muted-2:    #9aa39d;
  --muted-3:    #5d665f;
  --muted-4:    #95a098;   /* teks redup di atas GELAP saja */
  --muted-5:    #8f9a92;   /* teks redup di atas GELAP saja */
  --muted-6:    #a8afa8;
  --muted-7:    #8b948c;

  --on-dark:    #b9c1bb;   /* teks sekunder di atas gelap */
  --on-dark-2:  #cfd5d0;

  /* Aksen lime. Hex = fallback, oklch menang di browser modern. */
  --accent:     #ace74e;
  --accent-hi:  #c9f96e;
  --accent-600: #5f8f00;
  --accent-700: #537e00;
  --accent-800: #4b7100;   /* aksen sebagai TEKS di atas putih (kontras aman) */
  --accent-900: #426300;

  --tint:       #f2f6ee;   /* latar item terpilih */
  --tint-2:     #eaf2e5;
  --tint-3:     #d9e3d2;

  --warn-bg:    #f6efdf;
  --warn-fg:    #7a5a2a;
  --terra:      #94573f;
  --danger:     #a3342a;
  --danger-bg:  #fbeceb;

  /* — Tipografi — */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* — Radius — */
  --r-sm: 7px;  --r-md: 11px; --r-lg: 14px;
  --r-xl: 18px; --r-2xl: 22px; --r-pill: 999px;

  /* — Spasi — */
  --gut: 22px;           /* padding horizontal container */
  --maxw: 1200px;
  --hdr-h: 62px;         /* diukur ulang oleh JS */

  --shadow-toast: 0 18px 40px rgba(0, 0, 0, .3);
}

@supports (color: oklch(0.86 0.19 128)) {
  :root {
    --accent:     oklch(0.86 0.19 128);
    --accent-hi:  oklch(0.92 0.17 128);
    --accent-600: oklch(0.62 0.16 128);
    --accent-700: oklch(0.55 0.14 128);
    --accent-800: oklch(0.50 0.14 128);
    --accent-900: oklch(0.45 0.13 128);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
/* Navigasi sekarang tautan sungguhan (<a href>), bukan tombol ber-data-act.
   Komponen yang dulu <button> tetap tampil sama sebagai tautan. */
a.btn, a.link-btn, a.link-underline, a.vcard, a.tile, a.backlink, a.brand,
a.header__cta, a.header__signin, a.bk__n { text-decoration: none; }
label.btn { cursor: pointer; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--ink); }

/* Fokus terlihat di SEMUA elemen interaktif (design asli hanya input/select) */
:focus-visible {
  outline: 3px solid var(--accent-800);
  outline-offset: 2px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.footer :focus-visible,
.header :focus-visible { outline-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Utilitas ========================================================= */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--ink);
  padding: 12px 18px; border-radius: var(--r-md); font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.num { font-variant-numeric: tabular-nums; }

/* Perluas area sentuh tanpa mengubah kotak visual (tombol × dll) */
.hit::after {
  content: ""; position: absolute;
  inset: 50% auto auto 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
}

/* ===== Tombol =========================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-md);
  padding: 14px 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  line-height: 1.2; text-align: center;
  min-height: 46px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--dark   { background: var(--ink); color: var(--paper); }
.btn--dark:hover  { background: var(--ink-3); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hi); }
.btn--ghost  { background: none; border-color: var(--line); color: var(--ink); font-weight: 500; font-family: var(--font-body); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-dark { background: none; border-color: rgba(255,255,255,.2); color: var(--paper); font-family: var(--font-body); font-weight: 500; }
.btn--ghost-dark:hover { border-color: var(--accent); }
.btn--block  { width: 100%; }
.btn[aria-disabled="true"] { background: var(--paper-3); border-color: var(--line-2); color: var(--muted-3); cursor: not-allowed; }

.link-btn {
  background: none; border: 0; padding: 0;
  font-size: 14px; font-weight: 500; color: inherit;
}
.link-underline {
  background: none; border: 0; padding: 0 0 2px;
  font-size: 14px; font-weight: 700; color: inherit;
  border-bottom: 2px solid var(--accent);
}

/* Pill / chip filter */
.pill {
  border-radius: var(--r-pill);
  padding: 9px 14px;
  font-size: 13px; line-height: 1.2;
  border: 1px solid var(--line);
  background: var(--white); color: var(--ink);
  min-height: 38px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ===== Header =========================================================== */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12, 15, 13, .95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 11px var(--gut);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.brand {
  background: none; border: 0; padding: 4px 0;
  display: flex; align-items: baseline; gap: 8px;
}
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: -.03em; color: var(--paper);
}
.brand__tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
}
.header__nav { display: flex; gap: 18px; }
.header__nav .link-btn { color: var(--muted-2); padding: 10px 0; }
.header__nav .link-btn:hover { color: var(--paper); }
.header__nav .link-btn[aria-current="page"] { color: var(--paper); font-weight: 700; }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.langset {
  display: flex; border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-pill); overflow: hidden;
}
.langset button {
  background: none; border: 0; padding: 9px 13px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--muted-2); min-height: 44px;
}
.langset button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }

.header__auth { display: flex; align-items: center; gap: 8px; }

.header__cta {
  background: var(--accent); border: 0; color: var(--ink);
  padding: 11px 17px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; min-height: 40px;
}
.header__cta:hover { background: var(--accent-hi); }

/* Aksi sekunder: satu CTA utama per layar tetap dipegang tombol lime. */
.header__signin {
  background: none; border: 1px solid rgba(255, 255, 255, .28);
  color: var(--paper);
  padding: 11px 16px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; min-height: 40px;
  white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease;
}
/* Nama pemain yang panjang dipotong, tidak mendorong header ke baris baru. */
.header__signin .lbl-full { display: inline-block; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.header__signin:hover { border-color: var(--accent); background: rgba(255, 255, 255, .06); }

.header__who { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.header__who b { color: var(--paper); font-weight: 700; }

/* Label pendek hanya dipakai di layar sangat sempit. */
.lbl-tiny { display: none; }

@media (max-width: 859px) {
  /* Identitas akun memakan ruang; namanya sudah ada di halaman mitra. */
  .header__who { display: none; }
}

@media (max-width: 719px) {
  .header__inner { gap: 12px; padding-block: 10px; }
  .header__nav {
    order: 3; flex: 1 0 100%;
    gap: 16px; overflow-x: auto; scrollbar-width: none;
    padding-bottom: 2px; margin-bottom: -2px;
  }
  .header__nav::-webkit-scrollbar { display: none; }
  .header__nav .link-btn { white-space: nowrap; padding: 4px 0; }
  .header__right { gap: 8px; }
  .header__cta { padding: 10px 13px; font-size: 12px; }
}

/* Di bawah 480px semuanya harus muat dalam dua baris: brand + aksi, lalu nav. */
@media (max-width: 479px) {
  :root { --gut: 16px; }
  .header__inner { gap: 10px; }
  .header__right { gap: 6px; }
  .header__auth { gap: 6px; }
  .langset button { padding: 8px 9px; font-size: 10px; letter-spacing: .04em; }
  .header__cta,
  .header__signin { padding: 9px 11px; font-size: 11px; }
  .brand__name { font-size: 19px; }
  .brand__tag { letter-spacing: .16em; }
  /* Dua tombol harus muat berdampingan: pakai label pendek. */
  .lbl-full { display: none; }
  .lbl-tiny { display: inline; }
}

/* ===== Panel gelap ====================================================== */
.on-dark { background: var(--ink); color: var(--paper); }
.on-dark h1, .on-dark h2 { color: var(--paper); }

.hero { position: relative; isolation: isolate; padding: 56px var(--gut) 46px; }

/* Hero berfoto: foto di lapisan paling bawah, lalu tirai gelap, lalu teks.
   Tirai dihitung agar teks krem tetap >= 4.5:1 di area tempat teks berada. */
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    105deg,
    rgba(12, 15, 13, .90) 0%,
    rgba(12, 15, 13, .82) 38%,
    rgba(12, 15, 13, .58) 72%,
    rgba(12, 15, 13, .35) 100%
  );
}
/* Di atas foto, label statistik dinaikkan kontrasnya. */
.hero--photo .hero__stats dd { color: var(--on-dark); }

/* Layar sempit: teks memenuhi lebar, jadi tirainya rata dan lebih pekat. */
@media (max-width: 767px) {
  .hero__veil {
    background: linear-gradient(
      to bottom,
      rgba(12, 15, 13, .88) 0%,
      rgba(12, 15, 13, .82) 55%,
      rgba(12, 15, 13, .76) 100%
    );
  }
}
.hero__kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 6.4vw, 74px); line-height: .96; letter-spacing: -.04em;
  margin: 0 0 18px; max-width: 17ch; text-wrap: balance;
}
.hero__sub {
  margin: 0 0 30px; font-size: 17px; line-height: 1.6;
  color: var(--on-dark); max-width: 54ch; text-wrap: pretty;
}

/* Kartu pencarian di hero */
.searchcard {
  background: var(--paper); color: var(--ink);
  border-radius: 20px; padding: 18px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px; align-items: end; max-width: 900px;
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > select, .field > input,
.field:not(.field--dark) .pwwrap > input {
  border: 1px solid var(--line); background: var(--white);
  border-radius: var(--r-md); padding: 12px; font-size: 16px;
  min-height: 46px; width: 100%;
}
.field > select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c857e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}
.searchcard .btn { min-height: 46px; }

.hero__stats { display: flex; gap: 30px; flex-wrap: wrap; margin: 34px 0 0; }
.hero__stats > div { min-width: 0; }
.hero__stats dt { font-family: var(--font-display); font-size: 27px; font-weight: 700; }
.hero__stats dd { margin: 0; font-size: 13px; color: var(--muted-7); }

/* Kredit pendukung. Tanpa kotak, tanpa latar, satu baris.
   Kesan redup dibuat lewat pilihan warna, BUKAN opacity: pada opacity 65%
   teks ini hanya mencapai kontras 2,89:1 — gagal ambang WCAG 4,5:1. */
.hero__support {
  display: flex; align-items: baseline; gap: 6px;
  margin: 18px 0 0;
}
/* Garis rambut pendek di depan teks: menandai baris ini sebagai kredit yang
   disengaja, bukan kalimat nyasar. Rata kiri mengikuti rail hero. */
.hero__support::before {
  content: ""; flex: 0 0 auto; align-self: center;
  width: 22px; height: 1px; margin-right: 4px;
  background: rgba(255, 255, 255, .3);
}
.hero__support-by { font-size: 11px; color: var(--muted-2); }
.hero__support-brand {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: -.01em; color: var(--on-dark);
}

/* ===== Section & heading =============================================== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 42px var(--gut) 0; }
.section--last { padding-bottom: 62px; }

.eyebrow {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 14px;
}
.h2 {
  font-family: var(--font-display); font-size: 27px; font-weight: 700;
  letter-spacing: -.025em; margin: 0;
}
.h2--lg { font-size: 26px; }
.head-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }

/* ===== Kartu ============================================================ */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); }
.card--pad { padding: 20px; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 17px 16px; text-align: left; min-height: 74px;
  transition: border-color .15s ease;
}
.tile:hover { border-color: var(--ink); }
/* Isi tile/kartu adalah <span> (button hanya boleh memuat phrasing content),
   jadi perlu dijadikan block secara eksplisit. */
.tile__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.tile__meta { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Kartu venue (grid) */
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.vcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; text-align: left; padding: 0; display: block; width: 100%;
  transition: border-color .15s ease;
}
.vcard:hover { border-color: var(--ink); }
.vcard__photo { width: 100%; height: 148px; object-fit: cover; display: block; }
.vcard__body { display: block; padding: 16px 18px 18px; }
.vcard__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.vcard__meta { display: block; font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.vcard__price { display: block; font-weight: 700; font-size: 16px; }
.vcard__price span { display: inline; font-weight: 400; color: var(--muted); font-size: 13px; }

/* Placeholder foto — pola garis seperti di design */
.photo {
  background: repeating-linear-gradient(115deg, var(--paper-3), var(--paper-3) 10px, var(--paper-2) 10px, var(--paper-2) 20px);
  display: flex; align-items: flex-end; padding: 12px;
}
.photo--dark {
  background: repeating-linear-gradient(115deg, var(--ink-2), var(--ink-2) 12px, var(--ink-4) 12px, var(--ink-4) 24px);
}
.photo__label { font-family: var(--font-mono); font-size: 10px; color: var(--muted-3); }
.photo--dark .photo__label { color: var(--muted-2); }
.photo--card { height: 148px; }

/* ===== Cara kerja / panel gelap membulat ================================ */
.panel-dark {
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-2xl); padding: 32px 30px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 26px;
}
.panel-dark__title { grid-column: 1 / -1; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0; }

/* Varian dengan foto: satu kolom foto + satu kolom isi. */
.panel-dark--photo { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 30px; align-items: center; }
.panel-dark--photo .panel-dark__title { grid-column: auto; margin-bottom: 22px; }
.panel-dark__img {
  width: 100%; height: 100%; max-height: 300px;
  object-fit: cover; object-position: 50% 32%;
  border-radius: 16px; display: block;
}
.panel-dark__body { min-width: 0; }
.howsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); gap: 24px; }
@media (max-width: 899px) {
  .panel-dark--photo { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .panel-dark__img { max-height: 210px; }
}
.step-num { font-family: var(--font-mono); color: var(--accent); font-size: 12px; margin-bottom: 8px; }
.step-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.step-body { font-size: 14px; color: var(--muted-2); line-height: 1.6; }

/* ===== Teaser pemilik venue ============================================= */
.split {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-2xl);
  padding: 30px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 26px; align-items: center;
}
.split__img {
  width: 100%; height: 100%; max-height: 330px;
  object-fit: cover; object-position: 50% 26%;
  border-radius: 16px; display: block;
}
@media (max-width: 839px) { .split__img { max-height: 240px; } }

.statbox { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 15px 17px; }
.statbox__val { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.statbox__lbl { font-size: 13px; color: var(--muted); }

/* ===== Halaman pencarian =============================================== */
.search-layout {
  display: grid; gap: 22px; align-items: start;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
}
@media (max-width: 899px) { .search-layout { grid-template-columns: minmax(0, 1fr); } }

.filters { position: sticky; top: calc(var(--hdr-h) + 14px); }
@media (max-width: 899px) { .filters { position: static; } }

.range { width: 100%; accent-color: var(--accent-600); min-height: 34px; }

.results { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 14px; display: grid; gap: 16px; align-items: center;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  transition: border-color .15s ease;
}
.rcard:hover { border-color: var(--line-2); }
.rcard__photo { width: 100%; height: 116px; object-fit: cover; border-radius: 13px; display: block; }
.rcard__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.015em; }
.rcard__meta { font-size: 13px; color: var(--muted); margin: 4px 0 8px; }
.rcard__sports { font-size: 13px; color: var(--muted-3); line-height: 1.5; }
.rcard__side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rcard__price { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
@media (max-width: 639px) {
  .rcard { grid-template-columns: minmax(0, 1fr); }
  .rcard__photo { height: 140px; }
  .rcard__side { align-items: stretch; }
  .rcard__side .btn { width: 100%; }
}

/* ===== Bilah lokasi ===================================================== */
.geobar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 15px 18px; margin-bottom: 14px;
}
.geobar__info { flex: 1 1 240px; min-width: 0; }
.geobar__title { font-weight: 700; font-size: 15px; }
.geobar__body { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.geobar__cta { flex: 0 0 auto; }
.geobar__skip {
  background: none; border: 0; padding: 10px 4px;
  font-size: 13px; color: var(--muted); text-decoration: underline;
}
.geobar__skip:hover { color: var(--ink); }

.geobar--on {
  background: var(--tint); border-color: var(--accent);
  padding: 11px 16px;
}
.geobar--on .geobar__txt { font-size: 13px; font-weight: 600; color: var(--accent-900); }
.geobar__dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  background: var(--accent-700); box-shadow: 0 0 0 4px rgba(83, 126, 0, .16);
}
.geobar__off {
  margin-left: auto; background: none; border: 1px solid var(--accent-700);
  color: var(--accent-900); border-radius: var(--r-pill);
  padding: 7px 14px; font-size: 12px; font-weight: 600; min-height: 32px;
}
.geobar__off:hover { background: var(--white); }

/* ===== Penempatan berbayar ==============================================
   Dibuat menonjol: latar gelap, garis aksen, dan kartu putih di atasnya —
   kontras kuat terhadap hasil organik yang berlatar cream polos. */
.promo-block {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(12, 15, 13, .16);
}
.promo-block__head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 2px 2px 12px;
}
.promo-block__badge {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent); color: var(--ink);
  padding: 5px 11px; border-radius: var(--r-pill);
}
.promo-block__note { font-size: 13px; color: var(--on-dark); }
/* Penanda berbayar. Sengaja dibuat terbaca: 11px, berbingkai, dan berdiri
   tepat di samping lencana yang dijelaskannya — bukan 10px di sudut kanan.
   Penanda yang tidak terbaca sama saja dengan tidak ada. */
.promo-block__disc {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, .4);
  padding: 4px 10px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.promo-block .rcard { margin-bottom: 10px; border-color: transparent; }
.promo-block .rcard:last-child { margin-bottom: 0; }
.rcard--promo { box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.rcard__km {
  display: inline-block; margin-left: 6px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent-800); white-space: nowrap;
}

.empty {
  background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--r-xl);
  padding: 34px; text-align: center; color: var(--muted); font-size: 15px;
}

/* ===== Detail venue ===================================================== */
.vhero { padding: 20px var(--gut) 38px; }
.backlink {
  background: none; border: 0; padding: 8px 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-5); margin-bottom: 14px;
}
.backlink:hover { color: var(--paper); }
.vhero__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 30px; align-items: end;
}
.vhero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 5.2vw, 56px); line-height: 1; letter-spacing: -.035em;
  margin: 0 0 14px; text-wrap: balance;
}
.vhero__desc { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--on-dark); max-width: 48ch; text-wrap: pretty; }
.badges { display: flex; gap: 9px; flex-wrap: wrap; }
.badge {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: 8px 14px; border-radius: var(--r-pill); font-size: 13px; color: var(--on-dark);
}
.badge b { color: var(--accent); font-weight: 700; }
/* Hero venue: satu foto sesuai cabor, dengan label cabor di pojok. */
.vhero__figure { position: relative; margin: 0; min-width: 0; }
.vhero__single {
  width: 100%; height: 230px; object-fit: cover;
  border-radius: 16px; display: block;
}
.vhero__cap {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--paper);
  background: rgba(12, 15, 13, .74); padding: 5px 10px; border-radius: 7px;
}
@media (max-width: 599px) { .vhero__single { height: 180px; } }

.venue-layout {
  max-width: var(--maxw); margin: 0 auto;
  padding: 36px var(--gut) 60px;
  display: grid; gap: 36px; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
}
@media (max-width: 979px) { .venue-layout { grid-template-columns: minmax(0, 1fr); } }

.venue-main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.prose { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-5); text-wrap: pretty; }

.factgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; margin-top: 18px;
}
.fact { background: var(--white); padding: 15px 17px; }
.fact__val { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.fact__lbl { font-size: 13px; color: var(--muted); }

/* Fasilitas sebagai chip: kata pendek tidak butuh kotak selebar seperlima baris. */
.facility-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.facility {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 14px; font-size: 14px; font-weight: 500;
}
.facility::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-700); flex: 0 0 auto; }

/* Tab lapangan + strip tanggal */
.courtbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.courtbar .pill { padding: 10px 17px; font-size: 14px; font-weight: 600; min-height: 42px; }

.daystrip {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 16px;
  scroll-snap-type: x proximity;
}
.day {
  flex: 0 0 auto; width: 62px; padding: 10px 0;
  border-radius: var(--r-lg); text-align: center;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  scroll-snap-align: start; min-height: 62px;
  transition: background-color .15s ease, border-color .15s ease;
}
.day:hover { border-color: var(--ink); }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.day__dow { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; opacity: .7; }
.day__num { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.3; }

/* Grid slot jam */
.slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); gap: 8px; }
.slot {
  text-align: left; padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  min-height: 56px;
  transition: background-color .12s ease, border-color .12s ease;
}
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.slot:disabled {
  background: var(--paper-4); color: var(--muted); border-color: var(--line-3);
  cursor: not-allowed;
}
.slot__time { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.slot__label { display: block; font-size: 11px; margin-top: 2px; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 13px; height: 13px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }
.legend .i-free { background: var(--white); }
.legend .i-sel  { background: var(--accent); border-color: var(--accent); }
.legend .i-book { background: var(--paper-4); border-color: var(--line-3); }

/* Ulasan */
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 17px; }
.review__head { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.avatar {
  width: 36px; height: 36px; border-radius: var(--r-pill); flex: 0 0 auto;
  background: var(--ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
}
.review__name { font-weight: 700; font-size: 14px; }
.review__meta { font-size: 12px; color: var(--muted); }
.review__score { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.review p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-5); }

.rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-5); }

/* Panel booking (aside) */
.bookpanel { background: var(--ink); color: var(--paper); border-radius: 20px; padding: 22px; }
.bookpanel__price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 16px; }
.bookpanel__price b { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.bookpanel__price span { font-size: 13px; color: var(--muted-2); }
.hr-dark { height: 1px; background: rgba(255,255,255,.1); border: 0; margin: 0 0 15px; }
.picklist { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.pick { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pick b { font-family: var(--font-display); font-weight: 700; }
.pick__meta { color: var(--muted-2); font-size: 12px; }
.pick__price { margin-left: auto; color: var(--on-dark-2); }
.pick__x {
  position: relative; background: none; border: 0; color: var(--muted-4);
  font-size: 18px; line-height: 1; padding: 0; flex: 0 0 auto;
  min-width: 44px; min-height: 44px; margin: -10px -12px -10px 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.pick__x:hover { color: var(--paper); }
.pickhint { font-size: 14px; color: var(--muted-4); line-height: 1.55; }
.bookpanel__total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 13px; border-top: 1px solid rgba(255,255,255,.1);
}
.bookpanel__total span { font-size: 13px; color: var(--muted-2); }
.bookpanel__total b { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.bookpanel .btn { margin-top: 15px; font-size: 16px; padding: 15px; }
.note { font-size: 12px; color: var(--muted-4); margin-top: 10px; line-height: 1.5; }

.aside-sticky { position: sticky; top: calc(var(--hdr-h) + 16px); min-width: 0; }
@media (max-width: 979px) { .aside-sticky { position: static; } }

.mapcard { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 19px; margin-top: 13px; }
.mapcard__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.mapcard__ph {
  border-radius: 12px; height: 110px; margin-bottom: 11px;
  background: repeating-linear-gradient(135deg, var(--paper-3), var(--paper-3) 9px, var(--paper-2) 9px, var(--paper-2) 18px);
  display: flex; align-items: flex-end; padding: 11px;
}
.mapcard__addr { font-size: 14px; color: var(--muted-3); line-height: 1.6; font-style: normal; }

/* Bilah aksi bawah (mobile) — agar tombol booking selalu terjangkau */
.actionbar {
  position: fixed; inset: auto 0 0 0; z-index: 45;
  background: var(--ink); color: var(--paper);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; gap: 14px;
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
}
.actionbar__lbl { font-size: 12px; color: var(--muted-2); }
.actionbar__total { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.actionbar .btn { margin-left: auto; flex: 0 0 auto; }
body.has-actionbar { padding-bottom: 86px; }
@media (max-width: 979px) { .actionbar.is-on { display: flex; } }

/* ===== Booking (checkout) ============================================== */
.checkout { max-width: 860px; margin: 0 auto; padding: 30px var(--gut) 70px; }
.steps { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; list-style: none; padding: 0; }
.stepitem { flex: 1 1 170px; border-top: 3px solid var(--line); padding-top: 10px; }
.stepitem.is-active { border-top-color: var(--accent); }
.stepitem__n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.stepitem__l { font-weight: 700; font-size: 14px; color: var(--muted); }
.stepitem.is-active .stepitem__n { color: var(--muted-3); }
.stepitem.is-active .stepitem__l { color: var(--ink); }

.h1-check { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin: 0 0 18px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; margin-bottom: 13px; }
.panel__title { font-weight: 700; font-size: 16px; margin-bottom: 14px; }

.pickrow {
  display: flex; align-items: center; gap: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--paper-3); font-size: 15px; flex-wrap: wrap;
}
.pickrow b { font-family: var(--font-display); font-weight: 700; }
.pickrow__meta { color: var(--muted); font-size: 13px; }
.pickrow__price { margin-left: auto; font-weight: 700; }
.pickrow__x {
  position: relative; background: none; border: 0; color: var(--muted-3); font-size: 18px; line-height: 1; padding: 0;
  min-width: 44px; min-height: 44px; margin: -10px -12px -10px 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.pickrow__x:hover { color: var(--ink); }

/* Pilihan (addon / pembayaran) */
.choice {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: var(--white);
  border-radius: 13px; padding: 14px 15px; min-height: 52px;
  transition: background-color .15s ease, border-color .15s ease;
}
.choice:hover { border-color: var(--line-2); }
.choice[aria-pressed="true"], .choice[aria-checked="true"] { background: var(--tint); border-color: var(--accent); }
.choice__box {
  width: 20px; height: 20px; border-radius: 6px; flex: 0 0 auto;
  border: 1px solid var(--line-2); background: var(--white);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.choice[aria-pressed="true"] .choice__box { background: var(--accent); border-color: var(--accent); }
.choice__dot {
  width: 18px; height: 18px; border-radius: var(--r-pill); flex: 0 0 auto;
  border: 2px solid var(--line-2); background: var(--white);
}
.choice[aria-checked="true"] .choice__dot { background: var(--accent); border-color: var(--accent); }
.choice__label { font-size: 15px; font-weight: 500; }
.choice__price { margin-left: auto; font-weight: 700; font-size: 14px; }
.choice__title { display: block; font-weight: 700; font-size: 15px; }
.choice__note { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.stack { display: flex; flex-direction: column; gap: 9px; }

.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.field__label { font-size: 13px; color: var(--muted); }
.field__err { font-size: 13px; color: var(--danger); font-weight: 500; display: none; }
.field.is-bad > input,
.field:not(.field--dark).is-bad .pwwrap > input { border-color: var(--danger); background: var(--danger-bg); }
.field.is-bad .field__err { display: block; }

.errsum {
  background: var(--danger-bg); border: 1px solid var(--danger);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 14px;
}
.errsum__t { font-weight: 700; color: var(--danger); margin-bottom: 6px; font-size: 14px; }
.errsum ul { margin: 0; padding-left: 18px; font-size: 14px; text-align: left; }
.errsum li { text-align: left; }
.errsum button {
  background: none; border: 0; padding: 2px 0; color: var(--danger);
  text-decoration: underline; font-size: 14px; text-align: left;
}

.sumrow { display: flex; justify-content: space-between; gap: 12px; color: var(--muted-3); font-size: 14px; }
.sumrow b { color: var(--ink); font-weight: 500; }
.sumtotal {
  display: flex; justify-content: space-between; gap: 12px;
  padding-top: 11px; border-top: 1px solid var(--paper-3);
}
.sumtotal > span { font-weight: 700; }
.sumtotal > b { font-family: var(--font-display); font-weight: 700; font-size: 19px; }

.checkout__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.checkout__total { margin-left: auto; text-align: right; }
.checkout__total span { font-size: 13px; color: var(--muted); }
.checkout__total b { display: block; font-family: var(--font-display); font-size: 23px; font-weight: 700; }
@media (max-width: 559px) {
  .checkout__actions > .btn { flex: 1 1 100%; }
  .checkout__total { margin-left: 0; text-align: left; width: 100%; order: -1; }
}

/* Konfirmasi */
.done { background: var(--ink); color: var(--paper); border-radius: var(--r-2xl); padding: 32px 28px; }
.done__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.done h1 { font-family: var(--font-display); font-size: 31px; font-weight: 700; letter-spacing: -.03em; margin: 0 0 10px; text-wrap: balance; }
.done > p { margin: 0 0 24px; font-size: 16px; color: var(--on-dark); line-height: 1.6; max-width: 48ch; }
.done__box { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 20px; margin-bottom: 22px; }
.done__row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.done__lbl { font-size: 12px; color: var(--muted-5); }
.done__val { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.done .sumrow { color: var(--muted-2); }
.done .sumrow b { color: var(--paper); }
.done__cta { display: flex; gap: 11px; flex-wrap: wrap; }

/* ===== Login (area mitra & admin) ======================================= */
.loginwrap {
  max-width: 480px; margin: 0 auto;
  padding: 46px var(--gut) 70px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.logincard {
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-2xl); padding: 30px 28px; width: 100%;
}
.logincard__title {
  font-family: var(--font-display); font-size: 29px; font-weight: 700;
  letter-spacing: -.03em; margin: 0 0 9px; color: var(--paper);
}
.logincard__sub {
  margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--on-dark);
}
.logincard form { display: flex; flex-direction: column; gap: 14px; }
.logincard__foot {
  margin: 20px 0 0; font-size: 13px; color: var(--muted-2); line-height: 1.6;
}
.logincard__foot .link-underline { color: var(--paper); font-size: 13px; }
.loginwrap__back { align-self: flex-start; }

/* Field versi gelap */
.field--dark .field__label { color: var(--muted-2); }
.field--dark > input,
.field--dark .pwwrap > input {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--paper);
  border-radius: var(--r-md); padding: 13px; font-size: 16px;
  min-height: 48px; width: 100%;
}
.field--dark > input::placeholder,
.field--dark .pwwrap > input::placeholder { color: var(--muted-4); }
.field--dark.is-bad > input,
.field--dark.is-bad .pwwrap > input {
  border-color: #e0827a; background: rgba(224, 130, 122, .12);
}
.field--dark .field__err { color: #f0a49d; }

/* Kotak kata sandi + tombol lihat/sembunyikan */
.pwwrap { position: relative; display: block; }
.field .pwwrap > input { padding-right: 52px; }
.pwtoggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--muted-2); border-radius: var(--r-md);
}
.pwtoggle:hover { color: var(--paper); }
.pwtoggle[aria-pressed="true"] { color: var(--accent); }

.errsum--dark {
  background: rgba(224, 130, 122, .14); border-color: #e0827a;
}
.errsum--dark .errsum__t { color: #f0a49d; margin-bottom: 0; }

/* Kotak akun demo */
.demobox {
  margin-top: 20px; padding: 16px 17px;
  background: rgba(255, 255, 255, .05);
  border: 1px dashed rgba(255, 255, 255, .2);
  border-radius: var(--r-lg);
}
.demobox__t {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 7px;
}
.demobox__n { margin: 0 0 11px; font-size: 13px; color: var(--muted-2); line-height: 1.55; }
.demobox__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.demoacc {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px;
}
.demoacc code {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--paper);
  background: rgba(255, 255, 255, .08); padding: 4px 8px; border-radius: 7px;
  overflow-wrap: anywhere;
}
.demoacc__role {
  margin-left: auto; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted-5);
}

/* ===== Mitra (partner) ================================================== */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; max-width: 940px; }
.benefit { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 18px; }
.benefit__v { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 5px; }
.benefit__l { font-size: 14px; color: var(--muted-2); line-height: 1.55; }

.cycleset { display: flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; background: var(--white); }
.cycleset button { border: 0; padding: 10px 16px; font-size: 13px; font-weight: 600; background: none; color: var(--muted-3); min-height: 44px; }
.cycleset button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.plan {
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.plan--hero { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.plan--hero .plan__tag { color: var(--muted-2); }
.plan__name { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-top: 6px; }
.plan__price { font-family: var(--font-display); font-size: 31px; font-weight: 700; letter-spacing: -.03em; }
.plan__per { font-size: 13px; color: var(--muted); }
.plan--hero .plan__per { color: var(--muted-2); }
.plan__feats { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; margin: 0; padding: 0; list-style: none; }
.plan__feat { display: flex; gap: 9px; }
.plan__feat i { color: var(--accent-700); font-weight: 700; font-style: normal; }
.plan--hero .plan__feat i { color: var(--accent); }
.plan .btn { margin-top: auto; }

.obgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.ob { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.ob__n { font-family: var(--font-mono); font-size: 11px; color: var(--accent-700); margin-bottom: 8px; }
.ob__t { font-weight: 700; font-size: 15px; margin-bottom: 5px; }
.ob__b { font-size: 14px; color: var(--muted-3); line-height: 1.55; }

/* ===== Dashboard ======================================================== */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.kpi__l { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.kpi__v { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.kpi__d { font-size: 12px; margin-top: 4px; }
.kpi__d--up { color: var(--accent-800); }
.kpi__d--down { color: var(--terra); }
.kpi__d--flat { color: var(--muted); }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; align-items: start; }
.chart { display: flex; align-items: flex-end; gap: 9px; height: 150px; }
.chart__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; height: 100%; }
.chart__bar { width: 100%; border-radius: 7px 7px 3px 3px; background: var(--tint-3); }
.chart__bar--hi { background: var(--accent); }
.chart__dow { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

.bk { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--paper-3); flex-wrap: wrap; }
.bk__n { font-weight: 700; font-size: 14px; }
.bk__m { font-size: 12px; color: var(--muted); }
.bk__side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); }
.tag--paid { color: var(--accent-900); background: var(--tint-2); }
.tag--dp   { color: var(--warn-fg); background: var(--warn-bg); }
.bk__price { font-family: var(--font-display); font-weight: 700; font-size: 14px; }

/* ===== Kelola venue tampil (Dashboard Mitra) ============================ */
.manage__head {
  display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.manage__title { font-weight: 700; font-size: 16px; margin: 0 0 4px; font-family: var(--font-body); }
.manage__sub { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; max-width: 52ch; }
.manage__count {
  margin-left: auto; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
}
.manage__count span { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--muted); }
.manage__warn {
  margin: 0 0 14px; padding: 11px 14px; border-radius: var(--r-md);
  background: var(--warn-bg); color: var(--warn-fg);
  font-size: 13px; line-height: 1.5;
}

.vlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vrow { padding: 15px 0; border-top: 1px solid var(--paper-3); }
.vrow:first-child { border-top: 0; padding-top: 0; }
.vrow__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vrow__info { min-width: 0; flex: 1 1 200px; }
.vrow__edited {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--warn-fg); background: var(--warn-bg);
  padding: 2px 6px; border-radius: 5px; vertical-align: 2px; margin-left: 6px;
}

/* Formulir venue: 12 kolom. Bidang biasa seperempat baris (harga, lapangan,
   buka, tutup), --wide setengah (nama, alamat, deskripsi), --penuh satu baris. */
.vrow__edit {
  display: grid; gap: 12px 14px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.vfield { grid-column: span 3; }
.vfield--wide { grid-column: span 6; }
.vfield--penuh { grid-column: 1 / -1; }
.vfield--aksi { flex-direction: row; justify-content: flex-end; align-items: flex-end; }
.vfield--aksi .btn { min-width: 180px; }

/* Baris promosi berbayar di panel admin */
.vrow__promo {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 11px; padding-top: 11px;
  border-top: 1px dashed var(--line);
}
.vrow__promo-lbl {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.vrow__promo-st {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.vrow__promo-st.is-on { color: var(--accent-800); }
.switch--promo { width: 42px; height: 24px; }
.switch--promo .switch__knob { width: 16px; height: 16px; }
.switch--promo[aria-checked="true"] .switch__knob { transform: translateX(18px); }
@media (max-width: 767px) {
  .vrow__edit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vfield { grid-column: span 1; }
  .vfield--wide, .vfield--penuh { grid-column: 1 / -1; }
  .vfield--aksi .btn { flex: 1 1 auto; }
}

.vfield { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.vfield__lbl {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.vfield__input {
  width: 100%;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--white); padding: 9px 11px; font-size: 16px; min-height: 44px;
}
textarea.vfield__input { resize: vertical; line-height: 1.5; font-family: inherit; }
.vfield__input:hover { border-color: var(--line-2); }
.vfield select.vfield__input {
  appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237c857e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
/* Prefiks Rp menempel di kolom harga */
.vfield__money { position: relative; display: block; }
.vfield__money::before {
  content: "Rp"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--muted); pointer-events: none;
}
.vfield__money .vfield__input { padding-left: 34px; }

.manage__reset { margin-top: 16px; width: 100%; }
.vrow__name { font-weight: 700; font-size: 15px; }
.vrow__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.vrow__status {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-800);
  white-space: nowrap;
}
/* Status dimatikan ditandai teks + warna + posisi sakelar — bukan warna saja. */
.vrow.is-off .vrow__name { color: var(--muted-3); }
.vrow.is-off .vrow__status { color: var(--muted); }

/* Sakelar. role="switch" + aria-checked yang membawa maknanya. */
.switch {
  position: relative; flex: 0 0 auto;
  width: 48px; height: 28px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--paper-3);
  padding: 0; transition: background-color .15s ease, border-color .15s ease;
}
.switch::after { content: ""; position: absolute; inset: -9px -2px; }
.switch__knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line-2);
  transition: transform .15s ease, background-color .15s ease;
}
.switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"] .switch__knob {
  transform: translateX(20px); background: var(--ink); border-color: var(--ink);
}
.switch:hover { border-color: var(--ink); }

/* Pemberitahuan di halaman venue yang sedang dimatikan (hanya admin sampai sini) */
.hidden-notice {
  margin: 0 0 16px; padding: 11px 15px;
  border-radius: var(--r-md);
  background: rgba(246, 239, 223, .14);
  border: 1px solid rgba(246, 239, 223, .34);
  color: #f0e2c4; font-size: 13px; line-height: 1.55;
  max-width: 58ch;
}

.subbar {
  background: var(--ink); color: var(--paper); border-radius: var(--r-xl); padding: 22px; margin-top: 14px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; align-items: center;
}
.subbar__plan { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.subbar__next { font-size: 14px; color: var(--muted-2); margin-top: 5px; }
.rowend { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 639px) { .rowend { justify-content: flex-start; } .rowend .btn { flex: 1 1 auto; } }

/* ===== Footer =========================================================== */
.footer { background: var(--ink); color: var(--muted-2); padding: 46px var(--gut) 32px; }
.footer__grid {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 28px;
}
.footer__brand { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.footer__blurb { font-size: 14px; line-height: 1.7; }
.footer__head { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-4); margin-bottom: 12px; }
.footer__links { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.footer__links .link-btn { color: var(--muted-2); padding: 6px 0; }
.footer__links .link-btn:hover { color: var(--paper); }
.footer__contact { font-size: 14px; line-height: 1.7; font-style: normal; }
/* inline-block + padding: tinggi kotak klik jadi >=24px (WCAG 2.2 2.5.8).
   Padding meluber ke luar line box, jadi jarak antarbaris tidak berubah. */
.footer__contact a { color: var(--muted-2); display: inline-block; padding-block: 3px; }
.footer__contact a:hover { color: var(--accent); }
.footer__base {
  max-width: var(--maxw); margin: 32px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted-4);
}

/* ===== Toast ============================================================ */
.toast {
  /* Kiri-kanan 20px + lebar menurut isi: dulu left:50% + translate membuat
     toast hanya selebar setengah layar ponsel, pesannya terbungkus 4 baris. */
  position: fixed; left: 20px; right: 20px; margin-inline: auto; width: fit-content; bottom: 24px; z-index: 60;
  background: var(--ink); color: var(--paper);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg);
  padding: 13px 18px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-toast); max-width: calc(100% - 40px);
}
.toast[hidden] { display: none; }
.toast__text { font-size: 14px; }
.toast__ok { background: var(--accent); border: 0; color: var(--ink); border-radius: var(--r-pill); padding: 8px 14px; font-size: 13px; font-weight: 700; }
body.has-actionbar .toast { bottom: 96px; }

/* Cetak */
@media print {
  .header, .footer, .toast, .actionbar, .checkout__actions { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
}


/* ==========================================================================
   Tambahan versi server (2.x)
   Kelas di bawah menggantikan atribut style="" situs lama — CSP halaman
   tidak mengizinkan skrip inline, dan gaya ditulis sebagai kelas supaya
   tetap bisa diperiksa uji 12-gaya.
   ========================================================================== */

/* Utilitas jarak */
.pt-28 { padding-top: 28px; }
.pt-30 { padding-top: 30px; }
.pt-38 { padding-top: 38px; }
.pt-44 { padding-top: 44px; }
.pt-46 { padding-top: 46px; }
.mb-6 { margin-bottom: 6px; }
.mb-10 { margin: 0 0 10px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; }
.mb-22 { margin-bottom: 22px; }
.mt-6 { margin-top: 6px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.ml-auto { margin-left: auto; }
.min0 { min-width: 0; }
.rata-kanan { text-align: right; }
.daftar-polos { list-style: none; padding: 0; margin: 0; }
.tumpuk-8 { display: flex; flex-direction: column; gap: 8px; }
.tumpuk-10 { display: grid; gap: 10px; }
.tumpuk-11 { display: flex; flex-direction: column; gap: 11px; }
.teks-redup { color: var(--muted); font-size: 14px; margin: 0; }
.teks-kecil-redup { font-size: 12px; color: var(--muted); }
.teks-13 { font-size: 13px; }
.wrap--rapat { padding-inline: 0; }
.mono--kecil { text-transform: none; letter-spacing: .06em; font-size: 11px; }

/* Beranda */
.h2--ajakan { font-size: 28px; letter-spacing: -.03em; margin-bottom: 10px; text-wrap: balance; }
.teks-ajakan { margin: 0 0 18px; font-size: 16px; line-height: 1.65; color: var(--muted-3); max-width: 46ch; text-wrap: pretty; }

/* Pencarian */
.judul-halaman { font-size: 30px; letter-spacing: -.03em; margin-bottom: 4px; }
.label-hasil { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.pillrow { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.label-blok { display: block; margin-bottom: 8px; }
.harga-maks { font-family: var(--font-display); font-weight: 700; font-size: 19px; display: block; margin-bottom: 8px; }

/* Venue */
.head-row--bawah { align-items: flex-end; }
.head-row--tengah { align-items: center; }
.bookpanel__from { margin: 0; color: var(--muted-5); }
.bookpanel__picked { font-size: 13px; color: var(--muted-2); margin: 0 0 8px; }
.picklist { margin-bottom: 15px; }
.kartu-catatan { margin-top: 16px; padding: 16px 18px; }
.kartu-catatan__judul { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.kartu-catatan__isi { margin: 0; font-size: 14px; color: var(--muted-3); line-height: 1.6; }
.mapcard__link { display: inline-block; margin-top: 10px; font-size: 13px; }

/* Checkout & status booking */
.panel__nama { font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.panel__meta { font-size: 13px; color: var(--muted); margin-bottom: 15px; }
.panel__kepala { display: flex; align-items: baseline; gap: 9px; margin-bottom: 14px; }
.catatan-akun { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.rekening { font-family: var(--font-mono); font-size: 15px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin: 6px 0 0; overflow-wrap: anywhere; }
.qris { width: 280px; max-width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); margin-top: 6px; background: var(--white); }
.qris--kecil { width: 96px; margin: 0; }
.hidden-notice--terang { color: var(--warn-fg); background: var(--warn-bg); border-color: transparent; }

.status-tag { display: inline-block; margin: 0 0 12px; }
.status-tag, .tag[class*="status-tag--"] { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); border: 0; }
.status-tag--menunggu_bayar { color: var(--warn-fg); background: var(--warn-bg); }
.status-tag--menunggu_verifikasi { color: var(--ink); background: var(--paper-3); }
.status-tag--lunas, .status-tag--dp_diterima { color: var(--accent-900); background: var(--tint-2); }
.status-tag--batal, .status-tag--kedaluwarsa { color: var(--danger); background: var(--danger-bg); }

input[type="file"] { font-size: 14px; }
.centang { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin: 10px 14px 10px 0; min-height: 24px; }
.cabor-pilih { border: 0; padding: 0; margin: 12px 0; min-width: 0; }

/* Mitra */
.hero--mitra { padding-top: 54px; }
.hero__title--mitra { font-size: clamp(32px, 5.6vw, 64px); line-height: .98; max-width: 20ch; }
.hero__sub--mitra { max-width: 56ch; margin-bottom: 28px; }
.split--rapat { padding: 28px; }
.h2--demo { font-size: 25px; margin-bottom: 9px; text-wrap: balance; }
.teks-demo { margin: 0; font-size: 15px; color: var(--muted-3); line-height: 1.6; max-width: 44ch; }

/* Dashboard */
.judul-dasbor { font-size: 29px; letter-spacing: -.03em; }
.lencana-peran {
  background: var(--ink); color: var(--accent); font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; padding: 6px 11px; border-radius: var(--r-pill);
}
.tabbar { flex-wrap: wrap; width: fit-content; max-width: 100%; margin-bottom: 18px; border-radius: var(--r-lg); }
.tabisi { min-height: 200px; }
.kartu-kepala { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.judul-kartu { font-weight: 700; font-size: 16px; margin: 0; }
.saring { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.saring .field { min-width: 200px; }
.btn--kecil { min-height: 44px; padding: 8px 14px; font-size: 13px; }
.manage + .manage { margin-top: 14px; }
.vrow__qris { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.formgrid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); margin-bottom: 14px; }

.dialog {
  border: 0; border-radius: var(--r-2xl); padding: 0; width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); background: var(--paper); color: var(--ink);
}
.dialog::backdrop { background: rgba(12, 15, 13, .55); }
.dialog__isi { padding: 22px; }
.dialog .panel { margin-top: 12px; }
.dialog summary { cursor: pointer; font-weight: 700; }

/* Input berkas yang tersembunyi: fokusnya terlihat di label tombolnya. */
.label-unggah { cursor: pointer; }
.sr-only:focus-visible + .label-unggah { outline: 3px solid var(--accent-800); outline-offset: 2px; }
.tabbar [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--paper); }

/* Label panjang tombol akun disembunyikan di layar sempit (selektornya lebih
   spesifik dari .lbl-full biasa, jadi harus disebut sendiri). */
@media (max-width: 479px) { .header__signin .lbl-full { display: none; } }

/* ===== Tambahan v2.1 ==================================================== */
/* Tanda wajib yang terlihat; required di input-nya untuk pembaca layar. */
.field__label--wajib::after { content: " *"; color: var(--danger); }

/* Spanduk mode demo: rekening contoh boleh dipakai — tidak untuk uang sungguhan. */
.spanduk-demo {
  margin: 0; padding: 9px var(--gut); text-align: center;
  background: var(--warn-bg); color: var(--warn-fg);
  font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line);
}
.noscript {
  margin: 0; padding: 14px var(--gut); text-align: center;
  background: var(--warn-bg); color: var(--warn-fg); font-size: 14px;
}
.memuat { padding: 48px var(--gut); text-align: center; color: var(--muted); }

.halaman-404 { max-width: 640px; }
.rowend--kiri { justify-content: flex-start; }

/* Panel yang bisa dibuka-tutup di dashboard (ekspor, tutup jam, riwayat). */
.panel > summary { cursor: pointer; font-weight: 700; min-height: 28px; }
.panel[open] > summary { margin-bottom: 12px; }
.ekspor { margin-bottom: 14px; }
.ekspor .saring { align-items: flex-end; margin-bottom: 0; }
.vrow details.panel { margin: 12px 0 0; padding: 14px 16px; }
.field > input[type="file"] { padding: 10px; }
.field--dark .field__label--wajib::after { color: var(--accent); }
/* Daftar centang di dalam formulir venue/akun: mengalir mendatar, bukan satu per baris. */
.vfield.cabor-pilih { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0; }
.vfield.cabor-pilih > legend { flex: 0 0 100%; margin-bottom: 2px; }
.centang { min-height: 44px; margin-block: 0; }

/* ===== Akun staf (ringkas) =============================================== */
.akun-daftar { display: flex; flex-direction: column; }
.akun { padding: 16px 0; border-top: 1px solid var(--paper-3); }
.akun-daftar > li:first-child .akun { border-top: 0; padding-top: 4px; }
.akun__kepala { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.akun__nama { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.akun__anda {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--tint-2); color: var(--accent-800); padding: 3px 8px; border-radius: var(--r-pill);
}
.akun__status {
  flex: 0 0 auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill); background: var(--paper-3); color: var(--muted-3);
}
.akun__status.is-on { background: var(--tint-2); color: var(--accent-800); }
.akun.is-off .akun__nama { color: var(--muted-3); }
.akun__kontrol { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-top: 12px; }
.akun__bidang { display: flex; flex-direction: column; gap: 5px; flex: 0 1 220px; min-width: 160px; }
.akun__aktif { margin: 0; }
.akun__aksi { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.akun__venue { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.akun__venue > legend { padding: 0; margin-bottom: 8px; }
.akun__catatan { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
select.vfield__input:disabled, .akun__aktif input:disabled { cursor: not-allowed; }
select.vfield__input:disabled { background-color: var(--paper-2); color: var(--muted-3); }

/* Kotak centang berbentuk chip: banyak pilihan dalam sedikit ruang. */
.chip-baris { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-centang {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--white); font-size: 14px; cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}
.chip-centang:hover { border-color: var(--line-2); }
.chip-centang:has(input:checked) { background: var(--tint); border-color: var(--accent-700); }
.chip-centang input { margin: 0; accent-color: var(--accent-800); }
.chip-centang:focus-within { outline: 3px solid var(--accent-800); outline-offset: 2px; }
@media (max-width: 599px) {
  .akun__aksi { margin-left: 0; width: 100%; }
  .akun__aksi .btn { flex: 1 1 0; }
  .akun__bidang { flex: 1 1 100%; }
}

/* KPI: 6 kartu dibagi rata (6 / 3 / 2 per baris), tanpa satu kartu yatim. */
.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi { padding: 14px 16px; }
.kpi__l { min-height: 2.6em; line-height: 1.3; }

/* Bagian venue yang bisa dilipat (ubah data, tutup jam, riwayat). */
.lipat { border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: 10px; background: var(--white); }
.lipat > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px; font-weight: 700; font-size: 14px;
}
.lipat > summary::-webkit-details-marker { display: none; }
.lipat > summary::before {
  content: ""; width: 7px; height: 7px; flex: 0 0 auto;
  border-right: 2px solid var(--muted-3); border-bottom: 2px solid var(--muted-3);
  transform: rotate(-45deg); transition: transform .15s ease;
}
.lipat[open] > summary::before { transform: rotate(45deg); }
.lipat > summary:hover { background: var(--paper-2); border-radius: var(--r-lg); }
.lipat__isi { padding: 4px 16px 16px; }
.lipat__isi .vrow__edit { margin-top: 0; }

/* Status teks di kepala kartu (bukan angka besar seperti manage__count). */
.manage__status {
  margin-left: auto; white-space: nowrap; align-self: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill); background: var(--paper-3); color: var(--muted-3);
}
.manage__status.is-on { background: var(--tint-2); color: var(--accent-800); }
.manage__title + .formgrid { margin-top: 12px; }
/* Baris aksi formulir: centang di kiri, tombol simpan di kanan. */
.form-aksi { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.form-aksi--kanan { justify-content: flex-end; }
.formgrid--3 + .form-aksi { margin-top: 0; }
/* Tombol lihat password di kolom TERANG (akun pemain, dashboard): warna gelap. */
.field:not(.field--dark) .pwtoggle { color: var(--muted-3); }
.field:not(.field--dark) .pwtoggle:hover { color: var(--ink); }
.field:not(.field--dark) .pwtoggle[aria-pressed="true"] { color: var(--accent-800); }
.field:not(.field--dark) .pwwrap > input { padding-right: 52px; }
.formgrid--sempit { grid-template-columns: minmax(0, 260px); }
.daftar-cadangan { margin-top: 12px; border-top: 1px solid var(--paper-3); }
.daftar-cadangan > li { padding: 10px 0; border-bottom: 1px solid var(--paper-3); align-items: center; }

/* Footer selalu di dasar layar: halaman pendek (lacak, akun, 404) tidak
   menyisakan ruang kosong di bawah footer. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > #main { flex: 1 0 auto; width: 100%; }
body > header, body > footer, body > .spanduk-demo, body > noscript { flex: 0 0 auto; }

/* Layar sempit: tab dashboard satu baris yang bisa digeser (bukan tiga baris
   bertumpuk), dan tepi kanan memudar sebagai tanda masih ada isi. */
@media (max-width: 767px) {
  .tabbar {
    flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .tabbar::-webkit-scrollbar { display: none; }
  .tabbar [role="tab"] { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 599px) {
  .header__nav {
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent);
    padding-right: 24px;
  }
}
@media (max-width: 599px) {
  /* Nama venue mengalah lebarnya; status + sakelar tetap sebaris di kanan. */
  .vrow__top .vrow__info { flex: 1 1 0; }
}

/* Ponsel: tiga fakta venue sebaris (tidak 2 + 1 dengan sel kosong). */
@media (max-width: 599px) {
  .factgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact { padding: 14px 12px; }
  .fact__val { font-size: 22px; }
  .fact__lbl { font-size: 12px; }
  /* Langkah checkout: satu baris ringkas, bukan tiga baris bertumpuk. */
  .steps { flex-wrap: nowrap; gap: 8px; margin-bottom: 18px; }
  .stepitem { flex: 1 1 0; min-width: 0; padding-top: 8px; }
  .stepitem__l { font-size: 12px; line-height: 1.3; }
}
/* Nominal uang tidak pernah terpotong dua baris. */
.sumrow > b, .sumrow > :last-child { white-space: nowrap; text-align: right; }
.sumrow > :first-child { min-width: 0; }

/* Filter pencarian terlipat di ponsel (lihat panelFilter di cari.js). */
.filters--lipat > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px; font-weight: 700;
}
.filters--lipat > summary::-webkit-details-marker { display: none; }
.filters--lipat > summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px;
  border-right: 2px solid var(--muted-3); border-bottom: 2px solid var(--muted-3);
  transform: rotate(45deg); transition: transform .15s ease;
}
.filters--lipat[open] > summary::after { transform: rotate(-135deg); }
.filters__isi { padding: 4px 18px 18px; }
.filter-jumlah {
  background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
}
.filter-jumlah[hidden] { display: none; }

/* ===== Grup pilihan: kolom sama lebar ==================================
   Pil dengan lebar mengikuti teksnya patah tak beraturan di kolom sempit
   ("Semua Padel Futsal / Badminton Basket / ..."). Semua grup pilihan —
   filter Cari, lapangan di halaman venue, chip venue & fasilitas di
   dashboard — kini memakai kolom yang sama lebar dan rata. */
.pillrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pillrow .pill, .courtbar .pill {
  width: 100%; min-width: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 9px 10px; min-height: 42px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 899px) {
  .pillrow { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
}
.courtbar { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.chip-baris { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.chip-centang { min-width: 0; line-height: 1.3; }
.chip-centang > span { min-width: 0; overflow-wrap: anywhere; }

/* Kartu hasil pencarian: harga + satuan sebaris, rata kanan bersama tombolnya. */
.rcard__harga { white-space: nowrap; }
.rcard__per { font-size: 13px; color: var(--muted); }
@media (min-width: 600px) {
  .rcard__side { align-items: flex-end; text-align: right; }
  .rcard__side .btn { min-width: 132px; }
}

/* Unduh laporan (tab Booking): rentang, venue, dan tombol sebaris. */
.lipat + .card, .lipat + .manage { margin-top: 14px; }
.ekspor__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.ekspor__tombol { display: flex; gap: 8px; }
.ekspor__tombol .btn { gap: 6px; }
@media (max-width: 767px) {
  .ekspor__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ekspor__form > :nth-child(3), .ekspor__tombol { grid-column: 1 / -1; }
  .ekspor__tombol .btn { flex: 1 1 0; }
}

/* Tombol tindakan yang tidak bisa diurungkan (batal, hapus, nonaktifkan). */
.btn--bahaya { background: var(--danger); color: var(--white); }
.btn--bahaya:hover { background: var(--ink); }

/* Cari kode booking (tab Booking), sebaris dengan filter. */
.cari-kode { margin-left: auto; }
.cari-kode__baris { display: flex; gap: 8px; }
.cari-kode__baris .vfield__input { width: 150px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 599px) {
  .cari-kode { margin-left: 0; width: 100%; }
  .cari-kode__baris .vfield__input { flex: 1 1 auto; width: auto; }
}

/* Tombol salin (kode booking, rekening, jumlah bayar). */
.kode-baris { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rekening-baris { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rekening-baris .rekening { margin: 0; }
.btn-salin {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white);
  color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-salin:hover { border-color: var(--ink); }
.btn-salin--gelap { background: transparent; border-color: rgba(255, 255, 255, .25); color: var(--paper); }
.btn-salin--gelap:hover { border-color: var(--accent); }
.btn-salin { position: relative; }
.btn-salin::after { content: ""; position: absolute; inset: -6px -2px; }

/* Formulir bertumpuk (akun, lacak, ganti password, dialog): jarak seragam
   antar-kolom dan ke tombol — dulu 0px, label menempel pada input di atasnya. */
.tumpuk-form { display: flex; flex-direction: column; gap: 14px; }
.tumpuk-form > .formgrid { margin: 0; }
.tumpuk-form > .btn, .tumpuk-form > button[type="submit"] { align-self: stretch; }
label.field__label { display: block; }

/* Tanggal dari beranda di halaman Cari. */
.catatan-tanggal { margin: -8px 0 16px; font-size: 14px; color: var(--muted-3); }

/* Pilih berkas bukti bayar (input asli disembunyikan, tombol berteks situs). */
.berkas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.berkas__nama { font-size: 14px; color: var(--muted-3); overflow-wrap: anywhere; }
.field.is-bad .label-unggah { border-color: var(--danger); }
.bookpanel__fee { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted-2); margin: 8px 0 -4px; }
