/* ═══════════════════════════════════════════════════════════════════════════
   HSN DESIGN SYSTEM (gaya Kloola/Clodeo, biru HSN) — FILE BERSAMA
   Sumber: hsn-studio-pricelist app/globals.css (LIVE 10/11/2026, lihat pricelist.hsnstudio.id/design-system).
   File ini SAMA di semua repo HSN & Hasanah. Ubah di folder REPO HASAN/_hsn-design-system lalu salin ulang,
   jangan diedit di satu repo saja. Butuh font Catamaran sebagai --font-sans (next/font atau Google Fonts).
   ═══════════════════════════════════════════════════════════════════════════ */

/* Price List HSN Studio.
   TEMA CLODEO/KLOOLA (2026-11-10): latar abu sangat muda, kartu putih bergaris tipis + bayangan halus, huruf
   Catamaran, tombol biru HSN bergradien, aksen chip hijau-kuning (Volt). Bagian gelap navy tidak dipakai lagi
   di halaman utama. Riwayat palet sebelumnya:
   Palet 3 warna, pola 60-30-10 (2026-11-10): Soft Blue = dasar (latar, panel), Midnight Navy = pendukung
   (teks, bagian gelap, kartu unggulan), biru HSN = PRIMARY (semua tombol Booking, teks sorotan), Coral = aksen
   kecil (badge "Paling dipilih", ikon centang, panah link). Coral murni hanya untuk latar/ikon;
   teks coral di atas latar terang memakai --accent-text (AA). Teks sorotan (label, kata "frame") = biru HSN --brand.
   Bahasa desain awal sama dengan www.hsnstudio.id: kertas gading, tinta pekat, serif
   besar untuk judul, Inter untuk teks, foto bersudut bulat. Bedanya, halaman ini
   punya satu tugas: harga harus terbaca jelas, booking harus mudah. Angka harga
   memakai serif besar supaya terasa mahal tanpa kehilangan keterbacaan. */

