/* =========================================================
   SiGurame — style global
   Palet diambil dari logo: navy (wordmark), teal (bingkai scan),
   biru air (ombak), slate (sisik ikan)
   ========================================================= */

:root {
  /* Warna utama */
  --navy: #1c4a72;        /* wordmark "Si", judul, teks penting */
  --ink: #15395d;         /* teks utama */
  --teal: #1a8580;        /* aksi utama, bingkai scan, status sehat */
  --teal-dark: #146b67;   /* hover tombol */
  --water: #3a96c9;       /* aksen sekunder, link */
  --slate: #6b84a6;       /* teks sekunder */
  --line: #d5e2ea;        /* garis & border */

  /* Latar */
  --bg: #f5f9fa;
  --surface: #ffffff;
  --teal-soft: #e2f1ef;
  --water-soft: #e3f0f8;

  /* Status hasil scan (dipakai di hasil.html) */
  --healthy: #1a8580;
  --sick: #c4473d;
  --sick-soft: #fbe9e7;
  --warning: #d08a1e;

  /* Tipografi */
  --font-display: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --radius-lg: 20px;
  --radius: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--water); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
}

.container {
  width: min(var(--max), 100% - 2.5rem);
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid var(--water);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--navy);
}
.brand img { width: 38px; height: auto; }
.brand b { font-weight: inherit; }
.brand span { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }
.nav-links .btn { padding: .55rem 1.2rem; font-size: .9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 5rem; }
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 1.1rem;
}
.hero p {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Visual hero: ikon logo sebagai "jendela scan" + kartu hasil contoh */
.scan-preview {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem 4rem;
  border: 1px solid var(--line);
}
.scan-preview img {
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}
.scan-line {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 3px;
  background: var(--teal);
  border-radius: 3px;
  box-shadow: 0 0 14px var(--teal);
  top: 18%;
  animation: scan 3.2s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 18%; opacity: .9; }
  50% { top: 70%; opacity: .5; }
}
.result-chip {
  position: absolute;
  left: 50%;
  bottom: -1.4rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .7rem 1.4rem .7rem .8rem;
  box-shadow: 0 10px 30px rgba(21, 57, 93, .12);
  white-space: nowrap;
}
.result-chip .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--healthy);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.result-chip strong { color: var(--healthy); font-family: var(--font-display); }
.result-chip small { color: var(--slate); display: block; line-height: 1.2; }

