/* =========================================================
   Apotek Agung Indonesia — gaya situs
   Warna diambil dari logo. Ubah warna HANYA di :root.
   ========================================================= */
:root {
  /* Merek */
  --navy: #1E377C;        /* tulisan logo — warna utama */
  --navy-900: #14275C;    /* navy gelap — judul, footer */
  --blue: #1A57A2;        /* badan simbol "A" — warna kedua */
  --cyan: #1BB4E6;        /* ujung simbol "A" — aksen (jangan untuk teks di atas putih) */
  --sky: #EAF6FD;         /* latar bagian */
  --gradient: linear-gradient(120deg, var(--navy-900) 0%, var(--blue) 55%, var(--cyan) 100%);

  /* Netral */
  --bg: #FFFFFF;
  --bg-soft: #F5F9FC;
  --text: #334155;
  --muted: #5B6B82;
  --border: #DCE6F2;

  /* Fungsional */
  --wa: #15803D;          /* hijau WhatsApp versi gelap agar teks putih terbaca */
  --wa-hover: #166534;
  --open: #15803D;
  --closed: #B42318;
  --todo: #F59E0B;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgb(20 39 92 / 6%), 0 4px 12px rgb(20 39 92 / 6%);
  --shadow: 0 18px 40px -16px rgb(20 39 92 / 35%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; color: var(--navy-900); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1200px, 100% - 48px); } }

.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: 16px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; }
.skip-link:focus { top: 12px; }

.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }

/* Penanda isi yang masih contoh — hapus kelas "todo" setelah diisi data asli */
.todo { outline: 2px dashed var(--todo); outline-offset: 3px; border-radius: 6px; }
.sample-note {
  background: #FFF7E6; color: #7A4B00; font-size: 14px; text-align: center; padding: 8px 16px;
  border-bottom: 1px solid #F7D9A0;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-arrow { padding: 6px 6px 6px 22px; }
.btn-arrow .arrow {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--navy); transition: transform .2s var(--ease);
}
.btn-arrow:hover .arrow { transform: rotate(45deg); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light .arrow { background: var(--gradient); color: #fff; }
.btn-light:hover { background: var(--sky); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue); background: var(--bg-soft); }
.btn-block { width: 100%; }
.btn-pending { background: var(--bg-soft); color: var(--muted); border: 1px dashed var(--border); cursor: default; white-space: normal; text-align: center; }
.pending-text { color: var(--muted); font-size: 13px; font-style: italic; }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sky); color: var(--navy); border: 0; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--navy); color: #fff; }
.icon-btn-wa { background: #E7F6EC; color: var(--wa); }
.icon-btn-wa:hover { background: var(--wa); color: #fff; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 92%); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 16px; }
.nav-pill { display: flex; gap: 2px; padding: 5px; border: 1px solid var(--border); border-radius: 999px; background: #fff; justify-self: start; }
.nav-pill a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-pill a:hover { background: var(--bg-soft); color: var(--navy); }
.nav-pill a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav-pill a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.brand { justify-self: center; display: block; }
.brand img { height: 52px; width: auto; }
.header-cta { justify-self: end; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }
.mobile-nav { border-top: 1px solid var(--border); background: #fff; padding: 8px 0 16px; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 4px; color: var(--navy-900); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--bg-soft); }

@media (max-width: 1099px) {
  :root { --header-h: 68px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-pill { display: none; }
  .brand { justify-self: start; grid-row: 1; }
  .brand img { height: 40px; }
  .nav-toggle { display: grid; }
  .header-cta .btn-label { display: none; }
  .header-cta .btn-arrow { padding: 6px; }
}
@media (min-width: 1100px) { .mobile-nav { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: 12px; }
.hero-frame {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl); background: var(--navy-900);
  min-height: min(660px, calc(100svh - var(--header-h) - 28px));
  display: flex; align-items: flex-end;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-frame::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(20 39 92 / 92%) 0%, rgb(20 39 92 / 72%) 42%, rgb(20 39 92 / 18%) 75%, rgb(20 39 92 / 5%) 100%),
    linear-gradient(0deg, rgb(20 39 92 / 55%) 0%, transparent 45%);
}
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 400px); gap: 40px; align-items: end; padding: 48px; }
.hero-copy { color: #fff; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 700; letter-spacing: -.035em; margin: 20px 0 16px; max-width: 12ch; }
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgb(255 255 255 / 88%); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: rgb(255 255 255 / 92%); }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .ic { color: var(--cyan); width: 18px; height: 18px; }

/* Kotak pencari cabang */
.finder { background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow); color: var(--text); }
.finder-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--navy-900); }
.finder-title .ic { color: var(--blue); }
.finder-sub { font-size: 14px; color: var(--muted); margin: 4px 0 16px; }
.finder .btn-primary { width: 100%; }
.or { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; font-size: 13px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.select, .input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: #fff;
  font-size: 16px; color: var(--navy-900);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231E377C' stroke-width='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: 40px; }