:root {
  /* ══ FOUNDATION 1 · Skala warna (primitif). Komponen TIDAK memakai ini langsung, pakai token semantik di bawah. ══ */
  /* Biru HSN (logo) = primary. Struktur skala sama dengan Ultramarine Clodeo, warnanya tetap biru HSN
     (keputusan user 2026-11-10: "biru nya tetep biru hsn aja, gak beda jauh"). */
  --blue-50: #f0f5fc; /* latar tint */
  --blue-100: #dbe7f8;
  --blue-200: #b8cff1;
  --blue-300: #80a8e6;
  --blue-400: #3f7ce0; /* awal gradien tombol */
  --blue-500: #1a66e0; /* tengah gradien, teks putih 5,2:1 */
  --blue-600: #0152cc; /* BIRU HSN: link, terpilih, teks biru. Putih 6,8:1 */
  --blue-700: #0144a8; /* akhir gradien */
  --blue-800: #013a8f;
  --blue-900: #012a68;
  /* Midnight Navy = pendukung (30%) */
  --navy-50: #f0f2f4;
  --navy-100: #dbe1e4;
  --navy-200: #b4c3cc;
  --navy-300: #8197a5;
  --navy-400: #4a6577; /* teks redup, AA 5,6:1 di atas --bg */
  --navy-500: #1f4560;
  --navy-600: #0b3a57;
  --navy-700: #002941; /* MIDNIGHT NAVY, 13,8:1 di atas --bg */
  --navy-800: #001f33;
  --navy-900: #001a2b;
  /* Soft Blue = dasar (60%) */
  --sky-50: #eef6fa;
  --sky-100: #d6ebf3;
  --sky-200: #c3e2ee;
  --sky-300: #b6dfed; /* SOFT BLUE */
  --sky-400: #9db8c8; /* teks redup di atas navy, 7,3:1 */
  /* Coral = aksen kecil (10%) */
  --coral-50: #fff3f2;
  --coral-100: #ffe2df;
  --coral-200: #ffc5c0;
  --coral-300: #ff8579;
  --coral-400: #ff6e61; /* CORAL: ikon, panah, cahaya. Jangan untuk teks kecil */
  --coral-500: #e8564b;
  --coral-600: #d14336; /* latar chip dengan teks putih, 4,6:1 */
  --coral-700: #b8352c; /* ikon/teks coral di latar terang, AA 5,4:1 */
  --coral-800: #81251f;
  /* Neutral (Cadet gaya Clodeo) = latar, garis, teks */
  --gray-25: #fbfbfc;
  --gray-50: #f7f8fa; /* latar halaman */
  --gray-100: #f0f1f3; /* wadah tab, panel */
  --gray-200: #e4e6ea; /* garis kartu */
  --gray-300: #cfd1d6;
  --gray-400: #9a9ca1;
  --gray-500: #74767b;
  --gray-600: #58595b; /* teks redup Kloola, AA 6,6:1 di atas gray-50 */
  --gray-700: #3a3b3e;
  --gray-900: #1b2124; /* teks utama (Primary Grey Clodeo), 15,3:1 */
  /* Peach (kartu paket "Bronze" Kloola) */
  --peach-50: #fff1e8;
  --peach-100: #faecdf;
  --peach-300: #f6b98a;
  --peach-500: #ec8a46; /* lingkaran dekor */
  --peach-700: #a94f0c; /* judul kartu, AA di atas peach-50 */
  /* Volt (aksen chip Clodeo/Kloola): hanya latar chip + garis, teks memakai --volt-ink */
  --volt-50: #f8fce3; /* kapsul luar ("Platinum") */
  --volt-100: #ecf8b8;
  --volt-300: #d2f843; /* chip dalam ("14 hari tersisa") */
  --volt-500: #b8cd3a; /* garis kapsul */
  --volt-600: #a8b82c; /* ikon bulat */
  --volt-ink: #3c6100; /* teks di atas volt, 5,9:1 */
  /* Status (hanya untuk arti, bukan dekorasi) */
  --green-50: #e9f3ec;
  --green-700: #1d6b3a;
  --amber-50: #fff4f0; /* alert Kloola */
  --amber-700: #a94f0c;
  --red-50: #fbe9e7;
  --red-700: #b3261e;

  /* ══ Token semantik (yang dipakai komponen) ══ */
  /* Dasar: netral terang gaya Clodeo */
  --bg: var(--gray-50);
  --surface: var(--gray-100);
  --surface-2: var(--gray-200); /* hover di atas --surface */
  --soft: var(--blue-100);
  --white: #ffffff;
  --card-line: var(--gray-200);
  /* Teks */
  --ink: var(--gray-900);
  --ink-2: var(--gray-700);
  --muted: var(--gray-600);
  --line: var(--gray-200);
  /* Gelap: hanya lightbox foto & sampul halaman design system */
  --dark: var(--navy-700);
  --dark-2: var(--navy-600);
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.8);
  --on-dark-line: rgba(255, 255, 255, 0.22);
  /* Primary: biru HSN */
  --brand: var(--blue-600);
  --brand-hover: var(--blue-700);
  --brand-pressed: var(--blue-800);
  --brand-bright: var(--blue-500);
  --brand-light: var(--blue-200);
  --brand-tint: rgba(1, 82, 204, 0.08); /* latar hover lembut untuk elemen biru */
  /* Aksen ikon (centang, panah) = biru; aksen chip = Volt */
  --accent: var(--brand);
  --accent-hover: var(--brand-hover);
  --accent-strong: var(--brand);
  --accent-deep: var(--coral-600);
  --accent-text: var(--brand);
  /* Status */
  --success: var(--green-700);
  --success-bg: var(--green-50);
  --warning: var(--amber-700);
  --warning-bg: var(--amber-50);
  --danger: var(--red-700);
  --danger-bg: var(--red-50);
  --info-bg: var(--blue-50);
  /* State bersama */
  --disabled-bg: var(--gray-100);
  --disabled-ink: var(--gray-400);
  --ring: 0 0 0 4px rgba(1, 82, 204, 0.2); /* cincin fokus input */

  /* ══ FOUNDATION 2 · Tipografi ══
     Cormorant Garamond (serif) = judul & angka harga. Inter (sans) = semua teks lain. */
  --sans: var(--font-sans), 'Catamaran', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: var(--sans); /* nama lama: judul kini Catamaran tebal, bukan serif */
  --fw-head: 700; /* tebal judul */
  --fw-num: 600; /* tebal angka harga */
  --fs-display: clamp(44px, 5.6vw, 80px); /* judul hero */
  --fs-h1: clamp(32px, 4vw, 52px); /* judul bagian */
  --fs-h2: clamp(30px, 3.4vw, 44px); /* nama kategori */
  --fs-price: clamp(34px, 3.2vw, 42px); /* angka harga */
  --fs-h3: clamp(18px, 1.6vw, 21px); /* pertanyaan FAQ, subjudul */
  --fs-lead: clamp(17px, 1.4vw, 20px); /* paragraf pembuka */
  --fs-body: 17px;
  --fs-ui: 15px; /* label, tombol kecil, isi kartu */
  --fs-small: 14px;
  --fs-caption: 13px;
  --fs-micro: 12px;

  /* ══ FOUNDATION 3 · Spacing (kelipatan 4) & grid ══ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-14: 56px;
  --space-20: 80px;
  --gutter: clamp(20px, 4vw, 56px); /* jarak tepi layar */
  --section: clamp(80px, 10vw, 144px); /* jarak atas-bawah bagian */
  --max: 1200px; /* lebar konten maksimum */

  /* ══ FOUNDATION 4 · Radius ══ */
  --r-sm: 8px; /* input, alert (gaya Clodeo) */
  --r-seg: 12px; /* wadah tab & pilihan Ya/Tidak */
  --r-md: 16px; /* foto kecil, ringkasan */
  --r-lg: 16px; /* kartu (gaya Kloola), foto besar */
  --r-xl: 28px; /* modal */
  --r-btn: 8px; /* tombol (Kloola: 6 px di ukuran kecil) */
  --r-pill: 999px; /* tab, chip, badge */

  /* ══ FOUNDATION 5 · Bayangan (elevation) ══ */
  --shadow-sel: 0 1px 2px rgba(16, 24, 40, 0.08), 0 6px 14px -6px rgba(1, 82, 204, 0.35); /* tab/pilihan terpilih */
  --shadow-btn: 0 6px 16px -8px rgba(1, 82, 204, 0.55); /* tombol biru diam: pendar biru tipis */
  --shadow-primary: 0 12px 26px -10px rgba(1, 82, 204, 0.6); /* hover tombol biru */
  --shadow-panel: 0 24px 48px -20px rgba(1, 82, 204, 0.55); /* panel/kartu gradien biru */
  --btn-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22); /* = Gradient/Outline Kloola */
  /* Gradien tombol primary: terang (kiri) -> pekat (kanan). Titik paling terang tetap 5,2:1 dengan teks putih. */
  --grad-primary: linear-gradient(100deg, var(--blue-500) 0%, var(--blue-600) 50%, var(--blue-700) 100%);
  --grad-primary-hover: linear-gradient(100deg, var(--blue-500) 0%, var(--blue-700) 60%, var(--blue-800) 100%);
  --grad-primary-pressed: linear-gradient(100deg, var(--blue-700) 0%, var(--blue-800) 60%, var(--blue-900) 100%);
  --shadow-badge: 0 4px 12px -5px rgba(150, 180, 20, 0.6); /* badge & chip Volt */
  --shadow-rest: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 28px -14px rgba(16, 24, 40, 0.18); /* kartu diam (Kloola) */
  --shadow-card: 0 2px 6px rgba(16, 24, 40, 0.06), 0 22px 44px -16px rgba(16, 24, 40, 0.26); /* hover kartu: terangkat */
  --shadow-modal: 0 40px 80px -30px rgba(16, 24, 40, 0.45); /* modal */

  /* ══ FOUNDATION 6 · Gerak ══ */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.2s; /* input, warna link */
  --dur: 0.3s; /* tombol, tab */
  --dur-slow: 0.5s; /* kartu, panel */

  --nav-h: 56px;
  --cta-h: 0px; /* tinggi bar CTA bawah di ponsel */
}