/* ---------- Section umum ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; margin-bottom: .6rem; }
.section-head p { color: var(--slate); }

/* ---------- Langkah (memang berurutan, jadi pakai nomor) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  list-style: none;
  counter-reset: step;
}
.steps li { counter-increment: step; padding-top: 1rem; border-top: 3px solid var(--line); }
.steps li:first-child { border-top-color: var(--teal); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--water);
  line-height: 1;
  margin-bottom: .75rem;
}
.steps h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.steps p { color: var(--slate); font-size: .95rem; }

/* ---------- Daftar penyakit ringkas ---------- */
.disease-list { list-style: none; border-top: 1px solid var(--line); }
.disease-list li {
  display: grid;
  grid-template-columns: 14rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.disease-list h3 { font-size: 1.1rem; }
.disease-list p { color: var(--slate); font-size: .95rem; }
.disease-list a { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.section-foot { margin-top: 2rem; }

/* ---------- Tips foto ---------- */
.tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.tips ul { list-style: none; display: grid; gap: 1rem; }
.tips li {
  padding-left: 1.9rem;
  position: relative;
}
.tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 12px;
  height: 12px;
  border: 3px solid var(--teal);
  border-radius: 3px;
}
.note {
  background: var(--water-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: .95rem;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: #cfdbe8;
  padding: 3rem 0 2rem;
  font-size: .9rem;
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer .brand { color: #fff; }
.footer .brand span { color: #7fd1c7; }
.footer a { color: #cfdbe8; }
.footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-copy { width: 100%; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem; }

/* ---------- Responsif ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }

  .hero { padding-top: 2.5rem; }
  .hero .container,
  .tips { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .disease-list li { grid-template-columns: 1fr; gap: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scan-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Komponen halaman lain
   ========================================================= */

/* ---------- Kepala halaman ---------- */
.page-head { padding: 3.5rem 0 2rem; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; margin-bottom: .5rem; }
.page-head p { color: var(--slate); max-width: 40em; }
.page-body { padding-bottom: 5rem; }

/* ---------- Bingkai scan (motif sudut dari logo) ---------- */
.frame {
  position: relative;
  padding: 1.25rem;
}
.frame::before,
.frame::after,
.frame > .frame-b::before,
.frame > .frame-b::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border: 5px solid var(--teal);
  pointer-events: none;
}
.frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.frame::after { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
.frame > .frame-b::before { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
.frame > .frame-b::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }

/* ---------- Halaman Scan ---------- */
.scan-layout {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 2.5rem;
  align-items: start;
}
.dropzone {
  background: var(--surface);
  border-radius: var(--radius-lg);
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  transition: background .2s;
}
.dropzone.dragover { background: var(--teal-soft); }
.dropzone h2 { font-size: 1.3rem; margin-bottom: .4rem; }
.dropzone p { color: var(--slate); margin-bottom: 1.5rem; font-size: .95rem; }
.dropzone .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.dropzone img.preview {
  max-height: 420px;
  width: auto;
  border-radius: var(--radius);
  margin-inline: auto;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.scan-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--slate); color: var(--ink); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.panel h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.panel + .panel { margin-top: 1.25rem; }
.check-list { list-style: none; display: grid; gap: .8rem; font-size: .95rem; }
.check-list li { padding-left: 1.7rem; position: relative; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: .4em;
  width: 11px; height: 11px;
  border: 3px solid var(--teal); border-radius: 3px;
}

.alert {
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  font-size: .95rem;
  margin-top: 1rem;
}
.alert-error { background: var(--sick-soft); color: var(--sick); }
.alert-info { background: var(--water-soft); color: var(--ink); }

/* Loading */
.loading {
  display: none;
  align-items: center;
  gap: .8rem;
  margin-top: 1rem;
  color: var(--slate);
  font-weight: 600;
}
.loading.show { display: flex; }
.spinner {
  width: 22px; height: 22px;
  border: 3px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Halaman Hasil ---------- */
.result-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.result-photo {
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.result-photo img { border-radius: var(--radius); margin-inline: auto; max-height: 460px; width: auto; }
.result-status {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.result-status.is-healthy { background: var(--teal-soft); }
.result-status.is-sick { background: var(--sick-soft); }
.result-status .label { font-weight: 700; font-size: .9rem; color: var(--slate); }
.result-status h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 900; margin: .2rem 0 1rem; }
.is-healthy h2 { color: var(--healthy); }
.is-sick h2 { color: var(--sick); }

.confidence { display: grid; gap: .4rem; font-size: .9rem; }
.confidence-top { display: flex; justify-content: space-between; font-weight: 700; }
.bar { height: 10px; background: rgba(255,255,255,.8); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; transition: width .8s ease; }
.is-healthy .bar span { background: var(--healthy); }
.is-sick .bar span { background: var(--sick); }

.result-block + .result-block { margin-top: 1.4rem; }
.result-block h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.result-block p, .result-block li { font-size: .95rem; }
.result-block ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.demo-badge {
  display: inline-block;
  background: #fff4e0;
  color: var(--warning);
  font-weight: 700;
  font-size: .8rem;
  padding: .25rem .7rem;
  border-radius: 99px;
  margin-bottom: .75rem;
}

/* ---------- Halaman Penyakit ---------- */
.search {
  width: 100%;
  max-width: 420px;
  padding: .8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  background: var(--surface);
  margin-bottom: 2rem;
}
.search:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.disease-index {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin-bottom: 2.5rem;
}
.disease-index a {
  display: block;
  padding: .4rem .95rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  background: var(--surface);
}
.disease-index a:hover { border-color: var(--teal); color: var(--teal); }

.disease {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.disease-name h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.disease-name p { color: var(--slate); font-size: .9rem; font-style: italic; }
.disease-name img { border-radius: var(--radius); margin-top: 1rem; }
.disease-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.disease-detail .result-block { margin: 0; }
.disease-detail .summary { grid-column: 1 / -1; font-size: 1.02rem; }

/* ---------- Halaman Riwayat ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-family: var(--font-display); color: var(--navy); font-size: .9rem; background: var(--bg); }
tr:last-child td { border-bottom: 0; }
td img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.pill {
  display: inline-block;
  padding: .2rem .75rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: .85rem;
}
.pill-healthy { background: var(--teal-soft); color: var(--healthy); }
.pill-sick { background: var(--sick-soft); color: var(--sick); }
.link-btn { background: none; border: 0; color: var(--water); font: inherit; font-weight: 700; cursor: pointer; }
.link-btn.danger { color: var(--sick); }

.empty {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.empty h2 { font-size: 1.3rem; margin-bottom: .4rem; }
.empty p { color: var(--slate); margin-bottom: 1.5rem; }

/* ---------- Halaman Login ---------- */
.auth {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}
.auth-card .brand { justify-content: center; margin-bottom: 1.5rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 99px; padding: 4px; margin-bottom: 1.75rem; }
.tabs button {
  border: 0; background: transparent; padding: .6rem; border-radius: 99px;
  font: inherit; font-weight: 700; color: var(--slate); cursor: pointer;
}
.tabs button.active { background: var(--surface); color: var(--navy); box-shadow: 0 2px 8px rgba(21,57,93,.08); }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input {
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}
.field input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: .5rem; }
.hidden { display: none !important; }

/* ---------- Halaman Tentang ---------- */
.prose { max-width: 44em; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
.prose p, .prose li { margin-bottom: .8rem; }
.prose ul { padding-left: 1.3rem; }
.spec {
  display: grid;
  grid-template-columns: 12rem 1fr;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}
.spec dt, .spec dd { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; color: var(--navy); }

/* ---------- Responsif halaman lain ---------- */
@media (max-width: 880px) {
  .scan-layout,
  .result-layout,
  .disease,
  .disease-detail { grid-template-columns: 1fr; }
  .disease { gap: 1.25rem; }
  .spec { grid-template-columns: 1fr; }
  .spec dt { border-bottom: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
  .bar span { transition: none; }
}

/* =========================================================
   Slider demo di beranda
   ========================================================= */
.slider { overflow: hidden; border-radius: var(--radius); }
.slider-track { display: flex; transition: transform .7s ease; }
.scan-preview .slider-track img {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.result-chip strong,
.result-chip .dot { transition: color .3s, background .3s; }
.result-chip.sick strong { color: var(--sick); }
.result-chip.sick .dot { background: var(--sick-soft); color: var(--sick); }

/* =========================================================
   Konsultasi lanjutan & notifikasi (pengguna)
   ========================================================= */
.muted { color: var(--slate); font-size: .9rem; }
.text-healthy { color: var(--healthy) !important; }
.text-sick { color: var(--sick) !important; }

.field textarea,
.field select {
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--surface);
  resize: vertical;
}
.field textarea:focus,
.field select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }

.konsul { margin-top: 1.25rem; border-color: var(--teal); border-width: 2px; }
.konsul h3 { font-size: 1.15rem; margin: .5rem 0 .4rem; }
.konsul p { font-size: .95rem; }
.konsul > div > p { margin-bottom: 1rem; }
.konsul form { margin-top: 1rem; }
.konsul-dl {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: .4rem 1rem;
  margin: 1rem 0;
  font-size: .95rem;
}
.konsul-dl dt { color: var(--slate); }
.konsul-dl dd { font-weight: 700; }
.validator-msg {
  white-space: pre-line;
  background: var(--bg);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  font-size: .95rem;
  margin-bottom: .75rem;
}

.pill-wait { background: #fff4e0; color: var(--warning); }
.new-tag {
  display: inline-block;
  background: var(--sick);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .1rem .5rem;
  border-radius: 99px;
  vertical-align: middle;
}
tr.row-new td { background: #fbfdf6; }
tr.row-new td:first-child { box-shadow: inset 4px 0 0 var(--teal); }

/* Badge angka di menu Riwayat */
.nav-links a { position: relative; }
.nav-badge {
  position: absolute;
  top: -.55rem;
  right: -.95rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 .3rem;
  border-radius: 99px;
  background: var(--sick);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2rem;
  text-align: center;
}

/* Toast notifikasi */
.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 1.25rem;
  box-shadow: 0 14px 40px rgba(21, 57, 93, .18);
  animation: toast-in .35s ease;
}
.toast strong { font-family: var(--font-display); color: var(--navy); }
.toast p { font-size: .9rem; color: var(--slate); }
.toast .btn { padding: .5rem 1rem; font-size: .9rem; }
.toast-close {
  background: none;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--slate);
  cursor: pointer;
}
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } }

/* =========================================================
   Halaman Validator
   ========================================================= */
.navbar-validator { border-bottom: 3px solid var(--teal); }
.brand-tag {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  padding: .2rem .6rem;
  border-radius: 99px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.stats > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.stats dt { color: var(--slate); font-size: .9rem; font-weight: 600; }
.stats dd { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--navy); line-height: 1.2; }
.stats > div:first-child dd { color: var(--warning); }

.validator-layout {
  display: grid;
  grid-template-columns: 22rem 1fr;
  gap: 1.5rem;
  align-items: start;
}
.queue .tabs { margin-bottom: 1rem; }
.queue-list { list-style: none; display: grid; gap: .6rem; max-height: 70vh; overflow-y: auto; }
.queue-item {
  width: 100%;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s;
}
.queue-item:hover { border-color: var(--slate); }
.queue-item.active { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.queue-item img { width: 64px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.queue-item span { display: grid; gap: .15rem; min-width: 0; }
.queue-item strong { font-size: .9rem; }
.queue-item small {
  font-size: .82rem;
  color: var(--slate);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-empty { padding: 1rem .25rem; }

.detail { min-height: 420px; }
.detail-empty { display: grid; place-content: center; text-align: center; min-height: 380px; }
.detail-empty h2 { font-size: 1.2rem; }
.detail-empty p { color: var(--slate); }
.detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.detail-photo img { border-radius: var(--radius); width: 100%; max-height: 320px; object-fit: contain; background: var(--bg); }
.detail .label { font-weight: 700; font-size: .85rem; color: var(--slate); margin-top: .4rem; }
.detail-top h2 { font-size: 1.5rem; margin-bottom: .75rem; }

.validasi-form { padding-top: 1.5rem; }
.validasi-form h3 { font-size: 1.15rem; margin-bottom: 1rem; }
fieldset.field { border: 0; }
fieldset.field legend { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.field-head .link-btn { font-size: .85rem; }
.field-head label { font-weight: 600; font-size: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block;
  padding: .5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
}
.chips label:nth-child(1) input:checked + span { background: var(--teal-soft); border-color: var(--healthy); color: var(--healthy); }
.chips label:nth-child(2) input:checked + span { background: #fff4e0; border-color: var(--warning); color: var(--warning); }
.chips label:nth-child(3) input:checked + span { background: var(--sick-soft); border-color: var(--sick); color: var(--sick); }
.chips input:focus-visible + span { outline: 3px solid var(--water); outline-offset: 2px; }

@media (max-width: 880px) {
  .validator-layout,
  .detail-top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .stats dd { font-size: 1.5rem; }
  .queue-list { max-height: none; }
  .nav-badge { position: static; margin-left: .4rem; display: inline-block; }
  .toast { left: 1rem; right: 1rem; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slider-track { transition: none; }
  .toast { animation: none; }
}

/* =========================================================
   Beranda (versi modern)
   ========================================================= */
:root { --navy-deep: #0f3352; }

.btn-lg { padding: 1rem 1.75rem; font-size: 1.02rem; }
.btn-light { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  padding: 4.5rem 0 7rem;
  overflow: hidden;
}
/* cahaya lembut seperti permukaan air */
.home-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(26,133,128,.35), transparent 60%);
  pointer-events: none;
}
.home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}
.home-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.06;
  margin-bottom: 1.4rem;
  max-width: 17ch;
}
.home-hero .lead {
  font-size: 1.12rem;
  color: #b8cde0;
  max-width: 34em;
  margin-bottom: 2.2rem;
}
.hero-note {
  margin-top: 2rem;
  font-size: .92rem;
  color: #8fb0cc;
  max-width: 34em;
  padding-left: 1rem;
  border-left: 3px solid var(--teal);
}
.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 70px;
  fill: var(--bg);
}

/* ---------- Mockup HP ---------- */
.phone-wrap { display: grid; justify-items: center; gap: 1.25rem; }
.phone {
  width: min(320px, 100%);
  aspect-ratio: 9 / 18;
  background: #07223a;
  border-radius: 46px;
  padding: 11px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 40px 80px rgba(0,0,0,.45);
}
.phone-screen {
  position: relative;
  height: 100%;
  background: var(--bg);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  background: #07223a;
  border-radius: 99px;
  z-index: 2;
}
.phone-top {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 2.9rem 1.2rem .6rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  font-size: .95rem;
}
.phone-top img { width: 26px; }
.phone-view {
  flex: 1;
  display: grid;
  place-items: center;
  padding: .5rem 1rem;
}
.phone-frame { width: 100%; padding: 1rem; }
.phone-frame .slider { background: #fff; }
.phone .slider-track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}
.phone .scan-line { left: 8%; right: 8%; }

/* bottom sheet hasil */
.phone-sheet {
  position: static;
  transform: none;
  display: block;
  white-space: normal;
  margin: 0 .6rem .6rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(21,57,93,.08);
}
.sheet-row { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.sheet-bar { background: var(--bg); height: 8px; }
.sheet-bar span { background: var(--healthy); transition: width .6s ease, background .3s; }
.phone-sheet.sick .sheet-bar span { background: var(--sick); }

/* indikator slide */
.slide-dots { display: flex; gap: .5rem; }
.slide-dots button {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  overflow: hidden;
}
.slide-dots button[aria-current="true"] { background: var(--teal); }

/* ---------- Section umum beranda ---------- */
.home-section { padding: 5.5rem 0; }
.home-section-white { background: var(--surface); }
.home-head { max-width: 36em; margin-bottom: 3rem; }
.home-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.015em;
  margin-bottom: .75rem;
}
.home-head p { color: var(--slate); font-size: 1.05rem; }
.home-head .btn { margin-top: 1.75rem; }

/* ---------- Langkah (berurutan) ---------- */
.home-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
}
.home-steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 26px;
  right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
}
.home-steps li { position: relative; }
.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--teal);
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.home-steps li:first-child .step-num { background: var(--teal); color: #fff; }
.home-steps h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.home-steps p { color: var(--slate); font-size: .96rem; max-width: 28em; }

/* ---------- Layout dua kolom ---------- */
.home-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.home-sticky { position: sticky; top: 100px; }

/* ---------- Daftar penyakit ---------- */
.home-diseases { list-style: none; border-top: 1px solid var(--line); }
.home-diseases .home-kondisi {
  display: block;
  padding: 1.4rem 3rem 1.4rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  position: relative;
  transition: padding-left .25s ease;
}
.home-diseases .home-kondisi::after {
  content: "";
  position: absolute;
  right: .5rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--slate);
  border-right: 2px solid var(--slate);
  transform: translateY(-50%) rotate(45deg);
  transition: border-color .25s, right .25s;
}
.home-diseases .home-kondisi:hover { padding-left: .75rem; }
.home-diseases .home-kondisi:hover::after { border-color: var(--teal); right: .1rem; }
.home-diseases h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.home-diseases .home-kondisi:hover h3 { color: var(--teal); }
.home-diseases p { color: var(--slate); font-size: .95rem; }

/* ---------- Konsultasi ---------- */
.home-konsul { align-items: center; }
.home-konsul .home-head { margin-bottom: 0; }
.home-konsul .home-head p + p { margin-top: 1rem; }
.konsul-mock {
  background: var(--surface);
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 18px 18px 0 var(--teal-soft);
  max-width: 460px;
  justify-self: end;
  width: 100%;
}
.mock-head { display: flex; align-items: center; gap: .6rem; }

/* ---------- CTA ---------- */
.home-cta { background: var(--navy-deep); color: #fff; padding: 5rem 0; }
.home-cta-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 4rem;
  align-items: center;
}
.home-cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; margin-bottom: 1.5rem; }
.cta-tips { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.cta-tips li {
  padding-left: 1.8rem;
  position: relative;
  color: #c9d9e7;
  font-size: .96rem;
}
.cta-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .4em;
  width: 12px;
  height: 12px;
  border: 3px solid var(--teal);
  border-radius: 3px;
}
.cta-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}
.cta-box p { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.cta-box small { color: #8fb0cc; }
.home-cta + .footer, main + .footer { border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- Responsif beranda ---------- */
@media (max-width: 880px) {
  .home-hero { padding: 3rem 0 6rem; }
  .home-hero-grid,
  .home-split,
  .home-cta-grid { grid-template-columns: 1fr; gap: 3rem; }
  .home-hero h1 { max-width: none; }
  .home-steps { grid-template-columns: 1fr; gap: 2rem; }
  .home-steps::before { top: 26px; bottom: 26px; left: 25px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 10px, transparent 10px 18px); }
  .home-steps li { padding-left: 4.5rem; }
  .step-num { position: absolute; left: 0; top: 0; }
  .home-sticky { position: static; }
  .konsul-mock { justify-self: stretch; box-shadow: 10px 10px 0 var(--teal-soft); }
  .cta-tips { grid-template-columns: 1fr; }
  .home-section { padding: 4rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-diseases .home-kondisi, .home-diseases .home-kondisi::after, .sheet-bar span { transition: none; }
}

/* =========================================================
   Halaman Scan (versi modern)
   ========================================================= */
.scan-hero {
  background: var(--navy-deep, #0f3352);
  color: #fff;
  padding: 3.5rem 0 7rem;
  position: relative;
  overflow: hidden;
}
.scan-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(26,133,128,.3), transparent 60%);
  pointer-events: none;
}
.scan-hero .container { position: relative; }
.scan-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
}
.scan-hero p { color: #b8cde0; max-width: 36em; }

/* Stepper (berurutan) */
.scan-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2.25rem;
  margin-top: 2rem;
  counter-reset: s;
}
.scan-steps li {
  counter-increment: s;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #8fb0cc;
  font-weight: 600;
  font-size: .95rem;
  position: relative;
}
.scan-steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: .9rem;
  transition: background .3s, border-color .3s, color .3s;
}
.scan-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1.9rem;
  width: 1.5rem;
  height: 2px;
  background: rgba(255,255,255,.2);
}
.scan-steps li.active { color: #fff; }
.scan-steps li.active::before { background: var(--teal); border-color: var(--teal); color: #fff; }
.scan-steps li.done { color: #cfe3ef; }
.scan-steps li.done::before { content: "✓"; border-color: var(--teal); color: #7fd1c7; }

/* Layout utama, naik menimpa hero */
.scan-main {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 1.75rem;
  align-items: start;
  margin-top: -4.5rem;
  padding-bottom: 5rem;
  position: relative;
}
.scan-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 1rem;
  box-shadow: 0 24px 60px rgba(15, 51, 82, .18);
}

/* Viewfinder */
.dropzone.viewfinder {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 1.5rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 45%, rgba(58,150,201,.18), transparent 60%),
    #0b2a45;
  color: #fff;
  overflow: hidden;
  transition: background .3s;
}
.viewfinder.frame::before,
.viewfinder.frame::after,
.viewfinder > .frame-b::before,
.viewfinder > .frame-b::after {
  z-index: 2;
  width: 54px;
  height: 54px;
  border-width: 5px;
  margin: 1.1rem;
}
.dropzone.viewfinder.dragover { background: #10405f; }
.dropzone.viewfinder.has-image { background: #fff; }

.vf-empty { text-align: center; display: grid; justify-items: center; }
.vf-icon { width: 58px; height: 58px; color: #7fd1c7; margin-bottom: 1rem; }
.vf-empty h2 { color: #fff; font-size: clamp(1.2rem, 2.4vw, 1.55rem); margin-bottom: .3rem; }
.vf-empty p { color: #8fb0cc; font-size: .92rem; margin-bottom: 1.6rem; }

.dropzone.viewfinder img.preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  padding: 2rem;
}

/* Animasi scan hanya saat menganalisis */
.viewfinder .scan-line { display: none; z-index: 3; left: 6%; right: 6%; }
.viewfinder.scanning .scan-line { display: block; }
.viewfinder.scanning img.preview { filter: saturate(.85); }

.vf-status {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  padding: .55rem 1.1rem;
  background: rgba(11, 42, 69, .88);
  color: #fff;
  border-radius: 99px;
  font-size: .9rem;
  white-space: nowrap;
}
.vf-status .spinner { width: 18px; height: 18px; border-color: rgba(255,255,255,.25); border-top-color: #7fd1c7; }

/* Bawah kartu */
.scan-card-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem .6rem .5rem;
}
.scan-card-foot .scan-controls { margin: 0; }
.file-info { color: var(--slate); font-size: .92rem; min-width: 0; overflow-wrap: anywhere; }
.file-info strong { color: var(--ink); margin-right: .4rem; }
.scan-card #message { padding: 0 .6rem; }

/* Panel samping */
.scan-aside .panel { border-radius: 24px; }
.scan-aside h2 { font-size: 1.05rem; margin-bottom: .8rem; }
.scan-aside .dont-title { margin-top: 1.5rem; }
.do-list, .dont-list { list-style: none; display: grid; gap: .7rem; font-size: .93rem; }
.do-list li, .dont-list li { padding-left: 1.9rem; position: relative; }
.do-list li::before, .dont-list li::before {
  position: absolute;
  left: 0;
  top: .05em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 900;
}
.do-list li::before { content: "✓"; background: var(--teal-soft); color: var(--healthy); }
.dont-list li::before { content: "✕"; background: var(--sick-soft); color: var(--sick); }
.aside-note {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--water-soft);
  border-radius: 18px;
  font-size: .92rem;
}

@media (max-width: 880px) {
  .scan-hero { padding: 2.5rem 0 6rem; }
  .scan-main { grid-template-columns: 1fr; }
  .dropzone.viewfinder { aspect-ratio: 3 / 4; }
  .scan-steps { gap: .5rem 1.75rem; }
  .scan-steps li { font-size: .88rem; }
  .scan-steps li:not(:last-child)::after { right: -1.45rem; width: 1rem; }
  .scan-card-foot .scan-controls { width: 100%; }
  .scan-card-foot .btn { flex: 1; justify-content: center; }
}
.viewfinder > .frame-b { position: absolute; inset: 0; pointer-events: none; }
@media (max-width: 480px) {
  .scan-steps { gap: .6rem 1.1rem; }
  .scan-steps li:not(:last-child)::after { display: none; }
}

/* =========================================================
   Halaman Scan interaktif (v3)
   ========================================================= */
.scan-hero { padding-bottom: 6.5rem; }

/* Tombol mode (segmented) */
.mode-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border-radius: 99px;
  padding: 5px;
  margin: .25rem .25rem 1rem;
  max-width: 340px;
}
.mode-switch button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: .65rem 1rem;
  border-radius: 99px;
  font: inherit;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: color .25s;
}
.mode-switch button.active { color: #fff; }
.mode-pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  background: var(--navy);
  border-radius: 99px;
  transition: transform .3s cubic-bezier(.3,.7,.3,1);
}
.mode-switch[data-mode="camera"] .mode-pill { transform: translateX(100%); }
.scan-card[data-state="preview"] .mode-switch,
.scan-card[data-state="scanning"] .mode-switch { opacity: .45; pointer-events: none; }

/* Panggung utama */
.stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 50%, rgba(58,150,201,.16), transparent 65%),
    #0b2a45;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .3s, transform .2s;
}
.stage > .frame-b { position: absolute; inset: 0; pointer-events: none; }
.stage.frame::before,
.stage.frame::after,
.stage > .frame-b::before,
.stage > .frame-b::after {
  z-index: 4;
  width: 46px;
  height: 46px;
  border-width: 5px;
  margin: 1rem;
  transition: margin .25s ease, border-color .25s;
}
/* sudut bergerak masuk saat hover / drag */
.stage[data-state="upload"]:hover::before,
.stage[data-state="upload"]:hover::after,
.stage[data-state="upload"]:hover > .frame-b::before,
.stage[data-state="upload"]:hover > .frame-b::after { margin: 1.5rem; border-color: #7fd1c7; }
.stage.dragover::before,
.stage.dragover::after,
.stage.dragover > .frame-b::before,
.stage.dragover > .frame-b::after { margin: 2.2rem; border-color: #7fd1c7; }
.stage.dragover { background: #10405f; }

/* Semua lapisan default tersembunyi, dibuka per state */
.upload-target, .stage video, .fish-guide, .guide-hint, .stage #preview, .scan-progress { display: none; }

.stage[data-state="upload"] .upload-target { display: grid; }
.stage[data-state="camera"] video,
.stage[data-state="camera"] .fish-guide,
.stage[data-state="camera"] .guide-hint { display: block; }
.stage[data-state="preview"] #preview,
.stage[data-state="scanning"] #preview { display: block; }
.stage[data-state="preview"],
.stage[data-state="scanning"] { background: #fff; }
.stage[data-state="scanning"] .scan-progress { display: grid; }

/* Mode unggah */
.upload-target {
  position: absolute;
  inset: 0;
  place-content: center;
  justify-items: center;
  gap: .35rem;
  text-align: center;
  padding: 2rem;
  cursor: pointer;
}
.up-icon {
  width: 60px;
  height: 60px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(127, 209, 199, .12);
  color: #7fd1c7;
  margin-bottom: .75rem;
  transition: transform .25s ease, background .25s;
}
.stage:hover .up-icon,
.stage.dragover .up-icon { transform: translateY(-4px); background: rgba(127, 209, 199, .22); }
.upload-target strong { font-family: var(--font-display); font-size: 1.35rem; }
.upload-target span { color: #b8cde0; font-size: .95rem; }
.upload-target small { color: #7f9fbb; font-size: .82rem; margin-top: .5rem; }

/* Mode kamera */
.stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fish-guide {
  position: relative;
  z-index: 2;
  width: 72%;
  color: rgba(255,255,255,.8);
  filter: drop-shadow(0 0 6px rgba(0,0,0,.4));
  animation: guide 2.4s ease-in-out infinite;
}
@keyframes guide { 50% { opacity: .55; } }
.guide-hint {
  position: absolute;
  z-index: 3;
  top: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 42, 69, .75);
  padding: .4rem .9rem;
  border-radius: 99px;
  font-size: .85rem;
  white-space: nowrap;
}
.stage.flash::after { background: #fff; }
.stage.flash { animation: flash .3s ease; }
@keyframes flash { 0% { filter: brightness(2.2); } 100% { filter: none; } }

/* Pratinjau */
.stage #preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.75rem;
  animation: pop .35s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.stage[data-state="scanning"] #preview { filter: saturate(.8) brightness(.97); }

/* Garis scan hanya saat scanning */
.stage .scan-line { display: none; z-index: 3; left: 5%; right: 5%; }
.stage[data-state="scanning"] .scan-line { display: block; animation-duration: 1.6s; }

/* Progress */
.scan-progress {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  width: min(320px, 80%);
  gap: .5rem;
  justify-items: center;
  background: rgba(11, 42, 69, .9);
  padding: .8rem 1rem;
  border-radius: 16px;
  font-size: .88rem;
  font-weight: 600;
}
.scan-progress .bar { width: 100%; height: 6px; background: rgba(255,255,255,.15); }
.scan-progress .bar span { background: #7fd1c7; width: 0; transition: width .45s ease; }

/* Kaki: tombol shutter */
.stage-foot { display: none; padding: 1.1rem .5rem .4rem; }
.scan-card[data-state="camera"] .camera-foot { display: flex; justify-content: center; }
.scan-card[data-state="preview"] .preview-foot,
.scan-card[data-state="scanning"] .preview-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.preview-foot .scan-controls { margin: 0; }
.shutter {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid var(--teal);
  background: #fff;
  padding: 5px;
  cursor: pointer;
  transition: transform .15s;
}
.shutter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--teal);
  transition: transform .15s;
}
.shutter:hover span { transform: scale(.92); }
.shutter:active { transform: scale(.92); }

/* Checklist kualitas */
.quality { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.quality li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem .35rem .45rem;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  animation: pop .3s ease;
}
.quality li::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 900;
}
.quality .checking { background: var(--bg); color: var(--slate); }
.quality .checking::before { border: 2px solid var(--line); border-top-color: var(--teal); animation: spin .7s linear infinite; }
.quality .ok { background: var(--teal-soft); color: var(--healthy); }
.quality .ok::before { content: "✓"; background: var(--healthy); color: #fff; }
.quality .warn { background: #fff4e0; color: var(--warning); }
.quality .warn::before { content: "!"; background: var(--warning); color: #fff; }

/* Getar saat file salah */
.stage.shake { animation: shake .4s ease; }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@media (max-width: 880px) {
  .stage { aspect-ratio: 3 / 4; }
  .mode-switch { max-width: none; }
  .preview-foot .scan-controls { width: 100%; }
  .preview-foot .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .fish-guide, .stage #preview, .quality li, .stage.shake, .stage.flash { animation: none; }
  .mode-pill, .stage::before, .stage::after { transition: none; }
}

/* =========================================================
   Halaman Hasil (versi modern)
   ========================================================= */
.result-empty { margin: 4rem auto; max-width: 560px; }

.result-hero {
  position: relative;
  background: var(--navy-deep, #0f3352);
  color: #fff;
  padding: 3.5rem 0 5rem;
  overflow: hidden;
}
.result-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  pointer-events: none;
  background: radial-gradient(circle, var(--hero-glow, rgba(26,133,128,.35)), transparent 60%);
}
.result-hero.is-sick { --hero-glow: rgba(196, 71, 61, .32); --accent: #ff9d92; }
.result-hero.is-healthy { --hero-glow: rgba(26, 133, 128, .4); --accent: #7fd1c7; }

.result-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.result-photo-card {
  background: #fff;
  border-radius: 28px;
  padding: 1.75rem;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  animation: pop .45s ease;
}
.result-photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 14px;
}
.result-meta { color: #8fb0cc; font-size: .92rem; margin-bottom: .6rem; }
.result-hero-text .demo-badge { margin-bottom: .9rem; }
.result-hero h1 {
  color: var(--accent, #fff);
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.result-summary { color: #c9d9e7; font-size: 1.05rem; max-width: 34em; margin-bottom: 2rem; }

/* Gauge keyakinan */
.gauge-row { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.gauge { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 10; }
.gauge-bg { stroke: rgba(255,255,255,.12); }
.gauge-fg {
  stroke: var(--accent, #7fd1c7);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(.3,.7,.3,1);
}
.gauge span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.55rem;
}
.gauge-text strong { font-family: var(--font-display); font-size: 1.1rem; }
.gauge-text p { color: #b8cde0; font-size: .93rem; max-width: 24em; }

/* Isi bawah */
.result-body {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 2rem;
  align-items: start;
  padding: 3rem 0 5rem;
}
.result-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem 1.75rem 2rem;
}
.result-tabs { display: flex; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 1.75rem; }
.result-tabs button { padding: .6rem 1.2rem; white-space: nowrap; }
.tab-panel { animation: pop .3s ease; }
.tab-panel h2 { font-size: 1.35rem; margin-bottom: .3rem; }
.tab-panel > .muted { margin-bottom: 1.25rem; }
.tab-panel p + p { margin-top: .8rem; }

/* Checklist penanganan */
.todo { list-style: none; display: grid; gap: .6rem; }
.todo label {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.todo label:hover { border-color: var(--teal); }
.todo input { position: absolute; opacity: 0; pointer-events: none; }
.todo .box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: .1rem;
  border: 2px solid var(--line);
  border-radius: 7px;
  display: grid;
  place-items: center;
  transition: background .2s, border-color .2s;
}
.todo input:checked + .box { background: var(--teal); border-color: var(--teal); }
.todo input:checked + .box::after { content: "✓"; color: #fff; font-size: .8rem; font-weight: 900; }
.todo input:checked ~ .txt { color: var(--slate); text-decoration: line-through; text-decoration-color: var(--line); }
.todo input:checked ~ .txt, .todo label:has(input:checked) { background: transparent; }
.todo label:has(input:checked) { background: var(--bg); }
.todo input:focus-visible + .box { outline: 3px solid var(--water); outline-offset: 2px; }
.todo-progress { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; font-size: .88rem; color: var(--slate); font-weight: 600; }
.todo-progress .bar { flex: 1; height: 8px; background: var(--bg); }
.todo-progress .bar span { background: var(--teal); width: 0; transition: width .4s ease; }

/* Gejala */
.symptoms { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.symptoms li {
  padding: 1rem 1.1rem 1rem 2.6rem;
  background: var(--sick-soft);
  border-radius: 14px;
  position: relative;
  font-size: .95rem;
}
.symptoms li::before {
  content: "!";
  position: absolute;
  left: .9rem;
  top: 1rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--sick);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}

/* Kartu konsultasi */
.result-side { position: sticky; top: 90px; }
.konsul-card {
  background: var(--surface);
  border: 2px solid var(--teal);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 12px 12px 0 var(--teal-soft);
}
.konsul-card h3 { font-size: 1.25rem; margin: .6rem 0 .4rem; }
.konsul-card > div > p { font-size: .95rem; margin-bottom: 1.1rem; }
.konsul-card #btn-konsul { width: 100%; justify-content: center; }
.konsul-card form { margin-top: .25rem; }
.konsul-card .field small { justify-self: end; }
.konsul-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
}
.konsul-icon svg { width: 24px; height: 24px; }
.quick-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.quick-tags button {
  border: 1px dashed var(--line);
  background: var(--bg);
  border-radius: 99px;
  padding: .35rem .8rem;
  font: inherit;
  font-size: .82rem;
  color: var(--ink);
  cursor: pointer;
}
.quick-tags button:hover { border-color: var(--teal); color: var(--teal); }
.quick-tags button.used { border-style: solid; border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.konsul-card .scan-controls .btn { flex: 1; justify-content: center; }
.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  margin-right: .45rem;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .3; } }

@media (max-width: 880px) {
  .result-hero { padding: 2rem 0 3.5rem; }
  .result-hero-grid, .result-body { grid-template-columns: 1fr; gap: 2rem; }
  .result-photo-card { max-width: 360px; margin: 0 auto; }
  .result-side { position: static; }
  .konsul-card.is-done { order: -1; }
  .result-body:has(.konsul-card.is-done) .result-side { order: -1; }
  .symptoms { grid-template-columns: 1fr; }
  .result-main { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gauge-fg, .todo-progress .bar span { transition: none; }
  .pulse, .result-photo-card, .tab-panel { animation: none; }
}
.konsul-card .scan-controls { display: grid; grid-template-columns: 1fr auto; }
.konsul-card .scan-controls .btn { white-space: nowrap; }
.result-main, .result-side { min-width: 0; }

/* =========================================================
   Halaman Penyakit (versi modern)
   ========================================================= */
.ency-hero {
  position: relative;
  background: var(--navy-deep, #0f3352);
  color: #fff;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}
.ency-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(26,133,128,.3), transparent 60%);
  pointer-events: none;
}
.ency-hero .container { position: relative; }
.ency-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: .5rem; }
.ency-hero > .container > p { color: #b8cde0; max-width: 36em; margin-bottom: 2rem; }

.ency-search {
  position: relative;
  max-width: 620px;
}
.ency-search svg {
  position: absolute;
  left: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--slate);
  pointer-events: none;
}
.ency-search input {
  width: 100%;
  padding: 1.1rem 1.4rem 1.1rem 3.4rem;
  border: 0;
  border-radius: 99px;
  font: inherit;
  font-size: 1.02rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.ency-search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(127,209,199,.5), 0 12px 30px rgba(0,0,0,.25); }

.cat-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.cat-filter button {
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #cfe0ee;
  padding: .5rem 1.1rem;
  border-radius: 99px;
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.cat-filter button span { opacity: .6; margin-left: .2rem; }
.cat-filter button:hover { border-color: #fff; color: #fff; }
.cat-filter button.active { background: #fff; color: var(--navy); border-color: #fff; }

.ency-body { padding: 2.5rem 0 5rem; }

/* Pencocok gejala */
.matcher {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}
.matcher-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.matcher h2 { font-size: 1.3rem; margin-bottom: .2rem; }
.matcher p { color: var(--slate); font-size: .93rem; }
.symptom-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.symptom-chips button {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: .45rem .9rem;
  border-radius: 99px;
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.symptom-chips button:hover { border-color: var(--teal); }
.symptom-chips button:active { transform: scale(.96); }
.symptom-chips button[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.symptom-chips button[aria-pressed="true"]::before { content: "✓ "; font-weight: 900; }

.ency-count { color: var(--slate); font-size: .92rem; font-weight: 600; margin-bottom: 1rem; }

/* Grid kartu */
.disease-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}
.d-card { animation: card-in .35s ease both; animation-delay: calc(var(--i) * 50ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.d-card-btn {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.d-card-btn:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,51,82,.12); border-color: var(--teal); }
.top-match .d-card-btn { border: 2px solid var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }

.d-photo, .drawer-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--water-soft);
  overflow: hidden;
}
.d-photo > img, .drawer-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform .4s ease;
}
.d-card-btn:hover .d-photo > img { transform: scale(1.05); }
.photo-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.photo-fallback img { width: 34%; opacity: .35; }

.d-info { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.d-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.pill-cat { background: var(--water-soft); color: var(--navy); }
.match { font-size: .8rem; font-weight: 700; color: var(--teal); }
.d-info h2 { font-size: 1.3rem; margin-bottom: .1rem; }
.d-latin { font-size: .85rem; font-style: italic; color: var(--slate); margin-bottom: .7rem; }
.d-sum {
  font-size: .93rem;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}
.d-more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--teal); }
.d-card-btn:hover .d-more { text-decoration: underline; text-underline-offset: 3px; }

/* Drawer detail */
.drawer {
  margin: 0 0 0 auto;
  height: 100%;
  max-height: 100%;
  width: min(520px, 100%);
  max-width: 100%;
  border: 0;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: -20px 0 60px rgba(0,0,0,.25);
  animation: drawer-in .3s cubic-bezier(.3,.7,.3,1);
}
.drawer::backdrop { background: rgba(11, 42, 69, .55); backdrop-filter: blur(3px); animation: fade .3s ease; }
.drawer.closing { animation: drawer-out .22s ease forwards; }
.drawer.closing::backdrop { animation: fade .22s ease reverse forwards; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }

.drawer-inner { position: relative; min-height: 100%; }
.drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.drawer-content { padding: 1.75rem 2rem 2.5rem; }
.drawer-content .pill { background: var(--water-soft); color: var(--navy); }
.drawer-content h2 { font-size: 2rem; font-weight: 900; margin: .6rem 0 .1rem; }
.drawer-latin { font-style: italic; color: var(--slate); font-size: .92rem; margin-bottom: 1rem; }
.drawer-summary { font-size: 1rem; margin-bottom: 1.5rem; }
.drawer-tabs { display: flex; overflow-x: auto; margin-bottom: 1.25rem; }
.drawer-tabs button { padding: .55rem 1rem; white-space: nowrap; font-size: .9rem; }

.drawer-list { list-style: none; display: grid; gap: .55rem; margin-bottom: 2rem; animation: pop .25s ease; }
.drawer-list li {
  padding: .85rem 1rem .85rem 2.5rem;
  border-radius: 12px;
  background: var(--bg);
  position: relative;
  font-size: .95rem;
}
.drawer-list li::before {
  position: absolute;
  left: .85rem;
  top: .85rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 900;
  color: #fff;
}
.drawer-list[data-tab="gejala"] li::before { content: "!"; background: var(--sick); }
.drawer-list[data-tab="penyebab"] li::before { content: "?"; background: var(--warning); }
.drawer-list[data-tab="pencegahan"] li::before { content: "✓"; background: var(--healthy); }
.drawer-list[data-tab="penanganan"] { counter-reset: n; }
.drawer-list[data-tab="penanganan"] li { counter-increment: n; }
.drawer-list[data-tab="penanganan"] li::before { content: counter(n); background: var(--navy); }
.drawer-list li.is-match { background: var(--teal-soft); box-shadow: inset 3px 0 0 var(--teal); }
.drawer-list li.is-match::after { content: "Kamu pilih"; float: right; font-size: .75rem; font-weight: 700; color: var(--teal); margin-left: .5rem; }

.drawer-cta {
  background: var(--navy-deep, #0f3352);
  color: #fff;
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.drawer-cta p { font-weight: 600; }

@media (max-width: 880px) {
  .ency-hero { padding: 2.5rem 0 3rem; }
  .matcher { padding: 1.25rem; }
  .drawer-content { padding: 1.5rem 1.25rem 2rem; }
  .drawer-content h2 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .d-card, .drawer, .drawer::backdrop, .drawer.closing, .drawer-list { animation: none; }
  .d-card-btn, .d-photo > img { transition: none; }
}

/* ---------- Pencocok gejala (versi ringkas) ---------- */
.matcher { padding: 0; overflow: hidden; transition: box-shadow .2s; }
.matcher.open { box-shadow: 0 14px 40px rgba(15,51,82,.08); }
.matcher-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: none;
  border: 0;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.matcher-title { flex: 1; display: grid; gap: .1rem; }
.matcher-title strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.matcher-title small { color: var(--slate); font-size: .9rem; }
.matcher-badge {
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 .45rem;
  border-radius: 99px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: grid;
  place-items: center;
}
.chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .25s;
  margin-right: .3rem;
}
.matcher.open .chev { transform: rotate(-135deg) translateY(-3px); }

.matcher-panel { border-top: 1px solid var(--line); padding: 1.4rem 1.5rem 1.25rem; animation: pop .25s ease; }
.symptom-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.symptom-group { border: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; min-width: 0; }
.symptom-group legend {
  font-weight: 700;
  font-size: .82rem;
  color: var(--slate);
  margin-bottom: .5rem;
}
.symptom-group button {
  border: 0;
  background: none;
  padding: .35rem .6rem .35rem 1.7rem;
  margin-left: -.6rem;
  border-radius: 8px;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background .15s;
}
.symptom-group button::before {
  content: "";
  position: absolute;
  left: .4rem;
  top: .55em;
  width: .85rem;
  height: .85rem;
  border: 2px solid var(--line);
  border-radius: 4px;
  transition: background .15s, border-color .15s;
}
.symptom-group button:hover { background: var(--bg); }
.symptom-group button:hover::before { border-color: var(--teal); }
.symptom-group button[aria-pressed="true"] { color: var(--teal); font-weight: 600; }
.symptom-group button[aria-pressed="true"]::before {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: inset 0 0 0 2px #fff;
}
.matcher-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 880px) {
  .symptom-groups { grid-template-columns: 1fr 1fr; }
  .matcher-toggle { padding: 1rem 1.1rem; }
  .matcher-panel { padding: 1.2rem 1.1rem; }
}
@media (max-width: 520px) {
  .symptom-groups { grid-template-columns: 1fr; gap: 1.1rem; }
  .matcher-foot .btn { flex: 1; justify-content: center; }
}

/* =========================================================
   Halaman Riwayat (versi modern)
   ========================================================= */
.btn-sm { padding: .5rem 1.05rem; font-size: .88rem; }
.btn-light-dark { background: #fff; color: var(--navy); padding: .5rem 1rem; font-size: .88rem; }
.btn-light-dark:hover { background: var(--teal-soft); }

.hist-hero {
  position: relative;
  background: var(--navy-deep, #0f3352);
  color: #fff;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}
.hist-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(26,133,128,.3), transparent 60%);
  pointer-events: none;
}
.hist-hero .container { position: relative; }
.hist-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: .5rem; }
.hist-hero p { color: #b8cde0; margin-bottom: 2rem; }

.hist-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.15);
}
.hist-stats > div { padding: 1.25rem 1.25rem 0 0; }
.hist-stats > div + div { padding-left: 1.25rem; border-left: 1px solid rgba(255,255,255,.12); }
.hist-stats dt { color: #8fb0cc; font-size: .88rem; font-weight: 600; }
.hist-stats dd { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; line-height: 1.2; }
.hist-stats > div:nth-child(2) dd { color: #7fd1c7; }
.hist-stats > div:nth-child(3) dd { color: #ff9d92; }
.hist-stats > div:nth-child(4) dd { color: #ffc56b; }

.hist-body { padding: 2.25rem 0 5rem; }

/* Toolbar */
.hist-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.seg-filter { display: flex; flex-wrap: wrap; gap: .45rem; }
.seg-filter button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: .5rem .6rem .5rem 1rem;
  border-radius: 99px;
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.seg-filter button span {
  min-width: 1.5rem;
  padding: 0 .4rem;
  border-radius: 99px;
  background: var(--bg);
  color: var(--slate);
  font-size: .78rem;
  line-height: 1.5rem;
  text-align: center;
}
.seg-filter button:hover { border-color: var(--navy); }
.seg-filter button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg-filter button.active span { background: rgba(255,255,255,.18); color: #fff; }
.seg-filter button.is-alert span { background: var(--sick); color: #fff; }

.hist-tools { display: flex; align-items: center; gap: 1.25rem; }
.hist-select {
  padding: .55rem 2.2rem .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  font: inherit;
  font-size: .9rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b84a6' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1rem center;
  appearance: none;
  -webkit-appearance: none;
  color: var(--ink);
  cursor: pointer;
}

/* Grup tanggal */
.h-group + .h-group { margin-top: 2rem; }
.h-group h2 {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-size: 1.05rem;
  margin-bottom: .8rem;
}
.h-group h2 span { font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--slate); }
.h-items { display: grid; gap: .7rem; }

/* Item */
.h-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: .8rem 1.1rem .8rem .8rem;
  transition: border-color .2s, box-shadow .2s, opacity .25s, transform .25s;
}
.h-item:hover { border-color: var(--slate); box-shadow: 0 10px 28px rgba(15,51,82,.07); }
.h-item.is-new { border-color: var(--teal); box-shadow: inset 4px 0 0 var(--teal); }
.h-item.removing { opacity: 0; transform: translateX(24px); }
.h-thumb img {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg);
}
.h-main { min-width: 0; display: grid; gap: .45rem; }
.h-top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.h-time { color: var(--slate); font-size: .85rem; font-weight: 600; }
.h-demo { font-size: .72rem; font-weight: 700; color: var(--warning); background: #fff4e0; padding: .1rem .5rem; border-radius: 99px; }
.h-conf { display: flex; align-items: center; gap: .7rem; max-width: 280px; font-size: .82rem; font-weight: 700; color: var(--slate); }
.h-conf .bar { flex: 1; height: 6px; background: var(--bg); }
.h-conf.ok .bar span { background: var(--healthy); }
.h-conf.sick .bar span { background: var(--sick); }
.h-konsul { font-size: .87rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.h-konsul.wait { color: var(--warning); font-weight: 600; }
.h-konsul.ok strong { color: var(--healthy); }
.h-konsul.sick strong { color: var(--sick); }

.h-actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--sick-soft); color: var(--sick); }

.hist-filter-empty { text-align: center; color: var(--slate); padding: 3rem 1rem; }
.hist-empty { max-width: 560px; margin: 1rem auto; }

/* Toast urungkan */
.undo-toast {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  background: var(--navy);
  border: 0;
  color: #fff;
  padding: .75rem .75rem .75rem 1.25rem;
  gap: 1.25rem;
}
.undo-toast p { color: #fff; font-size: .92rem; font-weight: 600; }

@media (max-width: 880px) {
  .hist-hero { padding: 2.5rem 0 2rem; }
  .hist-stats { grid-template-columns: 1fr 1fr; }
  .hist-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hist-stats dd { font-size: 1.8rem; }
  .hist-toolbar { flex-direction: column; align-items: stretch; }
  .seg-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; }
  .seg-filter button { flex-shrink: 0; }
  .hist-tools { justify-content: space-between; }
  .h-item { grid-template-columns: 72px 1fr; gap: .9rem; }
  .h-thumb img { width: 72px; height: 64px; }
  .h-actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: .6rem; }
  .undo-toast { left: 1rem; right: 1rem; transform: none; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .h-item { transition: none; }
}
.hist-toolbar > *, .h-group, .h-items { min-width: 0; max-width: 100%; }

/* =========================================================
   Halaman Tentang (versi modern)
   ========================================================= */
.about-hero {
  position: relative;
  background: var(--navy-deep, #0f3352);
  color: #fff;
  padding: 4rem 0;
  overflow: hidden;
}
.about-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(26,133,128,.32), transparent 60%);
  pointer-events: none;
}
.about-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.about-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.08;
  max-width: 18ch;
  margin-bottom: 1.1rem;
}
.about-hero p { color: #b8cde0; font-size: 1.08rem; max-width: 36em; }
.about-logo {
  width: 220px;
  background: #fff;
  border-radius: 36px;
  padding: 1.5rem;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  transform: rotate(4deg);
  transition: transform .4s ease;
}
.about-logo:hover { transform: rotate(0deg) scale(1.03); }

.about-section { padding: 5rem 0; }
.about-white { background: var(--surface); }
.about-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.about-prose p { font-size: 1.08rem; }
.about-prose p + p { margin-top: 1rem; color: var(--slate); }

/* Alur kerja */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.flow li {
  position: relative;
  background: var(--bg);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  transition: background .25s, transform .25s;
}
.flow li:hover { background: var(--teal-soft); transform: translateY(-4px); }
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -.85rem;
  top: 2.2rem;
  width: .7rem;
  height: .7rem;
  border-top: 2px solid var(--slate);
  border-right: 2px solid var(--slate);
  transform: rotate(45deg);
  z-index: 1;
}
.flow-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  margin-bottom: 1rem;
}
.flow li:last-child .flow-num { background: var(--teal); }
.flow h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.flow p { font-size: .9rem; color: var(--slate); }

/* Spesifikasi model */
.spec-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.spec-cards > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem;
}
.spec-cards dt { color: var(--slate); font-size: .88rem; font-weight: 600; margin-bottom: .4rem; }
.spec-cards dd { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; color: var(--navy); line-height: 1.25; }
.class-list h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.class-list ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.class-list .pill { padding: .45rem 1rem; font-size: .9rem; transition: transform .15s; }
.class-list .pill:hover { transform: translateY(-2px); }

/* Aktor */
.actors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.actors article {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg);
}
.actor-tag {
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  background: var(--teal);
  padding: .25rem .8rem;
  border-radius: 99px;
}
.actor-tag-alt { background: var(--navy); }
.actors h3 { font-size: 1.45rem; margin: .8rem 0 1.1rem; }
.actors .check-list { margin-bottom: 1.75rem; flex: 1; }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--teal); box-shadow: 0 10px 26px rgba(15,51,82,.07); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.25rem 1.15rem 1.35rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--teal);
  transition: transform .25s, background .25s;
}
.faq details[open] summary::after { content: "−"; background: var(--teal-soft); }
.faq details p { padding: 0 1.35rem 1.25rem; color: var(--slate); animation: pop .25s ease; }

/* Tim */
.team {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.team li {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .25rem;
  padding: 1.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: .6rem;
}
.team li:nth-child(even) .avatar { background: var(--teal); }
.team small { color: var(--slate); }

@media (max-width: 980px) {
  .flow { grid-template-columns: 1fr; }
  .flow li { display: grid; grid-template-columns: 40px 1fr; column-gap: 1rem; }
  .flow-num { grid-row: span 2; margin: 0; }
  .flow li:not(:last-child)::after { right: auto; left: 2.4rem; top: auto; bottom: -.75rem; transform: rotate(135deg); }
  .spec-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .about-hero { padding: 3rem 0; }
  .about-hero-grid, .about-split, .actors { grid-template-columns: 1fr; gap: 2rem; }
  .about-logo { width: 140px; border-radius: 26px; padding: 1rem; }
  .about-section { padding: 3.5rem 0; }
  .team { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .flow li, .about-logo, .class-list .pill { transition: none; }
  .faq details p { animation: none; }
}
.spec-cards > div, .about-split > * { min-width: 0; }
.spec-cards dd { overflow-wrap: anywhere; }
@media (max-width: 480px) { .spec-cards dd { font-size: 1.1rem; } }

/* ---------- Tentang: cara kerja interaktif ---------- */
.howto {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 2.5rem;
  align-items: stretch;
}
.howto-steps {
  list-style: none;
  display: grid;
  gap: .35rem;
  position: relative;
}
/* garis vertikal penghubung */
.howto-steps::before {
  content: "";
  position: absolute;
  left: 2.05rem;
  top: 1.8rem;
  bottom: 1.8rem;
  width: 2px;
  background: var(--line);
}
.howto-steps button {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: .85rem 1rem;
  border: 0;
  border-radius: 16px;
  background: transparent;
  font: inherit;
  text-align: left;
  color: var(--slate);
  cursor: pointer;
  transition: background .25s, color .25s;
}
.howto-steps button:hover { background: var(--bg); color: var(--ink); }
.hs-num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  font-family: var(--font-display);
  font-weight: 900;
  transition: background .25s, border-color .25s, color .25s;
}
.hs-title { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.howto-steps button.done .hs-num { border-color: var(--navy); color: var(--navy); }
.howto-steps button[aria-selected="true"] { background: var(--bg); color: var(--navy); }
.howto-steps button[aria-selected="true"] .hs-num {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(28, 74, 114, .12);
}

.howto-panel {
  position: relative;
  background: var(--navy-deep, #0f3352);
  color: #fff;
  border-radius: 28px;
  padding: 2.75rem 2.75rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  min-height: 340px;
}
.howto-panel::before {
  content: "";
  position: absolute;
  right: -25%;
  top: -35%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(26,133,128,.35), transparent 65%);
  pointer-events: none;
}
.howto-panel.swap .howto-icon,
.howto-panel.swap h3,
.howto-panel.swap .howto-text { animation: swap-in .4s ease both; }
.howto-panel.swap h3 { animation-delay: .05s; }
.howto-panel.swap .howto-text { animation-delay: .1s; }
@keyframes swap-in { from { opacity: 0; transform: translateY(10px); } }

.howto-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: rgba(127, 209, 199, .14);
  color: #7fd1c7;
  display: grid;
  place-items: center;
  margin-bottom: 1.75rem;
}
.howto-icon svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.howto-count { color: #8fb0cc; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
.howto-panel h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: .8rem; }
.howto-text { color: #c9d9e7; font-size: 1.05rem; line-height: 1.7; max-width: 32em; }
.howto-progress {
  position: absolute;
  left: 2.75rem;
  right: 2.75rem;
  bottom: 1.5rem;
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 3px;
  overflow: hidden;
}
.howto-progress span { display: block; height: 100%; width: 0; background: #7fd1c7; }

@media (max-width: 880px) {
  .howto { grid-template-columns: 1fr; gap: 1.25rem; }
  .howto-steps {
    display: flex;
    overflow-x: auto;
    gap: .4rem;
    padding-bottom: .25rem;
  }
  .howto-steps::before { display: none; }
  .howto-steps li { flex-shrink: 0; }
  .howto-steps button { padding: .5rem .9rem .5rem .5rem; gap: .6rem; border: 1px solid var(--line); border-radius: 99px; }
  .hs-num { width: 32px; height: 32px; font-size: .9rem; }
  .hs-title { font-size: .92rem; white-space: nowrap; }
  .howto-panel { padding: 2rem 1.5rem 2.75rem; min-height: 0; }
  .howto-progress { left: 1.5rem; right: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .howto-panel.swap .howto-icon,
  .howto-panel.swap h3,
  .howto-panel.swap .howto-text { animation: none; }
}

/* =========================================================
   Halaman Validator (versi modern)
   ========================================================= */
.val-hero {
  position: relative;
  background: var(--navy-deep, #0f3352);
  color: #fff;
  padding: 3rem 0 2.5rem;
  overflow: hidden;
}
.val-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(26,133,128,.3), transparent 60%);
  pointer-events: none;
}
.val-hero .container { position: relative; }
.val-hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.val-greet { color: #7fd1c7; font-weight: 700; margin-bottom: .2rem; }
.val-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 2.8rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: .4rem; }
.val-hero-top p:last-child { color: #b8cde0; max-width: 36em; }
.val-stats > div:nth-child(1) dd { color: #ffc56b; }
.val-stats > div:nth-child(2) dd { color: #ff9d92; }
.val-stats > div:nth-child(3) dd { color: #7fd1c7; }
.val-stats > div:nth-child(4) dd { color: #fff; }

.val-body {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0 5rem;
}
.val-body > * { min-width: 0; }

/* Antrian */
.val-queue {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1rem;
  position: sticky;
  top: 90px;
}
.val-queue-head { display: grid; gap: .75rem; margin-bottom: .75rem; }
.val-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.val-tabs span {
  display: inline-block;
  min-width: 1.4rem;
  margin-left: .3rem;
  padding: 0 .35rem;
  border-radius: 99px;
  background: var(--line);
  font-size: .78rem;
  line-height: 1.4rem;
}
.val-tabs button.active span { background: var(--navy); color: #fff; }
.val-search { position: relative; }
.val-search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--slate); }
.val-search input {
  width: 100%;
  padding: .7rem 1rem .7rem 2.6rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  font: inherit;
  font-size: .9rem;
  background: var(--bg);
}
.val-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); background: #fff; }

.val-list { list-style: none; display: grid; gap: .45rem; max-height: 62vh; overflow-y: auto; padding-right: .15rem; }
.vq-item {
  width: 100%;
  display: flex;
  gap: .85rem;
  text-align: left;
  padding: .75rem;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: background .2s, border-color .2s;
}
.vq-item:hover { background: var(--bg); }
.vq-item.active { background: var(--teal-soft); border-color: var(--teal); }
.vq-item.urgent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 3px;
  background: var(--sick);
}
.vq-item img { width: 64px; height: 56px; object-fit: cover; border-radius: 12px; flex-shrink: 0; background: var(--bg); }
.vq-main { min-width: 0; flex: 1; display: grid; gap: .3rem; }
.vq-top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.vq-top strong { font-size: .95rem; }
.vq-top small { color: var(--slate); font-size: .78rem; white-space: nowrap; }
.vq-tags { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.vq-tags .pill { font-size: .75rem; padding: .12rem .55rem; }
.vq-fix { font-size: .72rem; font-weight: 700; color: var(--warning); }
.vq-note {
  color: var(--slate);
  font-size: .82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.urgent-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--sick);
  background: var(--sick-soft);
  padding: .12rem .55rem;
  border-radius: 99px;
}
.urgent-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sick); animation: pulse 1.4s ease-in-out infinite; }
.val-empty { color: var(--slate); text-align: center; padding: 2rem 1rem; font-size: .92rem; }

/* Detail */
.val-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.75rem;
  min-height: 520px;
}
.val-detail-empty { min-height: 470px; display: grid; place-content: center; justify-items: center; text-align: center; gap: .5rem; }
.val-detail-empty h2 { font-size: 1.3rem; margin-top: .5rem; }
.val-detail-empty p { color: var(--slate); }
#detail-body.swap { animation: swap-in .35s ease both; }

.vd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.vd-user { display: flex; align-items: center; gap: .85rem; }
.vd-avatar { width: 46px; height: 46px; font-size: 1.1rem; margin: 0; }
.vd-user strong { display: block; font-size: 1.05rem; color: var(--navy); }
.vd-user small { color: var(--slate); }
.vd-time { color: var(--slate); font-size: .88rem; font-weight: 600; }

.vd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-bottom: 1.75rem; }
.vd-photo { padding: 1rem; }
.vd-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; background: var(--bg); }
.vd-tags { display: flex; gap: .4rem; min-height: 1.4rem; margin-bottom: .5rem; }
.vd-label { font-size: .82rem; font-weight: 700; color: var(--slate); margin: .9rem 0 .25rem; }
.vd-info h2 { font-size: 1.7rem; font-weight: 900; margin-bottom: .45rem; }
.vd-info .h-conf { max-width: none; }
.vd-note {
  margin: 0;
  background: var(--bg);
  border-radius: 4px 16px 16px 16px;
  padding: .9rem 1.1rem;
  font-size: .93rem;
  line-height: 1.6;
}

.vd-form { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.vd-form-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.vd-form-head h3 { font-size: 1.2rem; }
.vd-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: .5rem;
  flex-wrap: wrap;
}
.vd-submit #form-msg { flex: 1; min-width: 0; }
.vd-submit #form-msg .alert { margin: 0; }
.vd-submit .btn { padding: .85rem 1.75rem; }

@media (max-width: 980px) {
  .val-body { grid-template-columns: 1fr; }
  .val-queue { position: static; }
  .val-list { max-height: none; }
  .val-hero-top { align-items: flex-start; }
}
@media (max-width: 640px) {
  .vd-grid { grid-template-columns: 1fr; }
  .val-detail { padding: 1.25rem; }
  .vd-head { flex-direction: column; align-items: flex-start; }
  .vd-submit .btn { width: 100%; justify-content: center; }
}
@media (max-width: 980px) {
  .val-detail { min-height: 0; }
  .val-detail-empty { min-height: 0; padding: 2rem 0; }
}

/* =========================================================
   Ikon profil (menu akun) di navbar
   ========================================================= */
[hidden] { display: none !important; }
.nav-links { margin-left: auto; }
.nav-akun { position: relative; margin-left: 1.25rem; }
.avatar-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px; padding: 2px;
  border: 2px solid var(--line); border-radius: 50%;
  background: var(--surface); cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.avatar-btn:hover, .avatar-btn[aria-expanded="true"] { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.avatar-lingkar {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .02em;
  color: #fff; background: linear-gradient(135deg, var(--teal), var(--navy));
}
.avatar-lingkar.role-validator { background: linear-gradient(135deg, var(--water), var(--navy)); }
.avatar-lingkar.role-admin { background: linear-gradient(135deg, #7a68d8, #3d2f8f); }
.avatar-lingkar.besar { width: 46px; height: 46px; font-size: 1rem; }

.akun-menu {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60;
  width: 280px; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(21, 57, 93, .18);
  animation: menu-in .16s ease;
}
.akun-head {
  display: flex; gap: .8rem; align-items: center;
  padding: .75rem .75rem 1rem; margin-bottom: .35rem;
  border-bottom: 1px solid var(--line);
}
.akun-head div { min-width: 0; display: grid; gap: .1rem; }
.akun-head strong { font-family: var(--font-display); color: var(--navy); font-size: 1rem; line-height: 1.25; }
.akun-head small { color: var(--slate); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akun-role {
  justify-self: start; margin-top: .25rem;
  font-size: .7rem; font-weight: 700; padding: .1rem .55rem; border-radius: 99px;
  background: var(--teal-soft); color: var(--healthy);
}
.akun-menu a, .akun-menu button {
  display: flex; align-items: center; gap: .65rem; width: 100%;
  padding: .62rem .75rem; border: 0; border-radius: 10px;
  background: none; font: inherit; font-weight: 600; font-size: .92rem; text-align: left;
  color: var(--ink); cursor: pointer;
}
.akun-menu a svg, .akun-menu button svg { color: var(--slate); flex-shrink: 0; }
.akun-menu a:hover, .akun-menu button:hover, .akun-menu a:focus-visible, .akun-menu button:focus-visible { background: var(--bg); outline: none; }
.akun-menu a.aktif { color: var(--teal); }
.akun-menu a.aktif svg { color: var(--teal); }
.akun-menu .akun-keluar { margin-top: .35rem; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: .8rem; color: var(--sick); }
.akun-menu .akun-keluar svg { color: var(--sick); }
.akun-menu .akun-keluar:hover { background: var(--sick-soft); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 880px) {
  .nav-akun { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; margin-left: .5rem; }
  .akun-menu { right: -3.2rem; width: min(290px, calc(100vw - 2rem)); }
}

/* =========================================================
   Notifikasi (toast)
   ========================================================= */
.notif-stack {
  position: fixed; z-index: 200;
  top: calc(84px + env(safe-area-inset-top, 0px)); right: 1.25rem;
  width: min(390px, calc(100vw - 2rem));
  display: flex; flex-direction: column; gap: .65rem;
  pointer-events: none;
}
.notif {
  --warna: var(--water); --lembut: var(--water-soft);
  position: relative; overflow: hidden; pointer-events: auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: .85rem; align-items: start;
  padding: .95rem .8rem 1rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 44px rgba(21, 57, 93, .16);
  animation: notif-in .32s cubic-bezier(.2, .9, .3, 1.2);
}
.notif-sukses { --warna: var(--teal); --lembut: var(--teal-soft); }
.notif-peringatan { --warna: var(--warning); --lembut: #fff4e0; }
.notif-error { --warna: var(--sick); --lembut: var(--sick-soft); }
.notif-ikon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--lembut); color: var(--warna);
}
.notif-isi { min-width: 0; padding-top: .1rem; }
.notif-isi strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--navy); line-height: 1.3; }
.notif-isi p { margin-top: .2rem; font-size: .88rem; line-height: 1.45; color: var(--slate); }
.notif-aksi { display: inline-block; margin-top: .45rem; font-weight: 700; font-size: .88rem; color: var(--warna); }
.notif-aksi:hover { text-decoration: underline; }
.notif-tutup {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 0; border-radius: 8px; background: none; color: var(--slate); cursor: pointer;
}
.notif-tutup svg { width: 16px; height: 16px; }
.notif-tutup:hover { background: var(--bg); color: var(--ink); }
.notif-waktu {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--warna); opacity: .7; transform-origin: left;
  animation: notif-waktu linear forwards;
}
.notif.jeda .notif-waktu { animation-play-state: paused; }
.notif.keluar { animation: notif-out .22s ease forwards; }
@keyframes notif-in { from { opacity: 0; transform: translateX(24px) scale(.97); } }
@keyframes notif-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes notif-waktu { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 640px) {
  .notif-stack { top: calc(76px + env(safe-area-inset-top, 0px)); right: 1rem; left: 1rem; width: auto; }
  @keyframes notif-in { from { opacity: 0; transform: translateY(-14px); } }
  @keyframes notif-out { to { opacity: 0; transform: translateY(-14px); } }
}

/* ---------- Dialog konfirmasi ---------- */
.konfirm {
  margin: auto; padding: 0; border: 0; border-radius: 22px;
  width: min(430px, calc(100vw - 2rem));
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px rgba(15, 51, 82, .3);
  animation: konfirm-in .2s ease;
}
.konfirm::backdrop { background: rgba(15, 51, 82, .45); backdrop-filter: blur(2px); }
.konfirm form { padding: 1.75rem 1.75rem 1.5rem; }
.konfirm-ikon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--water-soft); color: var(--water);
}
.konfirm-ikon.bahaya { background: var(--sick-soft); color: var(--sick); }
.konfirm-ikon svg { width: 24px; height: 24px; }
.konfirm h2 { margin: 1rem 0 .35rem; font-size: 1.3rem; }
.konfirm p { color: var(--slate); font-size: .95rem; line-height: 1.55; }
.konfirm-aksi { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.6rem; }
.konfirm-aksi .btn { padding: .7rem 1.35rem; font-size: .95rem; }
.btn-bahaya { background: var(--sick); color: #fff; }
.btn-bahaya:hover { background: #a83a31; }
@keyframes konfirm-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (max-width: 480px) {
  .konfirm-aksi { flex-direction: column-reverse; }
  .konfirm-aksi .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .notif, .notif.keluar, .akun-menu, .konfirm { animation: none; }
  .notif-waktu { display: none; }
}

/* =========================================================
   Editor daftar (item dengan tombol tambah / hapus / geser)
   ========================================================= */
.de-list { list-style: none; display: grid; gap: .6rem; }
.de-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: start;
  padding: .75rem; background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
}
.de-item:focus-within { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px var(--teal-soft); }
.de-no {
  display: grid; place-items: center; width: 26px; height: 26px; margin-top: .45rem;
  border-radius: 50%; background: #fff; border: 1px solid var(--line);
  font-size: .78rem; font-weight: 700; color: var(--slate);
}
.de-isi { display: grid; gap: .5rem; min-width: 0; }
.de-isi label { display: grid; gap: .2rem; }
.de-isi label > span { font-size: .76rem; font-weight: 700; color: var(--slate); }
.de-isi input, .de-isi textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: .55rem .75rem;
  font: inherit; font-size: .93rem; color: var(--ink); background: #fff; resize: none; line-height: 1.5;
}
.de-isi input:focus, .de-isi textarea:focus { outline: none; border-color: var(--teal); }
.de-aksi { display: flex; flex-direction: column; gap: .15rem; }
.de-aksi button {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 0; border-radius: 8px; background: none; color: var(--slate); cursor: pointer;
}
.de-aksi button:hover:not(:disabled) { background: #fff; color: var(--ink); }
.de-aksi button:disabled { opacity: .3; cursor: default; }
.de-aksi .de-hapus:hover { background: var(--sick-soft) !important; color: var(--sick) !important; }
.de-kosong { color: var(--slate); font-size: .9rem; padding: .5rem 0; }
.de-tambah {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem;
  padding: .5rem .9rem; border: 1.5px dashed var(--teal); border-radius: 99px;
  background: none; color: var(--teal); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer;
}
.de-tambah:hover { background: var(--teal-soft); border-style: solid; }

/* =========================================================
   Panel admin: dialog form penyakit
   ========================================================= */
.adm-aksi { white-space: nowrap; text-align: right; }
.adm-aksi .btn { margin-right: .5rem; }
.adm-dialog {
  margin: auto; padding: 0; border: 0; border-radius: 22px;
  width: min(860px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px rgba(15, 51, 82, .3);
}
.adm-dialog::backdrop { background: rgba(15, 51, 82, .45); backdrop-filter: blur(2px); }
.adm-dialog[open] { display: flex; flex-direction: column; animation: konfirm-in .2s ease; }
.adm-dialog form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 2rem); }
.adm-dialog-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  padding: 1.4rem 1.6rem 1rem; border-bottom: 1px solid var(--line);
}
.adm-dialog-head h2 { font-size: 1.35rem; }
.adm-dialog-head p { font-size: .9rem; margin-top: .2rem; }
.adm-dialog-body { overflow-y: auto; padding: .5rem 1.6rem 1.25rem; }
.adm-dialog-foot {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .6rem;
  padding: 1rem 1.6rem; border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 22px 22px;
}
.adm-dialog-foot #fp-msg { margin-right: auto; }
.adm-dialog-foot #fp-msg .alert { margin: 0; padding: .5rem .8rem; font-size: .88rem; }
.fp-bagian { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.fp-bagian:last-child { border-bottom: 0; }
.fp-bagian h3 { font-size: 1.02rem; margin-bottom: .8rem; }
.fp-bagian h3 .hint { font-family: var(--font-body); font-size: .8rem; font-weight: 400; color: var(--slate); }
.fp-info { font-size: .88rem; margin: -.4rem 0 .8rem; }
.fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.1rem; }
.fp-grid .fp-full { grid-column: 1 / -1; }
.fp-grid .field { margin: 0; }
.fp-label, .adm-dialog .field > label { display: block; font-weight: 700; font-size: .88rem; color: var(--navy); margin-bottom: .35rem; }
.adm-dialog .field input, .adm-dialog .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .65rem .85rem;
  font: inherit; color: var(--ink); background: #fff;
}
.adm-dialog .field input:focus, .adm-dialog .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
@media (max-width: 720px) {
  .fp-grid { grid-template-columns: 1fr; }
  .adm-dialog-head, .adm-dialog-body, .adm-dialog-foot { padding-left: 1.1rem; padding-right: 1.1rem; }
}

/* =========================================================
   Halaman Konten web
   ========================================================= */
.kt { padding-bottom: 4rem; }
.kt-atas { padding-top: 2rem; }
.kt-atas h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.kt-atas > div > p { max-width: 48em; margin-top: .35rem; }
.kt-langkah { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--navy); margin: 1.6rem 0 .75rem; font-size: .95rem; }
.kt-langkah span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: .78rem;
}
.kt-halaman { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.kt-halaman button {
  position: relative; display: flex; gap: .8rem; align-items: center; text-align: left;
  padding: 1rem 1.1rem; border: 2px solid var(--line); border-radius: 16px;
  background: var(--surface); font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.kt-halaman button:hover { border-color: var(--slate); }
.kt-halaman button[aria-selected="true"] { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.kt-h-ikon {
  display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg); color: var(--slate);
}
.kt-halaman button[aria-selected="true"] .kt-h-ikon { background: var(--teal); color: #fff; }
.kt-h-teks { display: grid; min-width: 0; }
.kt-h-teks strong { font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; }
.kt-h-teks small { color: var(--slate); font-size: .82rem; line-height: 1.35; }
.kt-h-tag {
  position: absolute; top: -.6rem; right: .8rem;
  padding: .1rem .55rem; border-radius: 99px; background: #fff4e0; color: var(--warning);
  font-size: .72rem; font-weight: 700; border: 1px solid #f3d9a8;
}

.kt-kerja { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.75rem; align-items: start; }
.kt-sec {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: .7rem; transition: border-color .2s, box-shadow .2s;
}
.kt-sec[open] { border-color: var(--teal); box-shadow: 0 10px 30px rgba(21, 57, 93, .08); }
.kt-sec.is-draf { border-color: var(--warning); }
.kt-sec summary {
  display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem;
  cursor: pointer; list-style: none;
}
.kt-sec summary::-webkit-details-marker { display: none; }
.kt-no {
  display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); color: var(--slate); font-weight: 700; font-size: .85rem;
}
.kt-sec[open] .kt-no { background: var(--teal); color: #fff; }
.kt-sec-judul { display: grid; flex: 1; min-width: 0; }
.kt-sec-judul strong { font-family: var(--font-display); color: var(--navy); font-size: 1rem; }
.kt-sec-judul small { color: var(--slate); font-size: .82rem; line-height: 1.35; }
.kt-chip { flex-shrink: 0; font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; }
.kt-chip.ubah { background: var(--teal-soft); color: var(--healthy); }
.kt-chip.draf { background: #fff4e0; color: var(--warning); }
.kt-panah { flex-shrink: 0; color: var(--slate); transition: transform .2s; }
.kt-sec[open] .kt-panah { transform: rotate(180deg); }
.kt-sec-isi { padding: .25rem 1.1rem .5rem; border-top: 1px solid var(--line); }
.kt-sec-kaki {
  display: flex; justify-content: flex-end; gap: .6rem; padding: .85rem 1.1rem;
  border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 16px 16px;
}
.kt-field { padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.kt-field:last-child { border-bottom: 0; }
.kt-field-top { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .4rem; }
.kt-field-top label { font-weight: 700; color: var(--navy); font-size: .92rem; }
.kt-reset { font-size: .8rem; white-space: nowrap; }
.kt-field > input, .kt-field > textarea, .kt-awalan input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .65rem .85rem;
  font: inherit; color: var(--ink); background: #fff; resize: vertical; line-height: 1.5;
}
.kt-field > input:focus, .kt-field > textarea:focus, .kt-awalan input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.kt-field.is-dirty > input, .kt-field.is-dirty > textarea, .kt-field.is-dirty .kt-awalan input { border-color: var(--warning); }
.kt-awalan { display: flex; align-items: stretch; }
.kt-awalan span {
  display: grid; place-items: center; padding: 0 .9rem; border: 1.5px solid var(--line); border-right: 0;
  border-radius: 12px 0 0 12px; background: var(--bg); font-weight: 700; color: var(--slate);
}
.kt-awalan input { border-radius: 0 12px 12px 0; }
.kt-hint { font-size: .8rem; color: var(--slate); margin-top: .35rem; }

.kt-kanan { position: sticky; top: 84px; }
.kt-pv-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.kt-pv-alat { display: flex; align-items: center; gap: .6rem; margin: 1.6rem 0 .75rem; }
.kt-seg { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--line); }
.kt-seg button {
  border: 0; background: none; padding: .3rem .85rem; border-radius: 99px;
  font: inherit; font-size: .82rem; font-weight: 700; color: var(--slate); cursor: pointer;
}
.kt-seg button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(21,57,93,.15); }
.kt-buka { font-size: .85rem; font-weight: 700; }
.kt-layar {
  position: relative; overflow: hidden; height: calc(100vh - 200px); min-height: 420px;
  border: 1px solid var(--line); border-radius: 16px; background: #d9e4ea;
  box-shadow: 0 14px 40px rgba(21, 57, 93, .12);
}
.kt-layar iframe { position: absolute; top: 0; border: 0; background: #fff; transform-origin: 0 0; pointer-events: auto; }
.kt-pv-catatan { font-size: .8rem; color: var(--slate); margin-top: .5rem; }
.kt-pv-layanan { margin-top: .5rem; }
.kt-pv-layanan > p { margin-bottom: .7rem; font-size: .9rem; }
.kt-kartu { background: var(--surface); border: 2px solid var(--teal); border-radius: 18px; padding: 1.4rem; }
.kt-kartu h3 { margin: .7rem 0 .6rem; }
.kt-kartu h4 { margin: 1rem 0 .4rem; color: var(--navy); font-size: .95rem; }
.kt-kartu ul { padding-left: 1.1rem; color: var(--slate); font-size: .9rem; display: grid; gap: .3rem; }

@media (max-width: 980px) {
  .kt-kerja { grid-template-columns: 1fr; }
  .kt-kanan { position: static; }
  .kt-layar { height: 70vh; }
}
@media (max-width: 720px) {
  .kt-halaman { grid-template-columns: 1fr; }
  .kt-sec-judul small { display: none; }
  .kt-chip { display: none; }
}

/* Perbaikan editor daftar & form */
.de-isi textarea { min-height: 4.4em; }
.de-satu .de-item { grid-template-columns: auto 1fr auto; align-items: center; padding: .5rem .6rem; }
.de-satu .de-no { margin-top: 0; }
.de-satu .de-aksi { flex-direction: row; }
.fp-grid.fp-tumpuk { grid-template-columns: 1fr; gap: 1.1rem; }
@media (max-width: 640px) {
  .kt-sec-kaki .btn { flex: 1; justify-content: center; }
  .de-satu .de-item { grid-template-columns: auto 1fr; }
  .de-satu .de-aksi { grid-column: 2; justify-content: flex-end; }
}

/* =========================================================
   Panduan interaktif (tur) untuk pengguna
   ========================================================= */
.pd-layer { position: fixed; inset: 0; z-index: 190; animation: pd-masuk .25s ease; }
.pd-layer.keluar { animation: pd-keluar .2s ease forwards; }
.pd-layer.tanpa-sorot, .pd-layer.mode-sambutan { background: rgba(10, 32, 54, .62); backdrop-filter: blur(3px); }
.pd-sorot {
  position: fixed; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .95), 0 0 0 9999px rgba(10, 32, 54, .62);
  transition: top .35s cubic-bezier(.3, .9, .3, 1), left .35s cubic-bezier(.3, .9, .3, 1),
              width .35s cubic-bezier(.3, .9, .3, 1), height .35s cubic-bezier(.3, .9, .3, 1), opacity .2s;
}
.pd-sorot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 18px;
  border: 3px solid #7fd1c7; animation: pd-denyut 1.8s ease-out infinite;
}
.pd-kartu {
  position: fixed; width: min(370px, calc(100vw - 32px));
  padding: 1.15rem 1.2rem 1.05rem; border-radius: 20px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 60px rgba(10, 32, 54, .35);
  transition: top .35s cubic-bezier(.3, .9, .3, 1), left .35s cubic-bezier(.3, .9, .3, 1);
  animation: pd-pop .3s cubic-bezier(.2, .9, .3, 1.2);
}
.pd-kartu.pd-tengah, .pd-kartu.pd-sambutan { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); transition: none; }
.pd-atas { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.pd-titik { display: flex; gap: .3rem; }
.pd-titik span { width: 18px; height: 5px; border-radius: 99px; background: var(--line); transition: background .3s, width .3s; }
.pd-titik span.isi { background: var(--teal); }
.pd-hitung { font-size: .78rem; font-weight: 700; color: var(--slate); }
.pd-x {
  margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px;
  border: 0; border-radius: 8px; background: none; color: var(--slate); cursor: pointer;
}
.pd-x:hover { background: var(--bg); color: var(--ink); }
.pd-isi { display: flex; gap: .9rem; align-items: flex-start; }
.pd-ikon {
  display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff;
  box-shadow: 0 8px 18px rgba(26, 133, 128, .3);
}
.pd-isi h3 { font-size: 1.1rem; line-height: 1.25; margin-bottom: .3rem; }
.pd-isi p { font-size: .92rem; line-height: 1.55; color: var(--slate); }
.pd-aksi { display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem; }
.pd-lewati {
  margin-right: auto; border: 0; background: none; padding: .3rem 0;
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--slate); cursor: pointer;
}
.pd-lewati:hover { color: var(--ink); text-decoration: underline; }

/* Kartu sambutan */
.pd-kartu.pd-sambutan { width: min(580px, calc(100vw - 32px)); padding: 2rem 1.75rem 1.6rem; text-align: center; }
.pd-sambutan-atas img { width: 64px; margin: 0 auto .8rem; }
.pd-sambutan-atas h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
.pd-sambutan-atas p { color: var(--slate); margin-top: .4rem; }
.pd-alur { list-style: none; counter-reset: alur; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.5rem 0 1.6rem; }
.pd-alur li {
  position: relative; counter-increment: alur; display: grid; justify-items: center; gap: .2rem;
  padding: 1.1rem .7rem .95rem; border: 1px solid var(--line); border-radius: 16px; background: var(--bg);
}
.pd-alur li::before {
  content: counter(alur); position: absolute; top: -.65rem; left: 50%; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: .75rem; font-weight: 700; line-height: 22px;
}
.pd-alur-ikon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: .35rem;
  background: var(--teal-soft); color: var(--teal);
}
.pd-alur strong { font-family: var(--font-display); color: var(--navy); font-size: .98rem; }
.pd-alur small { color: var(--slate); font-size: .8rem; line-height: 1.35; }
.pd-aksi-tengah { justify-content: center; }
.pd-aksi-tengah .btn { padding: .75rem 1.4rem; }

/* Tombol bantuan melayang */
.pd-bantuan {
  position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 150;
  display: flex; align-items: center; gap: 0; height: 52px; padding: 0 16px 0 0;
  border: 0; border-radius: 99px; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff;
  box-shadow: 0 12px 30px rgba(21, 57, 93, .3);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.pd-bantuan span {
  display: grid; place-items: center; width: 52px; height: 52px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.4rem;
}
.pd-bantuan em {
  font-style: normal; font-weight: 700; font-size: .92rem; white-space: nowrap;
  max-width: 0; opacity: 0; transition: max-width .25s ease, opacity .2s;
}
.pd-bantuan:hover, .pd-bantuan:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(21, 57, 93, .38); }
.pd-bantuan:hover em, .pd-bantuan:focus-visible em { max-width: 90px; opacity: 1; }
.pd-bantuan:not(:hover):not(:focus-visible) { padding-right: 0; }
body.pd-buka .pd-bantuan, body:has(.undo-toast:not(.hidden)) .pd-bantuan { opacity: 0; pointer-events: none; }

@keyframes pd-masuk { from { opacity: 0; } }
@keyframes pd-keluar { to { opacity: 0; } }
@keyframes pd-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes pd-denyut { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08); } }
.pd-kartu.pd-tengah, .pd-kartu.pd-sambutan { animation-name: pd-pop-tengah; }
@keyframes pd-pop-tengah { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }

@media (max-width: 640px) {
  .pd-kartu:not(.pd-tengah):not(.pd-sambutan) { top: auto !important; left: 12px !important; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; }
  .pd-alur { grid-template-columns: 1fr; gap: .9rem; text-align: left; }
  .pd-alur li { grid-template-columns: auto 1fr; justify-items: start; column-gap: .8rem; align-items: center; padding: .8rem; }
  .pd-alur li::before { left: -.4rem; top: -.4rem; transform: none; }
  .pd-alur-ikon { grid-row: span 2; margin: 0; }
  .pd-kartu.pd-sambutan { padding: 1.5rem 1.2rem 1.2rem; max-height: calc(100vh - 32px); overflow-y: auto; }
  .pd-aksi-tengah { flex-direction: column-reverse; }
  .pd-aksi-tengah .btn { width: 100%; justify-content: center; }
  .pd-bantuan { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .pd-layer, .pd-kartu, .pd-sorot::after { animation: none; }
  .pd-sorot, .pd-kartu { transition: none; }
}
@media (max-width: 640px) {
  .pd-kartu, .pd-sorot { transition: none; }
  .pd-alur li::before { display: none; }
}

/* =========================================================
   Validator: form jawaban 3 langkah
   ========================================================= */
.vd-photo { position: relative; display: block; width: 100%; border: 0; cursor: zoom-in; font: inherit; background: none; }
.vd-zoom {
  position: absolute; right: 1.6rem; bottom: 1.6rem; display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 99px; background: rgba(15, 51, 82, .78); color: #fff;
  font-size: .78rem; font-weight: 700; opacity: .85; transition: opacity .2s;
}
.vd-photo:hover .vd-zoom { opacity: 1; }
.vd-lightbox { margin: auto; padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); overflow: visible; }
.vd-lightbox::backdrop { background: rgba(8, 20, 34, .85); }
.vd-lightbox img { max-height: 86vh; width: auto; max-width: 100%; border-radius: 14px; }
.vd-lightbox-x {
  position: absolute; top: -.9rem; right: -.9rem; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #fff; color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

.vd-form-judul { font-size: 1.25rem; margin-bottom: .4rem; }
.vd-step { border: 0; padding: 1.1rem 0; margin: 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.vd-step-judul {
  display: flex; align-items: center; gap: .55rem; padding: 0; margin-bottom: .75rem;
  font-weight: 700; color: var(--navy); font-size: .98rem;
}
.vd-step-judul span {
  display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: .78rem;
}
.vd-step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.vd-step-head .link-btn { font-size: .85rem; }

.vd-pilih2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.vd-opsi {
  display: flex; align-items: center; gap: .75rem; text-align: left;
  padding: .9rem 1rem; border: 2px solid var(--line); border-radius: 14px;
  background: var(--surface); font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.vd-opsi svg { flex-shrink: 0; color: var(--slate); }
.vd-opsi span { display: grid; min-width: 0; }
.vd-opsi strong { font-family: var(--font-display); color: var(--navy); font-size: .98rem; }
.vd-opsi small { color: var(--slate); font-size: .82rem; }
.vd-opsi:hover { border-color: var(--slate); }
.vd-opsi.ya[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 3px var(--teal-soft); }
.vd-opsi.ya[aria-pressed="true"] svg { color: var(--teal); }
.vd-opsi.tidak[aria-pressed="true"] { border-color: var(--warning); background: #fff8ec; box-shadow: 0 0 0 3px #fdecd0; }
.vd-opsi.tidak[aria-pressed="true"] svg { color: var(--warning); }

.vd-koreksi { margin-top: .9rem; padding: .9rem; border-radius: 14px; background: var(--bg); animation: menu-in .18s ease; }
.vd-sub { font-size: .86rem; font-weight: 700; color: var(--slate); margin-bottom: .55rem; }
.vd-diag { display: flex; flex-wrap: wrap; gap: .45rem; }
.vd-diag button {
  padding: .45rem .9rem; border: 1.5px solid var(--line); border-radius: 99px; background: #fff;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.vd-diag button:hover { border-color: var(--slate); }
.vd-diag button[aria-checked="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }

.vd-parah { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.vd-parah label { position: relative; cursor: pointer; }
.vd-parah input { position: absolute; opacity: 0; pointer-events: none; }
.vd-parah span {
  display: grid; gap: .1rem; height: 100%; padding: .75rem .85rem;
  border: 2px solid var(--line); border-radius: 14px; background: var(--surface); transition: all .15s;
}
.vd-parah strong { font-family: var(--font-display); font-size: .95rem; }
.vd-parah small { color: var(--slate); font-size: .8rem; line-height: 1.35; }
.vd-parah label:hover span { border-color: var(--slate); }
.vd-parah .ringan strong { color: var(--healthy); }
.vd-parah .sedang strong { color: var(--warning); }
.vd-parah .berat strong { color: var(--sick); }
.vd-parah .ringan input:checked + span { border-color: var(--healthy); background: var(--teal-soft); }
.vd-parah .sedang input:checked + span { border-color: var(--warning); background: #fff4e0; }
.vd-parah .berat input:checked + span { border-color: var(--sick); background: var(--sick-soft); }
.vd-parah input:focus-visible + span { outline: 3px solid var(--water); outline-offset: 2px; }

#step-saran textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem .95rem;
  font: inherit; color: var(--ink); line-height: 1.6; resize: vertical; background: #fff;
}
#step-saran textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
#step-saran textarea.kedip { animation: kedip-isi 1s ease; }
@keyframes kedip-isi { 0% { background: var(--teal-soft); } 100% { background: #fff; } }
.vd-hint { font-size: .8rem; color: var(--slate); margin-top: .4rem; }

.vd-kirim { display: grid; gap: .75rem; padding-top: 1.1rem; }
.vd-ttd { font-size: .88rem; color: var(--slate); }
.vd-ttd strong { color: var(--navy); }
.vd-kirim .field { margin: 0; }
.vd-kirim #form-msg .alert { margin: 0; }
.vd-kirim .btn { justify-self: start; padding: .9rem 2rem; font-size: 1rem; }
.val-empty .btn { margin-top: .9rem; }

@media (max-width: 640px) {
  .vd-pilih2, .vd-parah { grid-template-columns: 1fr; }
  .vd-kirim .btn { justify-self: stretch; justify-content: center; }
}

/* =========================================================
   Validator: klaim konsultasi (supaya tidak dijawab dua orang)
   ========================================================= */
.val-tabs { grid-template-columns: repeat(3, 1fr); }
.val-tabs button { padding-left: .4rem; padding-right: .4rem; }
.vq-klaim, .vq-oleh {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px;
}
.vq-klaim { background: #ece8fb; color: #5b4bb7; }
.vq-klaim::before {
  content: ""; width: 10px; height: 10px; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vq-klaim.saya { background: var(--teal-soft); color: var(--healthy); }
.vq-oleh { background: var(--bg); color: var(--slate); font-weight: 600; }
.vq-item.terkunci { opacity: .62; }
.vq-item.terkunci:hover { opacity: .85; }

.vd-kunci {
  display: flex; align-items: center; gap: .8rem; margin: .5rem 0 .25rem;
  padding: .8rem 1rem; border-radius: 14px; font-size: .9rem; line-height: 1.5;
}
.vd-kunci p { flex: 1; min-width: 0; }
.vd-kunci.lain { background: #f1eefc; color: #3d2f8f; border: 1px solid #d9d2f6; }
.vd-kunci.saya { background: var(--teal-soft); color: var(--healthy); border: 1px solid #bfe3dd; }
.vd-kunci-ikon {
  flex-shrink: 0; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vd-kunci .btn { flex-shrink: 0; background: #fff; }
.vd-form.terkunci .vd-step, .vd-form.terkunci .vd-kirim { opacity: .5; }
.vd-form.terkunci .vd-opsi, .vd-form.terkunci .vd-parah label { cursor: not-allowed; }
.val-tabs button { white-space: nowrap; font-size: .88rem; padding-top: .55rem; padding-bottom: .55rem; }
.val-tabs span { margin-left: .2rem; }

/* =========================================================
   Riwayat (versi baru)
   ========================================================= */
.hist-hero-atas { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hist-hero-atas p { margin-bottom: 0; }
.hist-scan-baru { box-shadow: 0 10px 24px rgba(26, 133, 128, .35); }

.hist-tindakan { display: grid; gap: .6rem; margin-bottom: 1.75rem; }
.hist-tindakan-item {
  display: flex; align-items: center; gap: .9rem;
  padding: .9rem 1.1rem; border-radius: 16px; border: 1px solid; color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.hist-tindakan-item:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15, 51, 82, .08); }
.hist-tindakan-item.baru { background: var(--teal-soft); border-color: #bfe3dd; }
.hist-tindakan-item.bayar { background: #fff8ec; border-color: #f3d9a8; }
.hist-tindakan-ikon {
  display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  font-weight: 800; font-size: .95rem; color: #fff;
}
.baru .hist-tindakan-ikon { background: var(--teal); font-size: 1.2rem; }
.bayar .hist-tindakan-ikon { background: var(--warning); }
.hist-tindakan-item > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.hist-tindakan-item strong { font-family: var(--font-display); color: var(--navy); }
.hist-tindakan-item small { color: var(--slate); font-size: .85rem; }
.hist-tindakan-aksi { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.baru .hist-tindakan-aksi { color: var(--teal); }
.bayar .hist-tindakan-aksi { color: var(--warning); }

.h-item { grid-template-columns: 96px 1fr auto; padding: .85rem 1.1rem .85rem .85rem; }
.h-item.is-bayar { box-shadow: inset 4px 0 0 var(--warning); }
.h-thumb { position: relative; display: block; }
.h-thumb img { width: 96px; height: 80px; }
.h-thumb-tanda {
  position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--surface);
  font-size: .8rem; font-weight: 900; color: #fff;
}
.h-thumb-tanda.ok { background: var(--healthy); }
.h-thumb-tanda.sakit { background: var(--sick); }
.h-main { gap: .3rem; }
.h-judul { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.h-judul h3 { font-size: 1.08rem; line-height: 1.3; }
.h-judul h3 a { color: var(--navy); }
.h-judul h3 a:hover { color: var(--teal); }
.h-meta { font-size: .86rem; color: var(--slate); }
.h-meta strong.ok { color: var(--healthy); }
.h-meta strong.sakit { color: var(--sick); }
.h-status-baris { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .15rem; }
.h-status-baris:empty { display: none; }
.h-status {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .2rem .65rem; border-radius: 99px; font-size: .78rem; font-weight: 700;
}
.h-status.bayar { background: #fff4e0; color: var(--warning); }
.h-status.gagal { background: var(--sick-soft); color: var(--sick); }
.h-status.proses { background: var(--water-soft); color: var(--water); }
.h-status.selesai { background: var(--teal-soft); color: var(--healthy); }

.hist-kosong {
  max-width: 560px; margin: 1rem auto; text-align: center;
  padding: 2.5rem 1.75rem; background: var(--surface); border: 1px dashed var(--line); border-radius: 24px;
}
.hist-kosong-ikon {
  display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal); margin-bottom: 1rem;
}
.hist-kosong h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.hist-kosong > p { color: var(--slate); }
.hist-kosong-langkah { list-style: none; display: grid; gap: .5rem; margin: 1.5rem auto 1.75rem; max-width: 320px; text-align: left; }
.hist-kosong-langkah li { display: flex; align-items: center; gap: .7rem; font-size: .93rem; }
.hist-kosong-langkah strong {
  display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: .8rem;
}

@media (max-width: 880px) {
  .h-item { grid-template-columns: 80px 1fr; }
  .h-thumb img { width: 80px; height: 70px; }
  .h-actions .btn { flex: 1; justify-content: center; }
  .hist-tindakan-item { flex-wrap: wrap; }
  .hist-tindakan-aksi { margin-left: calc(42px + .9rem); }
}

/* =========================================================
   Tentang (versi baru)
   ========================================================= */
.about-aksi { margin-top: 1.75rem; }
.about-sorotan { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; }
.about-sorotan li { display: flex; align-items: center; gap: .45rem; color: #d6e5f2; font-size: .92rem; font-weight: 600; }
.about-sorotan li::before {
  content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(127, 209, 199, .2); color: #7fd1c7; font-size: .72rem; font-weight: 900;
}
.about-manfaat { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.75rem; }
.about-manfaat li {
  position: relative; padding: 1.6rem 1.5rem 1.5rem; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.about-manfaat li:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15, 51, 82, .08); }
.about-manfaat-no {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff;
  font-family: var(--font-display); font-weight: 900;
}
.about-manfaat h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.about-manfaat p { color: var(--slate); font-size: .95rem; }

.actor-ikon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; margin-bottom: 1rem;
  background: var(--teal-soft); color: var(--teal);
}
.actor-ikon.alt { background: var(--water-soft); color: var(--navy); }
.actors article { background: var(--surface); transition: box-shadow .2s; }
.actors article:hover { box-shadow: 0 16px 36px rgba(15, 51, 82, .08); }

.about-cta { padding: 4.5rem 0; background: linear-gradient(135deg, var(--navy), #0f3352); }
.about-cta-isi { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.about-cta h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: .4rem; }
.about-cta p { color: #b8cde0; max-width: 36em; }
.about-cta .btn { box-shadow: 0 12px 28px rgba(0, 0, 0, .25); }

@media (max-width: 880px) {
  .about-manfaat { grid-template-columns: 1fr; }
  .about-cta-isi .btn { width: 100%; justify-content: center; }
}
@media (max-width: 880px) {
  .hist-tindakan-item { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; row-gap: .5rem; }
  .hist-tindakan-aksi { grid-column: 2; margin-left: 0; }
}

/* =========================================================
   Tentang: elemen interaktif
   ========================================================= */
/* Angka */
.about-angka-wrap { background: var(--surface); border-bottom: 1px solid var(--line); }
.about-angka { display: grid; grid-template-columns: repeat(4, 1fr); }
.about-angka > div { padding: 1.75rem 1.25rem; text-align: center; }
.about-angka > div + div { border-left: 1px solid var(--line); }
.about-angka dd { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 4vw, 2.6rem); color: var(--navy); line-height: 1.1; }
.about-angka dd em { font-style: normal; font-size: .5em; color: var(--teal); margin: 0 .15rem; }
.about-angka dt { color: var(--slate); font-size: .88rem; margin-top: .3rem; }

/* FAQ: pencarian */
.faq-cari { position: relative; margin-bottom: .9rem; }
.faq-cari svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--slate); }
.faq-cari input {
  width: 100%; padding: .8rem 1rem .8rem 2.7rem; border: 1.5px solid var(--line); border-radius: 99px;
  font: inherit; background: var(--surface); color: var(--ink);
}
.faq-cari input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.faq-kosong { margin-top: .9rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line); color: var(--slate); font-size: .92rem; }

/* Muncul saat di-scroll */
.siap-muncul { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--jeda, 0ms), transform .6s cubic-bezier(.2, .8, .3, 1) var(--jeda, 0ms); }
.siap-muncul.muncul { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .about-angka { grid-template-columns: 1fr 1fr; }
  .about-angka > div:nth-child(3) { border-left: 0; }
  .about-angka > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
/* Kolom kartu simulasi dikunci supaya kolom judul tidak menyempit */
.about-hero-grid { grid-template-columns: minmax(0, 1fr) 400px; }
@media (max-width: 880px) { .about-hero-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Tentang: ilustrasi ekosistem (pembudidaya - model AI - penyuluh)
   ========================================================= */
.eko { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1; justify-self: end; }
.eko-orbit {
  position: absolute; inset: 9%; border-radius: 50%;
  border: 2px dashed rgba(127, 209, 199, .35);
  animation: eko-putar 40s linear infinite;
}
.eko-orbit i {
  position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #7fd1c7;
  box-shadow: 0 0 14px 3px rgba(127, 209, 199, .6);
}
.eko-orbit i:nth-child(1) { top: -6px; left: calc(50% - 5px); }
.eko-orbit i:nth-child(2) { bottom: 12%; left: 4%; }
.eko-orbit i:nth-child(3) { bottom: 12%; right: 4%; }
.eko::before {   /* cahaya lembut di belakang */
  content: ""; position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 209, 199, .28), transparent 70%);
}
.eko-pusat {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: .35rem;
  width: 42%; aspect-ratio: 1; place-content: center; border-radius: 50%;
  background: #fff; box-shadow: 0 24px 60px rgba(5, 20, 36, .45), 0 0 0 10px rgba(255, 255, 255, .08);
}
.eko-pusat img { width: 58%; }
.eko-pusat strong { font-family: var(--font-display); font-weight: 900; color: var(--navy); font-size: 1.05rem; }
.eko-item {
  position: absolute; display: flex; align-items: center; gap: .6rem;
  padding: .6rem .85rem .6rem .6rem; border-radius: 16px;
  background: rgba(255, 255, 255, .97); color: var(--ink);
  box-shadow: 0 14px 34px rgba(5, 20, 36, .35);
  animation: eko-melayang 5s ease-in-out infinite;
  transition: transform .2s, box-shadow .2s; cursor: default; outline: none;
}
.eko-item span:last-child { display: grid; }
.eko-item strong { font-family: var(--font-display); color: var(--navy); font-size: .95rem; line-height: 1.2; }
.eko-item small { color: var(--slate); font-size: .75rem; white-space: nowrap; }
.eko-ikon {
  display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal);
}
.eko-a { top: 2%; left: 0; }
.eko-b { top: 44%; right: -4%; animation-delay: -1.6s; }
.eko-b .eko-ikon { background: #ece8fb; color: #5b4bb7; }
.eko-c { bottom: 2%; left: 4%; animation-delay: -3.2s; }
.eko-c .eko-ikon { background: var(--water-soft); color: var(--water); }
.eko-item:hover, .eko-item:focus-visible {
  animation-play-state: paused; transform: scale(1.06);
  box-shadow: 0 18px 40px rgba(5, 20, 36, .45), 0 0 0 3px #7fd1c7;
}
@keyframes eko-putar { to { transform: rotate(360deg); } }
@keyframes eko-melayang { 50% { translate: 0 -8px; } }

@media (max-width: 880px) {
  .eko { justify-self: center; max-width: 340px; margin-top: 1rem; }
  .eko-b { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .eko-orbit, .eko-item { animation: none; }
}
/* Susunan segitiga: atas-tengah, kanan-bawah, kiri-bawah (tidak menutupi logo) */
.eko-a { top: 1%; left: 0; right: 0; margin-inline: auto; width: max-content; }
.eko-b { top: auto; bottom: 3%; right: -2%; left: auto; }
.eko-c { bottom: 3%; left: -2%; }
.eko-orbit { inset: 12%; }
@media (max-width: 880px) {
  .eko { max-width: 360px; }
  .eko-item { padding: .5rem .7rem .5rem .5rem; gap: .5rem; }
  .eko-ikon { width: 32px; height: 32px; border-radius: 10px; }
  .eko-item strong { font-size: .85rem; }
  .eko-item small { font-size: .68rem; white-space: normal; max-width: 110px; }
  .eko-b { right: 0; } .eko-c { left: 0; }
}
.eko-b { right: -6%; } .eko-c { left: -6%; }
@media (max-width: 880px) { .eko-b { right: 0; } .eko-c { left: 0; } }

/* FAQ: animasi halus (lihat tentang.js) */
.faq details { transition: border-color .3s ease, box-shadow .3s ease, background .3s ease; }
.faq details.terbuka { border-color: var(--teal); box-shadow: 0 12px 30px rgba(15, 51, 82, .08); }
.faq details:not(.terbuka)[open] { border-color: var(--line); box-shadow: none; }   /* saat sedang menutup */
.faq summary { transition: color .25s ease; }
.faq summary:hover { color: var(--teal); }
.faq summary::after {
  content: "+"; transition: transform .38s cubic-bezier(.25, .8, .25, 1), background .3s ease, color .3s ease;
}
.faq details[open] summary::after { content: "+"; background: var(--bg); }
.faq details.terbuka summary::after { transform: translateY(-50%) rotate(135deg); background: var(--teal); color: #fff; }
.faq details p { animation: none; }

/* Halaman akun (lupa sandi, reset, verifikasi) */
.auth-lupa { display: block; text-align: center; margin-top: .9rem; font-size: .9rem; font-weight: 600; }
.auth-judul { font-size: 1.4rem; text-align: center; margin-bottom: .4rem; }
.auth-teks { text-align: center; color: var(--slate); font-size: .93rem; margin-bottom: 1.1rem; }
.auth-teks.kecil { font-size: .82rem; margin: 1rem 0 0; }
#akun-hasil { text-align: center; }

/* Profil: verifikasi & keamanan */
.pf-verif { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between;
  margin: .75rem 0 1rem; padding: .85rem 1rem; border-radius: 14px; background: #fff8ec; border: 1px solid #f3d9a8; font-size: .9rem; }
.pf-verif p { flex: 1 1 260px; }
.pf-aman { margin-top: 1.5rem; }
.pf-aman-baris { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-top: 1px solid var(--line); }
.pf-aman-baris:first-of-type { border-top: 0; }
.pf-aman-baris > div { flex: 1 1 320px; }
.pf-aman-baris p { font-size: .88rem; margin-top: .15rem; }
.h-kunci{opacity:.45;cursor:help}
.urgent-tag.terlambat{background:#7a1f1f;color:#fff}
.adm-dialog-foot #dr-msg, .adm-dialog-foot #fp-versi { margin-right: auto; }
.adm-dialog-foot #dr-msg .alert { margin: 0; padding: .5rem .8rem; font-size: .88rem; }
.adm-dialog.kecil { width: min(560px, calc(100vw - 2rem)); }
.versi-item { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.versi-item:last-child { border-bottom: 0; }
.versi-item > span { min-width: 0; overflow-wrap: anywhere; }
.auth-ganti { text-align: center; margin-top: .6rem; font-size: .9rem; color: var(--slate); }
.auth-intro { margin: .25rem 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: var(--teal-soft); color: var(--navy); font-size: .92rem; text-align: center; }
.auth-kontak { margin-top: 1rem; padding: .85rem 1rem; border-radius: 14px; background: var(--bg); font-size: .88rem; }
.auth-kontak ul { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .25rem; }
.vd-klaim-saya { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; font-size: .85rem; color: var(--healthy); background: var(--teal-soft); border-radius: 12px; padding: .55rem .8rem; margin-bottom: .75rem; }
.vq-sisa { font-size: .78rem; font-weight: 700; color: var(--healthy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vq-sisa.dekat { color: #a14a00; }
.vq-sisa.kritis, .vq-sisa.lewat { color: #fff; background: #b3261e; padding: .1rem .5rem; border-radius: 99px; }
.vq-sisa.jeda { color: var(--slate); }
.vd-kirim-aksi { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.vd-info-tanya { margin-top: .5rem; }
.vd-info-tunggu { font-size: .88rem; color: #7a4a00; background: #fff8ec; border-radius: 10px; padding: .5rem .7rem; }
.vd-info-foto img { max-width: 100%; max-height: 220px; border-radius: 12px; display: block; margin-top: .4rem; }

/* =========================================================================
   PERBAIKAN UI v2 (November 2026)
   Ditaruh paling bawah supaya menimpa gaya lama.
   ========================================================================= */
html, body { overflow-x: clip; }
body.nav-terbuka { overflow: hidden; }
:root { --shadow-sm: 0 1px 2px rgba(15,51,82,.06), 0 2px 8px rgba(15,51,82,.05); --shadow-md: 0 10px 30px rgba(15,51,82,.10); }

/* ---------- Tombol tambahan ---------- */
.btn { transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { box-shadow: 0 6px 16px rgba(26,133,128,.22); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(26,133,128,.3); }
.btn-light-solid { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light-solid:hover { background: var(--teal-soft); border-color: var(--teal-soft); }

/* =========================================================
   Navbar modern + laci menu HP
   ========================================================= */
.navbar { transition: box-shadow .25s, background .25s; }
.navbar.tergulir { box-shadow: 0 6px 24px rgba(15,51,82,.08); border-bottom-color: transparent; }
.nav-ikon, .nav-laci-kepala, .nav-laci-cta { display: none; }
@media (min-width: 881px) {
  .nav-links { gap: .25rem; }
  .nav-links a:not(.btn) { padding: .45rem .85rem; border-radius: 99px; transition: background .2s, color .2s; }
  .nav-links a:not(.btn):hover { background: var(--bg); color: var(--navy); }
  .nav-links a.active:not(.btn) { background: var(--teal-soft); color: var(--teal-dark); }
  .nav-links li:has(.btn) { margin-left: .5rem; }
}

/* Ikon burger 3 garis -> X */
.nav-toggle, .dash-burger {
  display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--navy); cursor: pointer; place-items: center; padding: 0;
  transition: background .2s, border-color .2s;
}
.nav-toggle:hover, .dash-burger:hover { background: var(--bg); }
.burger { position: relative; display: block; width: 18px; height: 14px; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s cubic-bezier(.3,.9,.3,1), opacity .2s, top .3s; }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; width: 70%; }
.burger i:nth-child(3) { top: 12px; }
.is-open .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.is-open .burger i:nth-child(2) { opacity: 0; transform: translateX(6px); }
.is-open .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-latar {
  position: fixed; inset: 0; z-index: 70; background: rgba(10,32,54,.45); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.nav-latar.show { opacity: 1; pointer-events: auto; }

@media (max-width: 880px) {
  .navbar .container { height: 60px; }
  .brand { font-size: 1.2rem; }
  .brand img { width: 32px; }
  .nav-toggle { display: grid; position: relative; z-index: 90; }
  .nav-links {
    display: flex !important; position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 80;
    width: min(320px, 86vw); height: 100dvh; margin: 0; padding: 1rem 1rem 1.5rem;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--surface); border: 0; border-radius: 22px 0 0 22px;
    box-shadow: -20px 0 60px rgba(10,32,54,.2);
    transform: translateX(105%); transition: transform .32s cubic-bezier(.3,.9,.3,1);
    overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-laci-kepala { display: flex; align-items: center; height: 44px; margin-bottom: .5rem; padding: 0 .5rem; }
  .nav-laci-kepala span { font-family: var(--font-display); font-weight: 800; color: var(--slate); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
  .nav-links a:not(.btn) {
    display: flex; align-items: center; gap: .85rem; padding: .8rem .85rem; border-radius: 14px;
    font-size: 1rem; font-weight: 600; color: var(--ink);
  }
  .nav-links a:not(.btn):hover { background: var(--bg); }
  .nav-links a.active:not(.btn) { background: var(--teal-soft); color: var(--teal-dark); }
  .nav-ikon { display: block; flex-shrink: 0; color: var(--slate); }
  .nav-links a.active .nav-ikon { color: var(--teal); }
  .nav-links li:has(> .btn-outline) { margin-top: .5rem; }
  .nav-links .btn { width: 100%; justify-content: center; padding: .8rem 1rem; font-size: .95rem; }
  .nav-laci-cta { display: grid; gap: .45rem; margin-top: auto; padding: 1rem; border-radius: 18px; background: linear-gradient(135deg, var(--teal-soft), var(--water-soft)); text-align: center; }
  .nav-laci-cta small { color: var(--slate); font-size: .8rem; }
  .nav-badge { position: static; margin-left: auto; }
  .nav-akun { margin-left: auto; }
  .avatar-btn { width: 38px; height: 38px; }
  .avatar-lingkar { width: 30px; height: 30px; font-size: .75rem; }
  .akun-menu { right: -.25rem; }
}

/* =========================================================
   Footer baru
   ========================================================= */
.footer { background: var(--navy-deep); color: #a9c0d6; padding: 0; font-size: .92rem; border-top: 0 !important; }
.footer .container.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem;
}
.footer-brand .brand { margin-bottom: .9rem; }
.footer-brand .brand img { width: 34px; }
.footer-brand p { max-width: 30em; line-height: 1.6; }
.footer-kolom h3 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; }
.footer-kolom ul { list-style: none; display: grid; gap: .55rem; }
.footer-kolom a { color: #a9c0d6; transition: color .2s, padding .2s; }
.footer-kolom a:hover { color: #fff; padding-left: .2rem; }
.footer-catatan p { padding: .9rem 1rem; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); line-height: 1.55; font-size: .87rem; }
.footer-bawah { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bawah .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0; font-size: .84rem; color: #7f9bb6; }
.footer-bawah .footer-copy { width: auto; border: 0; padding: 0; }
@media (max-width: 880px) {
  .footer .container.footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; padding: 2.5rem 0 1.75rem; }
  .footer-brand, .footer-catatan { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-bawah .container { flex-direction: column; gap: .25rem; }
}

/* =========================================================
   Beranda
   ========================================================= */
.phone { width: min(270px, 100%); border-radius: 40px; padding: 9px; }
.phone-screen { border-radius: 32px; }
.phone-top { padding: 2.4rem 1rem .4rem; font-size: .88rem; }
.phone-top img { width: 22px; }
.phone-view { padding: .25rem .75rem; }
.phone-frame { padding: .75rem; }
.phone-sheet { margin: 0 .5rem .5rem; padding: .8rem .9rem .9rem; border-radius: 20px; }
.phone-sheet .dot { width: 30px; height: 30px; font-size: .9rem; }
.phone-sheet strong { font-size: .95rem; }
.phone-sheet small { font-size: .78rem; }

/* Tips + ajakan: latar terang supaya tidak menyatu dengan footer */
.home-tips { padding: 5rem 0 4.5rem; background: var(--bg); }
.tips-kartu { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: tip; margin-bottom: 2.5rem; }
.tips-kartu li {
  counter-increment: tip; position: relative; padding: 1.4rem 1.2rem 1.25rem; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); font-size: .95rem; line-height: 1.55;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tips-kartu li::before {
  content: counter(tip); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: .8rem;
  border-radius: 11px; background: var(--teal-soft); color: var(--teal); font-family: var(--font-display); font-weight: 900;
}
.tips-kartu li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.cta-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 2rem 2.25rem; border-radius: 26px; color: #fff;
  background: linear-gradient(120deg, var(--teal) 0%, #1b6f8c 55%, var(--navy) 100%);
  box-shadow: 0 20px 50px rgba(26,133,128,.25);
}
.cta-banner::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.cta-banner-judul { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.2; margin-bottom: .3rem; }
.cta-banner small { color: rgba(255,255,255,.8); font-size: .88rem; }
.cta-banner .btn { position: relative; z-index: 1; }
@media (max-width: 980px) { .tips-kartu { grid-template-columns: 1fr 1fr; } }

/* Kartu ahli */
.ahli-blok { margin-top: 1.5rem; }
.ahli-blok-judul, .konsul-ahli-judul { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin-bottom: .6rem; }
.ahli-list { list-style: none; display: grid; gap: .6rem; }
.ahli-kartu { display: flex; align-items: center; gap: .85rem; padding: .8rem .95rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ahli-av {
  display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--water), var(--navy)); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .9rem;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--teal-soft);
}
.ahli-teks { display: grid; min-width: 0; gap: .05rem; }
.ahli-teks strong { color: var(--navy); font-size: .97rem; line-height: 1.3; }
.ahli-teks small { color: var(--teal-dark); font-size: .82rem; font-weight: 600; }
.ahli-bio { color: var(--slate); font-size: .82rem; line-height: 1.45; margin-top: .15rem; }
.ahli-angka { margin-left: auto; text-align: center; font-family: var(--font-display); font-weight: 900; color: var(--navy); font-size: 1.15rem; line-height: 1; }
.ahli-angka small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .68rem; color: var(--slate); margin-top: .15rem; }
.ahli-kartu.ringkas { padding: .55rem .7rem; background: var(--bg); border-color: transparent; }
.ahli-kartu.ringkas .ahli-av { width: 34px; height: 34px; font-size: .75rem; box-shadow: none; }
.ahli-kosong { color: var(--slate); font-size: .88rem; padding: .75rem .9rem; border-radius: 14px; background: var(--bg); }
.konsul-ahli { margin: 0 0 1.1rem; }

/* =========================================================
   Notifikasi (toast) lebih hidup
   ========================================================= */
.notif {
  grid-template-columns: auto 1fr auto; gap: .8rem; padding: .85rem .7rem .95rem .85rem;
  border: 0; border-radius: 18px; background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(15,51,82,.06), 0 18px 48px rgba(15,51,82,.18);
  touch-action: pan-y; transition: transform .2s, opacity .2s, box-shadow .2s;
}
.notif::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--warna); }
.notif:hover { box-shadow: 0 0 0 1px rgba(15,51,82,.08), 0 22px 56px rgba(15,51,82,.24); }
.notif.digeser { transition: none; }
.notif-ikon { width: 38px; height: 38px; border-radius: 12px; position: relative; }
.notif-ikon::after { content: ""; position: absolute; inset: -4px; border-radius: 15px; border: 2px solid var(--warna); opacity: 0; animation: notif-cincin 1s ease-out .15s; }
.notif-ikon svg path, .notif-ikon svg circle { stroke-dasharray: 40; stroke-dashoffset: 40; animation: notif-gores .5s ease forwards .12s; }
.notif-isi strong { font-size: .97rem; }
.notif-aksi { display: inline-flex; align-items: center; gap: .3rem; margin-top: .55rem; padding: .35rem .8rem; border-radius: 99px; background: var(--lembut); text-decoration: none !important; }
.notif-aksi::after { content: "→"; transition: transform .2s; }
.notif-aksi:hover::after { transform: translateX(3px); }
.notif-waktu { height: 3px; bottom: 0; border-radius: 0 0 18px 18px; opacity: .5; }
@keyframes notif-cincin { 0% { opacity: .7; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes notif-gores { to { stroke-dashoffset: 0; } }
.konfirm { border-radius: 24px; }
.konfirm-ikon { border-radius: 16px; }
@media (max-width: 640px) {
  .notif-stack { top: auto; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); flex-direction: column-reverse; }
  @keyframes notif-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
  @keyframes notif-out { to { opacity: 0; transform: translateY(18px); } }
}
@media (prefers-reduced-motion: reduce) { .notif-ikon::after, .notif-ikon svg path, .notif-ikon svg circle { animation: none; stroke-dashoffset: 0; } }

/* Tombol bantuan "?" lebih kecil, tidak menutupi tombol */
.pd-bantuan { height: 44px; box-shadow: 0 8px 20px rgba(21,57,93,.25); }
.pd-bantuan span { width: 44px; height: 44px; font-size: 1.15rem; }
@media (max-width: 640px) {
  .pd-bantuan { height: 40px; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); opacity: .92; }
  .pd-bantuan span { width: 40px; height: 40px; font-size: 1.05rem; }
  main { padding-bottom: 3.5rem; }
}

/* =========================================================
   Halaman Penyakit: kartu ringkas + halaman detail
   ========================================================= */
.disease-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.pk-kartu {
  --kat: var(--water); --kat-soft: var(--water-soft);
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: .9rem 1rem .9rem .9rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  animation: pop .35s ease both; animation-delay: calc(var(--i, 0) * 40ms);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pk-kartu:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--kat); }
.pk-kartu.top-match { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.kat-jamur { --kat: #c98a1c; --kat-soft: #fdf1dc; }
.kat-parasit { --kat: #c4473d; --kat-soft: #fbe9e7; }
.kat-bakteri { --kat: #7a5bd1; --kat-soft: #eee9fb; }
.kat-virus { --kat: #2f7fb3; --kat-soft: #e3f0f8; }
.pk-kartu-foto { position: relative; width: 76px; height: 76px; border-radius: 16px; overflow: hidden; background: var(--kat-soft); }
.pk-kartu-foto > img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.pk-kartu-foto .photo-fallback img { width: 60%; opacity: .55; }
.pk-kartu-isi { display: grid; gap: .15rem; min-width: 0; }
.pk-kartu-tag { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .2rem; }
.pk-kartu-tag .pill { font-size: .7rem; padding: .1rem .55rem; }
.pk-kartu strong { font-family: var(--font-display); color: var(--navy); font-size: 1.08rem; line-height: 1.25; }
.pk-kartu em { color: var(--slate); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-kartu-ringkas { color: var(--ink); font-size: .87rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .2rem; }
.pk-kartu-panah { color: var(--slate); transition: transform .2s, color .2s; }
.pk-kartu:hover .pk-kartu-panah { transform: translateX(3px); color: var(--kat); }

.pk-detail { --kat: var(--water); --kat-soft: var(--water-soft); animation: pop .3s ease; }
.pk-hero { background: linear-gradient(180deg, var(--kat-soft), var(--bg)); padding: 1.5rem 0 2.5rem; }
.pk-kembali { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem .45rem .6rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: .88rem; margin-bottom: 1.5rem; transition: border-color .2s, transform .2s; }
.pk-kembali:hover { border-color: var(--navy); transform: translateX(-2px); }
.pk-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 2.5rem; align-items: center; }
.pk-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.pk-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: .3rem; }
.pk-latin { font-style: italic; color: var(--slate); margin-bottom: 1rem; }
.pk-ringkas { font-size: 1.05rem; max-width: 40em; }
.pk-catatan { margin-top: 1rem; padding: .8rem 1rem; border-radius: 14px; background: #fff8ec; border: 1px solid #f3d9a8; font-size: .9rem; color: #7a4a00; max-width: 40em; }
.pk-foto { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.pk-foto > img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.pk-foto .photo-fallback { background: radial-gradient(circle at 50% 45%, var(--kat-soft), var(--surface) 70%); }
.pk-foto .photo-fallback img { width: 42%; opacity: .6; }
.pk-badan { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; padding: 2rem 0 1rem; }
.pk-nav { position: sticky; top: 88px; display: grid; gap: .25rem; padding: .5rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pk-nav a { display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; border-radius: 14px; color: var(--ink); font-weight: 600; font-size: .93rem; transition: background .2s, color .2s; }
.pk-nav a svg { color: var(--slate); flex-shrink: 0; }
.pk-nav a span { margin-left: auto; font-size: .75rem; font-weight: 700; color: var(--slate); background: var(--bg); border-radius: 99px; padding: 0 .45rem; }
.pk-nav a:hover { background: var(--bg); }
.pk-nav a.aktif { background: var(--kat-soft); color: var(--navy); }
.pk-nav a.aktif svg { color: var(--kat); }
.pk-isi { display: grid; gap: 1.1rem; }
.pk-bagian { padding: 1.5rem 1.6rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 100px; }
.pk-bagian h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.25rem; margin-bottom: 1rem; }
.pk-bagian-ikon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--kat-soft); color: var(--kat); }
.pk-poin { list-style: none; display: grid; gap: .55rem; }
.pk-poin li { position: relative; padding: .6rem .85rem .6rem 2.2rem; border-radius: 12px; background: var(--bg); font-size: .95rem; }
.pk-poin li::before { content: ""; position: absolute; left: .9rem; top: 1.05rem; width: 7px; height: 7px; border-radius: 50%; background: var(--kat); }
.pk-poin.pencegahan li::before { background: var(--teal); }
.pk-poin li.is-match { background: var(--teal-soft); font-weight: 600; }
.pk-langkah { list-style: none; counter-reset: lk; display: grid; gap: .6rem; }
.pk-langkah li { counter-increment: lk; display: grid; grid-template-columns: 30px 1fr; gap: .75rem; align-items: start; font-size: .95rem; }
.pk-langkah li::before { content: counter(lk); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: .85rem; }
.pk-jenis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.pk-jenis-item { padding: 1rem 1.05rem; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: .2rem; }
.pk-jenis-item strong { color: var(--navy); }
.pk-jenis-item em { color: var(--slate); font-size: .8rem; }
.pk-jenis-item p { font-size: .9rem; margin-top: .25rem; }
.pk-penutup { padding: 1rem 0 4rem; }
.pk-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 1.5rem; border-radius: 22px; background: linear-gradient(120deg, var(--teal), var(--navy)); color: #fff; margin: 1rem 0 2.5rem; }
.pk-cta strong { font-family: var(--font-display); font-size: 1.15rem; }
.pk-cta p { color: rgba(255,255,255,.82); font-size: .92rem; }
.pk-cta .btn-primary { background: #fff; color: var(--navy); box-shadow: none; }
.pk-lain-judul { font-size: 1.2rem; margin-bottom: .9rem; }
.pk-lain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.pk-lain-item { display: grid; gap: .25rem; justify-items: start; padding: 1rem 1.1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, transform .2s; }
.pk-lain-item:hover { border-color: var(--kat); transform: translateY(-2px); }
.pk-lain-item strong { color: var(--navy); font-family: var(--font-display); }
.pk-lain-item small { color: var(--slate); font-size: .8rem; }
@media (max-width: 880px) {
  .disease-grid { grid-template-columns: 1fr; gap: .7rem; }
  .pk-kartu { grid-template-columns: 60px minmax(0, 1fr) auto; gap: .8rem; padding: .75rem .8rem .75rem .75rem; border-radius: 18px; }
  .pk-kartu-foto { width: 60px; height: 60px; border-radius: 14px; }
  .pk-kartu strong { font-size: 1rem; }
  .pk-hero { padding: 1rem 0 1.5rem; }
  .pk-hero-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .pk-foto { aspect-ratio: 16 / 9; order: -1; border-radius: 20px; }
  .pk-ringkas { font-size: .97rem; }
  .pk-badan { grid-template-columns: 1fr; gap: 1rem; padding-top: 1rem; }
  .pk-nav { top: 60px; z-index: 20; display: flex; overflow-x: auto; border-radius: 0; margin: 0 -1.25rem; padding: .5rem 1.25rem; border-width: 0 0 1px; background: rgba(245,249,250,.95); backdrop-filter: blur(8px); scrollbar-width: none; }
  .pk-nav::-webkit-scrollbar { display: none; }
  .pk-nav a { flex-shrink: 0; padding: .5rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; font-size: .86rem; }
  .pk-nav a svg { width: 16px; height: 16px; }
  .pk-bagian { padding: 1.1rem 1.1rem 1.2rem; border-radius: 18px; scroll-margin-top: 130px; }
  .pk-bagian h2 { font-size: 1.1rem; }
  .pk-lain { grid-template-columns: 1fr; }
}

/* =========================================================
   Halaman Scan (HP lebih ringkas)
   ========================================================= */
.aside-note { display: flex; gap: .8rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1rem 1.1rem; font-size: .9rem; line-height: 1.55; }
.aside-note::before { content: "i"; display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--water-soft); color: var(--water); font-family: var(--font-display); font-weight: 900; font-size: .9rem; }
@media (max-width: 880px) {
  .scan-hero { padding: 1.75rem 0 5rem; }
  .scan-hero h1 { font-size: 1.7rem; margin-bottom: .35rem; }
  .scan-hero p { font-size: .93rem; }
  .scan-steps { flex-wrap: nowrap; gap: .35rem; margin-top: 1.1rem; justify-content: space-between; }
  .scan-steps li { flex: 1; gap: .4rem; font-size: .8rem; white-space: nowrap; }
  .scan-steps li::before { width: 24px; height: 24px; font-size: .78rem; flex-shrink: 0; }
  .scan-steps li:not(:last-child)::after { display: block; position: static; flex: 1; width: auto; min-width: 8px; height: 2px; margin-left: .2rem; }
  .scan-main { margin-top: -4rem; gap: 1rem; padding-bottom: 3rem; }
  .scan-main.container, .result-body.container { width: calc(100% - 1.5rem); }
  .scan-card { padding: .6rem; border-radius: 22px; }
  .scan-aside .panel { padding: 1.1rem 1.2rem; border-radius: 20px; }
  .scan-aside h2 { font-size: .98rem; margin-bottom: .6rem; }
  .do-list, .dont-list { gap: .5rem; font-size: .88rem; }
  .scan-controls .btn { padding: .75rem 1rem; font-size: .95rem; }
}

/* =========================================================
   Halaman Hasil
   ========================================================= */
.info-kartu { display: grid; gap: .75rem; margin-top: .9rem; }
.info-baris { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: start; padding: 1rem 1.1rem; border-radius: 18px; background: var(--bg); }
.info-ikon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--teal); box-shadow: var(--shadow-sm); }
.info-baris strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.02rem; margin-bottom: .2rem; }
.info-baris p, .info-baris li { font-size: .92rem; color: var(--ink); line-height: 1.55; }
.info-baris ul { margin: .3rem 0 0 1.1rem; display: grid; gap: .25rem; }
.quick-label { font-size: .82rem; color: var(--slate); margin: -.25rem 0 .45rem; }
.quick-tags button { border-style: solid; background: var(--surface); padding: .4rem .8rem; font-size: .83rem; font-weight: 600; transition: all .15s; }
.quick-tags button.used::before { content: "✓ "; }
.konsul-aksi { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
.konsul-aksi .btn { justify-content: center; white-space: nowrap; }

/* Kartu jawaban ahli */
#konsul-selesai { display: grid; gap: 1.1rem; }
.jw-kepala { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.jw-kepala .ahli-av { width: 52px; height: 52px; font-size: 1rem; }
.jw-siapa { display: grid; gap: .1rem; min-width: 0; }
.jw-siapa .pill { justify-self: start; margin-bottom: .25rem; font-size: .72rem; }
.jw-siapa strong { font-family: var(--font-display); color: var(--navy); font-size: 1.15rem; line-height: 1.2; }
.jw-siapa small { color: var(--teal-dark); font-weight: 600; font-size: .85rem; }
.jw-waktu { margin-left: auto; color: var(--slate); font-size: .82rem; text-align: right; }
.jw-koreksi { display: flex; gap: .6rem; align-items: flex-start; margin: 0; padding: .8rem 1rem; border-radius: 14px; background: var(--water-soft); font-size: .9rem; color: var(--ink); }
.jw-koreksi::before { content: "↺"; font-weight: 900; color: var(--water); }
.jw-ringkas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.jw-kotak { padding: .85rem 1rem; border-radius: 16px; background: var(--bg); display: grid; gap: .15rem; }
.jw-kotak span { font-size: .78rem; color: var(--slate); font-weight: 600; }
.jw-kotak strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
#v-keparahan[data-tingkat="ringan"] { color: var(--healthy); }
#v-keparahan[data-tingkat="sedang"] { color: var(--warning); }
#v-keparahan[data-tingkat="berat"] { color: var(--sick); }
.jw-saran h4 { font-size: .95rem; color: var(--navy); margin-bottom: .6rem; }
.jw-langkah { list-style: none; counter-reset: jw; display: grid; gap: .5rem; }
.jw-langkah li { counter-increment: jw; display: grid; grid-template-columns: 28px 1fr; gap: .7rem; align-items: start; padding: .7rem .85rem; border-radius: 14px; background: var(--bg); font-size: .93rem; line-height: 1.5; }
.jw-langkah li::before { content: counter(jw); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: .82rem; }
.jw-bayar { font-size: .8rem; color: var(--slate); padding-top: .75rem; border-top: 1px dashed var(--line); margin: 0; }
.sorot .konsul-card { border-width: 1px; border-color: var(--line); box-shadow: var(--shadow-md); }
.sorot .konsul-card.is-done { max-width: 820px; margin: 0 auto; }
.batas-jawab .batas-sisa { color: var(--teal-dark); }

@media (max-width: 880px) {
  .result-hero { padding: 1.25rem 0 2rem; }
  .result-hero-grid { grid-template-columns: 96px minmax(0, 1fr); gap: .5rem 1rem; align-items: start; }
  .result-photo-card { max-width: none; margin: 0; padding: .4rem; border-radius: 18px; grid-row: span 1; }
  .result-photo-card.frame::before, .result-photo-card.frame::after, .result-photo-card > .frame-b::before, .result-photo-card > .frame-b::after { width: 16px; height: 16px; border-width: 3px; margin: .2rem; }
  .result-photo-card img { border-radius: 12px; }
  .result-hero-text { display: contents; }
  .result-hero-text > .result-meta { grid-column: 2; grid-row: 1; align-self: start; margin: .2rem 0 0; font-size: .78rem; }
  .result-hero-text > h1 { grid-column: 2; grid-row: 1; align-self: end; font-size: 1.55rem; margin: 1.4rem 0 0; }
  .result-hero-text > *:not(.result-meta):not(h1) { grid-column: 1 / -1; }
  .result-summary { font-size: .93rem; margin: .5rem 0 .9rem; }
  .gauge-row { gap: .9rem; margin-bottom: .9rem; padding: .75rem; border-radius: 16px; background: rgba(255,255,255,.07); }
  .gauge { width: 70px; height: 70px; }
  .label-yakin { font-size: .78rem !important; }
  .gauge-text strong { font-size: .92rem; }
  .gauge-text p { font-size: .82rem; }
  .result-disclaimer { font-size: .76rem; margin-bottom: .9rem; }
  .result-hero .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .result-hero .hero-actions .btn { justify-content: center; padding: .7rem .6rem; font-size: .88rem; }
  .jenis-chips { margin: 0 0 1rem; font-size: .82rem; }
  .jenis-chips button { padding: .2rem .65rem; font-size: .8rem; }
  .result-body { padding: 1.25rem 0 3rem; gap: 1rem; }
  .result-main { padding: 1rem; border-radius: 20px; }
  .result-tabs { margin-bottom: 1rem; }
  .result-tabs button { padding: .5rem .9rem; font-size: .88rem; }
  .tab-panel h2 { font-size: 1.15rem; }
  .konsul-card { padding: 1.1rem; border-radius: 20px; box-shadow: 6px 6px 0 var(--teal-soft); }
  .konsul-card h3 { font-size: 1.1rem; }
  .konsul-card > div > p { font-size: .9rem; }
  .konsul-dl { grid-template-columns: 6.5rem 1fr; font-size: .88rem; margin: .6rem 0; }
  .ketentuan { font-size: .83rem; }
  .konsul-aksi { grid-template-columns: 1fr; }
  .konsul-aksi .btn-ghost { order: 2; }
  .sorot { padding-top: .75rem; }
  .sorot.container { width: calc(100% - 1.5rem); }
  .jw-kepala .ahli-av { width: 42px; height: 42px; }
  .jw-waktu { margin-left: 0; text-align: left; width: 100%; }
  .info-baris { grid-template-columns: 1fr; gap: .5rem; padding: .9rem; }
  .todo label { padding: .7rem .8rem; font-size: .9rem; }
}

/* =========================================================
   Halaman Riwayat (HP)
   ========================================================= */
@media (max-width: 880px) {
  .hist-hero { padding: 1.5rem 0 1.25rem; }
  .hist-hero h1 { font-size: 1.7rem; }
  .hist-hero p { font-size: .9rem; margin-bottom: 1rem; }
  .hist-hero-atas { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
  .hist-scan-baru { padding: .6rem .9rem; font-size: .88rem; flex-shrink: 0; }
  .hist-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; border: 0; }
  .hist-stats > div, .hist-stats > div + div { padding: .6rem .5rem; border: 0; border-radius: 14px; background: rgba(255,255,255,.08); text-align: center; }
  .hist-stats dt { font-size: .68rem; line-height: 1.25; order: 2; }
  .hist-stats > div { display: flex; flex-direction: column-reverse; gap: .1rem; }
  .hist-stats dd { font-size: 1.35rem; }
  .hist-body { padding: 1.25rem 0 3rem; }
  .hist-toolbar { gap: .6rem; margin-bottom: 1.1rem; }
  .seg-filter { margin: 0 -1.25rem; padding: 0 1.25rem .25rem; scrollbar-width: none; }
  .seg-filter::-webkit-scrollbar { display: none; }
  .seg-filter button { padding: .4rem .5rem .4rem .8rem; font-size: .84rem; }
  .h-item { grid-template-columns: 64px minmax(0, 1fr); gap: .75rem; padding: .7rem; border-radius: 16px; }
  .h-thumb img { width: 64px; height: 64px; }
  .h-main { gap: .3rem; }
  .h-actions { padding-top: .5rem; gap: .5rem; }
  .h-actions .btn { flex: 1; justify-content: center; padding: .5rem .8rem; font-size: .86rem; }
  .h-group h2 { font-size: .98rem; }
}

/* =========================================================
   Masuk / Daftar: dua kolom di laptop
   ========================================================= */
.auth.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 68px); padding: 0; place-items: stretch; }
.auth-visual {
  position: relative; overflow: hidden; display: grid; place-items: center; padding: 3rem 3.5rem;
  background: radial-gradient(circle at 20% 15%, rgba(127,209,199,.25), transparent 45%), linear-gradient(150deg, #0f3352 0%, #15496b 55%, #1a8580 130%);
  color: #fff;
}
.auth-visual-isi { position: relative; z-index: 1; max-width: 440px; width: 100%; }
.auth-badge { display: inline-block; padding: .3rem .8rem; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-size: .8rem; font-weight: 700; margin-bottom: 1.1rem; }
.auth-visual h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 1.4rem; }
.auth-fitur { list-style: none; display: grid; gap: .7rem; margin-bottom: 2rem; }
.auth-fitur li { display: flex; align-items: center; gap: .7rem; color: #cfe0ee; font-size: .97rem; }
.auth-fitur span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(127,209,199,.2); color: #7fd1c7; font-size: .78rem; font-weight: 900; flex-shrink: 0; }
.auth-demo { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: center; padding: 1rem; border-radius: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); animation: melayang 6s ease-in-out infinite; }
.auth-demo-foto { position: relative; border-radius: 16px; background: #fff; padding: .45rem; overflow: hidden; }
.auth-demo-foto img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.auth-demo-foto .scan-line { left: 8%; right: 8%; }
.auth-demo-foto.frame::before, .auth-demo-foto.frame::after, .auth-demo-foto > .frame-b::before, .auth-demo-foto > .frame-b::after { width: 18px; height: 18px; border-width: 3px; margin: .25rem; }
.auth-demo-hasil { display: flex; gap: .7rem; align-items: center; padding: .8rem .9rem; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.auth-demo-hasil .dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-weight: 900; flex-shrink: 0; }
.auth-demo-hasil strong { display: block; font-family: var(--font-display); color: var(--teal-dark); }
.auth-demo-hasil small { color: var(--slate); font-size: .78rem; }
.auth-gelembung { position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); animation: naik 14s linear infinite; }
.auth-gelembung.g1 { width: 120px; height: 120px; left: 8%; bottom: -140px; }
.auth-gelembung.g2 { width: 60px; height: 60px; left: 70%; bottom: -80px; animation-duration: 10s; animation-delay: 3s; }
.auth-gelembung.g3 { width: 200px; height: 200px; right: -60px; top: -60px; animation: none; background: rgba(127,209,199,.08); }
@keyframes melayang { 50% { transform: translateY(-8px); } }
@keyframes naik { to { transform: translateY(-120vh); } }
.auth-panel { display: grid; place-items: center; padding: 3rem 1.5rem; background: var(--bg); }
.auth-split .auth-card { width: min(420px, 100%); padding: 2.25rem 2rem; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--surface); animation: pop .4s ease; }
.auth-split .auth-card > .brand { justify-content: flex-start; margin-bottom: 1.25rem; }
.auth-split .auth-judul { text-align: left; font-size: 1.55rem; }
.auth-split .auth-teks { text-align: left; margin-bottom: 1.25rem; }
.auth-tabs { position: relative; }
.auth-tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: var(--surface); box-shadow: 0 2px 8px rgba(21,57,93,.1); transition: transform .3s cubic-bezier(.3,.9,.3,1); }
.auth-tabs[data-aktif="register"]::before { transform: translateX(100%); }
.auth-tabs button { position: relative; z-index: 1; background: none !important; box-shadow: none !important; }
.auth-split .field input { padding: .8rem 1rem; border-radius: 12px; transition: border-color .2s, box-shadow .2s, background .2s; }
.auth-split .field input:hover { border-color: #b9cbd8; }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 3rem !important; }
.pw-lihat { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--slate); cursor: pointer; }
.pw-lihat:hover { background: var(--bg); color: var(--ink); }
.pw-lihat.aktif { color: var(--teal); }
.pw-lihat.aktif svg path { stroke-dasharray: 2 3; }
.pw-syarat { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.pw-syarat li { font-size: .74rem; font-weight: 600; padding: .15rem .55rem; border-radius: 99px; background: var(--bg); color: var(--slate); transition: background .2s, color .2s; }
.pw-syarat li::before { content: "○ "; }
.pw-syarat li.ok { background: var(--teal-soft); color: var(--teal-dark); }
.pw-syarat li.ok::before { content: "✓ "; }
.pw-syarat[data-kekuatan="kuat"] li { background: var(--teal); color: #fff; }
@media (max-width: 880px) {
  .auth.auth-split { grid-template-columns: 1fr; min-height: auto; }
  .auth-visual { padding: 1.5rem 1.25rem 4rem; }
  .auth-visual h2 { font-size: 1.4rem; margin-bottom: .8rem; }
  .auth-fitur, .auth-demo, .auth-badge { display: none; }
  .auth-panel { padding: 0 1rem 2.5rem; margin-top: -3rem; background: transparent; position: relative; z-index: 1; }
  .auth-split .auth-card { padding: 1.5rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .auth-demo, .auth-gelembung { animation: none; } }

/* =========================================================
   Tentang: angka dalam kartu
   ========================================================= */
.about-angka-wrap { background: var(--bg); border: 0; padding: 2.25rem 0 .5rem; }
.about-angka { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.about-angka > div, .about-angka > div + div {
  display: grid; justify-items: start; text-align: left; gap: .1rem; padding: 1.25rem 1.3rem; border: 1px solid var(--line) !important;
  border-radius: 22px; background: var(--surface); transition: transform .2s, box-shadow .2s;
}
.about-angka > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.angka-ikon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--teal-soft); color: var(--teal); margin-bottom: .6rem; }
.about-angka > div:nth-child(2) .angka-ikon { background: var(--water-soft); color: var(--water); }
.about-angka > div:nth-child(3) .angka-ikon { background: #fff4e0; color: var(--warning); }
.about-angka > div:nth-child(4) .angka-ikon { background: #eee9fb; color: #6a4fc9; }
.about-angka dd { font-size: clamp(1.8rem, 3.4vw, 2.3rem); order: 1; }
.about-angka dt { order: 2; color: var(--navy); font-weight: 700; font-size: .92rem; margin-top: .1rem; }
.about-angka small { order: 3; color: var(--slate); font-size: .8rem; line-height: 1.4; }
.about-angka .angka-ikon { order: 0; }
@media (max-width: 880px) {
  .about-angka { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .about-angka > div, .about-angka > div + div { padding: 1rem; border-radius: 18px; }
  .angka-ikon { width: 36px; height: 36px; margin-bottom: .4rem; }
}

/* =========================================================
   Profil
   ========================================================= */
.pf-ahli { padding: 1rem 1rem .1rem; margin-bottom: 1rem; border-radius: 16px; background: var(--water-soft); }
.pf-ahli textarea { width: 100%; }
.pf-verif-uji { font-size: .85rem; margin-top: .4rem; }

/* =========================================================
   Ukuran teks di HP: lebih kecil & rapat
   ========================================================= */
@media (max-width: 640px) {
  body { font-size: .95rem; }
  .container { width: calc(100% - 2rem); }
  .btn { padding: .75rem 1.25rem; font-size: .95rem; }
  .btn-lg { padding: .85rem 1.4rem; font-size: .97rem; }
  .home-hero { padding: 2rem 0 4.5rem; }
  .home-hero-grid { gap: 2rem; }
  .home-hero h1 { font-size: 2rem; margin-bottom: .9rem; }
  .home-hero .lead { font-size: .97rem; margin-bottom: 1.4rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .hero-actions .btn { justify-content: center; padding: .75rem .7rem; font-size: .9rem; }
  .hero-note { margin-top: 1.25rem; font-size: .84rem; }
  .phone { width: 210px; border-radius: 34px; padding: 7px; }
  .phone-screen { border-radius: 28px; }
  .phone-notch { width: 64px; height: 18px; top: 8px; }
  .phone-top { padding-top: 2rem; font-size: .8rem; }
  .phone-sheet { padding: .65rem .75rem; }
  .phone-sheet strong { font-size: .85rem; }
  .home-section { padding: 3rem 0; }
  .home-head { margin-bottom: 1.5rem; }
  .home-head h2 { font-size: 1.5rem; }
  .home-head p { font-size: .93rem; }
  .home-steps li { padding: 1.1rem; }
  .home-steps h3 { font-size: 1.02rem; }
  .home-steps p { font-size: .88rem; }
  .home-diseases .home-kondisi { padding: 1rem 1.1rem; }
  .home-diseases h3 { font-size: 1.02rem; }
  .home-diseases p { font-size: .87rem; }
  .home-tips { padding: 3rem 0; }
  .tips-kartu { grid-template-columns: 1fr; gap: .5rem; margin-bottom: 1.5rem; }
  .tips-kartu li { display: grid; grid-template-columns: 30px 1fr; gap: .75rem; align-items: center; padding: .8rem .9rem; border-radius: 16px; font-size: .9rem; }
  .tips-kartu li::before { width: 30px; height: 30px; margin: 0; border-radius: 9px; font-size: .85rem; }
  .cta-banner { padding: 1.4rem 1.25rem; border-radius: 22px; }
  .cta-banner .btn { width: 100%; justify-content: center; }
  .ency-hero { padding: 1.75rem 0 2rem; }
  .ency-hero h1 { font-size: 1.7rem; }
  .ency-hero > .container > p { font-size: .9rem; margin-bottom: 1.1rem; }
  .ency-search input { padding-top: .8rem; padding-bottom: .8rem; font-size: .92rem; }
  .about-hero h1 { font-size: 1.8rem; }
  .about-section { padding: 3rem 0; }
  .pd-kartu { padding: .95rem 1rem .9rem; border-radius: 18px; }
  .pd-isi h3 { font-size: 1rem; }
  .pd-isi p { font-size: .86rem; }
  .pd-ikon { width: 38px; height: 38px; border-radius: 12px; }
  .pd-ikon svg { width: 18px; height: 18px; }
  .pd-aksi .btn { padding: .55rem 1rem; font-size: .88rem; }
}

/* =========================================================
   Kerangka dasbor (Super admin & Ahli)
   ========================================================= */
body.pakai-dash { background: #f3f6f8; }
.dash { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.dash-side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: .25rem;
  padding: 1.1rem .85rem 1rem; background: var(--surface); border-right: 1px solid #e3e9ee; z-index: 80; overflow-y: auto;
}
.dash-brand { display: flex; align-items: center; gap: .55rem; padding: .3rem .55rem 1.1rem; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; color: var(--navy); }
.dash-brand img { width: 30px; }
.dash-brand b { font-weight: inherit; }
.dash-brand b span { color: var(--teal); }
.dash-brand small { margin-left: auto; font-family: var(--font-body); font-size: .66rem; font-weight: 700; color: var(--slate); background: var(--bg); border: 1px solid var(--line); padding: .1rem .5rem; border-radius: 99px; }
.dash-nav { display: grid; gap: .1rem; }
.dash-grup { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #94a7bb; padding: .9rem .7rem .35rem; }
.dash-nav a {
  position: relative; display: flex; align-items: center; gap: .7rem; padding: .58rem .7rem; border-radius: 10px;
  color: #3b5470; font-weight: 600; font-size: .9rem; transition: background .15s, color .15s;
}
.dash-nav a svg { color: #8aa0b6; flex-shrink: 0; transition: color .15s; }
.dash-nav a em { font-style: normal; margin-left: auto; color: #a6b6c6; font-size: .8rem; }
.dash-nav a:hover { background: #f1f5f8; color: var(--navy); }
.dash-nav a.aktif { background: var(--teal-soft); color: var(--teal-dark); }
.dash-nav a.aktif::before { content: ""; position: absolute; left: -.85rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--teal); }
.dash-nav a.aktif svg { color: var(--teal); }
.dash-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 .4rem; border-radius: 99px; background: var(--sick); color: #fff; font-size: .7rem; font-weight: 700; line-height: 20px; text-align: center; }
.dash-side-kaki { margin-top: auto; display: flex; align-items: center; gap: .65rem; padding: .75rem .6rem; border-radius: 14px; background: #f5f8fa; border: 1px solid #e8eef2; }
.dash-saya { display: grid; min-width: 0; line-height: 1.25; }
.dash-saya strong { font-size: .88rem; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-saya small { font-size: .74rem; color: var(--slate); }
.dash-keluar { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--slate); cursor: pointer; }
.dash-keluar:hover { background: var(--sick-soft); color: var(--sick); }
.dash-utama { min-width: 0; display: flex; flex-direction: column; }
.dash-top.navbar { position: sticky; top: 0; background: rgba(243,246,248,.9); border-bottom: 1px solid #e3e9ee; }
.dash-top .container { width: auto; height: 64px; padding: 0 1.75rem; margin: 0; display: flex; align-items: center; gap: .9rem; }
.dash-judul-wrap { min-width: 0; }
.dash-remah { font-size: .72rem; color: var(--slate); font-weight: 600; line-height: 1.2; }
.dash-judul { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); line-height: 1.2; }
.dash-top .nav-akun { margin-left: auto; }
.dash-isi { flex: 1; }
.dash-isi > main { padding: 1.5rem 1.75rem 3rem; }
.dash-isi .container { width: 100%; max-width: 1240px; margin-inline: 0; }
.dash-latar { position: fixed; inset: 0; z-index: 75; background: rgba(10,32,54,.45); backdrop-filter: blur(2px); }
@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: fixed; left: 0; top: 0; bottom: 0; width: min(280px, 85vw); transform: translateX(-105%); transition: transform .3s cubic-bezier(.3,.9,.3,1); box-shadow: 20px 0 60px rgba(10,32,54,.2); }
  .dash-side.open { transform: none; }
  .dash-burger { display: grid; }
  .dash-top .container { height: 58px; padding: 0 1rem; }
  .dash-isi > main { padding: 1rem 1rem 3rem; }
}

/* Kartu & panel di dalam dasbor: solid, rapi */
.pakai-dash .adm-body, .pakai-dash .pf-body, .pakai-dash .val-body { padding-top: 0; }
.pakai-dash .adm-panel, .pakai-dash .pf-card, .pakai-dash .val-queue, .pakai-dash .val-detail, .db-kartu {
  background: var(--surface); border: 1px solid #e3e9ee; border-radius: 14px; box-shadow: var(--shadow-sm);
}
.pakai-dash .adm-tabs { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.pakai-dash .val-hero { background: none; color: var(--ink); padding: 0 0 1.25rem; }
.pakai-dash .val-hero::before { display: none; }
.pakai-dash .val-hero h1 { color: var(--navy); font-size: 1.6rem; }
.pakai-dash .val-hero-top { margin-bottom: 1rem; }
.pakai-dash .val-hero-top p:last-child { color: var(--slate); }
.pakai-dash .val-hero .hist-stats { border: 0; gap: .75rem; }
.pakai-dash .val-hero .hist-stats > div, .pakai-dash .val-hero .hist-stats > div + div { padding: 1rem 1.1rem; border: 1px solid #e3e9ee; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.pakai-dash .val-hero .hist-stats dt { color: var(--slate); }
.pakai-dash .val-hero .hist-stats dd { color: var(--navy); font-size: 1.7rem; }
.pakai-dash .val-greet { color: var(--slate); }
.pakai-dash .btn { border-radius: 10px; }
.pakai-dash .btn-primary { box-shadow: none; }
.pakai-dash .kt-atas { padding-top: 0; }
.pakai-dash .val-queue { top: 80px; }

.db-sapa { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.db-sapa-kecil { color: var(--slate); font-size: .88rem; font-weight: 600; }
.db-sapa h2 { font-size: 1.5rem; margin: .1rem 0 .15rem; }
.db-sapa-aksi { display: flex; gap: .5rem; flex-wrap: wrap; }
.db-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.db-kpi.kpi-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.db-kpi > div { position: relative; overflow: hidden; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid #e3e9ee; border-radius: 14px; box-shadow: var(--shadow-sm); }
.db-kpi > div::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--k, var(--teal)); }
.db-kpi .kpi-a { --k: var(--teal); }
.db-kpi .kpi-b { --k: var(--water); }
.db-kpi .kpi-c { --k: var(--warning); }
.db-kpi .kpi-d { --k: #6a4fc9; }
.db-kpi dt { color: var(--slate); font-size: .82rem; font-weight: 600; }
.db-kpi dd { font-family: var(--font-display); font-weight: 900; font-size: 1.85rem; color: var(--navy); line-height: 1.2; margin: .2rem 0 .1rem; font-variant-numeric: tabular-nums; }
.db-kpi small { color: var(--slate); font-size: .78rem; }
.db-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.db-kartu { padding: 1.1rem 1.25rem; min-width: 0; }
.db-lebar { grid-column: 1 / -1; }
.db-kartu-kepala { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.db-kartu h3 { font-size: 1rem; }
.db-kartu .link-btn { font-size: .85rem; }
.db-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg); }
.db-seg button { border: 0; background: none; padding: .35rem .8rem; border-radius: 8px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--slate); cursor: pointer; }
.db-seg button[aria-pressed="true"] { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-sm); }
.db-total { margin-bottom: .75rem; }
.db-total strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); }
.db-total span { color: var(--slate); font-size: .85rem; }
.db-batang { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: .45rem; height: 190px; align-items: end; }
.db-kolom { display: grid; grid-template-rows: auto 1fr auto; height: 100%; justify-items: center; gap: .25rem; }
.db-nilai { font-size: .68rem; font-weight: 700; color: var(--slate); min-height: 1em; }
.db-bar { align-self: end; width: 100%; max-width: 34px; height: var(--h); border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--teal), #3fb3a6); transition: height .5s cubic-bezier(.3,.9,.3,1), opacity .2s; }
.db-kolom:hover .db-bar { opacity: .8; }
.db-kolom:last-child .db-bar { background: linear-gradient(180deg, var(--navy), var(--water)); }
.db-tgl { font-size: .66rem; color: #94a7bb; white-space: nowrap; min-height: 1em; }
.db-hasil { display: grid; gap: .9rem; }
.db-hasil-baris { display: grid; grid-template-columns: 1fr auto; gap: .3rem .75rem; align-items: center; font-size: .9rem; }
.db-hasil-baris strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.db-hasil-bar { grid-column: 1; height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.db-hasil-bar i { display: block; height: 100%; border-radius: 99px; transition: width .5s; }
.db-hasil-baris small { color: var(--slate); font-size: .78rem; }
.db-daftar { display: grid; }
.db-baris { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .6rem .25rem; border-bottom: 1px solid #eef2f5; color: var(--ink); border-radius: 8px; }
.db-baris:last-child { border-bottom: 0; }
.db-baris:hover { background: #f7fafb; }
.db-baris .trx-av, .db-baris .avatar-lingkar { width: 36px; height: 36px; font-size: .78rem; }
.db-baris-teks { display: grid; min-width: 0; line-height: 1.3; }
.db-baris-teks strong { font-size: .9rem; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-baris-teks small { font-size: .78rem; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-baris-kanan { display: grid; justify-items: end; gap: .2rem; font-size: .85rem; }
.db-baris-kanan small { color: var(--slate); font-size: .74rem; }
.adm-beranda .adm-peringatan { margin-bottom: 1rem; }
.adm-peringatan button { border-radius: 12px; }
@media (max-width: 1100px) { .db-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .db-grid { grid-template-columns: 1fr; }
  .db-kpi, .db-kpi.kpi-3 { gap: .6rem; }
  .db-kpi.kpi-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .db-kpi > div { padding: .85rem .9rem; }
  .db-kpi dd { font-size: 1.4rem; }
  .db-kpi.kpi-3 small { display: none; }
  .db-batang { gap: .2rem; height: 150px; }
  .db-nilai { display: none; }
  .db-sapa h2 { font-size: 1.25rem; }
}

/* Ahli: dashboard & antrean */
.val-dash { padding: 0; }
.val-dash .db-kartu { margin-top: .25rem; }
.vd-prioritas { list-style: none; display: grid; gap: .5rem; }
.vp-item {
  width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: .9rem; align-items: center;
  padding: .65rem .75rem; border: 1px solid #e3e9ee; border-radius: 12px; background: var(--surface); text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.vp-item:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.vp-item.urgent { border-left: 4px solid var(--sick); }
.vp-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.vp-teks { display: grid; min-width: 0; line-height: 1.35; }
.vp-teks strong { color: var(--navy); font-size: .95rem; }
.vp-teks small { color: var(--slate); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-kanan { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.vp-aksi { padding: .45rem .9rem; border-radius: 9px; background: var(--teal); color: #fff; font-weight: 700; font-size: .84rem; }
.vp-kosong { display: grid; gap: .2rem; padding: 1.5rem; border-radius: 12px; background: var(--bg); text-align: center; color: var(--slate); font-size: .9rem; }
.vp-kosong strong { color: var(--navy); }
.val-tabs.mode-riwayat button:not([data-tab="selesai"]) { display: none; }
.val-tabs.mode-riwayat { grid-template-columns: 1fr; }
.val-tabs:not(.mode-riwayat) button[data-tab="selesai"] { display: none; }
.val-tabs:not(.mode-riwayat) { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) {
  .vp-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: .65rem; }
  .vp-item img { width: 44px; height: 44px; }
  .vp-kanan { grid-column: 2 / -1; justify-content: flex-start; }
  .vp-aksi { grid-row: 1; grid-column: 3; }
}
@media (max-width: 980px) {
  .pakai-dash .val-body { grid-template-columns: 1fr; }
  .pakai-dash .val-queue { position: static; }
  .pakai-dash .val-body.ada-detail .val-queue { display: none; }
  .pakai-dash .val-body:not(.ada-detail) .val-detail { display: none; }
}
.vd-kembali { display: none; align-items: center; gap: .35rem; margin-bottom: .75rem; padding: .4rem .8rem .4rem .5rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--navy); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
@media (max-width: 980px) { .vd-kembali { display: inline-flex; } }
/* Laci menu harus di atas lapisan gelap: navbar (yang memuat laci) dinaikkan saat terbuka */
body.nav-terbuka .navbar { z-index: 100; backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
.nav-links .nav-laci-cta .btn-primary, .nav-links .nav-laci-cta .btn-primary:hover { color: #fff; }
@media (max-width: 880px) {
  .hist-hero .hist-hero-atas { display: flex; flex-direction: row; align-items: center; margin-bottom: .9rem; }
  .hist-hero .hist-hero-atas p { margin-bottom: 0; }
  .hist-hero .hist-scan-baru { padding: .55rem .85rem; font-size: .85rem; }
  .hist-hero .hist-scan-baru svg { width: 18px; height: 18px; }
}

/* =========================================================
   Halaman Masuk / Daftar / Lupa sandi (tampilan profesional)
   ========================================================= */
body.halaman-auth { background: #fff; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
body.halaman-auth main { padding-bottom: 0; }
.halaman-auth .pd-bantuan { display: none; }
.ap { display: grid; grid-template-columns: minmax(380px, 44%) minmax(0, 1fr); min-height: 100vh; }

/* Panel kiri */
.ap-visual {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: space-between;
  padding: 2.5rem 3rem; color: #c7d5e3; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(26,133,128,.28), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(58,150,201,.18), transparent 60%),
    #0b2540;
}
.ap-visual::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.ap-visual > * { position: relative; }
.ap-logo { display: inline-flex; align-items: center; gap: .55rem; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: #fff; }
.ap-logo img { width: 30px; }
.ap-logo b { font-weight: inherit; }
.ap-logo span { color: #6fcfc3; }
.ap-visual-isi { max-width: 440px; }
.ap-eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6fcfc3; margin-bottom: 1rem; }
.ap-visual h2 { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.05rem); line-height: 1.25; letter-spacing: -.02em; color: #fff; margin-bottom: 2.25rem; }
.ap-fitur { list-style: none; display: grid; gap: 1.4rem; }
.ap-fitur li { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: start; }
.ap-fitur-ikon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #9fe0d6; }
.ap-fitur strong { display: block; color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: .1rem; }
.ap-fitur small { color: #93a9bf; font-size: .87rem; line-height: 1.5; }
.ap-kaki { font-size: .78rem; color: #6f88a1; }

/* Panel kanan */
.ap-panel { display: flex; flex-direction: column; min-height: 100vh; padding: 1.75rem 2.5rem; background: #fff; }
.ap-atas { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.ap-logo-hp { display: none; color: var(--navy); }
.ap-logo-hp span { color: var(--teal); }
.ap-kembali, .ap-kembali-masuk { display: inline-flex; align-items: center; gap: .35rem; color: #5b6f84; font-size: .87rem; font-weight: 500; }
.ap-kembali:hover, .ap-kembali-masuk:hover { color: var(--navy); }
.ap-form { width: min(400px, 100%); margin: auto; padding: 2.5rem 0; animation: ap-masuk .35s ease both; }
@keyframes ap-masuk { from { opacity: 0; transform: translateY(6px); } }
.ap-bawah { text-align: center; font-size: .82rem; color: #8193a6; }
.ap-bawah a { font-weight: 600; color: var(--teal-dark); }

.ap-kepala { margin-bottom: 1.75rem; }
.ap-kepala h1 { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 1.65rem; letter-spacing: -.02em; line-height: 1.25; color: #0f2a44; margin-bottom: .4rem; }
.ap-kepala p { color: #5b6f84; font-size: .93rem; line-height: 1.55; }
.ap .auth-tabs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.ap .auth-intro { text-align: left; border-radius: 8px; background: #edf7f6; color: #0f4f4b; border: 1px solid #cfe9e5; font-size: .88rem; margin: 0 0 1.25rem; }

.ap .field { gap: .4rem; margin-bottom: 1.15rem; }
.ap .field label { font-weight: 600; font-size: .85rem; color: #24384d; }
.ap-label-baris { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ap-link { font-size: .83rem; font-weight: 600; color: var(--teal-dark); }
.ap-link:hover { text-decoration: underline; }
.ap-opsional { font-weight: 500; color: #8193a6; font-size: .78rem; margin-left: .25rem; }
.ap .field input {
  height: 44px; padding: 0 .9rem; border: 1px solid #d3dce4; border-radius: 8px; background: #fff;
  font: inherit; font-size: .93rem; color: #0f2a44; box-shadow: 0 1px 2px rgba(15,42,68,.04);
  transition: border-color .15s, box-shadow .15s;
}
.ap .field input::placeholder { color: #9aabbb; }
.ap .field input:hover { border-color: #b4c3d0; }
.ap .field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,133,128,.15); outline: none; }
.ap .pw-wrap input { padding-right: 2.9rem !important; }
.ap .pw-lihat { width: 34px; height: 34px; border-radius: 6px; right: .3rem; color: #7b8fa3; }
.ap .pw-lihat.aktif { color: var(--teal-dark); }

.ap-btn { width: 100%; height: 46px; justify-content: center; border-radius: 8px !important; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: .95rem; margin-top: .35rem; box-shadow: 0 1px 2px rgba(15,42,68,.1) !important; }
.ap-btn:hover { transform: none; }
.ap-btn:disabled { opacity: .8; cursor: progress; }
.ap-btn:disabled::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: gw-putar .8s linear infinite; }
.ap-ganti { margin-top: 1.4rem; text-align: center; font-size: .88rem; color: #5b6f84; }
.ap-ganti .link-btn { color: var(--teal-dark); font-weight: 600; font-size: .88rem; }
.ap-ganti .link-btn:hover { text-decoration: underline; }
.ap-legal { margin-top: .9rem; font-size: .77rem; line-height: 1.5; color: #8193a6; text-align: center; }

/* Syarat kata sandi: daftar rapi dua kolom */
.ap .pw-syarat { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1rem; margin-top: .6rem; }
.ap .pw-syarat li, .ap .pw-syarat[data-kekuatan="kuat"] li { display: flex; align-items: center; gap: .4rem; padding: 0; background: none; border-radius: 0; font-size: .78rem; font-weight: 500; color: #8193a6; }
.ap .pw-syarat li::before, .ap .pw-syarat li.ok::before {
  content: ""; flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #c3d0db; background: #fff; transition: all .15s;
}
.ap .pw-syarat li.ok { color: #1f6b5c; }
.ap .pw-syarat li.ok::before {
  border-color: var(--teal); background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Pesan */
.ap .alert { margin-top: 1rem; padding: .7rem .9rem; border-radius: 8px; font-size: .87rem; line-height: 1.5; border: 1px solid transparent; }
.ap .alert-error { background: #fdf2f1; border-color: #f4d3cf; color: #9b2c22; }
.ap .alert-info, .ap .alert-sukses { background: #eef6fb; border-color: #d2e6f2; color: #1d4e6e; }

/* Lupa sandi & hasil */
.ap-ikon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.25rem; border-radius: 12px; background: #edf7f6; color: var(--teal-dark); border: 1px solid #cfe9e5; }
.ap-ikon svg { width: 22px; height: 22px; }
.ap-hasil .ap-ikon svg { display: none; }
.ap-ikon[data-jenis="email"] .ik-email, .ap-ikon[data-jenis="ok"] .ik-ok, .ap-ikon[data-jenis="gagal"] .ik-gagal { display: block; }
.ap-ikon[data-jenis="gagal"] { background: #fdf2f1; color: #b3261e; border-color: #f4d3cf; }
.ap-bantuan { margin-top: 1.25rem; padding: .8rem 1rem; border: 1px solid #e3e9ee; border-radius: 8px; font-size: .86rem; color: #5b6f84; }
.ap-bantuan summary { cursor: pointer; font-weight: 600; color: #24384d; }
.ap-bantuan p { margin: .6rem 0 .3rem; line-height: 1.55; }
.ap-bantuan ul { padding-left: 1.1rem; display: grid; gap: .2rem; }
.ap-kembali-masuk { margin-top: 1.5rem; }

@media (max-width: 960px) {
  .ap { grid-template-columns: 1fr; }
  .ap-visual { display: none; }
  .ap-panel { padding: 1.1rem 1.25rem; }
  .ap-atas { justify-content: space-between; }
  .ap-logo-hp { display: inline-flex; }
  .ap-form { padding: 2rem 0 2.5rem; margin-top: 1rem; }
  .ap-kepala h1 { font-size: 1.45rem; }
}
@media (max-width: 380px) { .ap .pw-syarat { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ap-form { animation: none; } }
.ap-visual .ap-logo img { border-radius: 7px; background: #fff; padding: 2px; }

/* Tentang: profil ahli validator */
.ahli-profil { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; align-items: center; padding: 2.5rem; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ahli-profil-kiri { display: grid; justify-items: center; gap: 1rem; }
.ahli-profil-av { display: grid; place-items: center; width: 168px; height: 168px; border-radius: 50%; background: linear-gradient(140deg, var(--teal), var(--navy)); color: #fff; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 3rem; letter-spacing: .02em; box-shadow: 0 0 0 8px var(--teal-soft); }
.ahli-profil-lencana { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 99px; background: var(--teal-soft); color: var(--teal-dark); font-size: .82rem; font-weight: 700; }
.ahli-profil-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.ahli-profil h2 { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: .25rem; }
.ahli-profil-jabatan { color: var(--slate); font-weight: 600; margin-bottom: 1rem; }
.ahli-profil-isi > p:not(.ahli-profil-label):not(.ahli-profil-jabatan) { max-width: 46em; line-height: 1.65; }
.ahli-fakta { list-style: none; display: grid; gap: .55rem; margin-top: 1.25rem; }
.ahli-fakta li { position: relative; padding: .7rem .9rem .7rem 2.4rem; border-radius: 12px; background: var(--bg); font-size: .93rem; line-height: 1.5; }
.ahli-fakta li::before { content: ""; position: absolute; left: .9rem; top: .95rem; width: 16px; height: 16px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
@media (max-width: 880px) {
  .ahli-profil { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 1.25rem; text-align: left; }
  .ahli-profil-kiri { grid-auto-flow: column; justify-content: start; align-items: center; }
  .ahli-profil-av { width: 76px; height: 76px; font-size: 1.5rem; box-shadow: 0 0 0 5px var(--teal-soft); }
}


/* Section ahli: latar sendiri, beda dari Latar belakang */
.about-section#ahli {
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(26,133,128,.10), transparent 60%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(58,150,201,.10), transparent 60%),
    #eaf4f3;
  border-top: 1px solid #d6e8e6; border-bottom: 1px solid #d6e8e6;
}
.about-section#ahli .ahli-profil { border-color: #d3e5e3; box-shadow: 0 1px 2px rgba(15,42,68,.05), 0 16px 40px rgba(15,42,68,.08); }

/* =========================================================
   Halaman Tentang: tampilan modern
   ========================================================= */
.halaman-tentang h1, .halaman-tentang h2, .halaman-tentang h3 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.025em; }
.halaman-tentang h2 { font-weight: 800; }
.halaman-tentang h3 { font-weight: 700; }

/* Label kecil di atas judul section */
.halaman-tentang .home-head[data-eyebrow]::before {
  content: attr(data-eyebrow); display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .9rem;
  padding: .3rem .8rem .3rem .65rem; border-radius: 99px; background: var(--teal-soft); color: var(--teal-dark);
  font-family: "Plus Jakarta Sans", sans-serif; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.halaman-tentang .home-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; }

/* Hero: motif garis halus + judul berwarna */
.halaman-tentang .about-hero { padding: 5rem 0 9rem; background: radial-gradient(ellipse 60% 70% at 85% 10%, rgba(26,133,128,.35), transparent 60%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(58,150,201,.18), transparent 60%), #0b2540; }
.halaman-tentang .about-hero::before {
  top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto; border-radius: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 60% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 60% 30%, #000, transparent 75%);
}
.halaman-tentang .about-hero h1 { font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.halaman-tentang .about-hero p { color: #a9bfd3; }

/* Kartu angka melayang menimpa hero */
.halaman-tentang .about-angka-wrap { background: transparent; padding: 0; margin-top: -5.5rem; position: relative; z-index: 2; }
.halaman-tentang .about-angka > div, .halaman-tentang .about-angka > div + div {
  border: 1px solid rgba(15,42,68,.06) !important; box-shadow: 0 1px 2px rgba(15,42,68,.05), 0 18px 44px rgba(15,42,68,.12);
}
.halaman-tentang .about-angka dd {
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--navy), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.halaman-tentang .about-angka dd em { -webkit-text-fill-color: var(--teal); }

/* Urutan latar section: putih / teal / abu bertitik / putih / abu / putih */
.halaman-tentang [data-konten-bagian="Latar belakang"] { background: var(--bg); padding-top: 6rem; }
.halaman-tentang [data-konten-bagian="Cara kerja"] {
  background-color: #f3f7f9;
  background-image: radial-gradient(rgba(15,42,68,.09) 1px, transparent 1px); background-size: 22px 22px;
}
.halaman-tentang [data-konten-bagian="Siapa yang memakai"] { background: #fff; }
.halaman-tentang #faq { background: var(--bg); }
.halaman-tentang [data-konten-bagian="Tim pengembang"] { background: #fff; }

/* Latar belakang: teks besar + kartu bento */
.halaman-tentang .about-prose p:first-child { font-size: 1.25rem; line-height: 1.55; color: var(--navy); font-weight: 600; letter-spacing: -.01em; }
.halaman-tentang .about-prose p + p { color: var(--slate); }
.halaman-tentang .about-manfaat { grid-template-columns: 1.25fr 1fr 1fr; }
.halaman-tentang .about-manfaat li { padding: 1.9rem 1.7rem; border-radius: 22px; overflow: hidden; }
.halaman-tentang .about-manfaat li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--water)); opacity: 0; transition: opacity .25s; }
.halaman-tentang .about-manfaat li:hover::after { opacity: 1; }
.halaman-tentang .about-manfaat-no { width: auto; height: auto; background: none; border-radius: 0; margin-bottom: 1.4rem; justify-content: start;
  font-family: "Plus Jakarta Sans", sans-serif; font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--teal), var(--water)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.halaman-tentang .about-manfaat-no::before { content: "0"; }
.halaman-tentang .about-manfaat li:first-child { background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(26,133,128,.4), transparent 60%), #0b2540; border-color: transparent; color: #c7d5e3; }
.halaman-tentang .about-manfaat li:first-child h3 { color: #fff; }
.halaman-tentang .about-manfaat li:first-child p { color: #a9bfd3; }
.halaman-tentang .about-manfaat li:first-child .about-manfaat-no { background: linear-gradient(120deg, #6fcfc3, #9fd2f0); -webkit-background-clip: text; background-clip: text; }

/* Cara kerja: panel lebih tegas */
.halaman-tentang .howto-panel { box-shadow: 0 24px 60px rgba(11,37,64,.25); }

/* Siapa yang memakai: kartu dengan pita warna */
.halaman-tentang .actors article { position: relative; overflow: hidden; padding: 2.4rem 2rem 2rem; border-radius: 24px; border: 1px solid #e3ebef; background: #fff; transition: transform .25s, box-shadow .25s; }
.halaman-tentang .actors article::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--teal), #3fb3a6); }
.halaman-tentang .actors article:nth-child(2)::before { background: linear-gradient(90deg, var(--navy), var(--water)); }
.halaman-tentang .actors article:nth-child(2) { background: linear-gradient(180deg, #f3f8fc, #fff 45%); }
.halaman-tentang .actors article:first-child { background: linear-gradient(180deg, #f0f8f7, #fff 45%); }
.halaman-tentang .actors article:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(15,42,68,.1); }
.halaman-tentang .actor-ikon { width: 58px; height: 58px; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(15,42,68,.08); }

/* FAQ & tim */
.halaman-tentang .faq details { border-radius: 14px; }
.halaman-tentang .faq details:hover { border-color: #b9d6d3; }
.halaman-tentang .team li { transition: transform .25s, box-shadow .25s; }
.halaman-tentang .team li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,42,68,.1); }
.halaman-tentang .team .avatar { background: linear-gradient(140deg, var(--teal), var(--navy)) !important; box-shadow: 0 0 0 5px var(--teal-soft); }

/* Ajakan penutup: banner di atas latar terang, tidak menempel ke footer gelap */
.halaman-tentang .about-cta { background: #fff; padding: 1rem 0 5rem; }
.halaman-tentang .about-cta-isi {
  position: relative; overflow: hidden; padding: 2.75rem 3rem; border-radius: 28px;
  background: radial-gradient(ellipse 50% 90% at 100% 0%, rgba(255,255,255,.14), transparent 60%), linear-gradient(120deg, var(--teal) 0%, #1b6f8c 55%, var(--navy) 100%);
  box-shadow: 0 24px 60px rgba(26,133,128,.25);
}
.halaman-tentang .about-cta-isi::after { content: ""; position: absolute; right: -70px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255,255,255,.07); pointer-events: none; }
.halaman-tentang .about-cta-isi > * { position: relative; z-index: 1; }
.halaman-tentang .about-cta p { color: rgba(255,255,255,.85); }
.halaman-tentang .about-cta .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.halaman-tentang .about-cta .btn-primary:hover { background: var(--teal-soft); }

@media (max-width: 880px) {
  .halaman-tentang .about-hero { padding: 2.5rem 0 7rem; }
  .halaman-tentang .about-angka-wrap { margin-top: -4.5rem; }
  .halaman-tentang [data-konten-bagian="Latar belakang"] { padding-top: 3.5rem; }
  .halaman-tentang .about-prose p:first-child { font-size: 1.08rem; }
  .halaman-tentang .about-manfaat { grid-template-columns: 1fr; }
  .halaman-tentang .about-manfaat-no { font-size: 2rem; margin-bottom: .8rem; }
  .halaman-tentang .about-cta-isi { padding: 1.75rem 1.4rem; border-radius: 22px; }
  .halaman-tentang .about-cta .btn { width: 100%; justify-content: center; }
}
.halaman-tentang .about-manfaat-no { display: inline-flex; place-items: initial; }

/* ---------- Tentang v3: font asli SiGura, warna lebih hidup, section ahli mencolok ---------- */
.halaman-tentang h1, .halaman-tentang h2, .halaman-tentang h3 { font-family: var(--font-display); letter-spacing: -.02em; }
.halaman-tentang h2, .halaman-tentang .about-hero h1 { font-weight: 900; }
.halaman-tentang h3 { font-weight: 800; }
.halaman-tentang .home-head[data-eyebrow]::before { font-family: var(--font-body); background: linear-gradient(90deg, #d9f3ef, #dcecf8); color: var(--teal-dark); }

/* Warna section bergantian dengan tint lembut (bukan abu-abu mati) */
.halaman-tentang [data-konten-bagian="Latar belakang"] { background: #fff; }
.halaman-tentang [data-konten-bagian="Cara kerja"] { background-color: #eef8f6; background-image: radial-gradient(rgba(26,133,128,.14) 1px, transparent 1px); background-size: 22px 22px; }
.halaman-tentang [data-konten-bagian="Siapa yang memakai"] { background: #fff; }
.halaman-tentang #faq { background: linear-gradient(180deg, #eef5fb, #f6fafd); }
.halaman-tentang [data-konten-bagian="Tim pengembang"] { background: #fff; }

/* Angka: tiap kartu punya warna sendiri */
.halaman-tentang .about-angka > div:nth-child(1) dd { background: linear-gradient(120deg, #128078, #2bb3a3); -webkit-background-clip: text; background-clip: text; }
.halaman-tentang .about-angka > div:nth-child(2) dd { background: linear-gradient(120deg, #1f6fa8, #3fa6dd); -webkit-background-clip: text; background-clip: text; }
.halaman-tentang .about-angka > div:nth-child(3) dd { background: linear-gradient(120deg, #c46f0c, #eba13a); -webkit-background-clip: text; background-clip: text; }
.halaman-tentang .about-angka > div:nth-child(4) dd { background: linear-gradient(120deg, #5a3fc0, #8b6ff0); -webkit-background-clip: text; background-clip: text; }
.halaman-tentang .about-angka > div:nth-child(3) dd em { -webkit-text-fill-color: #d9881e; }
.halaman-tentang .about-angka > div:nth-child(4) dd em { -webkit-text-fill-color: #6a4fc9; }
.halaman-tentang .about-angka dd { font-family: var(--font-display); font-weight: 900; }

/* Kartu manfaat: warna berbeda per kartu */
.halaman-tentang .about-manfaat-no { font-family: var(--font-display); font-weight: 900; }
.halaman-tentang .about-manfaat li:nth-child(2) { background: linear-gradient(160deg, #e3f6f3, #fff 60%); border-color: #cfece7; }
.halaman-tentang .about-manfaat li:nth-child(3) { background: linear-gradient(160deg, #e4f0fa, #fff 60%); border-color: #d2e5f4; }
.halaman-tentang .about-manfaat li:nth-child(3) .about-manfaat-no { background: linear-gradient(120deg, #1f6fa8, #3fa6dd); -webkit-background-clip: text; background-clip: text; }

/* ===== Section ahli (dokter): kartu dua panel ===== */
.ahli-wow { padding: 5.5rem 0; background: var(--bg); color: var(--ink); }
.ahli-wow-kartu {
  display: grid; grid-template-columns: 310px minmax(0, 1fr); overflow: hidden;
  background: var(--surface); border-radius: 24px;
  box-shadow: 0 1px 2px rgba(15,42,68,.04), 0 18px 48px rgba(15,42,68,.08);
}

/* Panel kiri: navy dengan grid tipis dan cahaya teal (senada hero Beranda) */
.ahli-wow-foto {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 1.1rem; padding: 3rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(43,179,163,.35), transparent 70%),
    radial-gradient(ellipse 70% 45% at 0% 100%, rgba(63,166,221,.28), transparent 70%),
    #13243f;
}
.ahli-wow-foto::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.ahli-wow-cincin {
  position: relative; width: 200px; height: 200px; border-radius: 50%; padding: 12px;
  background: rgba(255,255,255,.06); box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.ahli-wow-av {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(150deg, #4a9a95 0%, #2f7f86 45%, #2c5a86 100%);
  color: #fff; font-family: var(--font-body); font-weight: 800; font-size: 3.8rem; letter-spacing: -.01em;
  box-shadow: 0 14px 30px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.15);
}
.ahli-wow-lencana {
  position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border-radius: 99px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(143,227,215,.3); color: #c9efe9; font-weight: 700; font-size: .88rem;
}

/* Panel kanan */
.ahli-wow-isi { padding: 2.75rem 3.25rem 3rem 3rem; }
.ahli-wow-label { color: var(--teal); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }
.ahli-wow h2 {
  color: var(--navy); font-family: var(--font-body); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.15; margin-bottom: .25rem;
}
.ahli-wow-jabatan { color: var(--slate); font-weight: 700; font-size: 1.02rem; margin-bottom: 1.25rem; }
.ahli-wow-teks { color: var(--ink); font-size: 1.02rem; line-height: 1.7; }
.ahli-wow-kred { list-style: none; display: grid; gap: .75rem; margin-top: 1.5rem; }
.ahli-wow-kred li {
  position: relative; padding: .85rem 1.1rem .85rem 2.75rem; border-radius: 14px;
  background: #f6fafa; border: 1px solid #e1ecec; color: var(--ink); font-size: .97rem; line-height: 1.55;
}
.ahli-wow-kred li::before {   /* ikon centang teal */
  content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (max-width: 860px) {
  .ahli-wow { padding: 3.5rem 0; }
  .ahli-wow-kartu { grid-template-columns: 1fr; border-radius: 20px; }
  .ahli-wow-foto { padding: 2.25rem 1.25rem; }
  .ahli-wow-cincin { width: 140px; height: 140px; padding: 9px; }
  .ahli-wow-av { font-size: 2.6rem; }
  .ahli-wow-isi { padding: 1.75rem 1.25rem 2rem; }
}

.halaman-tentang [data-konten-bagian="Cara kerja"] { background: #fff; background-image: none; }

/* Jawaban ahli di kolom kanan (sebelah kartu Penanganan): kepala kartu ditumpuk agar muat */
.result-side .jw-kepala { align-items: flex-start; }
.result-side .jw-siapa { flex: 1; }
.result-side .jw-waktu { order: 3; width: 100%; margin-left: 0; text-align: left; }
.result-side .jw-ringkas { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.result-side .jw-kotak strong { font-size: 1.05rem; }

/* =========================================================
   Halaman Penyakit: versi modern (menimpa gaya pk-* sebelumnya)
   ========================================================= */
/* ---------- Kartu daftar ---------- */
.disease-grid { gap: 1.1rem; }
.pk-kartu {
  display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: .3rem; padding: 1.4rem 1.5rem 1.2rem; overflow: hidden;
  border-radius: 22px; border: 1px solid #e3ecef;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15,42,68,.04);
}
.pk-kartu::before { content: none; }
.pk-kartu:hover { transform: translateY(-3px); border-color: var(--kat); box-shadow: 0 14px 34px rgba(15,42,68,.09); }
.pk-kartu-tag { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .4rem; margin-bottom: .45rem; }
.pk-kat {
  display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .7rem .22rem .55rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--kat-soft); color: var(--kat); font-size: .74rem; font-weight: 800;
}
.pk-kat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--kat); }
.pk-scan { padding: .22rem .65rem; border-radius: 99px; background: var(--teal-soft); color: var(--teal-dark); font-size: .74rem; font-weight: 700; }
.pk-kartu strong { font-family: var(--font-body); font-weight: 800; font-size: 1.22rem; letter-spacing: -.01em; color: var(--navy); }
.pk-kartu em { font-size: .82rem; }
.pk-kartu-ringkas { font-size: .92rem; color: #3d5873; margin-top: .35rem; }
.pk-kartu-bawah {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap;
  margin-top: auto; padding-top: 1rem; border-top: 1px dashed #dde8ec; color: var(--slate); font-size: .82rem; font-weight: 600;
}
.pk-kartu-ringkas + .pk-kartu-bawah { margin-top: 1rem; }
.pk-kartu-buka { display: inline-flex; align-items: center; gap: .3rem; color: var(--navy); font-weight: 700; }
.pk-kartu-buka svg { transition: transform .2s; }
.pk-kartu:hover .pk-kartu-buka { color: var(--kat); }
.pk-kartu:hover .pk-kartu-buka svg { transform: translateX(3px); }

/* ---------- Detail: hero navy ---------- */
.pk-hero {
  position: relative; overflow: hidden; color: #fff; padding: 1.75rem 0 3rem;
  background:
    radial-gradient(ellipse 50% 70% at 100% 0%, rgba(43,179,163,.3), transparent 70%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(63,166,221,.2), transparent 70%),
    #13243f;
}
.pk-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.pk-hero .container { position: relative; }
.pk-kembali { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.pk-kembali:hover { border-color: rgba(255,255,255,.5); }
.pk-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; }
.pk-hero .pill { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.pk-hero .pill-healthy { background: rgba(43,179,163,.22); color: #9fe7dc; border-color: rgba(143,227,215,.35); }
.pk-hero h1 { color: #fff; font-family: var(--font-body); font-weight: 800; }
.pk-latin { color: #9fb6cc; }
.pk-ringkas { color: #c9d9e7; line-height: 1.7; }
.pk-catatan { background: rgba(235,161,58,.12); border-color: rgba(235,161,58,.35); color: #f6d7a6; }

/* Kotak ringkasan (pengganti foto) */
.pk-angka { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.pk-angka a {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .8rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: 18px; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s, transform .2s;
}
.pk-angka a:hover { background: rgba(255,255,255,.11); border-color: rgba(143,227,215,.45); transform: translateY(-2px); }
.pk-angka-ikon { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(43,179,163,.2); color: #8fe3d7; }
.pk-angka b { font-family: var(--font-body); font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
.pk-angka small { color: #9fb6cc; font-size: .82rem; font-weight: 600; }

/* ---------- Detail: isi ---------- */
.pk-badan { padding-top: 2.25rem; }
.pk-nav { border-color: #e3ecef; box-shadow: 0 1px 2px rgba(15,42,68,.04); }
.pk-bagian { padding: 1.6rem 1.75rem 1.75rem; border-color: #e3ecef; box-shadow: 0 1px 2px rgba(15,42,68,.04); }
.pk-bagian h2 { font-family: var(--font-body); font-weight: 800; font-size: 1.2rem; color: var(--navy); }

.pk-poin { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.pk-poin li { padding: .8rem 1rem .8rem 2.6rem; border-radius: 14px; background: #f6fafa; border: 1px solid #e6eff0; line-height: 1.5; }
.pk-poin li::before { left: 1rem; top: 1.2rem; width: 8px; height: 8px; box-shadow: 0 0 0 4px var(--kat-soft); }
.pk-poin.pencegahan li::before {   /* ikon centang */
  top: .9rem; left: .85rem; width: 18px; height: 18px; box-shadow: none;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pk-poin li.is-match { background: var(--teal-soft); border-color: #bfe2dd; }

/* Penanganan: alur bernomor dengan garis penghubung */
.pk-langkah { gap: 0; }
.pk-langkah li { position: relative; grid-template-columns: 36px 1fr; gap: 1rem; padding: .35rem 0 1.15rem; line-height: 1.55; }
.pk-langkah li::before { width: 36px; height: 36px; font-size: .9rem; box-shadow: 0 0 0 5px var(--teal-soft); position: relative; z-index: 1; }
.pk-langkah li::after { content: ""; position: absolute; left: 17px; top: 2.6rem; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, #bfe2dd 0 6px, transparent 6px 11px); }
.pk-langkah li:last-child { padding-bottom: .2rem; }
.pk-langkah li:last-child::after { content: none; }
.pk-langkah li { align-items: center; }

.pk-jenis-item { background: #f6fafa; border-color: #e6eff0; border-radius: 16px; }
.pk-jenis-item strong { font-weight: 800; }

/* CTA & penyakit lainnya */
.pk-cta {
  position: relative; overflow: hidden; padding: 1.6rem 1.85rem; border-radius: 24px;
  background: radial-gradient(ellipse 60% 120% at 100% 0%, rgba(43,179,163,.4), transparent 70%), #13243f;
}
.pk-cta .btn-primary { background: var(--teal); color: #fff; }
.pk-cta .btn-primary:hover { background: var(--teal-dark); }
.pk-lain-judul { font-family: var(--font-body); font-weight: 800; color: var(--navy); }
.pk-lain-item { border-color: #e3ecef; border-radius: 20px; padding: 1.1rem 1.2rem; background: var(--surface); }

@media (max-width: 880px) {
  .pk-kartu { padding: 1.15rem 1.15rem 1rem; border-radius: 20px; }
  .pk-kartu strong { font-size: 1.1rem; }
  .pk-hero { padding: 1.25rem 0 2rem; }
  .pk-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pk-angka { gap: .55rem; }
  .pk-angka a { padding: .75rem .85rem; column-gap: .6rem; }
  .pk-angka-ikon { width: 36px; height: 36px; border-radius: 11px; }
  .pk-angka b { font-size: 1.25rem; }
  .pk-poin { grid-template-columns: 1fr; }
  .pk-bagian { padding: 1.2rem 1.15rem 1.3rem; }
  .pk-cta { padding: 1.3rem 1.25rem; }
}

/* Warna kategori dipasang ulang setelah .pk-detail (sebelumnya tertimpa jadi biru) */
.kat-jamur { --kat: #c98a1c; --kat-soft: #fdf1dc; }
.kat-parasit { --kat: #c4473d; --kat-soft: #fbe9e7; }
.kat-bakteri { --kat: #7a5bd1; --kat-soft: #eee9fb; }
.kat-virus { --kat: #2f7fb3; --kat-soft: #e3f0f8; }

/* ---------- Hero halaman Penyakit (senada hero Tentang, dengan ilustrasi animasi) ---------- */
.ency-hero {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(26,133,128,.35), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(58,150,201,.18), transparent 60%),
    #0b2540;
}
.ency-hero::before {   /* grid tipis memudar ke kiri */
  top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 80%); mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
}
.ency-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 3.5rem; align-items: center; }
.ency-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; padding: .35rem .85rem; border-radius: 99px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #8fe3d7;
  font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.ency-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7fd1c7; box-shadow: 0 0 10px 2px rgba(127,209,199,.6); }
.ency-hero h1 { font-weight: 800; letter-spacing: -.035em; line-height: 1.08; font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: .9rem; }
.ency-hero .ency-hero-teks > p { color: #a9bfd3; font-size: 1.08rem; max-width: 34em; margin-bottom: 2rem; }
.ency-hero .ency-search { max-width: 560px; }

/* Ilustrasi: pemeriksa gejala (kaca pembesar menyusuri tubuh ikan) */
.pk-lab {
  --x: 48%; --y: 44%;
  justify-self: end; width: 100%; max-width: 400px; padding: 1rem 1rem 1.1rem; border-radius: 26px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 70px rgba(3,14,28,.45); backdrop-filter: blur(8px);
}
.pk-lab-bar { display: flex; align-items: center; gap: .35rem; padding: 0 .3rem .8rem; color: #9fb6cc; font-size: .78rem; font-weight: 700; }
.pk-lab-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.pk-lab-bar i:first-child { background: #7fd1c7; }
.pk-lab-bar span { margin-left: auto; letter-spacing: .04em; }
.pk-lab-ikan {
  position: relative; aspect-ratio: 320 / 180; border-radius: 18px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, rgba(127,209,199,.14), transparent 70%), rgba(5,20,36,.35);
  border: 1px solid rgba(255,255,255,.08);
}
.pk-lab-svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: ikan-renang 4s ease-in-out infinite; }
.ikan-badan { fill: rgba(127,209,199,.1); stroke: #7fd1c7; stroke-width: 2.5; }
.ikan-ekor { fill: rgba(127,209,199,.06); stroke: #7fd1c7; stroke-width: 2.5; stroke-linejoin: round; }
.ikan-sirip { fill: none; stroke: rgba(127,209,199,.55); stroke-width: 2; stroke-linecap: round; }
.ikan-mata { fill: #fff; } .ikan-pupil { fill: #0b2540; }
.pk-lab-svg .gejala { opacity: .25; transition: opacity .5s; }
.pk-lab-svg .gejala.aktif { opacity: 1; animation: gejala-denyut 1.2s ease-in-out infinite; }
.g-white_spot circle { fill: #fff; }
.g-jamur circle { fill: rgba(255,255,255,.75); }
.g-bakteri ellipse { fill: #e2695f; }
.g-kutu_ikan ellipse { fill: #d6b27a; stroke: #8c6a3a; stroke-width: 1; }
.pk-lab-lensa {   /* kaca pembesar bergerak ke gejala yang aktif */
  position: absolute; left: var(--x); top: var(--y); width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  border: 3px solid #fff; background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 6px rgba(127,209,199,.18), 0 10px 24px rgba(0,0,0,.35), inset 0 0 18px rgba(127,209,199,.35);
  transition: left .9s cubic-bezier(.6,.05,.3,1), top .9s cubic-bezier(.6,.05,.3,1);
}
.pk-lab-lensa::after {   /* gagang */
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 20px; height: 6px; border-radius: 3px;
  background: #fff; transform: rotate(45deg);
}
.pk-lab-hasil {
  display: grid; gap: .2rem; margin-top: .9rem; padding: .9rem 1rem; border-radius: 18px;
  background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgba(3,14,28,.3);
  transition: transform .2s, box-shadow .2s;
}
.pk-lab-hasil:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(3,14,28,.4), 0 0 0 3px var(--kat); }
.pk-lab-hasil.ganti { animation: hasil-masuk .45s ease both; }
.pk-lab-label { color: var(--slate); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pk-lab-hasil strong { font-family: var(--font-body); font-weight: 800; color: var(--navy); font-size: 1rem; }
.pk-lab-ke { display: flex; align-items: center; gap: .5rem; margin-top: .25rem; color: var(--navy); font-size: .88rem; }
.pk-lab-ke b { font-weight: 700; }
.pk-lab-ke svg { margin-left: auto; color: var(--kat); }
.pk-lab-titik { display: flex; justify-content: center; gap: .4rem; margin-top: .85rem; }
.pk-lab-titik i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.25); transition: width .3s, background .3s; }
.pk-lab-titik i.aktif { width: 20px; background: #7fd1c7; }
@keyframes ikan-renang { 50% { transform: translateY(-4px) rotate(-.6deg); } }
@keyframes gejala-denyut { 50% { opacity: .55; } }
@keyframes hasil-masuk { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .pk-lab-svg, .pk-lab-svg .gejala.aktif, .pk-lab-hasil.ganti { animation: none; } .pk-lab-lensa { transition: none; } }

@media (max-width: 880px) {
  .ency-hero { padding: 2rem 0 2.5rem; }
  .ency-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pk-lab { display: none; }   /* di HP cukup pencarian & filter */
}

/* =========================================================
   Patokan HP (≤ 480 px) — Revisi Tampilan HP, Tahap 1
   Ukuran huruf & jarak seragam, kolom isian 16 px (iPhone tidak zoom),
   abu-abu kontras ≥ 4,5:1, area sentuh ≥ 44 px.
   ========================================================= */
.hanya-hp { display: none !important; }
@media (max-width: 480px) {
  :root {
    --hp-h1: 27px; --hp-h2: 21px; --hp-teks: 16px; --hp-kecil: 13px;
    --hp-tepi: 16px; --hp-jarak: 32px; --hp-sentuh: 44px;
    --slate: #53698a;   /* sebelumnya #6b84a6 (3,6:1), sekarang 5,3:1 di latar halaman */
  }
  .hanya-hp { display: revert !important; }
  .hanya-desktop { display: none !important; }

  /* Tipografi */
  body { font-size: var(--hp-teks); line-height: 1.5; }
  h1, .home-hero h1, .about-hero h1, .ency-hero h1, .pk-hero h1, .result-hero h1 { font-size: var(--hp-h1) !important; line-height: 1.2; }
  h2, .home-head h2, .ency-hero h2 { font-size: var(--hp-h2) !important; line-height: 1.25; }
  /* Teks kecil (label, tanggal, keterangan): tepat 13 px, tidak lebih kecil */
  small, .pill, .pk-kat, .pk-scan, .result-meta, .jw-waktu, .jw-kotak span,
  .eko-item small, .about-angka small, .pk-kartu em, .pk-kartu-bawah, .pk-lab-label,
  .matcher-title small, .ency-count, .field small, .setuju, .jw-bayar { font-size: var(--hp-kecil) !important; }
  /* Teks isi: 16 px */
  .hero-note, .home-head p, .home-steps p, .home-diseases p, .home-hero .lead, .about-hero p,
  .ency-hero .ency-hero-teks > p, .pk-ringkas, .pk-kartu-ringkas, .result-summary { font-size: var(--hp-teks) !important; line-height: 1.5; }

  /* Kolom isian 16 px supaya iPhone tidak memperbesar layar saat diketuk */
  input, select, textarea, .ency-search input { font-size: 16px !important; }

  /* Area sentuh minimal 44 px */
  .btn, .cat-filter button, .result-tabs button, .tabs button, .nav-toggle, .link-btn, .pk-kembali { min-height: var(--hp-sentuh); }
  .btn, .cat-filter button { display: inline-flex; align-items: center; justify-content: center; }

  /* Jarak tepi 16 px dan jarak antarbagian 32 px */
  .container { width: calc(100% - 2 * var(--hp-tepi)) !important; }
  .home-section, .home-tips, .about-section, .ency-body, .result-body { padding-top: var(--hp-jarak) !important; padding-bottom: var(--hp-jarak) !important; }

  /* Bug Beranda: nomor langkah menumpuk di atas judul -> nomor di kolom sendiri (40 px) */
  .home-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: .9rem; padding: 1.1rem !important; }
  .home-steps .step-num { position: static; grid-row: span 2; width: 40px; height: 40px; font-size: 1.05rem; margin: 0; }
  .home-steps h3, .home-steps p { grid-column: 2; }
  .home-steps::before { left: calc(1.1rem + 19px); }

  /* Bug Hasil: tab "Info" terpotong di kanan -> 4 tab dibagi rata, muat satu layar */
  .result-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; overflow: visible; }
  .result-tabs button { padding: .5rem .3rem; font-size: 14px; white-space: nowrap; }

  /* Tombol "?" melayang: kecilkan dan beri ruang kosong di bawah halaman supaya tidak menutupi isi terakhir */
  body { padding-bottom: 80px; }
  .pd-bantuan { right: 12px; bottom: 12px; }
}

/* =========================================================
   Panel kiri Masuk/Daftar: animasi "percakapan langsung"
   Tahap diatur ap-demo.js lewat data-tahap (0–6).
   ========================================================= */
.ap-demo {
  position: relative; margin-top: 2.25rem; padding: 1rem; border-radius: 22px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.11);
  box-shadow: 0 30px 70px rgba(3,14,28,.45); backdrop-filter: blur(8px);
  animation: ap-demo-melayang 7s ease-in-out infinite;
}
.ap-demo::before {   /* cahaya teal di belakang kartu */
  content: ""; position: absolute; inset: -30% -20% auto auto; width: 70%; aspect-ratio: 1; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,179,163,.28), transparent 65%); filter: blur(10px);
}
.ap-demo-kepala { display: flex; align-items: center; gap: .7rem; padding: .1rem .2rem .9rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.ap-demo-logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #fff; }
.ap-demo-logo img { width: 24px; }
.ap-demo-kepala strong { display: block; color: #fff; font-size: .9rem; font-weight: 700; line-height: 1.25; }
.ap-demo-kepala small { color: #93a9bf; font-size: .76rem; }
.ap-demo-langsung { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .6rem; border-radius: 99px; background: rgba(43,179,163,.15); color: #8fe3d7; font-size: .72rem; font-weight: 700; }
.ap-demo-langsung i { width: 7px; height: 7px; border-radius: 50%; background: #3fd0b9; animation: ap-denyut 1.4s ease-out infinite; }

.ap-demo-isi { display: grid; gap: .65rem; padding-top: .9rem; transition: opacity .5s; }
.ad {   /* setiap baris disembunyikan dulu; ruangnya tetap disediakan supaya kartu tidak melompat */
  opacity: 0; transform: translateY(10px) scale(.98);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.ap-demo[data-tahap="1"] .ad-foto,
.ap-demo[data-tahap="2"] :is(.ad-foto, .ad-analisis),
.ap-demo[data-tahap="3"] :is(.ad-foto, .ad-analisis, .ad-hasil),
.ap-demo:is([data-tahap="4"], [data-tahap="5"], [data-tahap="6"]) .ad { opacity: 1; transform: none; }
.ap-demo[data-tahap="6"] .ap-demo-isi { opacity: 0; }

/* 1. Foto terkirim (gelembung kanan) */
.ad-foto { justify-self: end; display: flex; align-items: center; gap: .6rem; padding: .55rem .85rem .55rem .55rem; border-radius: 16px 16px 4px 16px; background: var(--teal); color: #fff; }
.ad-foto-ikon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18); }
.ad-foto strong { display: block; font-size: .84rem; font-weight: 700; }
.ad-foto small { color: rgba(255,255,255,.8); font-size: .72rem; }

/* 2. AI menganalisis (garis progres) */
.ad-analisis { display: grid; gap: .45rem; padding: .7rem .85rem; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px dashed rgba(143,227,215,.3); }
.ad-label { display: flex; align-items: center; gap: .45rem; color: #c7d5e3; font-size: .8rem; font-weight: 600; }
.ad-label i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(143,227,215,.35); border-top-color: #8fe3d7; animation: spin .8s linear infinite; }
.ap-demo:not([data-tahap="2"]) .ad-label i { animation: none; border-color: #8fe3d7; background: #8fe3d7; }
.ad-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.ad-bar b { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2bb3a3, #8fe3d7); }
.ap-demo[data-tahap="2"] .ad-bar b { width: 100%; transition: width 1.7s cubic-bezier(.4,.1,.3,1); }
.ap-demo:is([data-tahap="3"], [data-tahap="4"], [data-tahap="5"], [data-tahap="6"]) .ad-bar b { width: 100%; }

/* 3. Hasil */
.ad-hasil { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 10px 24px rgba(3,14,28,.25); }
.ad-hasil-ikon { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--sick-soft); color: var(--sick); font-weight: 900; }
.ad-hasil strong { display: block; color: var(--sick); font-size: .88rem; font-weight: 800; }
.ad-hasil small { color: #5b6f84; font-size: .74rem; }

/* 4–5. Ahli mengetik, lalu menjawab (gelembung kiri) */
.ad-ahli { display: flex; align-items: flex-end; gap: .55rem; }
.ad-av { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(150deg, #4a9a95, #2c5a86); color: #fff; font-size: .72rem; font-weight: 800; }
.ad-gelembung { padding: .6rem .85rem; border-radius: 16px 16px 16px 4px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.1); color: #e4edf5; font-size: .82rem; line-height: 1.5; }
.ad-pesan strong { display: block; color: #8fe3d7; font-size: .72rem; font-weight: 700; margin-bottom: .1rem; }
.ad-ketik { display: inline-flex; gap: 4px; padding: .3rem .1rem; }
.ad-ketik i { width: 7px; height: 7px; border-radius: 50%; background: #93a9bf; animation: ap-ketik 1.1s ease-in-out infinite; }
.ad-ketik i:nth-child(2) { animation-delay: .15s; } .ad-ketik i:nth-child(3) { animation-delay: .3s; }
.ad-pesan { display: none; }
.ap-demo:is([data-tahap="5"], [data-tahap="6"]) .ad-ketik { display: none; }
.ap-demo:is([data-tahap="5"], [data-tahap="6"]) .ad-pesan { display: block; animation: hasil-masuk .4s ease both; }

@keyframes ap-demo-melayang { 50% { transform: translateY(-8px); } }
@keyframes ap-ketik { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes ap-denyut { 0% { box-shadow: 0 0 0 0 rgba(63,208,185,.6); } 100% { box-shadow: 0 0 0 8px rgba(63,208,185,0); } }
@media (prefers-reduced-motion: reduce) { .ap-demo, .ap-demo-langsung i, .ad-ketik i { animation: none; } }

/* =========================================================
   Laci menu HP versi baru: logo di atas, ikon dalam kotak, kartu akun di bawah
   ========================================================= */
.nav-laci-akun { display: none; }
@media (max-width: 880px) {
  .nav-links { padding: 1.1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); gap: .35rem; border-radius: 24px 0 0 24px; }
  .nav-laci-kepala { gap: .55rem; height: 48px; margin: 0 0 .9rem; padding: 0 .35rem; border-bottom: 1px solid #edf2f5; padding-bottom: .9rem; height: auto; }
  .nav-laci-kepala img { width: 30px; }
  .nav-laci-kepala b { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; color: var(--navy); }
  .nav-laci-kepala b span { color: var(--teal); }
  .nav-links a:not(.btn) { gap: .8rem; padding: .55rem .6rem; border-radius: 16px; font-weight: 700; color: var(--navy); min-height: 52px; }
  .nav-ikon { box-sizing: content-box; width: 20px; height: 20px; padding: 9px; border-radius: 12px; background: #f1f6f8; color: var(--slate); transition: background .2s, color .2s; }
  .nav-links a.active:not(.btn) { background: var(--teal-soft); color: var(--teal-dark); }
  .nav-links a.active .nav-ikon { background: var(--teal); color: #fff; }
  .nav-laci-cta { display: none !important; }

  /* Kartu akun (avatar, nama, peran, tombol keluar) */
  .nav-laci-akun { display: flex; align-items: center; gap: .4rem; margin-top: auto; padding: .45rem; border-radius: 18px; background: #f5f8fa; border: 1px solid #e8eef2; }
  .nav-links .nav-laci-saya { flex: 1; min-width: 0; gap: .65rem !important; padding: .35rem !important; min-height: 0 !important; background: none !important; }
  .nav-laci-saya .avatar-lingkar { width: 40px; height: 40px; font-size: .85rem; flex-shrink: 0; }
  .nav-laci-saya > span:last-child { display: grid; min-width: 0; line-height: 1.25; }
  .nav-laci-saya strong { font-size: .95rem; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-laci-saya small { font-size: 13px; font-weight: 600; color: var(--slate); }
  .nav-laci-keluar { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--slate); cursor: pointer; }
  .nav-laci-keluar:hover { background: var(--sick-soft); color: var(--sick); }
  /* Belum login: tombol Masuk menempel di bawah */
  .nav-links li:has(> a[href="login.html"]) { margin-top: auto; }
}
@media (max-width: 880px) { .nav-laci-kepala b span { text-transform: none; letter-spacing: 0; font-size: inherit; font-weight: inherit; } }
body.nav-terbuka .pd-bantuan { display: none; }

/* Beranda: daftar kondisi tanpa tanda panah (laptop & HP) */
.home-diseases .home-kondisi::after { content: none !important; }
.home-diseases .home-kondisi { padding-right: 0 !important; }
.home-diseases .home-kondisi:hover { padding-left: 0; }
@media (max-width: 880px) { .home-diseases .home-kondisi { padding-right: 1.1rem !important; } }

/* Beranda & Tentang di HP: judul lebih besar, ilustrasi lebih kecil supaya proporsional */
@media (max-width: 480px) {
  .home-hero h1 { font-size: 34px !important; line-height: 1.12; letter-spacing: -.025em; }
  .home-hero .phone { width: 160px; border-radius: 28px; padding: 6px; }
  .home-hero .phone-screen { border-radius: 23px; }
  .home-hero .phone-notch { width: 52px; height: 15px; top: 7px; }
  .home-hero .phone-top { padding: 1.7rem .8rem .4rem; font-size: .72rem; }
  .home-hero .phone-sheet { padding: .5rem .6rem; }
  .home-hero .phone-sheet strong { font-size: .78rem; }
  .home-hero .phone-sheet small { font-size: .68rem !important; }
  .halaman-tentang .about-hero h1, .about-hero h1 { font-size: 34px !important; line-height: 1.12; letter-spacing: -.025em; }
  .eko { max-width: 250px !important; margin-top: .25rem; }
  .eko-item { padding: .4rem .55rem .4rem .4rem; gap: .4rem; border-radius: 12px; }
  .eko-ikon { width: 28px; height: 28px; border-radius: 9px; }
  .eko-ikon svg { width: 16px; height: 16px; }
  .eko-item strong { font-size: .78rem; }
  .eko-item small { display: none; }
  .halaman-tentang .about-hero { padding-bottom: 5rem !important; }
}

/* Footer di HP: ringkas (logo + 3 tautan + hak cipta). Tautan fitur sudah ada di menu. */
@media (max-width: 480px) {
  .footer .container.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1.4rem 0 1rem; }
  .footer-brand { margin: 0; }
  .footer-brand .brand { margin: 0; font-size: 1.05rem; }
  .footer-brand .brand img { width: 26px; }
  .footer-brand p, .footer-kolom h3, .footer-catatan, .footer-kolom[aria-label="Fitur"] { display: none !important; }
  .footer-kolom ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; }
  .footer-kolom li a { font-size: 13px; display: inline-flex; min-height: 32px; align-items: center; }
  .footer-bawah .container { display: block; padding: .75rem 0 1rem; text-align: left; }
  .footer-bawah p { font-size: 13px; margin: 0; }
  .footer-bawah p:last-child { display: none; }
}

/* Hasil di HP: hero ringkas */
@media (max-width: 480px) {
  .result-hero .jenis-chips { display: none !important; }   /* jenis sudah ada di tab "Jenis" */
  .result-hero .result-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .9rem; }
  /* Keyakinan model: satu chip kecil */
  .result-hero .gauge-row { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: .5rem; margin: 0 0 .9rem; padding: .3rem .35rem .3rem .85rem; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
  .result-hero .gauge-text strong { font-size: 13px; font-weight: 600; color: #c9d9e7; }
  .result-hero .gauge-text p, .result-hero .gauge svg { display: none; }
  .result-hero .gauge { width: auto; height: auto; }
  .result-hero .gauge #conf-text { position: static; padding: .2rem .65rem; border-radius: 99px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 800; }
  .result-hero .result-disclaimer { font-size: 13px; margin: 0 0 1rem; }
  .result-hero .result-disclaimer a { color: #8fe3d7; font-weight: 700; text-decoration: underline; }
  /* Satu tombol utama penuh lebar, tombol kedua jadi tautan */
  .result-hero .hero-actions { display: grid; grid-template-columns: 1fr; gap: .35rem; }
  .result-hero .hero-actions .btn-primary { width: 100%; }
  .result-hero .hero-actions .btn-light { border: 0; background: none; color: #c9d9e7; text-decoration: underline; min-height: 40px; }
}
@media (max-width: 480px) { .result-hero .gauge-row { width: max-content; max-width: 100%; justify-self: start; align-self: flex-start; } }

/* Validator hanya satu: status "sedang Anda tangani / validator lain" dan tombol Lepaskan tidak ditampilkan.
   Penguncian (klaim) tetap jalan di belakang sebagai pengaman. */
.vd-klaim-saya { display: none !important; }
/* Dasbor (ahli/admin) sudah punya padding sendiri: jangan dikurangi lagi oleh patokan .container HP (kartu sempat bergeser ke kiri) */
@media (max-width: 480px) { .dash .container { width: 100% !important; margin-inline: auto !important; } }

/* =========================================================
   Masuk / Daftar / Lupa sandi: latar biru + kartu putih (HP & desktop)
   ========================================================= */
.ap-panel {
  position: relative; overflow: hidden; color: #fff; padding: 1.5rem 2rem 2rem;
  background:
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(43,179,163,.3), transparent 65%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(58,150,201,.2), transparent 65%),
    #0f2c4a;
  border-left: 1px solid rgba(255,255,255,.06);
}
.ap-panel::before {   /* grid tipis */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.ap-panel > * { position: relative; }
.ap-panel .ap-logo-hp { color: #fff; }
.ap-panel .ap-logo-hp span { color: #6fcfc3; }
.ap-panel .ap-kembali { color: #b9cde0; padding: .45rem .8rem; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); min-height: 40px; }
.ap-panel .ap-kembali:hover { color: #fff; background: rgba(255,255,255,.12); }

/* Judul di area biru (halaman Masuk/Daftar) */
.ap-panel > .ap-kepala { width: min(440px, 100%); margin: auto auto 1.5rem; text-align: center; }
.ap-panel > .ap-kepala h1 { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: .35rem; }
.ap-panel > .ap-kepala p { color: #a9bfd3; font-size: .98rem; }
.ap-panel > .ap-kepala + .ap-form { margin-top: 0; }

/* Kartu putih */
.ap-panel .ap-form {
  width: min(440px, 100%); margin: auto; margin-bottom: auto; padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 28px; background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px rgba(3,14,28,.45);
}

/* Tab Masuk / Daftar (segmen) */
.ap .auth-tabs {
  position: static; width: auto; height: auto; overflow: visible; clip: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 5px; margin: 0 0 1.4rem;
  border-radius: 99px; background: #eef3f6;
}
.ap .auth-tabs button { min-height: 44px; border-radius: 99px; font-weight: 700; font-size: .95rem; color: #6b7f93; background: none; border: 0; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.ap .auth-tabs button.active { background: #fff; color: var(--navy); box-shadow: 0 2px 10px rgba(15,42,68,.12); }
.ap .auth-tabs::before, .ap .auth-tabs::after { content: none !important; }

/* Kolom isian dengan ikon */
.ap-isian { position: relative; }
.ap-ikon-isian { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #8aa0b5; pointer-events: none; z-index: 1; }
.ap-panel .ap-isian input { height: 52px; padding-left: 44px !important; border-radius: 14px !important; border: 1.5px solid #dfe7ed; background: #fff; font-size: 16px; }
.ap-panel .ap-isian input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); outline: none; }
.ap-panel .ap-isian:focus-within .ap-ikon-isian { color: var(--teal); }
.ap-panel .field label { font-weight: 700; color: var(--navy); font-size: .9rem; }
.ap-baris-lupa { display: flex; justify-content: flex-end; margin: -.35rem 0 1.1rem; }

.ap-panel .ap-btn { height: 52px; border-radius: 14px !important; font-size: 1rem; background: var(--navy); }
.ap-panel .ap-btn:hover { background: #0c3657; }

.ap-panel .ap-ganti { margin-top: 1.25rem; }
.ap-panel .ap-bawah { margin-top: .6rem; text-align: center; color: #8193a6; }

/* HP: judul di area biru, kartu putih menempel ke bawah layar */
@media (max-width: 880px) {
  .ap-panel { padding: 1rem 1rem 0; min-height: 100dvh; }
  .ap-panel > .ap-kepala { margin: 1.75rem auto 1.5rem; }
  .ap-panel > .ap-kepala h1 { font-size: 28px !important; }
  .ap-panel .ap-form { flex: 1; width: auto; margin: 0 -1rem; padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(3,14,28,.25); }
  .halaman-auth .ap-panel .ap-form { animation: ap-naik .4s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes ap-naik { from { transform: translateY(24px); opacity: 0; } }
.ap-isian { display: block; width: 100%; } .ap-panel .ap-isian input { width: 100%; box-sizing: border-box; }

/* Beranda: daftar kondisi hanya informasi (tidak bisa diklik) */
.home-diseases .home-kondisi { display: block; color: var(--ink); cursor: default; }
.home-diseases .home-kondisi:hover { padding-left: 0; }
.home-diseases .home-kondisi:hover h3 { color: inherit; }

/* =========================================================
   Animasi Beranda (aktif lewat body.beranda-hidup dari beranda-anim.js)
   ========================================================= */
/* Hero: teks muncul berurutan, HP meluncur dari kanan lalu melayang */
.beranda-hidup .hero-masuk { animation: hero-naik .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--jeda, 0ms); }
.beranda-hidup .phone-wrap.hero-masuk { animation-name: hero-kanan; animation-duration: 1s; }
.beranda-hidup .phone-wrap .phone { animation: hp-melayang 6s ease-in-out 1.2s infinite; }
@keyframes hero-naik { from { opacity: 0; transform: translateY(24px); } }
@keyframes hero-kanan { from { opacity: 0; transform: translateX(60px) rotate(4deg); } }
@keyframes hp-melayang { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-1deg); } }

/* Gelembung air di hero */
.gelembung-lapis { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.home-hero > .container { position: relative; z-index: 1; }
.gelembung-lapis i {
  position: absolute; bottom: -30px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), rgba(127,209,199,.08) 60%, transparent 70%);
  border: 1px solid rgba(143,227,215,.25);
  animation: gelembung-naik linear infinite;
}
@keyframes gelembung-naik {
  0% { transform: translate(0, 0) scale(.8); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate(var(--geser), -45vh) scale(1); }
  100% { transform: translate(0, -95vh) scale(1.1); opacity: 0; }
}

/* Variasi arah muncul saat di-scroll */
.siap-muncul.muncul-kanan { transform: translateX(40px); }
.siap-muncul.muncul-zoom { transform: translateY(20px) scale(.94); }
.siap-muncul.muncul-kanan.muncul, .siap-muncul.muncul-zoom.muncul { transform: none; }

/* Langkah: garis putus-putus tergambar, nomor membesar masuk */
.beranda-hidup .home-steps::before { transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.4,.1,.2,1) .3s; }
.beranda-hidup .home-steps.muncul::before { transform: none; }
.beranda-hidup .home-steps > li .step-num { transform: scale(.4); opacity: 0; transition: transform .6s cubic-bezier(.3,1.6,.5,1), opacity .4s; transition-delay: calc(var(--jeda, 0ms) + 250ms); }
.beranda-hidup .home-steps > li.muncul .step-num { transform: none; opacity: 1; }
@media (max-width: 880px) {   /* di HP garisnya vertikal */
  .beranda-hidup .home-steps::before { transform: scaleY(0); transform-origin: top; }
}

/* Kondisi: titik warna kecil yang berdenyut di depan judul */
.home-diseases h3 { display: flex; align-items: center; gap: .55rem; }
.home-diseases li h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--sick); box-shadow: 0 0 0 0 rgba(196,71,61,.45); }
.home-diseases li:nth-child(2) h3::before { background: #c98a1c; box-shadow: 0 0 0 0 rgba(201,138,28,.45); }
.home-diseases li:nth-child(3) h3::before { background: var(--teal); box-shadow: 0 0 0 0 rgba(26,133,128,.45); }
.beranda-hidup .home-diseases li.muncul h3::before { animation: titik-denyut 2.4s ease-out infinite; animation-delay: var(--jeda, 0ms); }
@keyframes titik-denyut { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.home-diseases li h3::before { color: rgba(196,71,61,.4); }
.home-diseases li:nth-child(2) h3::before { color: rgba(201,138,28,.4); }
.home-diseases li:nth-child(3) h3::before { color: rgba(26,133,128,.4); }

/* Kartu jawaban ahli: isi muncul bertahap, label "Baru" berdenyut */
.beranda-hidup .konsul-mock > * { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); }
.beranda-hidup .konsul-mock.muncul > * { opacity: 1; transform: none; }
.beranda-hidup .konsul-mock.muncul > :nth-child(1) { transition-delay: .35s; }
.beranda-hidup .konsul-mock.muncul > :nth-child(2) { transition-delay: .65s; }
.beranda-hidup .konsul-mock.muncul > :nth-child(3) { transition-delay: .95s; }
.beranda-hidup .konsul-mock.muncul .new-tag { animation: tag-denyut 1.8s ease-in-out 1.4s infinite; }
@keyframes tag-denyut { 50% { transform: scale(1.12); box-shadow: 0 0 0 5px rgba(196,71,61,.15); } }
.beranda-hidup .konsul-mock { transition: opacity .6s ease var(--jeda, 0ms), transform .6s cubic-bezier(.2,.8,.3,1) var(--jeda, 0ms), box-shadow .3s; }
.beranda-hidup .konsul-mock:hover { box-shadow: 24px 24px 0 var(--teal-soft); }

/* Tips: kartu sedikit terangkat saat disentuh */
.tips-kartu > li { transition: opacity .6s ease var(--jeda, 0ms), transform .6s cubic-bezier(.2,.8,.3,1) var(--jeda, 0ms), box-shadow .25s; }
.tips-kartu > li.muncul:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,42,68,.08); }

/* CTA: kilau yang lewat berkala */
.cta-banner { position: relative; overflow: hidden; }
.beranda-hidup .cta-banner::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-18deg); animation: kilau 5s ease-in-out 1.5s infinite;
}
@keyframes kilau { 0% { left: -40%; } 35%, 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  .gelembung-lapis { display: none; }
  .hero-masuk, .phone, .cta-banner::after, .home-diseases h3::before, .new-tag { animation: none !important; }
}

/* Masuk/Daftar di desktop: judul + kartu selalu muat satu layar dan berada di tengah */
@media (min-width: 881px) {
  .ap-panel { justify-content: center; padding: 1.5rem 2rem; }
  .ap-panel .ap-atas { position: absolute; top: 1.25rem; right: 1.5rem; }
  .ap-panel > .ap-kepala { margin: 0 auto 1.1rem; }
  .ap-panel > .ap-kepala h1 { font-size: 1.75rem; margin-bottom: .2rem; }
  .ap-panel > .ap-kepala p { font-size: .92rem; }
  .ap-panel > .ap-kepala + .ap-form { margin: 0 auto; }
  .ap-panel .ap-form { padding: 1.4rem 1.6rem 1.25rem; }
  .ap .auth-tabs { margin-bottom: 1.1rem; }
  .ap .auth-tabs button { min-height: 40px; }
  .ap-panel .field { margin-bottom: .85rem; }
  .ap-panel .ap-isian input { height: 46px; }
  .ap-baris-lupa { margin: -.4rem 0 .85rem; }
  .ap-panel .ap-btn { height: 46px; }
  .ap-panel .ap-ganti { margin-top: .9rem; }
}
/* Layar laptop pendek: rapatkan lagi */
@media (min-width: 881px) and (max-height: 780px) {
  .ap-panel > .ap-kepala h1 { font-size: 1.5rem; }
  .ap-panel > .ap-kepala p, .ap-panel .ap-bawah { display: none; }
  .ap-panel .ap-form { padding: 1.15rem 1.4rem 1rem; }
  .ap-panel .field { margin-bottom: .7rem; }
}
@media (min-width: 881px) { .ap-panel { justify-content: safe center; padding-top: 4rem; } }

/* Tab Masuk/Daftar: yang aktif berlatar biru, tulisan putih, membulat */
/* Pil biru meluncur di belakang tab aktif (tombolnya sendiri transparan) */
.ap .auth-tabs { position: relative; }
.ap .auth-tabs::before {
  content: "" !important; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 99px;
  background: var(--navy); box-shadow: 0 6px 16px rgba(21,57,93,.28);
  transition: transform .35s cubic-bezier(.3,.9,.3,1);
}
.ap .auth-tabs[data-aktif="register"]::before { transform: translateX(100%); }
.ap .auth-tabs button.active { color: #fff; }
.ap .auth-tabs button:not(.active):hover { color: var(--navy); }

/* Daftar lebih ringkas supaya kartu tidak menyentuh bawah layar laptop */
.ap-panel .ap-legal { margin-top: .6rem; font-size: 13px; }
@media (min-width: 881px) {
  .ap-panel { padding-top: 2.75rem; padding-bottom: 2rem; }
  #form-register .field { margin-bottom: .7rem; }
}
@media (min-width: 881px) and (max-height: 900px) {
  .ap-panel .ap-bawah { display: none; }
  .ap-panel > .ap-kepala p { display: none; }
}
@media (min-width: 881px) and (max-height: 900px) {
  .ap-panel { padding-top: 2rem; padding-bottom: 1.25rem; }
  .ap-panel > .ap-kepala { margin-bottom: .8rem; }
  #form-register .field { margin-bottom: .55rem; }
  #form-register .field label { margin-bottom: .25rem; }
  #form-register .ap-isian input { height: 42px; }
  .ap-panel .ap-legal { margin: .45rem 0 0; line-height: 1.4; }
  .ap-panel .ap-ganti { margin-top: .7rem; }
}

/* Judul Masuk/Daftar memantul kecil saat tab diganti */
.ap-panel > .ap-kepala h1.judul-ganti { animation: judul-pantul .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes judul-pantul { 0% { opacity: 0; transform: translateY(8px) scale(.96); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ap-panel > .ap-kepala h1.judul-ganti { animation: none; } }

/* =========================================================
   Masuk/Daftar/Lupa sandi di HP: area biru lebih luas berisi ilustrasi hidup,
   kartu putih hanya setinggi isinya dan menempel di bawah layar
   ========================================================= */
.ap-hp-visual { display: none; }
@media (max-width: 880px) {
  .ap-panel { display: flex; flex-direction: column; }
  .ap-panel .ap-form { flex: 0 0 auto; margin-top: 0; }
  .ap-panel > .ap-kepala { margin: .5rem auto 1.25rem; }
  .ap-hp-visual { display: block; position: relative; flex: 1 1 auto; min-height: 150px; margin: .5rem -1rem 0; overflow: hidden; }
  /* Logo di tengah dengan cincin berdenyut */
  .ahv-pusat { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%); }
  .ahv-logo { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 18px 40px rgba(3,14,28,.45), 0 0 0 8px rgba(255,255,255,.07); animation: ahv-melayang 5s ease-in-out infinite; }
  .ahv-logo img { width: 58%; }
  .ahv-cincin { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(127,209,199,.5); animation: ahv-denyut 3s ease-out infinite; }
  .ahv-c2 { animation-delay: 1.5s; }
  /* Chip fitur yang melayang */
  .ahv-chip {
    position: absolute; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem .45rem .5rem;
    border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #e4edf5;
    font-size: 13px; font-weight: 700; white-space: nowrap; backdrop-filter: blur(6px);
    animation: ahv-chip 6s ease-in-out infinite;
  }
  .ahv-chip svg { display: grid; padding: 4px; box-sizing: content-box; border-radius: 50%; background: rgba(43,179,163,.35); color: #bff3ea; }
  .ahv-1 { left: 8%; top: 16%; }
  .ahv-2 { right: 6%; top: 34%; animation-delay: -2s; }
  .ahv-3 { left: 12%; bottom: 12%; animation-delay: -4s; }
  /* Gelembung naik */
  .ahv-gelembung i { position: absolute; bottom: -20px; border-radius: 50%; border: 1px solid rgba(143,227,215,.3); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.3), transparent 70%); animation: ahv-naik linear infinite; }
  .ahv-gelembung i:nth-child(1) { left: 14%; width: 10px; height: 10px; animation-duration: 7s; }
  .ahv-gelembung i:nth-child(2) { left: 32%; width: 16px; height: 16px; animation-duration: 9s; animation-delay: -3s; }
  .ahv-gelembung i:nth-child(3) { left: 58%; width: 8px; height: 8px; animation-duration: 6s; animation-delay: -1s; }
  .ahv-gelembung i:nth-child(4) { left: 72%; width: 14px; height: 14px; animation-duration: 8s; animation-delay: -5s; }
  .ahv-gelembung i:nth-child(5) { left: 86%; width: 9px; height: 9px; animation-duration: 7.5s; animation-delay: -2s; }
  .ahv-gelembung i:nth-child(6) { left: 46%; width: 12px; height: 12px; animation-duration: 10s; animation-delay: -6s; }
  /* Layar pendek / form panjang: chip disembunyikan, logo saja */
  @media (max-height: 700px) { .ahv-chip { display: none; } .ahv-pusat { width: 72px; height: 72px; } }
}
@keyframes ahv-melayang { 50% { transform: translateY(-6px); } }
@keyframes ahv-denyut { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes ahv-chip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ahv-naik { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-260px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ahv-logo, .ahv-cincin, .ahv-chip, .ahv-gelembung i { animation: none; } }

/* =========================================================
   Hasil di HP: foto besar di atas, lalu teks dalam satu kolom (lebih proporsional)
   ========================================================= */
@media (max-width: 480px) {
  .result-hero { padding: 1rem 0 1.75rem; }
  .result-hero-grid { display: block; }
  .result-hero-text { display: block; }
  .result-photo-card { position: relative; width: 100%; max-width: none; margin: 0 0 1.1rem; padding: 6px; border-radius: 24px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
  .result-photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: #0b2540; }
  .result-photo-card.frame::before, .result-photo-card.frame::after,
  .result-photo-card > .frame-b::before, .result-photo-card > .frame-b::after { width: 30px; height: 30px; border-width: 4px; }
  .result-hero-text > .result-meta { margin: 0 0 .25rem; font-size: 13px; }
  .result-hero-text > h1 { margin: 0 0 .5rem; font-size: 30px !important; line-height: 1.12; }
  .result-hero .result-summary { margin-bottom: .85rem; }
  .result-hero .gauge-row { margin-bottom: .75rem; }
  .result-hero .result-disclaimer { margin-bottom: 1.1rem; }
  .result-hero .hero-actions { gap: .25rem; }
}

/* =========================================================
   Hasil di HP: teks di bawah foto jadi satu kartu kaca yang menumpuk sedikit di foto
   ========================================================= */
@media (max-width: 480px) {
  .result-hero .result-photo-card { margin-bottom: 0; }
  .result-hero-text {
    position: relative; z-index: 2; margin: -34px 10px 0; padding: 1.1rem 1.1rem 1rem;
    border-radius: 22px; background: rgba(13,38,64,.92); border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 40px rgba(3,14,28,.4); backdrop-filter: blur(14px);
  }
  /* Tanggal dengan ikon kalender */
  .result-hero-text > .result-meta { display: flex; align-items: center; gap: .4rem; color: #9fb6cc; }
  .result-hero-text > .result-meta::before {
    content: ""; width: 14px; height: 14px; flex-shrink: 0; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* Judul dengan ikon status (✓ sehat, ! sakit) */
  .result-hero-text > h1 { display: flex; align-items: center; gap: .6rem; margin: .45rem 0 .5rem; font-size: 26px !important; }
  .result-hero-text > h1::before {
    content: "✓"; display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px;
    font-size: 20px; font-weight: 900; background: rgba(43,179,163,.2); color: #7fd1c7;
  }
  .result-hero.is-sick .result-hero-text > h1::before { content: "!"; background: rgba(240,128,112,.18); color: #f29a8c; }
  .result-hero .result-summary { font-size: 15px !important; color: #c9d9e7; margin-bottom: .9rem; }
  /* Baris bawah: keyakinan + catatan, dipisah garis */
  .result-hero .gauge-row { margin: 0; padding-top: .85rem; border-top: 0; }
  .result-hero .result-summary + .jenis-chips + .gauge-row,
  .result-hero .result-summary ~ .gauge-row { position: relative; }
  .result-hero .result-summary ~ .gauge-row::before { content: ""; position: absolute; left: -1.1rem; right: -1.1rem; top: -.1rem; height: 0; }
  .result-hero .result-disclaimer.hanya-hp { display: flex !important; align-items: center; gap: .4rem; margin: .7rem 0 1rem; color: #a9bfd3; }
  .result-hero .result-disclaimer.hanya-hp::before { content: "i"; display: grid; place-items: center; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 10px; font-weight: 800; font-style: normal; }
  .result-hero .hero-actions { margin-top: .25rem; }
}
@media (max-width: 480px) {
  .result-hero .result-disclaimer.hanya-hp { display: block !important; }
  .result-hero .result-disclaimer.hanya-hp::before { display: inline-grid; margin-right: .4rem; vertical-align: -3px; }
}
/* Hasil HP: keyakinan rata kiri sejajar ringkasan & catatan (tanpa bingkai pil luar) */
@media (max-width: 480px) {
  .result-hero .gauge-row { padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0; gap: .55rem; margin: 0 0 .7rem !important; }
  .result-hero .gauge-text strong { font-size: 13px; font-weight: 600; color: #a9bfd3; }
  .result-hero .gauge #conf-text { padding: .15rem .6rem; font-size: 13px; }
  .result-hero .result-disclaimer.hanya-hp { margin-top: 0 !important; line-height: 1.5; }
  .result-hero .result-disclaimer.hanya-hp::before { width: 14px; height: 14px; font-size: 9px; vertical-align: -2px; }
}

/* HP: menu avatar disembunyikan (profil, panduan & keluar sudah ada di laci menu) */
.nav-laci-panduan { display: none; }
@media (max-width: 880px) {
  .navbar .nav-akun { display: none !important; }
  .nav-laci-panduan { display: block; margin-top: auto; }
  .nav-laci-panduan button {
    display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 52px; padding: .55rem .6rem;
    border: 0; border-radius: 16px; background: none; font: inherit; font-weight: 700; font-size: 1rem; color: var(--navy); cursor: pointer; text-align: left;
  }
  .nav-laci-panduan button:hover { background: var(--bg); }
  .nav-laci-panduan + .nav-laci-akun { margin-top: .5rem; }
}

/* Masuk/Daftar/Lupa sandi: lebih membulat (kolom isian & tombol berbentuk pil) */
.ap-panel .ap-isian input,
.ap-panel .ap-form input[type="email"], .ap-panel .ap-form input[type="password"], .ap-panel .ap-form input[type="text"] { border-radius: 99px !important; }
.ap-panel .ap-isian input { padding-left: 46px !important; }
.ap-panel .ap-isian .ap-ikon-isian { left: 18px; }
.ap-panel .pw-wrap .pw-lihat { right: 10px; border-radius: 99px; }
.ap-panel .ap-btn, .ap-panel .ap-form .btn { border-radius: 99px !important; }
.ap-panel .ap-form { border-radius: 32px; }
.ap-panel .ap-bantuan, .ap-panel .ap-ikon { border-radius: 18px; }
@media (max-width: 880px) { .ap-panel .ap-form { border-radius: 32px 32px 0 0; } }
/* Lebih membulat lagi */
.ap-panel .ap-form { border-radius: 44px; }
@media (max-width: 880px) { .ap-panel .ap-form { border-radius: 44px 44px 0 0; padding-top: 1.75rem; } }
.ap-panel .ap-isian input, .ap-panel .ap-form input[type="email"], .ap-panel .ap-form input[type="password"], .ap-panel .ap-form input[type="text"] { height: 54px; }
.ap-panel .ap-btn, .ap-panel .ap-form .btn { height: 54px; }
.ap .auth-tabs { padding: 6px; }
.ap .auth-tabs button { min-height: 46px; }
.ap .auth-tabs::before { top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); }
.ap-panel .ap-ikon { border-radius: 50%; }
.ap-panel .ap-bantuan { border-radius: 26px; padding: .9rem 1.2rem; }

/* Kartu akun di laci HP: profil dan tombol Keluar dipisah jelas */
@media (max-width: 880px) {
  .nav-laci-akun { display: grid !important; grid-template-columns: 1fr; gap: 0; padding: .35rem; border-radius: 22px; }
  .nav-links .nav-laci-saya { padding: .5rem .45rem !important; border-radius: 16px !important; }
  .nav-links .nav-laci-saya:hover { background: #fff !important; }
  .nav-laci-saya small { color: var(--teal-dark) !important; font-weight: 700 !important; }
  .nav-laci-panah { margin-left: auto; flex-shrink: 0; color: var(--slate); }
  .nav-laci-keluar {
    display: flex !important; align-items: center; justify-content: center; gap: .5rem;
    width: 100% !important; height: 46px !important; margin-top: .35rem; border-radius: 99px !important;
    border: 1.5px solid #f2d3cf !important; background: #fff !important; color: var(--sick) !important;
    font: inherit; font-weight: 700; font-size: .95rem;
  }
  .nav-laci-keluar:hover { background: var(--sick-soft) !important; }
}
@media (max-width: 880px) {
  .nav-laci-saya > span:nth-child(2) { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
  .nav-laci-saya > span:nth-child(2) strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Laci HP: kartu profil dan tombol Keluar terpisah */
.nav-laci-keluar-wrap { display: none; }
@media (max-width: 880px) {
  .nav-laci-akun { display: block !important; padding: .3rem; border-radius: 20px; }
  .nav-laci-keluar-wrap { display: block; margin-top: .6rem; }
  .nav-laci-keluar { margin-top: 0 !important; height: 48px !important; }
}

/* =========================================================
   Header semua halaman di HP disamakan dengan Tentang/Beranda:
   judul 34 px tebal (Nunito 900), deskripsi 16 px, jarak atas sama
   ========================================================= */
@media (max-width: 480px) {
  .home-hero h1, .about-hero h1, .ency-hero h1, .scan-hero h1, .hist-hero h1, .val-hero h1, .pk-hero h1 {
    font-family: var(--font-display) !important; font-weight: 900 !important; font-size: 34px !important;
    line-height: 1.12 !important; letter-spacing: -.02em !important; color: #fff; margin-bottom: .8rem !important;
  }
  .home-hero .lead, .about-hero p:not(.ap-eyebrow), .ency-hero .ency-hero-teks > p, .scan-hero .container > p,
  .hist-hero-atas p, .val-hero-top #pf-sub, .pk-hero .pk-ringkas {
    font-size: 16px !important; line-height: 1.6 !important; color: #a9bfd3 !important; max-width: none;
  }
  .ency-hero, .scan-hero, .hist-hero, .val-hero, .pk-hero { padding-top: 2rem !important; }
  .ency-hero, .scan-hero { padding-bottom: 2rem !important; }
}
@media (max-width: 480px) {
  .val-hero h1, .hist-hero h1, .pk-hero h1 { overflow-wrap: anywhere; }
  .val-hero h1#pf-judul { font-size: 30px !important; }
  .val-stats { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: .5rem; width: 100%; }
}

/* Tentang: ajakan penutup tanpa pita latar putih (menyatu dengan latar halaman) */
.halaman-tentang .about-cta { background: transparent; padding: 1rem 0 3.5rem; }
@media (max-width: 480px) { .halaman-tentang .about-cta { padding: .5rem 0 2rem; } }

/* =========================================================
   Admin > Pengguna: badge role seragam + menu tindakan (⋯)
   ========================================================= */
.role-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 99px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.role-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.role-badge.role-pembudidaya { background: var(--teal-soft); color: var(--teal-dark); }
.role-badge.role-validator { background: var(--water-soft); color: #1f6fa8; }
.role-badge.role-admin { background: #ece8fb; color: #5b4bb7; }
.adm-aksi-sel { text-align: right; width: 56px; }
.adm-titik { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--slate); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.adm-titik:hover, .adm-titik[aria-expanded="true"] { background: var(--bg); border-color: var(--line); color: var(--navy); }

.adm-menu {
  position: absolute; z-index: 300; width: 290px; padding: .4rem; border-radius: 16px;
  background: #fff; border: 1px solid #e3ecef; box-shadow: 0 18px 44px rgba(15,42,68,.16);
  animation: menu-in .15s ease;
}
.adm-menu-judul { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .45rem .7rem .3rem; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.adm-menu-judul span { text-transform: none; letter-spacing: 0; font-weight: 600; }
.adm-menu button {
  display: flex; align-items: flex-start; gap: .65rem; width: 100%; padding: .6rem .7rem; border: 0; border-radius: 10px;
  background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--navy); text-align: left; cursor: pointer;
}
.adm-menu button svg { flex-shrink: 0; margin-top: 1px; color: var(--slate); }
.adm-menu button span { display: grid; gap: .15rem; }
.adm-menu button small { font-size: .78rem; font-weight: 500; color: var(--slate); line-height: 1.4; }
.adm-menu button:hover, .adm-menu button:focus-visible { background: var(--bg); outline: none; }
.adm-menu button.bahaya, .adm-menu button.bahaya svg { color: var(--sick); }
.adm-menu button.bahaya:hover { background: var(--sick-soft); }
.adm-menu hr { border: 0; border-top: 1px solid #edf2f5; margin: .3rem .4rem; }

/* Admin: baris filter rapi (Pemeriksaan & Transaksi) */
.flt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1.1rem; }
.flt-bar .adm-input, .flt-bar .adm-select { height: 42px; padding: 0 1rem; font-size: .92rem; border-radius: 99px; }
.flt-bar .adm-input { flex: 1 1 260px; min-width: 0; max-width: 360px; }
.flt-bar .adm-select { flex: 0 0 auto; padding-right: 2.2rem; }
.flt-info { margin-left: auto; color: var(--slate); font-size: .85rem; white-space: nowrap; }
.flt-bar .btn { height: 42px; border-radius: 99px; }
.trx-chips button { min-height: 38px; }
@media (max-width: 700px) {
  .flt-bar .adm-input { flex-basis: 100%; max-width: none; }
  .flt-bar .adm-select { flex: 1 1 45%; }
  .flt-info { margin-left: 0; width: 100%; }
}

/* Dropdown admin: panah sendiri yang tidak menempel ke tepi bulat */
select.adm-select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 2.75rem !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353698a' stroke-width='2.4' 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 1rem center; background-size: 16px;
}
select.adm-select:hover { border-color: #c4d3dd; }
select.adm-select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a8580' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }

/* Admin: semua kolom cari & dropdown ukurannya sama dan ringkas */
input.adm-input, select.adm-select { height: 40px !important; padding-top: 0 !important; padding-bottom: 0 !important; font-size: .9rem !important; line-height: 40px; }
input.adm-input { padding-left: 1rem !important; padding-right: 1rem !important; min-width: 0; width: 260px; max-width: 100%; }
select.adm-select { padding-left: 1rem !important; padding-right: 2.4rem !important; background-position: right .85rem center !important; background-size: 14px !important; }
.flt-bar input.adm-input { width: auto; }
.trx-chips button { min-height: 36px; font-size: .86rem; }

/* Tanya ahli: peringatan persetujuan menempel di kotak centang, tidak menumpuk di atas tombol */
#konsul-msg:not(:empty) { margin: .5rem 0 1rem; }
#konsul-msg .alert { padding: .65rem .9rem; font-size: .88rem; border-radius: 12px; }
.konsul-aksi { margin-top: 1rem; }
.setuju { transition: border-color .2s, background .2s; }
.setuju.perlu { border: 1.5px solid #f0b8b1 !important; background: var(--sick-soft) !important; border-radius: 12px; padding: .6rem .75rem; animation: goyang .4s ease; }
.setuju.perlu input { outline: 2px solid var(--sick); outline-offset: 2px; }
.setuju-pesan { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--sick); font-size: .85rem; font-weight: 600; }
.setuju-pesan::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--sick); color: #fff; font-size: 11px; font-weight: 900; flex-shrink: 0; }
@keyframes goyang { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .setuju.perlu { animation: none; } }
/* Garis fokus tombol lebih tipis supaya tidak terlihat menempel */
.btn:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; }

/* Hasil: pesan isian yang belum diisi tidak menumpuk di atas tombol */
#pay-msg:not(:empty), #info-msg:not(:empty) { margin: .6rem 0 1rem; }
#pay-msg .alert, #info-msg .alert { padding: .65rem .9rem; font-size: .88rem; border-radius: 12px; }
#btn-lanjut-bayar { margin-top: .4rem; }
.pay-methods { transition: border-color .2s, background .2s; border-radius: 16px; }
.pay-methods.perlu { border: 1.5px solid #f0b8b1 !important; background: var(--sick-soft); padding: .75rem; animation: goyang .4s ease; }
.pay-methods.perlu label { background: #fff; }
#info-jawab.perlu { border-color: var(--sick) !important; box-shadow: 0 0 0 3px var(--sick-soft); animation: goyang .4s ease; }
@media (prefers-reduced-motion: reduce) { .pay-methods.perlu, #info-jawab.perlu { animation: none; } }

/* =========================================================
   Footer HP: rata tengah, sudut atas membulat, biru sampai bawah layar
   (ruang untuk tombol "?" dipindah ke dalam footer, bukan di bawahnya)
   ========================================================= */
@media (max-width: 480px) {
  body:has(> .footer) { padding-bottom: 0 !important; }
  .footer { border-radius: 28px 28px 0 0; margin-top: 1.5rem; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
  .footer .container.footer-grid { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .9rem; padding: 1.9rem 0 1.1rem; }
  .footer-brand { display: grid; justify-items: center; gap: .45rem; }
  .footer-brand .brand { font-size: 1.15rem; }
  .footer-brand .brand img { width: 30px; }
  .footer-brand p { display: block !important; max-width: 30ch; margin: 0; color: #93abc2; font-size: 13px; line-height: 1.5; }
  .footer-kolom[aria-label="Informasi"] ul { justify-content: center; gap: 0; }
  .footer-kolom[aria-label="Informasi"] li + li::before { content: "·"; margin: 0 .55rem; color: #5f7d99; }
  .footer-kolom li a { color: #cfe0ee; font-weight: 600; }
  .footer-bawah { border-top: 1px solid rgba(255,255,255,.08); }
  .footer-bawah .container { text-align: center; padding: .9rem 0 0; }
  .footer-bawah p { color: #7f9bb5; font-size: 12.5px; }
  .pd-bantuan { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 480px) {
  .footer-kolom[aria-label="Informasi"] li + li::before { content: none; }
  .footer-kolom[aria-label="Informasi"] ul { gap: .2rem 1.1rem; }
}
/* Footer HP: sudut atas tidak membulat */
@media (max-width: 480px) { .footer { border-radius: 0 !important; margin-top: 0; } }
/* Footer HP: rata kiri (logo, deskripsi, tautan, hak cipta) */
@media (max-width: 480px) {
  .footer .container.footer-grid { align-items: flex-start; text-align: left; }
  .footer-brand { justify-items: start; }
  .footer-brand p { max-width: 36ch; }
  .footer-kolom[aria-label="Informasi"] ul { justify-content: flex-start; }
  .footer-bawah .container { text-align: left; }
}
/* Footer HP: hanya tautan yang rata tengah */
@media (max-width: 480px) {
  .footer-kolom[aria-label="Informasi"] { width: 100%; }
  .footer-kolom[aria-label="Informasi"] ul { justify-content: center; }
}

/* Dasbor ahli & admin: tanpa label kecil ("Ahli"/"Super admin") di atas judul, judul ukuran wajar & rata kiri */
.dash-remah { display: none !important; }
.dash-judul-wrap { margin-right: auto; text-align: left; }
.dash-judul { font-size: 1.2rem !important; line-height: 1.2 !important; margin: 0 !important; letter-spacing: -.01em !important; }
@media (max-width: 480px) { .dash-judul { font-size: 1.1rem !important; } }

/* Profil: kolom grid boleh menyempit (tabel riwayat tidak lagi memaksa halaman melebar) */
.pf-grid > *, .pf-body > * { min-width: 0; }
@media (max-width: 860px) { .pf-grid { grid-template-columns: minmax(0, 1fr) !important; } }
.pf-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Profil di dasbor (latar terang): deskripsi pakai abu-abu yang kontras; 4 statistik jadi 2x2 */
.dash .val-hero-top #pf-sub { color: var(--slate) !important; }
@media (max-width: 480px) {
  .val-stats:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Dasbor di HP: tombol menu & sidebar di kanan (selaras dengan laci menu halaman umum), judul tetap kiri */
@media (max-width: 980px) {
  .dash-burger { order: 2; margin-left: auto; }
  .dash-judul-wrap { order: 1; }
  .dash-side {
    left: auto !important; right: 0; transform: translateX(105%) !important;
    border-radius: 24px 0 0 24px; box-shadow: -20px 0 60px rgba(10,32,54,.2) !important;
  }
  .dash-side.open { transform: none !important; }
}
@media (max-width: 980px) {
  .dash-side { z-index: 95 !important; }
  .dash-latar { z-index: 90 !important; }
  .dash-burger { position: relative; z-index: 96; }
  .dash-side .dash-brand { padding-right: 3.25rem; }   /* ruang untuk tombol tutup di kanan atas */
}

/* Sidebar dasbor (admin & ahli): kartu profil + tombol Keluar terpisah, sama dengan laci pembudidaya */
.dash-side-kaki { display: grid !important; gap: .6rem; padding: 0 !important; background: none !important; border: 0 !important; }
.dash-profil-kartu {
  display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .65rem .7rem; border-radius: 18px;
  background: #f5f8fa; border: 1px solid #e8eef2; color: inherit; transition: background .15s, border-color .15s;
}
.dash-profil-kartu:hover { background: #fff; border-color: #d6e2e8; }
.dash-profil-kartu .avatar-lingkar { width: 40px; height: 40px; font-size: .85rem; flex-shrink: 0; }
.dash-profil-kartu .dash-saya { flex: 1; }
.dash-profil-kartu .dash-saya small { color: var(--teal-dark) !important; font-weight: 700; font-size: .8rem; }
.dash-panah { flex-shrink: 0; color: var(--slate); }
.dash-keluar {
  display: flex !important; align-items: center; justify-content: center; gap: .5rem;
  width: 100% !important; height: 46px !important; margin: 0 !important; border-radius: 99px !important;
  border: 1.5px solid #f2d3cf !important; background: #fff !important; color: var(--sick) !important;
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
}
.dash-keluar svg { width: 18px; height: 18px; }
.dash-keluar:hover { background: var(--sick-soft) !important; }

/* =========================================================
   Halaman Kebijakan privasi & Syarat dan ketentuan
   ========================================================= */
.legal-hero {
  padding: 4rem 0 3rem; color: #fff;
  background: radial-gradient(ellipse 60% 70% at 85% 10%, rgba(26,133,128,.35), transparent 60%), #0b2540;
}
.legal-eyebrow { color: #8fe3d7; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
.legal-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: .6rem; }
.legal-hero p { color: #a9bfd3; max-width: 40em; }
.legal-hero .legal-tgl { margin-top: 1rem; font-size: .85rem; color: #8fb0cc; }
.legal-isi { max-width: 780px; padding: 2.5rem 0 4rem; display: grid; gap: 1rem; }
.legal-isi section { background: var(--surface); border: 1px solid #e3ecef; border-radius: 20px; padding: 1.4rem 1.6rem; }
.legal-isi h2 { font-size: 1.15rem; color: var(--navy); margin-bottom: .6rem; }
.legal-isi p, .legal-isi li { color: var(--ink); line-height: 1.7; }
.legal-isi ul { padding-left: 1.2rem; display: grid; gap: .45rem; }
.legal-isi a { color: var(--teal-dark); font-weight: 600; text-decoration: underline; }
.legal-kontak { background: var(--teal-soft) !important; border-color: #cfe5e2 !important; }

/* Tautan hukum di footer */
.footer-legal { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: .35rem 0 0; }
.footer-legal a { color: #8fb0cc; font-size: .85rem; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: #fff; }
.footer-bawah .container { flex-wrap: wrap; }
.ap-legal a { color: var(--teal-dark); font-weight: 600; text-decoration: underline; }
@media (max-width: 480px) {
  .legal-hero { padding: 2rem 0 1.75rem; }
  .legal-isi { padding: 1.25rem 0 2rem; }
  .legal-isi section { padding: 1.1rem 1.15rem; border-radius: 16px; }
  .footer-bawah p.footer-legal { display: flex !important; }
  .footer-legal a { font-size: 12.5px; }
}

/* Tanya ahli ditutup sementara (ahli berhalangan) */
.konsul-tutup { margin: .5rem 0 0; padding: .8rem 1rem; border-radius: 14px; background: #fff8ec; border: 1px solid #f3d9a8; color: #7a4a00; font-size: .9rem; line-height: 1.5; }
/* Footer HP: tautan Kebijakan privasi & Syarat dan ketentuan rata tengah */
@media (max-width: 480px) { .footer-bawah p.footer-legal { justify-content: center; width: 100%; } }
/* Footer HP: jarak antara hak cipta dan tautan hukum */
@media (max-width: 480px) { .footer-bawah p.footer-legal { margin-top: 1rem !important; } }
/* Metode pembayaran: judul (legend) di dalam kotak, bukan memotong garis tepi saat disorot merah */
.pay-methods > legend { float: left; width: 100%; padding: 0; margin: 0 0 .6rem; }
.pay-methods > legend + * { clear: both; }

/* Riwayat: jarak antarbaris di kartu scan lebih lega */
.h-item h3 { margin-bottom: .3rem; }
.h-meta { margin-bottom: .55rem; line-height: 1.5; }
.h-status-baris { margin-top: 0; gap: .5rem; }
/* Riwayat: angka keyakinan tidak menempel ke teks sebelumnya */
.h-meta strong { margin-left: .3rem; }
/* Footer HP: tautan hukum di tengah antara hak cipta dan tepi bawah (jarak atas = bawah) */
@media (max-width: 480px) {
  .footer-bawah p.footer-legal { margin-top: 2.25rem !important; }
  .footer { padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px)) !important; }
}

/* Profil: pesan kesalahan form tidak menempel ke tombol */
#sandi-msg:not(:empty), #profil-msg:not(:empty) { margin: .4rem 0 1.1rem; }
#sandi-msg .alert, #profil-msg .alert { padding: .65rem .9rem; font-size: .88rem; border-radius: 12px; margin: 0; }
/* Hasil HP: "Yakin" teks biasa seukuran label di sebelahnya (bukan pil putih besar) */
@media (max-width: 480px) {
  .result-hero .gauge #conf-text {
    padding: 0 !important; background: none !important; border-radius: 0;
    font-size: 13px !important; font-weight: 700 !important; line-height: 1.4; color: #fff !important;
  }
  .result-hero .gauge-row { gap: .35rem !important; }
}
/* Hasil HP: "Yakin" tag putih kecil, teks biru, ukuran sama dengan label; sejajar tengah */
@media (max-width: 480px) {
  .result-hero .gauge-row { align-items: center !important; gap: .45rem !important; }
  .result-hero .gauge { display: inline-flex; align-items: center; }
  .result-hero .gauge #conf-text {
    padding: .1rem .55rem !important; background: #fff !important; border-radius: 99px;
    font-size: 13px !important; font-weight: 700 !important; line-height: 1.4; color: var(--navy) !important;
  }
}
/* Hasil HP: judul status lebih kecil, seimbang dengan kotak ikon di sebelahnya */
@media (max-width: 480px) {
  .result-hero-text > h1 { font-size: 21px !important; line-height: 1.25 !important; gap: .65rem; align-items: center; }
  .result-hero-text > h1::before { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
}
@media (max-width: 480px) { .result-hero-text > h1 { font-size: 23px !important; } }