.select:focus, .input:focus { border-color: var(--blue); outline: 3px solid rgb(27 180 230 / 35%); outline-offset: 0; }
.finder-msg { font-size: 13px; color: var(--muted); margin-top: 12px; }
.finder-msg:empty { display: none; }
.finder-results { list-style: none; margin: 8px 0 0; padding: 0; }
.fr-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.fr-item:first-child { border-top: 0; }
.fr-name { font-weight: 700; color: var(--navy-900); font-size: 15px; line-height: 1.3; }
.fr-meta { font-size: 13px; color: var(--muted); }
.fr-actions { display: flex; gap: 8px; }
.finder-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--navy); text-decoration: none; min-height: 32px; }
.finder-all:hover { text-decoration: underline; }

@media (max-width: 899px) {
  .hero-frame { min-height: 0; display: block; }
  .hero-frame::after { background: linear-gradient(180deg, rgb(20 39 92 / 55%) 0%, rgb(20 39 92 / 85%) 55%, rgb(20 39 92 / 96%) 100%); }
  /* Di HP: judul lalu langsung pencari cabang, tanpa perlu scroll */
  .hero-grid { grid-template-columns: 1fr; padding: 20px 16px 20px; gap: 16px; }
  .hero-copy { display: contents; }
  .hero h1 { order: 2; margin: 0; font-size: clamp(2rem, 8.5vw, 2.6rem); max-width: none; }
  .hero-lead { display: none; }
  .finder { order: 3; padding: 18px; }
  .hero-actions { order: 4; margin-top: 4px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .trust-row { order: 5; margin-top: 0; }
}
@media (max-width: 1099px) {
  .header-cta .btn-arrow { display: none; }
}

/* Status buka/tutup (warna + teks, tidak hanya warna) */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status.is-open { color: var(--open); }
.status.is-closed { color: var(--closed); }

/* ---------- Statistik ---------- */
.stats {
  margin-top: 24px; border-radius: var(--radius-xl); padding: 44px 24px; color: #fff;
  background:
    radial-gradient(600px 240px at 85% 0%, rgb(255 255 255 / 16%), transparent 70%),
    radial-gradient(500px 260px at 0% 100%, rgb(27 180 230 / 30%), transparent 70%),
    var(--gradient);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { text-align: center; padding: 8px 16px; }
.stat + .stat { border-left: 1px solid rgb(255 255 255 / 25%); }
.stat strong { display: block; font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 15px; color: rgb(255 255 255 / 90%); }
@media (max-width: 767px) {
  .stats { grid-template-columns: 1fr 1fr; padding: 28px 12px; row-gap: 20px; }
  .stat:nth-child(3) { border-left: 0; }
}

/* ---------- Bagian umum ---------- */
.section { padding: 96px 0; }
@media (max-width: 767px) { .section { padding: 64px 0; } }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section-head h2, .h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; color: var(--navy); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* ---------- Layanan ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.service:hover { border-color: #B9D3EC; transform: translateY(-2px); }
.service-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--sky); color: var(--navy); margin-bottom: 20px; }
.service-ic .ic { width: 26px; height: 26px; }
.service h3 { font-size: 19px; font-weight: 600; color: var(--navy); }
.service p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.service-badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 16px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3;
}
.service-badge .ic { width: 16px; height: 16px; }
@media (max-width: 1023px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .services { grid-template-columns: 1fr; } }

/* ---------- Mengapa / Tentang ---------- */
.why { background: var(--sky); border-radius: var(--radius-xl); padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why-copy > p { margin-top: 16px; color: var(--text); font-size: 17px; max-width: 52ch; }
.accordion { margin: 28px 0; display: grid; gap: 10px; }
.acc { border-radius: 16px; background: #fff; border: 1px solid var(--border); overflow: hidden; transition: background-color .25s var(--ease); }
.acc summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 14px 18px; font-weight: 600; color: var(--navy-900); cursor: pointer;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { transition: transform .25s var(--ease); }
.acc[open] { background: var(--gradient); border-color: transparent; }
.acc[open] summary { color: #fff; }
.acc[open] summary .ic { transform: rotate(180deg); }
.acc-body { padding: 0 18px 18px; color: rgb(255 255 255 / 92%); font-size: 15px; }
.acc-body ul { margin: 0; padding-left: 18px; }
.why-media { position: relative; }
.why-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius-lg); background: var(--gradient); }
.float-card {
  position: absolute; left: -24px; bottom: 28px; display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); max-width: 300px;
}
.float-card .service-ic { margin: 0; width: 48px; height: 48px; flex: none; }
.float-card strong { display: block; color: var(--navy-900); font-size: 15px; line-height: 1.3; }
.float-card span { font-size: 13px; color: var(--muted); }
@media (max-width: 899px) {
  .why { grid-template-columns: 1fr; padding: 32px 20px; gap: 32px; }
  .why-media img { aspect-ratio: 4 / 3; }
  .float-card { left: 12px; bottom: 12px; right: 12px; max-width: none; }
}

