/* =========================================================================
   LINTAN — sistem desain
   Hijau zamrud + lime segar, huruf besar, target sentuh ≥ 48px.
   Mode gelap mengikuti HP; bisa dipaksa lewat <html data-theme="light|dark">.
   ========================================================================= */

:root {
  color-scheme: light;
  /* Warna dasar */
  --primary: #0E7C4A;
  --primary-600: #12935A;
  --primary-strong: #0A6038;
  --primary-ink: #075232;
  --primary-300: #8FD3A9;
  --primary-soft: #DCF2E3;
  --primary-softer: #EDF8EF;
  --lime: #B6E33B;
  --lime-strong: #9BCB1F;
  --lime-ink: #263C00;
  --lime-soft: #EEF8CF;
  --forest: #0B2E1F;
  --forest-2: #0F3D28;
  --warn: #F5A524;
  --warn-soft: #FFF1D2;
  --warn-ink: #7A4A00;
  --danger: #F2552C;
  --danger-strong: #D63E17;
  --danger-soft: #FFE6DD;
  --danger-ink: #A3300F;
  --info: #2BA6DE;
  --info-soft: #DFF3FC;
  --info-ink: #0A5A82;
  --earth: #8A6A4F;
  --earth-soft: #F1E9E0;
  --earth-ink: #5B4330;

  /* Permukaan & teks */
  --bg: #F4FAF1;
  --bg-deep: #E4F0DF;
  --surface: #FFFFFF;
  --surface-2: #EAF4E6;
  --surface-glass: rgba(255, 255, 255, .84);
  --text: #0F2A1D;
  --text-2: #3D5749;
  --muted: #688273;
  --line: #DDE9D9;
  --line-strong: #C2D6BE;

  --shadow: 0 1px 2px rgba(11, 46, 31, .05), 0 8px 24px rgba(11, 46, 31, .07);
  --shadow-lg: 0 14px 44px rgba(11, 46, 31, .2);
  --shadow-btn: 0 8px 18px rgba(14, 124, 74, .3);

  /* Nama lama (dipakai di halaman) → diarahkan ke palet baru */
  --hijau-900: var(--forest);
  --hijau-800: var(--primary-ink);
  --hijau-700: var(--primary);
  --hijau-600: var(--primary-600);
  --hijau-500: var(--primary-600);
  --hijau-300: var(--primary-300);
  --hijau-100: var(--primary-soft);
  --hijau-50: var(--primary-softer);
  --krem: var(--bg);
  --krem-2: var(--surface-2);
  --tanah: var(--earth);
  --tanah-700: var(--earth-ink);
  --kuning: var(--warn);
  --kuning-100: var(--warn-soft);
  --oranye: #F28C28;
  --merah: var(--danger);
  --merah-100: var(--danger-soft);
  --biru: var(--info);
  --biru-100: var(--info-soft);
  --abu-900: var(--text);
  --abu-700: var(--text-2);
  --abu-500: var(--muted);
  --abu-300: var(--line-strong);
  --abu-100: var(--surface-2);
  --putih: var(--surface);

  --radius: 22px;
  --radius-sm: 14px;
  --nav-h: 68px;
  --nav-gap: 10px;
  --top-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --primary: #3DD68C;
    --primary-600: #1FA463;
    --primary-strong: #12784A;
    --primary-ink: #86EBB4;
    --primary-300: #2E7A52;
    --primary-soft: rgba(61, 214, 140, .15);
    --primary-softer: rgba(61, 214, 140, .07);
    --lime: #C4EE4E;
    --lime-soft: rgba(196, 238, 78, .14);
    --warn-soft: rgba(245, 165, 36, .16);
    --warn-ink: #FFC870;
    --danger: #FF6B45;
    --danger-strong: #E2502B;
    --danger-soft: rgba(255, 107, 69, .16);
    --danger-ink: #FF9F86;
    --info-soft: rgba(43, 166, 222, .17);
    --info-ink: #84D0F2;
    --earth-soft: rgba(176, 140, 110, .17);
    --earth-ink: #D9BDA2;
    --bg: #07160F;
    --bg-deep: #030C08;
    --surface: #0F241A;
    --surface-2: #173327;
    --surface-glass: rgba(15, 36, 26, .86);
    --text: #E4F1E8;
    --text-2: #B4CBBD;
    --muted: #85A092;
    --line: #1E3A2D;
    --line-strong: #2C4F3E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
    --shadow-lg: 0 14px 44px rgba(0, 0, 0, .5);
    --shadow-btn: 0 8px 18px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #3DD68C;
  --primary-600: #1FA463;
  --primary-strong: #12784A;
  --primary-ink: #86EBB4;
  --primary-300: #2E7A52;
  --primary-soft: rgba(61, 214, 140, .15);
  --primary-softer: rgba(61, 214, 140, .07);
  --lime: #C4EE4E;
  --lime-soft: rgba(196, 238, 78, .14);
  --warn-soft: rgba(245, 165, 36, .16);
  --warn-ink: #FFC870;
  --danger: #FF6B45;
  --danger-strong: #E2502B;
  --danger-soft: rgba(255, 107, 69, .16);
  --danger-ink: #FF9F86;
  --info-soft: rgba(43, 166, 222, .17);
  --info-ink: #84D0F2;
  --earth-soft: rgba(176, 140, 110, .17);
  --earth-ink: #D9BDA2;
  --bg: #07160F;
  --bg-deep: #030C08;
  --surface: #0F241A;
  --surface-2: #173327;
  --surface-glass: rgba(15, 36, 26, .86);
  --text: #E4F1E8;
  --text-2: #B4CBBD;
  --muted: #85A092;
  --line: #1E3A2D;
  --line-strong: #2C4F3E;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-lg: 0 14px 44px rgba(0, 0, 0, .5);
  --shadow-btn: 0 8px 18px rgba(0, 0, 0, .35);
}