:where(a) {
  color: inherit;
}

/* ── DESIGN SYSTEM: aturan state (contoh lengkap di /design-system) ──
   Hover    = satu tingkat lebih pekat (biru -> --brand-hover, netral -> --surface-2).
   Pressed  = --brand-pressed + mengecil 0,97.
   Fokus    = garis biru 2px berjarak 3px (keyboard saja); di atas navy biru terang.
   Terpilih = (tab, pilihan Ya/Tidak) biru primary + teks putih, sama dengan tombol utama.
   Disabled = latar --disabled-bg + teks --disabled-ink, tanpa bayangan, kursor not-allowed.
   Loading  = [aria-busy=true]: warna varian tetap, sedikit pudar, kursor progress.
   Kelas .is-hover/.is-pressed/.is-focus/.is-disabled hanya untuk memamerkan state di /design-system. */

:where(a, button, input, select, textarea, summary):focus-visible,
:where(a, button, summary).is-focus {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

:where(.pkg-featured, .contact-panel, .addons, .lb) :where(a, button, summary):focus-visible {
  outline-color: var(--brand-light);
}

::selection {
  background: var(--blue-100);
}

.ic {
  width: 1em;
  height: 1em;
  flex: none;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ── Tipografi ── */

.label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--brand);
  margin-bottom: 14px;
}

.label-on-dark {
  color: var(--on-dark-muted);
}

/* ── Tombol & tautan ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-btn);
  font: 500 16px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.btn:active,
.btn.is-pressed {
  transform: scale(0.97);
}

.btn:disabled:not([aria-busy='true']),
.btn.is-disabled {
  color: var(--disabled-ink);
  background: var(--disabled-bg);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.btn[aria-busy='true'] {
  opacity: 0.72;
  transform: none;
  cursor: progress;
}

.btn-dark {
  color: var(--white);
  background: var(--ink);
}

.btn-dark:hover:not(:disabled),
.btn-dark.is-hover {
  background: var(--dark-2);
}

.btn-dark:active:not(:disabled),
.btn-dark.is-pressed {
  background: #000000;
}

/* Primary = biru HSN bergradien: semua aksi utama (Booking). */

.btn-primary {
  color: var(--white);
  background: var(--grad-primary);
  box-shadow: var(--btn-edge), var(--shadow-btn);
}

.btn-primary:hover:not(:disabled),
.btn-primary.is-hover {
  background: var(--grad-primary-hover);
  box-shadow: var(--btn-edge), var(--shadow-primary);
}

.btn-primary:active:not(:disabled),
.btn-primary.is-pressed {
  background: var(--grad-primary-pressed);
  box-shadow: none;
}

.btn-light {
  color: var(--ink);
  background: var(--white);
}

.btn-light:hover:not(:disabled),
.btn-light.is-hover {
  background: var(--surface);
}

/* Sekunder gaya Kloola: putih, garis biru muda, teks biru HSN. */

.btn-line {
  color: var(--brand);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--blue-200);
}

.btn-line:hover:not(:disabled),
.btn-line.is-hover {
  color: var(--blue-700);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue-400);
}

.btn-line:active:not(:disabled),
.btn-line.is-pressed {
  color: var(--brand);
  background: rgba(1, 82, 204, 0.14);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.btn-sm {
  min-height: 42px;
  padding: 0 20px;
  font-size: 15px;
}

.btn-xs {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 17px;
}

/* Tombol ikon saja: persegi, lebar = tinggi. Wajib aria-label. */

.btn-icon {
  width: 48px;
  padding: 0;
}

.btn-sm.btn-icon {
  width: 42px;
}

.btn-xs.btn-icon {
  width: 34px;
}

.btn-lg.btn-icon {
  width: 56px;
}

.btn-block {
  width: 100%;
}

.btn .ic {
  font-size: 18px;
}

.chev-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-block: 8px;
  border: 0;
  background: none;
  font: 500 16px/1.3 var(--sans);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.chev-link::after {
  content: '›';
  color: var(--accent-text);
  font-size: 1.35em;
  line-height: 0.8;
  transition: transform 0.3s var(--ease);
}

.chev-link:hover,
.chev-link.is-hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.chev-link:hover::after,
.chev-link.is-hover::after {
  transform: translateX(3px);
}

.chev-on-dark {
  color: var(--white);
}

.chev-on-dark::after {
  color: var(--volt-300);
}

.chev-on-dark:hover {
  color: var(--white);
}

/* Di atas panel gradien biru, tombol utama dibalik: putih dengan teks biru. */

.contact-panel .btn-primary {
  color: var(--brand);
  background: var(--white);
}

.contact-panel .btn-primary:hover:not(:disabled) {
  color: var(--blue-700);
  background: var(--blue-50);
}

/* Chip/badge gaya Clodeo: kapsul, latar warna muda + garis & teks sewarna. Statis (tidak bisa diklik). */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--ink-2);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--gray-200);
}

