/* ===========================================================================
   SportBook - gaya tampilan
   ---------------------------------------------------------------------------
   Bootstrap dipakai hanya untuk kerangka grid dan komponen dasar. Warna,
   bentuk sudut, jarak, dan tipografinya ditimpa di sini lewat variabel CSS
   milik Bootstrap sendiri, supaya seluruh komponen ikut berubah sekaligus.
   =========================================================================== */

:root {
  /* Warna dasar. Nuansa kertas hangat, bukan abu-abu kebiruan. */
  --ink:        #1a1d1b;
  --ink-soft:   #4a504c;
  --muted:      #767b77;
  --paper:      #f5f3ef;
  --card:       #ffffff;
  --line:       #e2ddd4;
  --line-soft:  #eeeae3;

  /* Hijau lapangan, dipakai untuk aksi utama dan penanda aktif. */
  --green:      #14684a;
  --green-dark: #0e4d37;
  --green-soft: #e8f0eb;

  /* Warna hangat khusus untuk angka harga, supaya mudah dicari mata. */
  --clay:       #9c4718;
  --clay-soft:  #f6ede7;

  /* Bayangan lembut berlapis dua, bukan bayangan tunggal yang pekat. */
  --shadow-sm: 0 1px 2px rgba(26, 29, 27, .05), 0 1px 1px rgba(26, 29, 27, .03);
  --shadow-md: 0 4px 10px rgba(26, 29, 27, .06), 0 1px 3px rgba(26, 29, 27, .05);
  --shadow-lg: 0 14px 34px rgba(26, 29, 27, .11), 0 3px 8px rgba(26, 29, 27, .05);

  /* Variabel milik Bootstrap. */
  --bs-body-bg: var(--paper);
  --bs-body-color: var(--ink);
  --bs-body-font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-font-size: .9375rem;
  --bs-border-color: var(--line);
  --bs-border-radius: 8px;
  --bs-border-radius-sm: 6px;
  --bs-border-radius-lg: 10px;
  --bs-link-color: var(--green-dark);
  --bs-link-hover-color: var(--green);
  --bs-primary: var(--green);
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--muted);
}