/* Angka persentase cincin bisa dianimasikan */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.015em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 21px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.bold { font-weight: 700; }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

[data-lucide], svg.lucide { width: 22px; height: 22px; stroke-width: 2.2; flex-shrink: 0; }

/* ----------------------------------------------------------- Animasi */
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes barIn { from { transform: scaleX(0); } }
@keyframes shimmer { to { background-position: -200% 0; } }

.page-in { animation: fadeIn .28s var(--ease) backwards; }
.page-in .list > *, .page-in .tiles > *, .page-in .quick > *, .page-in .hero-overlap > *,
.page-in > .card, .page-in > .section-title, .page-in > .stack > .card, .page-in .steps > * {
  animation: rise .5s var(--ease) backwards;
}
.page-in :is(.list, .tiles, .quick, .hero-overlap, .steps) > :nth-child(2) { animation-delay: .05s; }
.page-in :is(.list, .tiles, .quick, .hero-overlap, .steps) > :nth-child(3) { animation-delay: .1s; }
.page-in :is(.list, .tiles, .quick, .hero-overlap, .steps) > :nth-child(4) { animation-delay: .15s; }
.page-in :is(.list, .tiles, .quick, .hero-overlap, .steps) > :nth-child(5) { animation-delay: .2s; }
.page-in :is(.list, .tiles, .quick, .hero-overlap, .steps) > :nth-child(n+6) { animation-delay: .24s; }

/* ----------------------------------------------------------------- Shell */
#app { min-height: 100%; display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; position: relative; background: var(--bg); }
.topbar {
  position: sticky; top: 0; z-index: 900;
  height: var(--top-h); padding: 0 8px 0 4px;
  display: flex; align-items: center; gap: 4px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 19px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 8px; }
.topbar.no-back h1 { padding-left: 12px; }
.icon-btn {
  width: 48px; height: 48px; border: 0; background: transparent; border-radius: 16px;
  display: inline-grid; place-items: center; color: var(--text); cursor: pointer; transition: background .2s, transform .15s var(--spring);
}
.icon-btn:active { background: var(--surface-2); transform: scale(.92); }
#view { flex: 1; padding: 16px 16px calc(var(--nav-h) + var(--nav-gap) + var(--safe-b) + 28px); }
#view.full { padding: 0; }
body.no-nav #view { padding-bottom: calc(24px + var(--safe-b)); }
body.no-nav .bottomnav { display: none; }

/* Navigasi bawah: pil melayang + tombol Pantau di tengah */
.bottomnav {
  position: fixed; z-index: 950; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-gap) + var(--safe-b));
  width: min(620px, calc(100% - 20px)); height: var(--nav-h); padding: 0 6px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: var(--surface-glass); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg);
}
.bottomnav a {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 700;
  transition: color .2s;
}
.bottomnav a .pill { width: 52px; height: 32px; border-radius: 99px; display: grid; place-items: center; transition: background .25s var(--ease), transform .3s var(--spring); }
.bottomnav a:active .pill { transform: scale(.88); }
.bottomnav a.active { color: var(--primary-ink); }
.bottomnav a.active .pill { background: var(--primary-soft); }
.bottomnav a.active .pill svg { animation: pop .4s var(--spring); }
.nav-fab {
  justify-self: center; position: relative; top: -16px; border: 0; padding: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; font: 800 12px var(--font); color: var(--primary-ink);
}
.nav-fab .fab-in {
  width: 62px; height: 62px; border-radius: 22px; display: grid; place-items: center; color: var(--lime-ink);
  background: linear-gradient(145deg, #D4F56A, var(--lime) 45%, var(--lime-strong));
  box-shadow: 0 10px 24px rgba(120, 170, 20, .45), 0 0 0 5px var(--bg);
  transition: transform .3s var(--spring), border-radius .3s var(--ease);
}
.nav-fab .fab-in svg { width: 28px; height: 28px; stroke-width: 2.4; }
.nav-fab:active .fab-in { transform: scale(.9) rotate(-6deg); border-radius: 50%; }
.nav-fab::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 62px; height: 62px; margin-left: -31px; border-radius: 22px;
  background: var(--lime); opacity: 0; animation: fabRing 3.2s ease-out infinite;
}
@keyframes fabRing { 0% { transform: scale(.9); opacity: .55; } 45%, 100% { transform: scale(1.45); opacity: 0; } }

.sync-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-radius: 99px; font-size: 13px; font-weight: 700; border: 0; cursor: pointer;
  background: var(--primary-soft); color: var(--primary-ink); animation: pop .35s var(--spring);
}
.sync-pill.pending { background: var(--warn-soft); color: var(--warn-ink); }
.sync-pill.offline { background: var(--surface-2); color: var(--text-2); }
.sync-pill svg { width: 16px; height: 16px; }