.chip-brand {
  color: var(--blue-700);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue-200);
}

.chip-success {
  color: var(--success);
  background: var(--success-bg);
  box-shadow: inset 0 0 0 1px rgba(29, 107, 58, 0.3);
}

.chip-warning {
  color: var(--warning);
  background: var(--warning-bg);
  box-shadow: inset 0 0 0 1px #ffdbbd;
}

.chip-danger {
  color: var(--danger);
  background: var(--danger-bg);
  box-shadow: inset 0 0 0 1px rgba(179, 38, 30, 0.3);
}

/* Varian titik di depan label */

.chip-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chip-sm {
  padding: 3px 9px;
  font-size: 12px;
}

/* Alert gaya Clodeo: ikon + judul tebal + pesan, latar muda + garis sewarna. */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 1.45;
}

.alert .ic {
  flex: none;
  margin-top: 2px;
  font-size: 16px;
}

.alert strong {
  font-weight: 600;
}

.alert-info {
  color: var(--blue-800);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue-200);
}

.alert-success {
  color: var(--success);
  background: var(--success-bg);
  box-shadow: inset 0 0 0 1px rgba(29, 107, 58, 0.35);
}

.alert-warning {
  color: var(--warning);
  background: var(--warning-bg);
  box-shadow: inset 0 0 0 1px #ffdbbd;
}

.alert-error {
  color: var(--danger);
  background: var(--danger-bg);
  box-shadow: inset 0 0 0 1px rgba(179, 38, 30, 0.35);
}

.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--gray-200);
}

/* Pita highlight Volt gaya Kloola ("Total Order : Rp150.000"): hanya untuk angka paling penting. */

.hl-band {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  width: min(100%, 420px);
  padding: 11px 16px;
  border-radius: 10px;
  background: linear-gradient(90deg, #edf7b0 0%, #f5fbd6 45%, rgba(248, 252, 227, 0) 100%);
}

.hl-label {
  font-size: 15px;
  color: var(--muted);
}

.hl-sep {
  color: var(--muted);
}

.hl-value {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Chip "Paling dipilih" gaya chip Volt Kloola: kapsul hijau-kuning muda, garis zaitun, ikon bulat, teks tebal. */

.pkg-badge,
.chip-volt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px 5px 7px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--volt-ink);
  background: var(--volt-50);
  box-shadow: inset 0 0 0 1.5px var(--volt-500), var(--shadow-badge);
}

.pkg-badge {
  padding-right: 12px;
}

.pkg-badge::before,
.chip-volt::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--volt-50) 0 2.5px, var(--volt-600) 3px);
}

.field-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.field-label .req {
  color: var(--danger);
}

.field-label .hint {
  font-weight: 400;
  color: var(--muted);
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--r-sm);
  font: 400 16px/1.3 var(--sans); /* 16px menahan iOS Safari dari auto zoom */
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--gray-300);
  transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

select.input {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a6577' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

textarea.input {
  resize: vertical;
}

.input::placeholder {
  color: var(--gray-400);
}

.input:hover:not(:disabled),
.input.is-hover {
  box-shadow: inset 0 0 0 1px var(--gray-400);
}

.input:focus,
.input.is-focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--brand), var(--ring);
}

.input[aria-invalid='true'] {
  box-shadow: inset 0 0 0 1.5px var(--danger);
}

.input[aria-invalid='true']:focus {
  box-shadow: inset 0 0 0 1.5px var(--danger), 0 0 0 4px rgba(179, 38, 30, 0.16);
}

.input:disabled {
  color: var(--disabled-ink);
  background-color: var(--disabled-bg);
  box-shadow: none;
  cursor: not-allowed;
}

/* Teks bantuan & error gaya Clodeo: diawali ikon bulat kecil. */

.field-help,
.field-error {
  position: relative;
  margin-top: 6px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.field-help::before,
.field-error::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.field-error {
  font-weight: 500;
  color: var(--danger);
}

.choice {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-seg);
  background: var(--surface);
}

.choice button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  font: 500 15px/1 var(--sans);
  color: var(--ink-2);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.2s var(--ease);
}

.choice button:hover,
.choice button.is-hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.choice button:active {
  transform: scale(0.97);
}

.choice button[aria-pressed='true'] {
  font-weight: 600;
  color: var(--brand);
  background: var(--white);
  box-shadow: var(--shadow-sel);
}

/* Chip Volt di dalam kapsul Volt ("14 hari tersisa") */

.chip-volt-in {
  color: var(--volt-ink);
  background: var(--volt-300);
  box-shadow: none;
}

.chip-volt .chip {
  margin-left: 2px;
}

/* ── Kartu tier gaya Kloola (generik) ── pakai: <div class="pkg-tier tier-platinum">…</div>
   Dekor wordmark "hsn." butuh file /brand/hsn-word-mask.png di folder public. */