body {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Angka disamakan lebarnya supaya kolom harga rata rapi. */
.num, .price, td, th, .stat-value { font-variant-numeric: tabular-nums; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
}

a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

hr { border-color: var(--line); opacity: 1; }

/* Ikon SVG sejajar dengan baris teks di sebelahnya. */
.ic { vertical-align: -.16em; flex: none; }

/* --------------------------------------------------------------- kepala --- */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar .navbar-brand {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.03em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.topbar .navbar-brand:hover { text-decoration: none; }
.brandmark { color: var(--green); display: block; }

.topbar .nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .9rem;
  padding: .4rem .75rem;
}
.topbar .nav-link:hover { color: var(--green-dark); text-decoration: none; }
.topbar .nav-link.is-current { color: var(--ink); font-weight: 600; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 7px;
  color: var(--ink-soft);
}
.icon-btn:hover { background: var(--line-soft); color: var(--ink); text-decoration: none; }
.dot {
  position: absolute;
  top: 4px; right: 3px;
  min-width: 15px;
  padding: 0 3px;
  border-radius: 8px;
  background: var(--clay);
  color: #fff;
  font-size: .625rem;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
}

/* --------------------------------------------------------------- tombol --- */
.btn {
  font-weight: 500;
  border-radius: 7px;
  padding: .44rem .9rem;
}
.btn-sm { padding: .3rem .65rem; font-size: .8125rem; border-radius: 6px; }
.btn-lg { padding: .6rem 1.1rem; font-size: 1rem; }

.btn-go {
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
}
.btn-go:hover, .btn-go:focus { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

.btn-line {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.btn-line:hover { background: var(--line-soft); border-color: #d5cec2; color: var(--ink); }

.btn-quiet { background: none; border: none; color: var(--muted); padding: .3rem .5rem; }
.btn-quiet:hover { color: var(--ink); }

.btn-danger-line { background: transparent; border: 1px solid #e2c4bb; color: #9a3412; }
.btn-danger-line:hover { background: #fdf3ef; border-color: #d3a898; color: #7c2d12; }

/* ---------------------------------------------------------------- form --- */
.form-control, .form-select {
  border-color: var(--line);
  border-radius: 7px;
  font-size: .9rem;
  padding: .44rem .7rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 104, 74, .12);
}
.form-control-sm, .form-select-sm { font-size: .84rem; padding: .32rem .55rem; border-radius: 6px; }
.form-label { font-size: .82rem; font-weight: 500; color: var(--ink-soft); margin-bottom: .3rem; }
.form-text { font-size: .78rem; color: var(--muted); }

/* ---------------------------------------------------------------- panel --- */
.panel, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.card { transition: border-color .12s ease; }
.card:hover { border-color: #d3ccbf; }

.panel-head {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 600;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 2.25rem 1rem;
  font-size: .875rem;
}
.empty .ic { color: #c3bcae; margin-bottom: .5rem; }

/* Judul bagian dengan garis tipis di sampingnya. */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}
.section-title h2 { font-size: 1.05rem; margin: 0; }

/* ----------------------------------------------------------------- hero --- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 2.5rem 2rem 3.25rem;
  color: #fff;
  background: var(--green-dark);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .22);
}
/* Sapuan cahaya tipis di sudut kiri atas supaya bidang hijau tidak terlihat rata. */
.hero::before {
  content: "";
  position: absolute;
  top: -140px; left: -90px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 200, 160, .22), transparent 68%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: center;
  gap: 2rem;
}
.hero-art { width: 100%; height: auto; display: block; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9fd9bd;
  margin-bottom: .7rem;
}
.hero .eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: #9fd9bd;
  border-radius: 2px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 1rem + 2.1vw, 2.45rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.032em;
  margin-bottom: .6rem;
}
.hero p { color: rgba(255,255,255,.8); font-size: .97rem; margin-bottom: 0; max-width: 32rem; }

.hero-facts {
  display: flex;
  gap: 2.25rem;
  margin-top: 1.6rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero-facts dt {
  font-size: .73rem;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hero-facts dd {
  font-size: 1.45rem;
  font-weight: 700;
  margin: .1rem 0 0;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

/* Kotak pencarian menumpuk di tepi bawah hero. */
.searchbar {
  position: relative;
  z-index: 2;
  margin: -2.1rem 1.25rem 0;
  padding: .8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* ------------------------------------------------------------- kategori --- */
.cat {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  height: 100%;
}
.cat:hover { border-color: var(--green); text-decoration: none; }
.cat .ic { color: var(--green); }
.cat b { display: block; font-size: .875rem; font-weight: 600; line-height: 1.3; }
.cat span { font-size: .75rem; color: var(--muted); }

/* --------------------------------------------------------------- daftar --- */
.thumb {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 9px 9px 0 0;
  background: var(--line-soft);
}

.meta { font-size: .8125rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
.meta + .meta { margin-top: .2rem; }

.price {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--clay);
  letter-spacing: -.02em;
}
.price small { font-weight: 400; font-size: .8rem; color: var(--muted); }

.rate { font-size: .8125rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .25rem; }
.rate .star { color: #c98a1a; }

/* ---------------------------------------------------------------- label --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .17rem .45rem;
  border-radius: 5px;
  border: 1px solid;
  white-space: nowrap;
}
.tag-green   { color: #16543c; border-color: #bcd8c9; background: #edf5f0; }
.tag-amber   { color: #8a5a08; border-color: #ecd9ab; background: #fbf5e7; }
.tag-red     { color: #9a3412; border-color: #eccabd; background: #fcf1ec; }
.tag-blue    { color: #1e4f6b; border-color: #c1d8e4; background: #eef5f9; }
.tag-grey    { color: #5c615d; border-color: var(--line); background: var(--line-soft); }

/* ---------------------------------------------------------------- angka --- */
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: .85rem 1rem;
  height: 100%;
}
.stat-label { font-size: .78rem; color: var(--muted); margin-bottom: .15rem; }
.stat-value {
  font-size: clamp(1.05rem, .6rem + 1vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.stat-value .sub { font-size: .8rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }

/* ------------------------------------------------------------ jam main --- */
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: .4rem;
}
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot label {
  display: block;
  text-align: center;
  padding: .45rem .25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  cursor: pointer;
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .1s ease, background .1s ease;
}
.slot label:hover { border-color: var(--green); }
.slot input:checked + label {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 600;
}
.slot.off label {
  background: repeating-linear-gradient(-45deg, #f3f1ec 0 5px, #eeebe4 5px 10px);
  color: #a7a59e;
  border-color: var(--line-soft);
  cursor: not-allowed;
}
.slot.taken label { background: var(--green-soft); border-color: #c3dacd; color: #2c6a51; cursor: default; }
.slot small { display: block; font-size: .65rem; font-weight: 400; margin-top: .05rem; }
.slot label:hover { text-decoration: none; }

/* --------------------------------------------------------------- sisian --- */
.rail { position: sticky; top: 76px; }

.sidenav {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: .3rem;
}
.sidenav a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .6rem;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: .875rem;
  font-weight: 500;
}
.sidenav a:hover { background: var(--line-soft); color: var(--ink); text-decoration: none; }
.sidenav a.on { background: var(--green); color: #fff; }
.sidenav a.on .ic { color: #fff; }
.sidenav .ic { color: var(--muted); }
.sidenav-who {
  padding: .55rem .6rem .45rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: .3rem;
}
.sidenav-who small { display: block; font-size: .7rem; color: var(--muted); }
.sidenav-who b { font-size: .875rem; font-weight: 600; }

/* ---------------------------------------------------------------- tabel --- */
.table { --bs-table-border-color: var(--line-soft); margin-bottom: 0; font-size: .875rem; }
.table > :not(caption) > * > * { padding: .62rem .7rem; }
.table thead th {
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line);
  background: #fbfaf8;
}
.table-flush { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--card); }

/* --------------------------------------------------------------- pesan ---- */
.alert { border-radius: 8px; border-width: 1px; font-size: .875rem; padding: .6rem .85rem; }
.alert-success { background: #edf5f0; border-color: #c4dbcd; color: #16543c; }
.alert-warning { background: #fbf5e7; border-color: #ecd9ab; color: #7d5307; }
.alert-danger  { background: #fcf1ec; border-color: #eccabd; color: #8c2f10; }
.alert-info    { background: #eef5f9; border-color: #c6dbe6; color: #1c4b66; }

/* ------------------------------------------------------------- nav-pills -- */
.nav-pills { gap: .25rem; }
.nav-pills .nav-link {
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 500;
  padding: .32rem .7rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
.nav-pills .nav-link:hover { background: var(--line-soft); text-decoration: none; }
.nav-pills .nav-link.active { background: var(--ink); color: #fff; }

.breadcrumb { font-size: .8125rem; margin-bottom: .9rem; --bs-breadcrumb-divider-color: #b9b3a8; }
.breadcrumb a { color: var(--muted); }
.breadcrumb .active { color: var(--ink-soft); }

.pagination { --bs-pagination-border-color: var(--line); --bs-pagination-color: var(--ink-soft);
  --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink);
  --bs-pagination-font-size: .85rem; --bs-pagination-border-radius: 6px; }

.progress { background: var(--line-soft); border-radius: 3px; }
.progress-bar { background: var(--green); }

.dropdown-menu {
  border-color: var(--line);
  border-radius: 9px;
  font-size: .875rem;
  box-shadow: 0 6px 20px rgba(26, 29, 27, .09);
  padding: .3rem;
}
.dropdown-item { border-radius: 6px; padding: .4rem .6rem; }

/* ----------------------------------------------------------------- kaki --- */
.foot { background: var(--card); border-top: 1px solid var(--line); margin-top: 3rem; }
.foot a { color: var(--ink-soft); }
.foot .small { font-size: .82rem; }

/* -------------------------------------------------------------- responsif -- */
@media (max-width: 991.98px) {
  .rail { position: static; }
  .sidenav { display: flex; gap: .2rem; overflow-x: auto; padding: .25rem; scrollbar-width: none; }
  .sidenav::-webkit-scrollbar { display: none; }
  .sidenav-who { display: none; }
  .sidenav a { white-space: nowrap; padding: .4rem .65rem; }
}

@media (max-width: 575.98px) {
  .hero { padding: 1.6rem 1.1rem 2rem; border-radius: 10px; }
  .hero-facts { gap: 1.25rem; }
  .searchbar { margin: -1.4rem .5rem 0; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
}

@media print {
  .topbar, .foot, .rail, .no-print { display: none !important; }
  body { background: #fff; }
  .panel, .stat, .table-flush { border-color: #ccc; }
}

/* ----------------------------------------------------------------- promo -- */
.promo {
  display: flex;
  gap: .75rem;
  padding: .7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  height: 100%;
}
.promo:hover { border-color: var(--green); text-decoration: none; }
.promo-img { width: 52px; height: 52px; border-radius: 7px; object-fit: cover; flex: none; }
.promo-icon {
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
}
.promo b { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .1rem; }
.promo span span, .promo > span > span { font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* Nominal rupiah tidak boleh terpotong ke baris berikutnya. */
.price, .stat-value, td.num, .num { white-space: nowrap; }
.stat-value { white-space: normal; }
.stat-value > span:first-child { white-space: nowrap; }

/* Sel tabel yang isinya panjang dipotong dengan titik tiga, supaya satu baris
   tetap satu baris dan tabel tidak melar ke bawah. */
.cell-tight {
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ======================================================================
   Penyempurnaan tampilan: bayangan, gambar yang membesar halus saat
   disentuh kursor, label mengambang di atas gambar, dan bagian "cara pesan".
   ====================================================================== */

/* ------------------------------------------------------------- kartu ------ */
.card {
  box-shadow: var(--shadow-sm);
  transition: box-shadow .16s ease, border-color .16s ease;
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #d3ccbf; }

/* Bingkai gambar: gambarnya sedikit membesar saat kursor lewat. */
.thumb-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--line-soft);
}
.thumb-wrap .thumb {
  border-radius: 0;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
.card:hover .thumb-wrap .thumb { transform: scale(1.045); }

/* Lapisan gelap tipis di bagian bawah gambar agar label tetap terbaca. */
.thumb-wrap::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  background: linear-gradient(to top, rgba(16, 22, 18, .42), transparent);
  pointer-events: none;
}

/* Label yang mengambang di atas gambar. */
.pill-row {
  position: absolute;
  left: .6rem; right: .6rem; bottom: .6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  z-index: 1;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(3px);
  font-size: .73rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.pill-dark { background: rgba(20, 26, 22, .72); color: #fff; backdrop-filter: blur(3px); }
.pill .star { color: #d9a032; }

/* ------------------------------------------------------- judul bagian ----- */
.section-title h2 {
  position: relative;
  padding-left: .7rem;
  font-size: 1.08rem;
}
.section-title h2::before {
  content: "";
  position: absolute;
  left: 0; top: .18em; bottom: .18em;
  width: 3px;
  border-radius: 2px;
  background: var(--green);
}

/* ------------------------------------------------------- cara pesan ------- */
.band {
  background: #eeeae2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2.5rem 0;
  padding: 2rem 0;
}
.steps { counter-reset: langkah; }
.step { position: relative; padding-left: 3rem; }
.step::before {
  counter-increment: langkah;
  content: counter(langkah);
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
}
.step h3 { font-size: .93rem; margin-bottom: .2rem; }
.step p { font-size: .845rem; color: var(--muted); margin-bottom: 0; line-height: 1.5; }

/* -------------------------------------------------- kategori & tombol ----- */
.cat {
  box-shadow: var(--shadow-sm);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.cat:hover { box-shadow: var(--shadow-md); }
.cat .ic { transition: transform .2s ease; }
.cat:hover .ic { transform: scale(1.12); }

.btn-go { box-shadow: 0 1px 2px rgba(14, 77, 55, .25); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; box-shadow: none; }

.panel { box-shadow: var(--shadow-sm); }
.stat { box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------- kaki gelap ----- */
.foot {
  background: #13211a;
  border-top: none;
  color: rgba(255, 255, 255, .62);
  margin-top: 3.5rem;
}
.foot .fw-semibold, .foot b { color: #fff; }
.foot a { color: rgba(255, 255, 255, .72); }
.foot a:hover { color: #fff; }
.foot p, .foot .small { color: rgba(255, 255, 255, .58); }
.foot hr { border-color: rgba(255, 255, 255, .13); }
.foot .brandmark { color: #6cc79c; }

@media (max-width: 991.98px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin: .5rem auto 0; }
}
@media (max-width: 575.98px) {
  .hero { padding: 1.75rem 1.2rem 2.5rem; }
  .hero-facts { gap: 1.4rem; }
  .searchbar { margin: -1.8rem .6rem 0; }
  .step { padding-left: 2.6rem; }
}

/* ------------------------------------------------ kelompok jam main ------- */
.slot-group + .slot-group { margin-top: 1rem; }
.slot-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .45rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--line-soft);
}
.slot-group-head span:first-child {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.slot-group-head span:last-child { font-size: .76rem; color: var(--green); font-weight: 500; }
.slot-group-head span.full { color: var(--muted); }

/* Keterangan warna kotak jam. */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin-bottom: 1rem;
  font-size: .76rem;
  color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend .box {
  width: 13px; height: 13px;
  border-radius: 3px;
  border: 1px solid var(--line);
  display: inline-block;
}
.legend .box.free   { background: var(--card); }
.legend .box.picked { background: var(--green); border-color: var(--green); }
.legend .box.taken  { background: var(--green-soft); border-color: #c3dacd; }
.legend .box.off    { background: repeating-linear-gradient(-45deg, #f3f1ec 0 4px, #eeebe4 4px 8px); }

/* ---------------------------------------- kartu angka dengan ikon --------- */
.stat-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.stat-ic {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  flex: none;
}
.stat-foot {
  margin-top: .35rem;
  font-size: .76rem;
  color: var(--muted);
}

/* Grafik batang kecil untuk tren tujuh hari. */
.spark {
  display: flex;
  align-items: flex-end;
  gap: .3rem;
  height: 58px;
  margin-top: .85rem;
}
.spark-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: .25rem;
}
.spark-bar {
  width: 100%;
  max-width: 30px;
  background: var(--green);
  border-radius: 3px 3px 1px 1px;
  opacity: .85;
  transition: opacity .12s ease;
}
.spark-col:hover .spark-bar { opacity: 1; }
.spark-col span { font-size: .66rem; color: var(--muted); line-height: 1; }