.net-banner {
  display: flex; align-items: center; gap: 8px; margin: 10px 16px 0; padding: 9px 14px; border-radius: 14px;
  background: var(--warn-soft); color: var(--warn-ink); font-size: 13.5px; font-weight: 700; animation: rise .3s var(--ease);
}
.net-banner svg { width: 17px; height: 17px; }
.demo-banner {
  background: repeating-linear-gradient(-45deg, var(--lime-soft), var(--lime-soft) 10px, transparent 10px, transparent 20px), var(--surface);
  color: var(--text-2); font-size: 13px; font-weight: 700; text-align: center; padding: 6px 12px;
}

/* ----------------------------------------------------------------- Cards */
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; border: 1px solid var(--line);
}
.card.flat { box-shadow: none; }
.card.tap { cursor: pointer; transition: transform .2s var(--spring), box-shadow .2s; }
.card.tap:active { transform: scale(.98); }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-title > svg:first-child { color: var(--primary); }
.card-title h3 { flex: 1; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 2px 12px; }
.section-title h2 { font-size: 19px; }
.section-title a, .link-btn { font-size: 15px; font-weight: 700; color: var(--primary); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 6px 0; font-family: inherit; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px; border-radius: 18px; border: 0; cursor: pointer;
  font: 700 17px/1 var(--font); text-decoration: none; white-space: nowrap; color: #fff;
  background: linear-gradient(160deg, var(--primary-600), var(--primary-strong));
  box-shadow: var(--shadow-btn), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .18s var(--spring), filter .2s, opacity .2s, box-shadow .2s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.btn.block { width: 100%; }
.btn.lime { background: linear-gradient(160deg, #CDF25C, var(--lime-strong)); color: var(--lime-ink); box-shadow: 0 8px 18px rgba(120, 170, 20, .35); }
.btn.secondary { background: var(--primary-soft); color: var(--primary-ink); box-shadow: none; }
.btn.outline { background: var(--surface); color: var(--primary-ink); border: 2px solid var(--primary-300); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--primary-ink); box-shadow: none; }
.btn.danger { background: linear-gradient(160deg, var(--danger), var(--danger-strong)); box-shadow: 0 8px 18px rgba(214, 62, 23, .28); }
.btn.danger-soft { background: var(--danger-soft); color: var(--danger-ink); box-shadow: none; }
.btn.warn { background: linear-gradient(160deg, #F7B23F, #E08A0B); color: #fff; box-shadow: 0 8px 18px rgba(224, 138, 11, .28); }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 14px; }
.btn.xs { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 11px; gap: 6px; }
.btn.xs svg, .btn.sm svg { width: 18px; height: 18px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }

.fab {
  position: fixed; z-index: 960; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--nav-gap) + var(--safe-b) + 18px);
  min-height: 64px; padding: 0 28px; border-radius: 99px; font-size: 18px;
  background: linear-gradient(160deg, #CDF25C, var(--lime-strong)); color: var(--lime-ink);
  box-shadow: 0 12px 30px rgba(90, 140, 10, .45), 0 0 0 6px var(--surface-glass);
  animation: pop .45s var(--spring) backwards;
}
body.no-nav .fab { bottom: calc(22px + var(--safe-b)); }
.fab svg { width: 26px; height: 26px; }
.fab:active { transform: translateX(-50%) scale(.95); }

/* ----------------------------------------------------------------- Forms */
.field { display: block; margin-bottom: 16px; }
.field > span, .label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text-2); }
.field > span em { color: var(--danger); font-style: normal; }
.input, select.input, textarea.input {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 16px;
  border: 2px solid var(--line); background: var(--surface); color: var(--text);
  font: 500 17px/1.3 var(--font); outline: none; transition: border-color .15s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23688273' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.input:disabled { background: var(--surface-2); color: var(--muted); }
.input::placeholder { color: var(--muted); opacity: .7; }
.input.pin { letter-spacing: .5em; font-size: 24px; text-align: center; font-weight: 800; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.grid-2 > * { min-width: 0; }
.input[type="date"] { min-width: 0; padding-left: 12px; padding-right: 10px; }
.form-error { background: var(--danger-soft); color: var(--danger-ink); padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 15px; animation: rise .3s var(--ease); }

.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 5px;
  background: var(--surface-2); border-radius: 18px;
}
.segmented button {
  min-height: 46px; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
  font: 700 15.5px var(--font); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .25s var(--ease), color .2s, box-shadow .25s;
}
.segmented button.active { background: var(--surface); color: var(--primary-ink); box-shadow: var(--shadow); }
.segmented button svg { width: 19px; height: 19px; }

/* ----------------------------------------------------------------- Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px;
  font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--text-2); white-space: nowrap;
}
.chip svg { width: 15px; height: 15px; }
.chip.hijau { background: var(--primary-soft); color: var(--primary-ink); }
.chip.lime { background: var(--lime-soft); color: var(--primary-ink); }
.chip.kuning { background: var(--warn-soft); color: var(--warn-ink); }
.chip.merah { background: var(--danger-soft); color: var(--danger-ink); }
.chip.biru { background: var(--info-soft); color: var(--info-ink); }
.chip.tanah { background: var(--earth-soft); color: var(--earth-ink); }
.level { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; font-weight: 800; font-size: 14px; }
.level::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.level.Rendah { background: var(--primary-soft); color: var(--primary-ink); }
.level.Sedang { background: var(--warn-soft); color: var(--warn-ink); }
.level.Tinggi { background: var(--danger-soft); color: var(--danger-ink); }
.level.na { background: var(--surface-2); color: var(--text-2); }
.level.na::before { display: none; }

/* ------------------------------------------------------------------ Hero */
.hero {
  --sky-a: #23B06C; --sky-b: #0E7C4A; --sky-c: #0A4A2E; --glow: rgba(255, 230, 120, .55);
  margin: -16px -16px 0; padding: 20px 20px 64px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90% 70% at 100% 0%, var(--glow), transparent 60%),
    linear-gradient(165deg, var(--sky-a) 0%, var(--sky-b) 52%, var(--sky-c) 100%);
  border-radius: 0 0 34px 34px;
}
.hero.w-pagi { --sky-a: #3CC27A; --sky-b: #0E8A50; --sky-c: #0A5434; --glow: rgba(255, 224, 130, .6); }
.hero.w-siang { --sky-a: #2BB673; --sky-b: #0E7C4A; --sky-c: #0A4A2E; --glow: rgba(220, 255, 120, .5); }
.hero.w-sore { --sky-a: #1E9C5E; --sky-b: #0D6B42; --sky-c: #123B2A; --glow: rgba(255, 158, 74, .65); }
.hero.w-malam { --sky-a: #12503A; --sky-b: #0B3324; --sky-c: #051910; --glow: rgba(150, 200, 255, .22); }
.hero.c-hujan { --sky-a: #3A7A66; --sky-b: #22564A; --sky-c: #12332B; --glow: rgba(180, 210, 230, .25); }
.hero.c-awan.w-siang, .hero.c-awan.w-pagi { --glow: rgba(255, 255, 255, .3); }
.hero::after {
  content: ''; position: absolute; inset: auto -30px -70px auto; width: 240px; height: 240px; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 95C20 80 8 55 14 28 40 25 70 38 82 66 86 78 70 92 50 95Z' fill='%23ffffff' fill-opacity='.07'/%3E%3Cpath d='M50 95C46 70 38 50 20 32' stroke='%23ffffff' stroke-opacity='.1' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(-18deg);
}
.hero .greet { font-size: 15px; opacity: .88; font-weight: 600; }
.hero h1 { color: #fff; font-size: 25px; margin-top: 2px; }
.hero .avatar {
  width: 48px; height: 48px; border-radius: 16px; background: rgba(255, 255, 255, .2);
  display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; font-weight: 800; font-size: 18px;
  backdrop-filter: blur(6px); transition: transform .2s var(--spring);
}
.hero .avatar:active { transform: scale(.9); }
.hero-overlap { margin-top: -54px; position: relative; z-index: 2; }

/* Langit beranimasi di hero cuaca */
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky .orb {
  position: absolute; right: -34px; top: -34px; width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF7C2, #FFD54A 55%, #FFB300);
  box-shadow: 0 0 60px 16px rgba(255, 213, 74, .45); animation: glow 5s ease-in-out infinite; opacity: .9;
}
.hero.w-sore .sky .orb { background: radial-gradient(circle at 35% 35%, #FFE0B0, #FF9E4A 60%, #F06A2A); box-shadow: 0 0 60px 18px rgba(255, 140, 60, .5); }
.hero.w-malam .sky .orb { background: radial-gradient(circle at 60% 40%, #FFFFFF, #DCE8F2 60%, #B8CBDA); box-shadow: 0 0 40px 8px rgba(220, 235, 255, .3); width: 96px; height: 96px; right: -20px; top: -20px; }
.hero.c-hujan .sky .orb, .hero.c-awan .sky .orb { opacity: .5; }
@keyframes glow { 50% { transform: scale(1.06); filter: brightness(1.08); } }
.sky .cloud {
  position: absolute; width: 130px; height: 40px; border-radius: 40px; background: rgba(255, 255, 255, .22);
  animation: drift 38s linear infinite; opacity: 0; transition: opacity 1s;
}
.sky .cloud::before, .sky .cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.sky .cloud::before { width: 60px; height: 60px; left: 18px; top: -28px; }
.sky .cloud::after { width: 46px; height: 46px; left: 62px; top: -18px; }
.sky .cloud.c1 { top: 104px; left: -140px; }
.sky .cloud.c2 { top: 40px; left: -140px; transform: scale(.7); animation-duration: 52s; animation-delay: -20s; }
.hero.c-awan .sky .cloud, .hero.c-hujan .sky .cloud { opacity: 1; }
@keyframes drift { to { left: calc(100% + 140px); } }
.sky .rain { position: absolute; inset: -20px 0 0; opacity: 0; transition: opacity 1s;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45));
  background-size: 2px 22px; -webkit-mask-image: repeating-linear-gradient(100deg, #000 0 2px, transparent 2px 26px);
  mask-image: repeating-linear-gradient(100deg, #000 0 2px, transparent 2px 26px); animation: rain .7s linear infinite; }
.hero.c-hujan .sky .rain { opacity: .55; }
@keyframes rain { to { background-position: 0 22px; transform: translateY(20px); } }
.sky .stars { position: absolute; inset: 0; opacity: 0; transition: opacity 1s;
  background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, #fff, transparent), radial-gradient(1px 1px at 80% 50%, #fff, transparent),
    radial-gradient(1px 1px at 12% 75%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 80%, #fff, transparent);
  animation: twinkle 4s ease-in-out infinite; }
.hero.w-malam .sky .stars { opacity: .8; }
@keyframes twinkle { 50% { opacity: .35; } }

/* Isi cuaca di dalam hero */
.hero-weather { position: relative; margin-top: 18px; min-height: 150px; }
.hero-weather .loc-line { color: rgba(255, 255, 255, .85); }
.hero-weather .now { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.hero-weather .temp { font-size: 76px; font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.hero-weather .temp sup { font-size: 26px; font-weight: 700; vertical-align: top; position: relative; top: 8px; letter-spacing: 0; }
.hero-weather .desc { font-size: 19px; font-weight: 700; }
.hero-weather .w-ic { width: 96px; height: 96px; margin-left: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .2)); animation: float 4.5s ease-in-out infinite; }
.glass-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.glass {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 14px; font-size: 14px; font-weight: 700;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.glass svg { width: 17px; height: 17px; }
.glass small { font-weight: 600; opacity: .8; font-size: 12px; }
.glass-row.tiga { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.glass-row.tiga .glass { padding: 9px 10px; line-height: 1.15; }
.glass-row.tiga .glass b { display: block; font-size: 16px; }
.glass-row.tiga .glass small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass-row.tiga .glass > span { min-width: 0; }
.hero-src { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.hero-src > #lahan-pilih { flex: 1 0 100%; min-width: 0; }
.hero-src > #lahan-pilih:empty { display: none; }
.toggle-glass { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: rgba(0, 0, 0, .18); }
.toggle-glass button {
  border: 0; background: transparent; color: rgba(255, 255, 255, .85); font: 700 13.5px var(--font); padding: 8px 12px; border-radius: 11px;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-height: 38px; transition: background .25s, color .2s;
}
.toggle-glass button svg { width: 16px; height: 16px; }
.toggle-glass button.active { background: #fff; color: var(--forest); }
.select-glass {
  display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 46px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .25); padding: 0 34px 0 12px;
  background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #fff; font: 700 14px var(--font); -webkit-appearance: none; appearance: none; text-overflow: ellipsis;
}
.select-glass option { color: #0F2A1D; }
.glass-skel { border-radius: 14px; background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .24), rgba(255, 255, 255, .1)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.hero-note { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .2); display: flex; gap: 10px; font-weight: 600; font-size: 14.5px; }

/* Aksi cepat di bawah hero */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: -40px; position: relative; z-index: 2; }
.quick a {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 20px;
  background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 14px; text-align: center; transition: transform .2s var(--spring);
}
.quick a:active { transform: scale(.94); }
.quick .ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; }
.quick .ic svg { width: 26px; height: 26px; }
.ic.lime { background: linear-gradient(145deg, #D4F56A, var(--lime)); color: var(--lime-ink); }

/* --------------------------------------------------------------- Weather */
.weather-now { display: flex; align-items: center; gap: 14px; }
.weather-now .temp { font-size: 54px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.weather-now .temp sup { font-size: 22px; font-weight: 700; vertical-align: top; position: relative; top: 6px; }
.weather-now img { width: 72px; height: 72px; }
.weather-desc { font-size: 18px; font-weight: 700; }
.weather-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.weather-meta div { background: var(--primary-softer); border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: center; }
.weather-meta b { display: block; font-size: 17px; }
.weather-meta span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.weather-meta svg { width: 18px; height: 18px; color: var(--primary); margin: 0 auto 2px; display: block; }
.hourly { display: flex; gap: 8px; overflow-x: auto; margin: 2px -18px 0; padding: 4px 18px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.hourly::-webkit-scrollbar { display: none; }
.hourly .h { flex: 0 0 70px; text-align: center; background: var(--surface-2); border-radius: 18px; padding: 10px 4px; scroll-snap-align: start; }
.hourly .h.now { background: linear-gradient(165deg, var(--primary-600), var(--primary-strong)); color: #fff; box-shadow: var(--shadow-btn); }
.hourly .h img { width: 36px; height: 36px; margin: 4px auto; }
.hourly .h b { font-size: 16px; }
.hourly .h small { display: block; font-size: 12px; font-weight: 700; opacity: .8; }
.hourly .h .rain-p { font-size: 11px; font-weight: 700; color: var(--info-ink); display: block; min-height: 15px; }
.hourly .h.now .rain-p { color: #DFF3FC; }
.days { display: grid; gap: 2px; margin-top: 12px; }
.days .d { display: grid; grid-template-columns: 1fr 34px auto; align-items: center; gap: 8px; font-size: 15px; padding: 8px 4px; border-top: 1px solid var(--line); }
.days .d img { width: 32px; height: 32px; }
.temp-range { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 700; }
.temp-range .tr { width: 48px; height: 6px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; }
.temp-range .tr i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #5BC0EB, var(--lime), var(--warn)); }
.loc-line { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.loc-line svg { width: 16px; height: 16px; }

.risk-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; transition: opacity .15s; }
.risk-item:active { opacity: .7; }
.risk-item:first-of-type { border-top: 0; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; grid-column: 1 / -1; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary-600), var(--lime)); transform-origin: left; animation: barIn .9s var(--ease) backwards .15s; }
.bar.Sedang > i { background: linear-gradient(90deg, #F7C04F, var(--warn)); }
.bar.Tinggi > i { background: linear-gradient(90deg, var(--warn), var(--danger)); }

/* ---------------------------------------------------------- Quick tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); min-height: 118px;
  text-align: left; font-family: inherit; cursor: pointer; transition: transform .2s var(--spring);
}
.tile:active { transform: scale(.96); }
.tile .ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; }
.tile .ic svg { width: 26px; height: 26px; }
.tile b { font-size: 16.5px; line-height: 1.25; }
.tile small { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: -6px; }
.ic.hijau { background: var(--primary-soft); color: var(--primary-ink); }
.ic.biru { background: var(--info-soft); color: var(--info-ink); }
.ic.kuning { background: var(--warn-soft); color: var(--warn-ink); }
.ic.merah { background: var(--danger-soft); color: var(--danger-ink); }
.ic.tanah { background: var(--earth-soft); color: var(--earth-ink); }

/* ----------------------------------------------------------------- Lists */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); cursor: pointer; text-decoration: none; color: inherit; transition: transform .2s var(--spring);
}
.list-item:active { transform: scale(.98); }
.list-item .ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0; }
.list-item .meta { font-size: 14px; color: var(--muted); font-weight: 600; }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px 14px; font-size: 15.5px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 700; word-break: break-word; }

.lahan-card { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; }
.lahan-shape {
  width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #2C6B45, #123B27 70%);
}
.lahan-shape svg { width: 70px; height: 70px; }

.empty { text-align: center; padding: 34px 18px; }
.empty .ill {
  width: 104px; height: 104px; margin: 0 auto 16px; border-radius: 34px; display: grid; place-items: center; color: var(--primary);
  background: radial-gradient(circle at 30% 25%, var(--lime-soft), var(--primary-soft)); animation: float 5s ease-in-out infinite;
}
.empty .ill svg { width: 48px; height: 48px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 18px; }

/* ------------------------------------------------------------------- Map */
.map { height: 320px; border-radius: var(--radius); overflow: hidden; background: #1B2E22; box-shadow: var(--shadow); position: relative; z-index: 1; }
.map.tall { height: 56vh; min-height: 360px; }
.map-full { position: fixed; inset: var(--top-h) 0 0 0; max-width: 640px; margin: 0 auto; z-index: 1; }
.map-overlay { position: absolute; z-index: 500; }
.map-tools { position: absolute; right: 12px; top: 12px; z-index: 600; display: flex; flex-direction: column; gap: 8px; }
.map-tools button {
  width: 48px; height: 48px; border-radius: 16px; border: 0; background: var(--surface-glass); box-shadow: var(--shadow); backdrop-filter: blur(8px);
  display: grid; place-items: center; cursor: pointer; color: var(--text); transition: transform .2s var(--spring);
}
.map-tools button:active { transform: scale(.9); }
.map-badge {
  position: absolute; left: 12px; top: 12px; z-index: 600; background: rgba(11, 46, 31, .82); color: #fff;
  padding: 8px 14px; border-radius: 16px; font-weight: 800; font-size: 15px; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12);
}
.map-badge small { display: block; font-size: 12px; opacity: .8; font-weight: 600; }
.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { font-size: 10px; }

.pin-red { position: relative; }
.pin-red i {
  position: absolute; inset: 0; border-radius: 50%; background: var(--danger); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.pin-red.pulse::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%; background: rgba(242, 85, 44, .5);
  animation: pulse 1.8s ease-out infinite;
}
.pin-red.done i { background: #8E2A10; }
.pin-red.done i::after { content: '✓'; color: #fff; font-size: 10px; font-weight: 900; font-style: normal; position: absolute; inset: 0; display: grid; place-items: center; }
.pin-red.sel i { background: var(--lime); }
.pin-red.sel::before { background: rgba(182, 227, 59, .6); }
.pin-label { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); background: #fff; color: var(--danger-strong); font: 800 11px var(--font); padding: 1px 6px; border-radius: 6px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.me-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--info); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(43, 166, 222, .28); }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* -------------------------------------------------------------- Stepper */
.stepper { display: flex; gap: 6px; margin-bottom: 16px; }
.stepper div { flex: 1; height: 6px; border-radius: 99px; background: var(--line-strong); transition: background .4s; }
.stepper div.on { background: linear-gradient(90deg, var(--primary-600), var(--lime)); }
.step-label { font-size: 13px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; }

.option-card {
  display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--surface);
  border: 2px solid var(--line); box-shadow: var(--shadow); cursor: pointer; width: 100%; text-align: left; font-family: inherit; color: inherit;
  transition: border-color .2s, background .2s, transform .2s var(--spring);
}
.option-card:active { transform: scale(.98); }
.option-card.active { border-color: var(--primary); background: var(--primary-softer); }
.option-card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; }
.option-card b { display: block; font-size: 17px; }
.option-card small { color: var(--muted); font-size: 14px; font-weight: 600; }

.area-box { display: flex; align-items: baseline; gap: 8px; }
.area-box b { font-size: 28px; font-weight: 800; color: var(--primary-ink); }

/* ---------------------------------------------------------- Kuesioner */
.gejala-group h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--earth-ink); margin: 20px 4px 10px; display: flex; align-items: center; gap: 8px; }
.check-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 18px; background: var(--surface);
  border: 2px solid var(--line); cursor: pointer; margin-bottom: 10px; transition: border-color .2s, background .2s, transform .2s var(--spring);
}
.check-card:active { transform: scale(.985); }
.check-card input { display: none; }
.check-card .box {
  width: 30px; height: 30px; border-radius: 10px; border: 2.5px solid var(--line-strong); flex-shrink: 0; display: grid; place-items: center; color: transparent; margin-top: 1px;
  transition: background .2s, border-color .2s;
}
.check-card .box svg { width: 20px; height: 20px; stroke-width: 3.2; }
.check-card.on { border-color: var(--primary); background: var(--primary-softer); }
.check-card.on .box { background: var(--primary); border-color: var(--primary); color: #fff; animation: pop .3s var(--spring); }
.check-card .txt { flex: 1; font-weight: 600; font-size: 16px; }
.check-card .txt small { display: block; color: var(--muted); font-weight: 500; font-size: 13.5px; margin-top: 4px; }
.check-card .thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.sticky-bottom {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 640px; z-index: 960;
  padding: 12px 16px calc(12px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 70%, transparent);
}

/* ------------------------------------------------------------- Hasil */
.result-hero {
  --a: #13A060; --b: #0B5A36; color: #fff; border-radius: 28px; padding: 22px; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 90% at 100% 0%, rgba(182, 227, 59, .35), transparent 60%), linear-gradient(155deg, var(--a), var(--b));
  box-shadow: var(--shadow-lg);
}
.result-hero.hama { --a: #A0704F; --b: #4A3123; }
.result-hero.none { --a: #5E7D73; --b: #2E433C; }
.result-hero::after { content: ''; position: absolute; right: -50px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .06); z-index: -1; }
.result-hero h2 { font-size: 25px; color: #fff; margin: 8px 0 2px; }
.result-hero i.latin { opacity: .82; font-size: 15px; }
.ring {
  --p: 0; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(255, 255, 255, .16) 0);
  transition: --p 1.2s var(--ease); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .2));
}
.ring > div { width: 82px; height: 82px; border-radius: 50%; background: rgba(5, 30, 18, .4); display: grid; place-items: center; text-align: center; backdrop-filter: blur(4px); }
.ring b { font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
.ring small { font-size: 10.5px; font-weight: 700; opacity: .85; display: block; }
.reko { white-space: pre-line; font-size: 16px; line-height: 1.65; }

/* Meter kerentanan 3 zona */
.meter { position: relative; margin: 6px 0 4px; padding-top: 14px; }
.meter .zones { display: flex; gap: 4px; height: 14px; }
.meter .zones i { border-radius: 99px; }
.meter .zones .z1 { background: linear-gradient(90deg, var(--primary-600), var(--lime)); }
.meter .zones .z2 { background: linear-gradient(90deg, #F7C04F, var(--warn)); }
.meter .zones .z3 { background: linear-gradient(90deg, #F78A3A, var(--danger)); }
.meter .zones i:not(.on) { opacity: .28; }
.meter .needle {
  position: absolute; top: 0; left: var(--x); width: 26px; height: 42px; margin-left: -13px;
  animation: needleIn 1.2s var(--ease) backwards .2s;
}
.meter .needle::before { content: ''; position: absolute; left: 50%; top: 4px; width: 4px; height: 34px; margin-left: -2px; border-radius: 4px; background: var(--text); }
.meter .needle::after { content: ''; position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--text); border: 3px solid var(--surface); }
@keyframes needleIn { from { left: 0; } }
.meter-lbl { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 10px; }

/* Langkah penanganan yang bisa dicentang */
.steps { display: flex; flex-direction: column; gap: 10px; counter-reset: langkah; }
.step {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: var(--surface-2); cursor: pointer;
  border: 2px solid transparent; transition: background .25s, border-color .25s, transform .2s var(--spring);
}
.step:active { transform: scale(.985); }
.step input { display: none; }
.step .no {
  counter-increment: langkah; width: 32px; height: 32px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--surface); color: var(--primary-ink); font-weight: 800; font-size: 15px; box-shadow: var(--shadow);
}
.step .no::before { content: counter(langkah); }
.step .no svg { display: none; width: 20px; height: 20px; stroke-width: 3.2; }
.step .t { flex: 1; font-size: 15.5px; line-height: 1.55; font-weight: 600; padding-top: 4px; }
.step.on { background: var(--primary-softer); border-color: var(--primary-300); }
.step.on .no { background: var(--primary); color: #fff; animation: pop .35s var(--spring); }
.step.on .no::before { content: none; }
.step.on .no svg { display: block; }
.step.on .t { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--primary-300); }
.steps.plain .step { cursor: default; }
.prog { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 2px 0 12px; }
.prog i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary-600), var(--lime)); transition: width .5s var(--ease); }

.notice {
  display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--info-soft); color: var(--info-ink); font-weight: 600; font-size: 15.5px;
}
.notice svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--info); }
.notice.warn { background: var(--warn-soft); color: var(--warn-ink); }
.notice.warn svg { color: var(--warn); }
.notice.danger { background: var(--danger-soft); color: var(--danger-ink); }
.notice.danger svg { color: var(--danger); }
.notice.lime { background: var(--lime-soft); color: var(--primary-ink); }
.notice.lime svg { color: var(--primary); }

/* ---------------------------------------------------------- Navigasi */
.nav-panel {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 640px; z-index: 970;
  background: var(--surface); border-radius: 30px 30px 0 0; box-shadow: var(--shadow-lg); padding: 18px 18px calc(18px + var(--safe-b));
}
.compass { width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle, var(--surface), var(--primary-softer)); display: grid; place-items: center; flex-shrink: 0; border: 3px solid var(--primary-soft); }
.compass svg { width: 54px; height: 54px; color: var(--primary); transition: transform .3s ease-out; stroke-width: 2.4; }
.dist { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }

/* ------------------------------------------------------- Bottom sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(4, 20, 12, .5); z-index: 2000; opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px); }
.sheet-backdrop.show { opacity: 1; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%); width: 100%; max-width: 640px; z-index: 2001;
  background: var(--surface); border-radius: 30px 30px 0 0; max-height: 90vh; overflow: auto;
  padding: 10px 18px calc(22px + var(--safe-b)); transition: transform .38s var(--spring);
}
.sheet.show { transform: translate(-50%, 0); }
.sheet .grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 4px auto 14px; }
.sheet h2 { margin-bottom: 8px; }

.toast-wrap { position: fixed; left: 0; right: 0; top: 14px; z-index: 3000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  background: #10261B; color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; max-width: 520px; animation: toastIn .4s var(--spring);
}
.toast.ok { background: linear-gradient(160deg, var(--primary-600), var(--primary-strong)); }
.toast.ok svg { color: var(--lime); }
.toast.err { background: linear-gradient(160deg, var(--danger), var(--danger-strong)); }
.toast svg { width: 20px; height: 20px; }
@keyframes toastIn { from { transform: translateY(-20px) scale(.95); opacity: 0; } }

.loading-screen { position: fixed; inset: 0; z-index: 2500; background: color-mix(in srgb, var(--bg) 70%, transparent); display: grid; place-items: center; backdrop-filter: blur(3px); animation: fadeIn .2s; }
.loading-box { background: var(--surface); padding: 22px 26px; border-radius: 24px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 700; min-width: 200px; text-align: center; animation: pop .35s var(--spring); }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--primary-soft); border-top-color: var(--primary); border-right-color: var(--lime); animation: spin .8s linear infinite; }
.spinner.sm { width: 22px; height: 22px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 16px; }

/* --------------------------------------------------------------- Login */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.auth-hero {
  padding: 52px 24px 96px; color: #fff; text-align: center; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 60% at 85% 0%, rgba(182, 227, 59, .5), transparent 65%), linear-gradient(165deg, #23B06C, var(--primary) 45%, var(--forest));
  border-radius: 0 0 40px 40px;
}
.auth-hero::before, .auth-hero::after {
  content: ''; position: absolute; z-index: -1; width: 220px; height: 220px; opacity: .1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 95C20 80 8 55 14 28 40 25 70 38 82 66 86 78 70 92 50 95Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
  animation: float 7s ease-in-out infinite;
}
.auth-hero::before { left: -60px; top: 20px; transform: rotate(40deg); }
.auth-hero::after { right: -50px; bottom: -40px; transform: rotate(-30deg); animation-delay: -3s; }
.auth-hero .logo {
  width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 30px; background: rgba(255, 255, 255, .18); display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); animation: pop .6s var(--spring) backwards .1s;
}
.auth-hero .logo img { width: 64px; height: 64px; }
.auth-hero h1 { color: #fff; font-size: 36px; letter-spacing: .06em; animation: rise .5s var(--ease) backwards .2s; }
.auth-hero p { opacity: .92; font-weight: 600; animation: rise .5s var(--ease) backwards .3s; }
.auth-card { margin: -64px 16px 24px; position: relative; z-index: 2; animation: rise .55s var(--ease) backwards .35s; }
.auth-feat { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; animation: rise .5s var(--ease) backwards .4s; }
.auth-feat .glass { font-size: 13px; padding: 6px 10px; }

/* --------------------------------------------------------------- Table */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th, table.t td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { background: var(--surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border-radius: 18px; padding: 14px 10px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat b { display: block; font-size: 24px; font-weight: 800; color: var(--primary-ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; font-weight: 700; color: var(--muted); }

.photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: 18px; }

/* Profil */
.profile-head {
  display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 26px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(70% 90% at 100% 0%, rgba(182, 227, 59, .4), transparent 60%), linear-gradient(155deg, var(--primary-600), var(--forest));
  box-shadow: var(--shadow-lg);
}
.profile-head .avatar { width: 60px; height: 60px; border-radius: 20px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-weight: 800; font-size: 22px; border: 1px solid rgba(255, 255, 255, .3); }

@media (min-width: 641px) {
  body { background: var(--bg-deep); }
  #app { box-shadow: 0 0 60px rgba(0, 0, 0, .08); min-height: 100vh; }
}
@media (max-width: 480px) {
  .grid-2:has(input[type="date"]) { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  body { font-size: 16px; }
  .tiles { gap: 10px; }
  .weather-now .temp { font-size: 46px; }
  .hero-weather .temp { font-size: 62px; }
  .hero-weather .w-ic { width: 78px; height: 78px; }
  .bottomnav a { font-size: 11px; }
  .bottomnav a .pill { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

button.list-item { width: 100%; font: inherit; text-align: left; }
.lahan-shape.sm { width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0; }
.lahan-shape.sm svg { width: 42px; height: 42px; }