.pkg-tier {
  --tier-from: var(--blue-50);
  --tier-to: #f8fafe;
  --tier-shape: var(--brand);
  --tier-title: var(--brand);
  --tier-line: var(--blue-100);
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--tier-from) 0%, var(--tier-to) 62%, #fdfdff 100%);
  box-shadow: inset 0 0 0 1px var(--tier-line), var(--shadow-rest);
}
.pkg-tier::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -30px;
  width: clamp(160px, 54%, 224px);
  aspect-ratio: 503 / 251;
  background: var(--tier-shape);
  -webkit-mask: url('/brand/hsn-word-mask.png') no-repeat center / contain;
  mask: url('/brand/hsn-word-mask.png') no-repeat center / contain;
  pointer-events: none;
}
.pkg-tier > * {
  position: relative;
}
.tier-trial { --tier-from: #f3efeb; --tier-to: #f8f7f5; --tier-shape: #c3b8ae; --tier-title: #8a7666; --tier-line: #ebe5df; }
.tier-bronze { --tier-from: var(--peach-100); --tier-to: #fff6f0; --tier-shape: #e39256; --tier-title: var(--peach-700); --tier-line: #f6dcc6; }
.tier-silver { --tier-from: #eef0f4; --tier-to: #f7f8fa; --tier-shape: #abafc0; --tier-title: #5f6478; --tier-line: #e2e4ea; }
.tier-gold { --tier-from: #fcefd6; --tier-to: #fdf7ec; --tier-shape: #e8b558; --tier-title: #8a5a00; --tier-line: #f5e2bb; }
.tier-platinum { --tier-from: var(--blue-50); --tier-to: #f8fafe; --tier-shape: var(--brand); --tier-title: var(--brand); --tier-line: var(--blue-100); }

/* ── Kartu putih standar & panel ajakan (gradien biru) ── */
.ds-card {
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--card-line), var(--shadow-rest);
}
.ds-panel-blue {
  color: var(--on-dark);
  box-shadow: var(--shadow-panel);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.14) 0 180px, transparent 181px),
    radial-gradient(circle at 0% 100%, rgba(212, 239, 90, 0.18) 0 140px, transparent 141px),
    var(--grad-primary);
}
.ds-panel-blue .btn-primary {
  color: var(--brand);
  background: var(--white);
}

/* ── Tab segmen generik (gaya Clodeo) ── <div class="seg" role="tablist"><button class="seg-item" aria-selected="true">Semua <span class="tab-count">5</span></button>… */
.seg {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border-radius: var(--r-seg);
  background: var(--surface);
  scrollbar-width: none;
}
.seg::-webkit-scrollbar {
  display: none;
}
.seg-item {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  font: 500 14px/1 var(--sans);
  color: var(--ink-2);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.seg-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}
.seg-item[aria-selected='true'],
.seg-item[aria-current='page'],
.seg-item.is-active {
  font-weight: 600;
  color: var(--brand);
  background: var(--white);
  box-shadow: var(--shadow-sel);
}
.seg-item[aria-selected='true'] .tab-count,
.seg-item[aria-current='page'] .tab-count,
.seg-item.is-active .tab-count {
  color: var(--brand);
  background: var(--volt-300);
}

/* ── Nomor langkah (gaya chip angka Kloola: Volt + biru) ── <span class="num-badge">01</span>
   Varian .num-badge-blue = bulat gradien biru + angka putih, untuk kartu yang sudah punya pita Volt. */
.num-badge {
  display: inline-grid;
  flex: none;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  font: 700 14px/1 var(--sans);
  letter-spacing: 0;
  color: var(--brand);
  background: linear-gradient(140deg, #eefaa8 0%, #dcf55e 55%, #c6e636 100%);
  box-shadow: inset 0 0 0 1px rgba(168, 184, 44, 0.4), var(--shadow-badge);
}
.num-badge-blue {
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--grad-primary);
  box-shadow: var(--btn-edge), 0 6px 14px -6px rgba(1, 82, 204, 0.6);
}

/* ── Sorotan judul ──
   <em> di judul = kata kunci biru (seperti "Feel the frame."). .hl-mark = coretan stabilo Volt di bawah teks
   (sapuan stabilo di tengah-bawah huruf, memudar ke kanan, senada pita "Total Order" Kloola) untuk angka/kalimat paling penting, maksimal satu per bagian. */
:is(h1, h2, h3) em,
.text-grad {
  font-style: normal;
  color: var(--brand); /* cadangan kalau background-clip tidak didukung */
  background: linear-gradient(100deg, var(--blue-500) 0%, var(--blue-600) 45%, var(--blue-800) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl-mark {
  padding-inline: 0.08em;
  /* Sapuan stabilo: pita setinggi ±55% huruf di bagian tengah-bawah, memudar ke kanan. Tidak menabrak baris lain. */
  background: linear-gradient(90deg, #d8f064 0%, #e4f598 50%, rgba(234, 247, 178, 0.35) 100%) no-repeat 0 46% / 100% 0.48em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ds-panel-blue :is(h1, h2, h3) em,
.contact-panel :is(h1, h2, h3) em {
  color: var(--volt-300);
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* ── Menu navigasi (gaya tab Kloola "Perlu Dikirim") ── <nav class="nav-links"><a aria-current="page">…
   Aktif = teks biru tebal + garis biru 3px di tepi bawah navbar (tinggi navbar 56px). Halaman satu-layar (pricelist)
   memberi aria-current="true" lewat scroll-spy pada bagian yang sedang dilihat. */
.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 8px;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover {
  color: var(--brand);
}
.nav-links a[aria-current='page'],
.nav-links a[aria-current='true'] {
  font-weight: 700;
  color: var(--brand);
}
.nav-links a[aria-current='page']::after,
.nav-links a[aria-current='true']::after {
  transform: scaleX(1);
}

/* ── Komponen baru 11/11/2026 (dari audit hsn.Snap) ── */

/* Tombol sekunder di atas panel gradien biru atau foto gelap: kaca putih bergaris.
   Pasangan tombol utama putih (.ds-panel-blue .btn-primary). <a class="btn btn-on-blue">Instagram</a> */
.btn-on-blue {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.btn-on-blue:hover:not(:disabled),
.btn-on-blue.is-hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px var(--white);
}

/* Eyebrow = label kecil di atas judul memakai .chip-volt (bukan huruf kapital berjarak).
   Satu aksen Volt per bagian. <p class="chip-volt eyebrow">Hubungi kami</p> */
.eyebrow {
  width: fit-content;
  padding-right: 12px;
  line-height: 1.2;
}

/* Chip rating Google: logo G + bintang + nilai + jumlah ulasan. Radius 8 (bukan kapsul).
   <a class="rating-chip"><span class="rating-g">G</span><span class="rating-stars">★★★★★</span><strong>5,0</strong><span>dari 5 ulasan Google</span></a> */
.rating-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  width: fit-content;
  min-height: 40px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--r-btn);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow-rest);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.rating-chip:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-card);
}
.rating-chip strong {
  font-weight: 700;
}
.rating-g {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
}
.rating-stars {
  font-size: 16px;
  letter-spacing: 1px;
  color: #f5b301;
}
.rating-chip-on-blue {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}
a.rating-chip-on-blue:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Kartu foto galeri: putih, garis tipis, radius 16, foto radius 10. Hover = garis biru muda + bayangan kartu. */
.photo-card {
  display: block;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-rest);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--surface);
}
.photo-card:hover,
.photo-card.is-hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-card);
}