/* ---------- Kartu cabang ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--navy);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.branch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1099px) { .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .branch-grid { grid-template-columns: 1fr; } }
.branch-card {
  display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.bc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.dist { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--blue); }
.branch-card h3 { font-size: 18px; font-weight: 700; color: var(--navy-900); margin-top: 12px; }
.bc-city { font-size: 14px; color: var(--muted); margin-top: 2px; }
.bc-info { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.bc-info li { display: flex; gap: 10px; align-items: flex-start; }
.bc-info .ic { width: 18px; height: 18px; color: var(--blue); margin-top: 2px; }
.tz { font-size: 12px; color: var(--muted); }
.bc-actions { margin-top: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }
.bc-actions .btn { padding: 0 12px; font-size: 14px; gap: 8px; }
.bc-actions .btn .ic { width: 18px; height: 18px; }
.center { text-align: center; margin-top: 36px; }
.soon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-top: 24px; padding: 12px 16px; border-radius: var(--radius); background: var(--sky); font-size: 14px; color: var(--navy-900); }
.soon-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.soon-label .ic { width: 18px; height: 18px; }
.soon-tag { padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-weight: 600; }
.section-head .soon { margin-top: 16px; }
.page-head .soon { justify-content: flex-start; margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 16px 20px; font-weight: 600; color: var(--navy-900); cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--blue); transition: transform .25s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; color: var(--text); }

/* ---------- Ajakan & footer ---------- */
.cta-band {
  border-radius: var(--radius-xl); padding: 48px; color: #fff; background: var(--gradient);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; }
.cta-band p { margin-top: 8px; color: rgb(255 255 255 / 88%); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 767px) { .cta-band { padding: 32px 20px; } .cta-band .actions .btn { flex: 1 1 auto; } }

.site-footer { background: var(--navy-900); color: rgb(255 255 255 / 80%); margin-top: 96px; padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 52px; width: auto; }
.site-footer h3 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: rgb(255 255 255 / 85%); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { margin-top: 16px; font-size: 14px; line-height: 1.7; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 15%); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } .site-footer { margin-top: 64px; } }

/* ---------- Tombol WhatsApp melayang ---------- */
.fab-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px;
  border-radius: 999px; border: 0; background: var(--wa); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 28px -8px rgb(21 128 61 / 55%);
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.fab-wa:hover { background: var(--wa-hover); }
.fab-wa:active { transform: scale(.97); }
.fab-wa .ic { width: 24px; height: 24px; }
@media (max-width: 639px) {
  .fab-wa { width: 60px; height: 60px; padding: 0; justify-content: center; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .fab-wa .fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body { padding-bottom: 88px; }
}

/* ---------- Dialog pilih cabang ---------- */
.sheet {
  border: 0; padding: 0; border-radius: 24px; width: min(520px, 100% - 32px); max-height: min(82vh, 760px);
  box-shadow: 0 30px 80px -20px rgb(20 39 92 / 50%); color: var(--text);
}
.sheet::backdrop { background: rgb(20 39 92 / 45%); backdrop-filter: blur(3px); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .22s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.sheet-head { padding: 20px 20px 12px; border-bottom: 1px solid var(--border); }
.sheet-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head h2 { font-size: 20px; }
.sheet-head p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.sheet-tools { display: grid; gap: 8px; margin-top: 14px; }
.input-wrap { position: relative; }
.input-wrap .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-wrap .input { padding-left: 42px; }
.sheet-msg { font-size: 13px; color: var(--muted); }
.sheet-msg:empty { display: none; }
.wa-list { list-style: none; margin: 0; padding: 8px 12px 16px; overflow-y: auto; overscroll-behavior: contain; }
.wa-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 14px;
  text-decoration: none; color: inherit; min-height: 64px; transition: background-color .15s var(--ease);
}
.wa-row:hover { background: var(--bg-soft); }
.wa-row.is-pending:hover { background: none; }
.wa-row.is-pending .pending-text { flex: none; }
.wa-row-info { display: grid; gap: 2px; }
.wa-row-name { font-weight: 700; color: var(--navy-900); }
.wa-row-meta { font-size: 13px; color: var(--muted); }
.wa-row-go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #E7F6EC; color: var(--wa); flex: none; }
.empty-sm { padding: 24px 12px; text-align: center; color: var(--muted); }
@media (max-width: 639px) {
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 88vh; }
}

/* ---------- Halaman Semua Cabang ---------- */
.page-head { padding: 48px 0 24px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); font-weight: 600; }
.page-head p { margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 60ch; }
.filters {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto auto; gap: 12px; align-items: end;
  padding: 16px; border-radius: var(--radius-lg); background: var(--sky);
}
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 12px; background: #fff; border: 1px solid var(--border); font-weight: 600; color: var(--navy-900); cursor: pointer; white-space: nowrap; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); }
.dir-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0 16px; font-size: 14px; color: var(--muted); }
.dir-meta .warn { color: var(--closed); }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; border: 1px dashed var(--border); border-radius: var(--radius-lg); display: grid; gap: 16px; justify-items: center; }
@media (max-width: 899px) { .filters { grid-template-columns: 1fr 1fr; } .filters .field-q { grid-column: 1 / -1; } }
@media (max-width: 479px) { .filters { grid-template-columns: 1fr; } .filters .field-q { grid-column: auto; } }

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