/* Kartu gradien gelap (referensi Goorita/Shipdeo, 11/11/2026): biru HSN pekat → navy, sudut 24,
   cahaya biru di pojok. Untuk ajakan penting di halaman terang. Isi: .chip-volt eyebrow, judul putih
   dengan kata kunci <em> Volt, .check-list, tombol .btn-volt (utama) + .btn-on-blue (kedua).
   <section class="panel-deep">…</section> */
.panel-deep {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(63, 124, 224, 0.42), transparent 62%),
    linear-gradient(140deg, #1747c9 0%, #0b2f8f 46%, #071c57 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 24px 60px -24px rgba(7, 28, 87, 0.55);
}
.panel-deep :is(h1, h2, h3) {
  color: var(--white);
}
.panel-deep :is(h1, h2, h3) em {
  font-style: normal;
  color: var(--volt-300);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.panel-deep .chev-link {
  color: var(--white);
}
.panel-deep .chev-link::after {
  color: var(--volt-300);
}

/* Tombol Volt: aksi utama di atas kartu gradien gelap (teks gelap, kontras 13:1). */
.btn-volt {
  color: var(--ink);
  background: linear-gradient(140deg, #eefaa8 0%, #dcf55e 50%, #c6e636 100%);
  box-shadow: inset 0 0 0 1px rgba(168, 184, 44, 0.45), 0 10px 24px -12px rgba(210, 248, 67, 0.7);
}
.btn-volt:hover:not(:disabled),
.btn-volt.is-hover {
  color: var(--ink);
  background: linear-gradient(140deg, #e6f78e 0%, #d2f843 50%, #b8cd3a 100%);
}

/* Daftar centang Volt (keunggulan / isi paket). */
.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
}
.check-list li::before {
  content: "✓";
  flex: none;
  font-weight: 800;
  color: var(--brand);
}
.panel-deep .check-list li::before {
  color: var(--volt-300);
}

/* Bingkai lengkung (referensi Kloola "Component 370", 11/11/2026): atas setengah lingkaran, bawah radius 24,
   latar gradien di balik foto/ilustrasi. Varian warna: default biru, .arch-peach, .arch-light.
   <figure class="arch-frame"><img …></figure> */
.arch-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 24px 24px / 40% 40% 24px 24px;
  background: linear-gradient(180deg, #8fe3d9 0%, #6f9cf0 45%, #2c4fd1 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 18px 40px -18px rgba(7, 28, 87, 0.6);
}
.arch-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.arch-peach {
  background: linear-gradient(180deg, #f2b25c 0%, #f7d27a 55%, #fde9a8 100%);
}
.arch-light {
  background: linear-gradient(180deg, #f0f5fc 0%, #b8cff1 60%, #80a8e6 100%);
}

/* Daftar fitur bergaris (referensi Kloola): garis tipis di kiri tiap item, item aktif = kartu biru
   dengan garis Volt. <ul class="feature-list"><li class="is-on"><strong>Judul</strong><p>Isi</p></li>…</ul> */
.feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  position: relative;
  padding: 14px 18px 14px 22px;
  border-radius: 12px;
  color: var(--muted);
  transition: background-color var(--dur) var(--ease);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--card-line);
}
.feature-list strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--ink);
}
.feature-list p {
  margin: 0;
  font-size: 14px;
}
.feature-list li.is-on {
  background: var(--blue-50);
}
.feature-list li.is-on::before {
  background: var(--brand);
}
/* Di kartu gradien gelap: garis putih tipis, aktif = kartu biru + garis Volt */
.panel-deep .feature-list li {
  color: rgba(255, 255, 255, 0.78);
}
.panel-deep .feature-list li::before {
  background: rgba(255, 255, 255, 0.25);
}
.panel-deep .feature-list strong {
  color: var(--white);
}
.panel-deep .feature-list li.is-on {
  background: linear-gradient(140deg, #1a4fd6, #1338a8);
}
.panel-deep .feature-list li.is-on::before {
  background: var(--volt-300);
}

/* Chip di atas foto / panel biru / kartu gelap (11/11/2026): kaca putih, titik putih.
   Aturan satu aksen Volt per area: di latar gelap kata kunci judul sudah Volt, jadi chip TIDAK Volt.
   <p class="chip chip-on-dark eyebrow">Hubungi kami</p> */
.chip-on-dark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 8px;
  border-radius: var(--r-pill, 999px);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.chip-on-dark::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--white) 0 2.5px, rgba(255, 255, 255, 0.45) 3px);
}

/* Kartu ringkasan angka (11/11/2026, dulu hanya contoh di halaman DS): satu kartu putih, pemisah tegak,
   angka gradien. <div class="stat-card"><div><strong class="text-grad">9</strong><span>album</span></div>…</div> */
.stat-card {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  padding: 8px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--card-line), var(--shadow-rest);
}
.stat-card > div {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 20px 12px;
  text-align: center;
  color: var(--muted);
}
.stat-card > div + div {
  box-shadow: inset 1px 0 0 var(--card-line);
}
.stat-card strong {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1;
}
@media (max-width: 640px) {
  .stat-card {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-card > div + div {
    box-shadow: none;
  }
  .stat-card > div:nth-child(n + 3) {
    box-shadow: inset 0 1px 0 var(--card-line);
  }
  .stat-card > div:nth-child(even) {
    box-shadow: inset 1px 0 0 var(--card-line);
  }
  .stat-card > div:nth-child(n + 3):nth-child(even) {
    box-shadow: inset 1px 0 0 var(--card-line), inset 0 1px 0 var(--card-line);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════
   Komponen 15/11/2026, ditiru 1:1 dari Kloola Master (Figma "Alokasi Stok", node 40414-61839):
   SIDEBAR, HEADER APLIKASI (judul + aksi + akun), MODAL SPESIFIK (kepala / isi / kaki abu), POP UP KONFIRMASI
   (judul huruf besar + X, teks tengah singkat, Kembali / Ya, lanjutkan), tombol Ubah / Batalkan, kotak cari, tooltip.
   Aturan: navigasi admin = sidebar kiri; semua pop up di TENGAH; setiap aksi berdampak lewat pop up konfirmasi
   dengan teks SINGKAT (Kloola: "kurangin teks popup").
   ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════ */

:root {
  --sidenav-w: 236px;
  --appbar-h: 68px;
  --grad-cta: linear-gradient(100deg, #5468ff 0%, #2a46d8 55%, #1b33b5 100%); /* tombol utama Kloola */
}

/* ── Sidebar ── */
.sidenav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--sidenav-w);
  padding: 18px 14px 14px;
  border-top-right-radius: 44px;
  background: var(--white);
  box-shadow: 1px 0 0 var(--card-line);
  font-family: var(--sans);
}
.sidenav-brand {
  display: flex;
  justify-content: center;
  padding: 0 8px 16px;
  border-bottom: 1px solid var(--card-line);
}
.sidenav-brand img {
  display: block;
  width: auto;
  height: 34px;
}
.sidenav-scroll {
  flex: 1;
  margin: 0 -6px;
  padding: 0 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.sidenav-group {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
}
.sidenav-group + .sidenav-group {
  border-top: 1px solid var(--card-line);
}
.sidenav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.sidenav-item svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--brand);
}
.sidenav-item:hover {
  background: var(--blue-50);
}
.sidenav-item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.sidenav-item[aria-current='page'] {
  background: var(--volt-100);
  font-weight: 700;
  color: var(--brand);
}
.chip-new {
  margin-left: 4px;
  padding: 1px 9px;
  border-radius: var(--r-pill);
  background: var(--red-700);
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--white);
}
/* Menu besar bertingkat (15/11/2026): induk = item biasa + panah; sub menu tanpa ikon, menjorok, garis kiri tipis. */
.sidenav-parent svg:last-child {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--gray-500);
  transition: transform 0.15s var(--ease);
}
.sidenav-parent[aria-expanded='true'] svg:last-child {
  transform: rotate(180deg);
}
.sidenav-parent.is-current {
  font-weight: 700;
  color: var(--brand);
}
.sidenav-sub {
  display: grid;
  gap: 2px;
  margin: 2px 0 4px 21px;
  padding: 0 0 0 12px;
  list-style: none;
  border-left: 1px solid var(--card-line);
}
.sidenav-sub[hidden] {
  display: none;
}
.sidenav-sub .sidenav-item {
  min-height: 36px;
  padding: 6px 10px;
}
.sidenav-foot {
  padding-top: 10px;
  border-top: 1px solid var(--card-line);
  font-size: var(--fs-micro);
  color: var(--gray-500);
  text-align: center;
}

/* ── Header aplikasi (bar putih di atas isi): judul | aksi halaman ............ akun ▾ ── */
body.has-sidenav {
  padding: 0 40px 56px calc(var(--sidenav-w) + 40px);
}
body.has-sidenav .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  max-width: none;
  min-height: var(--appbar-h);
  margin: 0 -40px 28px;
  padding: 12px 40px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--card-line);
}
/* Judul halaman di header: teks tebal + garis tegak (pill lama di posisi pertama tampil sebagai judul) */
body.has-sidenav .topbar > .nb-pill:first-child,
.appbar-title {
  margin: 0;
  padding: 0 16px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: inset -1px 0 0 var(--gray-300);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.appbar-user {
  position: relative;
  margin-left: 4px;
}
.appbar-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 8px 4px 4px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font: inherit;
  font-size: var(--fs-small);
  color: var(--ink);
  cursor: pointer;
}
.appbar-user-btn:hover,
.appbar-user-btn[aria-expanded='true'] {
  background: var(--surface);
}
.appbar-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: var(--blue-100);
  font-weight: 800;
  color: var(--brand);
}
.appbar-user-btn svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.appbar-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--card-line), var(--shadow-card);
}
.appbar-menu[hidden] {
  display: none;
}
.appbar-menu-head {
  margin-bottom: 4px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--card-line);
}
.appbar-menu-head strong {
  display: block;
  font-size: var(--fs-small);
}
.appbar-menu-head span {
  font-size: var(--fs-caption);
  color: var(--muted);
}
.appbar-menu .sidenav-item {
  min-height: 38px;
}

/* ── HP & tablet: tombol menu kiri atas, sidebar geser dari kiri ── */
.sidenav-mobilebar,
.sidenav-backdrop {
  display: none;
}
@media (max-width: 1023px) {
  body.has-sidenav {
    padding: 0 16px 40px;
  }
  body.has-sidenav .topbar {
    margin: 0 -16px 20px;
    padding: 10px 16px 10px 68px;
  }
  .sidenav {
    transform: translateX(-102%);
    transition: transform 0.24s var(--ease-out);
  }
  body.sidenav-open .sidenav {
    transform: none;
    box-shadow: var(--shadow-modal);
  }
  .sidenav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 39;
    display: block;
    background: rgba(16, 24, 40, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease);
  }
  body.sidenav-open .sidenav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .sidenav-mobilebar {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 35;
    display: block;
  }
  .sidenav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--blue-50);
    color: var(--brand);
    cursor: pointer;
  }
  .appbar-user-btn .appbar-name,
  .appbar-user-btn svg {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sidenav,
  .sidenav-backdrop {
    transition: none;
  }
}

/* ── Tombol tambahan Kloola ── */
.btn-cta {
  background: var(--grad-cta);
  color: var(--white);
  box-shadow: 0 6px 16px -8px rgba(42, 70, 216, 0.6);
}
.btn-cta:hover {
  filter: brightness(1.06);
}
.btn-soft {
  /* "Ubah": biru muda, ikon pensil */
  background: var(--blue-100);
  color: var(--brand);
  box-shadow: none;
}
.btn-soft:hover {
  background: var(--blue-200);
}
.btn-outline-danger {
  /* "Batalkan": putih, garis & teks merah */
  background: var(--white);
  color: var(--red-700);
  box-shadow: inset 0 0 0 1px rgba(179, 38, 30, 0.45);
}
.btn-outline-danger:hover {
  background: var(--red-50);
}
.btn-danger {
  background: var(--red-700);
  color: var(--white);
  box-shadow: 0 6px 16px -8px rgba(179, 38, 30, 0.6);
}
.btn-danger:hover {
  background: #9a1f18;
}

/* ── Kotak cari berikon ── */
.ds-search {
  position: relative;
  display: block;
}
.ds-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  transform: translateY(-50%);
}
.ds-search .input {
  padding-left: 40px;
}

/* ── Tooltip putih (ikon info di judul kolom) ── */
.ds-tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--gray-400);
  font-size: 11px;
  font-weight: 800;
  color: var(--white);
  cursor: help;
}
.ds-tip > span {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--card-line), var(--shadow-card);
  font-size: var(--fs-caption);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-2);
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s, transform 0.15s;
}
.ds-tip:hover > span,
.ds-tip:focus-visible > span {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Modal tengah (pop up spesifik & bekas laci kanan) ── */
dialog.ds-modal {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  height: fit-content; /* bukan auto: dialog modal punya top/bottom 0, auto = meregang setinggi layar */
  min-height: 0;
  max-height: min(92dvh, 960px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-modal);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog.ds-modal.ds-modal-wide {
  width: min(900px, calc(100vw - 32px));
}
dialog.ds-modal::backdrop {
  background: rgba(16, 24, 40, 0.5);
}
dialog.ds-modal[open] {
  animation: ds-modal-in 0.2s var(--ease-out);
}
@keyframes ds-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
/* Struktur Kloola: kepala (judul + X) / isi / kaki abu (Batal, Simpan rata kanan) */
.ds-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  background: var(--white);
}
.ds-modal-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.ds-modal-x {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--gray-500);
  cursor: pointer;
}
.ds-modal-x:hover {
  background: var(--surface);
  color: var(--ink);
}
.ds-modal-x svg {
  width: 20px;
  height: 20px;
}
.ds-modal-body {
  padding: 4px 20px 20px;
}
.ds-modal-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background: var(--surface);
}
.ds-modal-foot .btn {
  min-width: 110px;
}
@media (max-width: 640px) {
  dialog.ds-modal,
  dialog.ds-modal.ds-modal-wide {
    width: calc(100vw - 20px);
    max-height: 94dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog.ds-modal[open] {
    animation: none;
  }
}

/* ── Pop up konfirmasi (js/confirm.js): JUDUL HURUF BESAR + X, teks tengah singkat, Kembali / Ya, lanjutkan ── */
dialog.ds-confirm-dialog {
  width: min(420px, calc(100vw - 32px));
}
.ds-confirm {
  display: grid;
  gap: 14px;
  padding: 0 24px 22px;
  text-align: center;
}
.ds-confirm .ds-modal-head {
  margin: 0 -24px;
  padding: 16px 16px 4px 24px;
}
.ds-confirm .ds-modal-head h2 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
}
.ds-confirm-art {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--brand);
}
.ds-confirm-art.is-danger {
  background: var(--red-50);
  color: var(--red-700);
}
.ds-confirm-art svg {
  width: 40px;
  height: 40px;
}
.ds-confirm-message,
.ds-confirm-question {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ink-2);
}
.ds-confirm-detail {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
}
.ds-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.ds-confirm-actions .btn {
  min-width: 132px;
}

/* Bekas laci kanan yang kini pop up tengah: kepala gaya Kloola (judul 18 px tebal, X di kanan, menempel saat gulir) */
dialog.ds-modal .drawer-inner {
  gap: 16px;
  padding: 0 20px 22px;
}
dialog.ds-modal .drawer-head,
dialog.ds-modal .bda-drawer-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -20px;
  padding: 16px 16px 12px 20px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--card-line);
}
dialog.ds-modal .drawer-title,
dialog.ds-modal .drawer-head h2,
dialog.ds-modal .bda-drawer-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
