/* ===== 01-tokens.css ===== */
/* ==========================================================================
   LapinTrip — Clay Outline Design System
   Gaya: kartu putih, garis tepi tebal, bayangan keras tanpa blur (clay),
   sudut besar, warna blok cerah. Terang sebagai utama, gelap lewat toggle.
   ========================================================================== */

/* ---------- token ---------- */
:root {
  /* permukaan */
  --bg:        #FFF8EE;
  --bg-2:      #FFEFDA;
  --surface:   #FFFFFF;
  --surface-2: #FFFCF6;

  /* tinta & garis */
  --ink:   #141C33;
  --line:  #141C33;
  --muted: #5A6785;
  --faint: #66708C;

  /* aksen utama — biru laut */
  --brand:   #1D6FE8;
  --brand-d: #1450A8;
  --brand-t: #E3EEFF;

  /* aksen kedua — kuning matahari */
  --sun:   #FFC93C;
  --sun-d: #C98F00;
  --sun-t: #FFF4D6;

  /* status */
  --coral:   #FF6A55;
  --coral-d: #C9341F;
  --coral-t: #FFE8E3;
  --mint:    #128F5A;
  --mint-t:  #DCF7EA;
  --ok:      #128F5A;
  --err:     #C9341F;

  /* bentuk */
  --bw: 3px;
  --r:    24px;
  --r-md: 18px;
  --r-sm: 13px;
  --r-pill: 999px;

  /* bayangan keras (clay) */
  --sh:    4px 4px 0 var(--line);
  --sh-sm: 3px 3px 0 var(--line);
  --sh-lg: 7px 7px 0 var(--line);
  --sh-in: 3px 3px 0 var(--line);

  /* huruf */
  --fh: 'Baloo 2', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fb: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fm: ui-monospace, 'SF Mono', Menlo, monospace;

  --top-h: 68px;
  --nav-h: 0px;      /* tinggi navigasi bawah, diisi di mobile */
  --ease: cubic-bezier(.2,.9,.3,1);

  /* lapisan tipis untuk latar (garis pemisah, rel, dsb.) */
  --tint-05: rgba(20, 28, 51, .05);
  --tint-08: rgba(20, 28, 51, .08);
  --tint-10: rgba(20, 28, 51, .10);
}

/* ---------- tema gelap ---------- */
[data-theme="dark"] {
  --bg:        #0E1524;
  --bg-2:      #141D31;
  --surface:   #182238;
  --surface-2: #1D2942;

  --ink:   #EAF0FF;
  --line:  #55658C;
  --muted: #A9B5CF;
  --faint: #97A3BE;

  --brand:   #4D8DF6;
  --brand-d: #2E6BD0;
  --brand-t: #1B2A4A;

  --sun:   #FFD25E;
  --sun-d: #E0A400;
  --sun-t: #3A2F10;

  --coral:   #FF8574;
  --coral-d: #FFB3A7;
  --coral-t: #3D1D19;
  --mint:    #46D69A;
  --mint-t:  #11301F;
  --ok:      #46D69A;
  --err:     #FF8574;

  --sh:    4px 4px 0 #060A14;
  --sh-sm: 3px 3px 0 #060A14;
  --sh-lg: 7px 7px 0 #060A14;

  /* lapisan tipis versi gelap */
  --tint-05: rgba(234, 240, 255, .06);
  --tint-08: rgba(234, 240, 255, .10);
  --tint-10: rgba(234, 240, 255, .14);
}

/* ---------- dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--fb);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--fh);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(26px, 5.4vw, 40px); }
h2 { font-size: clamp(21px, 3.6vw, 29px); }
h3 { font-size: 17px; font-weight: 700; }

p { margin: 0 0 12px; }

a { color: var(--brand); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }

/* fokus yang jelas & ramah jempol */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.spacer { flex: 1; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
main { display: block; }

/* ---------- teks bergaya ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--sun);
  color: #3A2A00;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  padding: 7px 16px;
  font: 800 13px/1 var(--fh);
  letter-spacing: .01em;
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(15.5px, 2.2vw, 18px);
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.65;
}

/* ---------- memuat ---------- */
.boot {
  min-height: 100dvh;
  display: grid; place-content: center; justify-items: center; gap: 16px;
  color: var(--muted); font-weight: 700;
}
.spin {
  width: 46px; height: 46px;
  border: var(--bw) solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

/* ===== 02-components.css ===== */
/* ==========================================================================
   KOMPONEN — tombol, isian, lencana, kartu, status
   ========================================================================== */

/* ---------- tombol ----------
   Hierarki: primary (aksi utama) > default (aksi biasa) > soft > ghost (paling ringan).
   Semua bergaris tepi tebal dengan bayangan keras; saat ditekan, tombol
   "turun" menimpa bayangannya sehingga terasa seperti tombol fisik. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  background: var(--surface);
  color: var(--ink);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  font: 800 15px/1 var(--fh);
  letter-spacing: .005em;
  cursor: pointer;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: var(--sh); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--line); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--sh-sm); }

.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-d); }
.btn.sun { background: var(--sun); color: #3A2A00; }
.btn.soft { background: var(--brand-t); color: var(--brand-d); }
.btn.danger { background: var(--coral); color: #fff; }
.btn.danger:hover { background: var(--coral-d); }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn.ghost:hover { background: var(--surface); border-color: var(--line); box-shadow: var(--sh-sm); }

.btn.sm { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.btn.wide { width: 100%; }
.btn.icon { min-width: 46px; padding: 0; font-size: 17px; }
.btn.icon.sm { min-width: 40px; font-size: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- isian ---------- */
.field { margin-bottom: 15px; }
.field > label {
  display: block;
  font: 800 12.5px/1 var(--fh);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  background: var(--surface);
  color: var(--ink);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-in);
  transition: box-shadow .12s var(--ease), border-color .12s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--sh-in), 0 0 0 3px var(--brand-t);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- pesan status ---------- */
.err, .ok {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 12px 15px;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.err { background: var(--coral-t); color: var(--coral-d); }
.ok  { background: var(--mint-t); color: var(--mint); }
/* Ikon status memakai SVG sebaris (mask), bukan emoji — supaya
   tampilannya sama di semua perangkat dan ikut warna teks. */
.err::before, .ok::before {
  content: '';
  flex: none;
  width: 18px; height: 18px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.err::before {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 21.3 19.4a1.2 1.2 0 0 1-1 1.9H3.7a1.2 1.2 0 0 1-1-1.9Z'/%3E%3Cpath d='M12 9.6v4.2M12 17.1h.01'/%3E%3C/svg%3E");
}
.ok::before {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.6 12.8 9.6 18 19.4 6.4'/%3E%3C/svg%3E");
}

/* ---------- lencana ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  font: 800 12px/1 var(--fh);
  background: var(--surface);
}
.badge.on  { background: var(--mint-t); color: var(--mint); }
.badge.off { background: var(--coral-t); color: var(--coral-d); }

/* ---------- kartu ---------- */
.card {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 20px;
}

/* ---------- blok angka ringkas ---------- */
.stat { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.stat .s {
  flex: 1 1 160px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 13px 16px;
}
.stat .s .k {
  font: 800 11.5px/1 var(--fh);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.stat .s .v { font: 800 21px/1.15 var(--fh); }
.stat .s .q { font-size: 12.5px; color: var(--muted); margin-top: 3px; font-weight: 600; }

/* ---------- keadaan kosong ---------- */
.empty {
  text-align: center;
  padding: 46px 22px;
  background: var(--surface-2);
  border: var(--bw) dashed var(--line);
  border-radius: var(--r);
  margin: 8px 0 20px;
}
.empty .big { font-size: 52px; line-height: 1; margin-bottom: 14px; }
.empty h3 { font-size: 20px; margin-bottom: 7px; }
.empty p { color: var(--muted); max-width: 42ch; margin: 0 auto 18px; }

/* ---------- toast ---------- */
#toast {
  position: fixed;
  left: 50%; bottom: calc(20px + var(--nav-h));
  transform: translate(-50%, 130%);
  z-index: 200;
  max-width: min(92vw, 440px);
  padding: 14px 20px;
  background: var(--surface);
  color: var(--ink);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--sh);
  font: 800 14.5px/1.4 var(--fh);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: transform .28s var(--ease), opacity .28s;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast.ok  { background: var(--mint); color: #fff; }
#toast.err { background: var(--coral); color: #fff; }

#save {
  position: fixed;
  top: 14px; left: 50%;
  transform: translate(-50%, -170%);
  z-index: 190;
  padding: 8px 16px;
  background: var(--sun);
  color: #3A2A00;
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  font: 800 12.5px/1 var(--fh);
  transition: transform .25s var(--ease);
}
#save.show { transform: translate(-50%, 0); }

/* ---------- ikon sebaris ----------
   Emoji diganti ikon SVG supaya bentuknya sama di semua perangkat dan
   warnanya ikut teks. Ukuran diatur di JS; di sini hanya perataan. */
.ico { flex: none; display: block; }
.btn .ico, .eyebrow .ico, .trust .ico, .pill .ico, .badge .ico { display: inline-block; vertical-align: -2px; }
.menu-pop button .ic, .bnav button .ic, .opt .ic, .cf-ic,
.trip-set > summary .ic, .empty .big { display: grid; place-items: center; }
.menu-pop button .ic svg { width: 17px; height: 17px; }
.bnav button .ic svg  { width: 22px; height: 22px; }
.opt .ic svg, .cf-ic svg { width: 24px; height: 24px; }
.empty .big svg { width: 54px; height: 54px; }
/* wadah bulat berisi ikon: isi tepat di tengah, jangan melebar */
.rowdel, .act-c .x, .m-x, .day-h .chev { display: grid; place-items: center; }
.rowdel svg, .act-c .x svg, .m-x svg { width: 16px; height: 16px; }
.day-h .chev svg, .trip-set > summary .chev svg { width: 16px; height: 16px; }

/* ===== 03-nav.css ===== */
/* ==========================================================================
   NAVIGASI
   Desktop : top bar ringkas — tanpa sidebar.
   Mobile  : top bar tipis + bottom navigation khusus jempol.
   ========================================================================== */

.top {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: var(--bw) solid var(--line);
}
.top-in {
  display: flex; align-items: center; gap: 9px;
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding: 11px 18px;
  min-height: var(--top-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: none; padding: 5px 6px;
  cursor: pointer; border-radius: var(--r-sm);
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.brand .logo { flex: none; display: block; }
.brand .txt {
  display: flex; flex-direction: column; align-items: flex-start;
  font: 800 17px/1.05 var(--fh);
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand .txt small {
  font: 700 10.5px/1 var(--fb);
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 3px;
}
.brand:hover .txt { color: var(--brand); }

/* top bar versi editor — judul jadi isian */
.ed-top { gap: 12px; }
.ed-top .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ed-title {
  width: 100%; border: none; background: transparent;
  font: 800 19px/1.2 var(--fh);
  color: var(--ink); padding: 3px 5px;
  border-radius: 8px;
}
.ed-title:hover { background: var(--bg-2); }
.ed-title:focus { background: var(--surface); box-shadow: var(--sh-in); outline: none; border: 2px solid var(--brand); }
.ed-sub {
  width: 100%; border: none; background: transparent;
  font: 600 13px/1.2 var(--fb);
  color: var(--muted); padding: 2px 5px; border-radius: 8px;
}
.ed-sub:focus { background: var(--surface); outline: none; border: 2px solid var(--brand); }
.top-acts { display: flex; align-items: center; gap: 8px; flex: none; }

/* ---------- bottom navigation (mobile) ---------- */
.bnav { display: none; }

@media (max-width: 860px) {
  :root { --nav-h: 74px; }
  .top-in { padding: 9px 14px; gap: 7px; flex-wrap: nowrap; }
  .top { padding-bottom: 2px; }
  body { padding-bottom: var(--nav-h); }

  .bnav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: var(--surface);
    border-top: var(--bw) solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -3px 0 rgba(20,28,51,.05);
  }
  .bnav button {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 58px;
    background: none; border: none; cursor: pointer;
    color: var(--muted);
    font: 800 11px/1 var(--fh);
    border-radius: var(--r-sm);
    -webkit-tap-highlight-color: transparent;
    transition: color .15s, background .15s;
  }
  .bnav button .ic { font-size: 21px; line-height: 1; }
  .bnav button.on { color: var(--brand-d); background: var(--brand-t); }
  .bnav button:active { background: var(--bg-2); }

  /* aksi mengambang: tombol utama di atas bottom nav */
  .fab {
    position: fixed; right: 16px; bottom: calc(var(--nav-h) + 14px); z-index: 118;
    width: 58px; height: 58px; min-height: 58px; min-width: 58px;
    border-radius: 50%; padding: 0; font-size: 27px;
  }
}

@media (min-width: 861px) { .only-mobile { display: none !important; } }
@media (max-width: 860px) { .only-desktop { display: none !important; } }

/* Layar ponsel sempit: label teks pada tombol header dilepas supaya
   tidak ada yang meluber keluar layar. Ikon tetap, maknanya tetap jelas. */
@media (max-width: 460px) {
  .top-in { gap: 5px; padding: 9px 11px; }
  .top-in .btn.sm { padding: 0 10px; }
  .brand { padding: 5px 2px; gap: 8px; }
  .brand .txt small { display: none; }
}

/* Di bawah 400px ruang benar-benar sempit: nama aplikasi dilepas dari header
   (logo tetap ada sebagai penanda), supaya tombol-tombol tidak terpotong. */
@media (max-width: 400px) {
  .brand .txt { display: none; }
  .top-in .btn.sm { padding: 0 9px; }
  .top-in { gap: 4px; padding: 9px 10px; }
}

/* ---------- menu kontekstual ---------- */
.menu-wrap { position: relative; display: inline-flex; }
.menu-pop {
  position: fixed; z-index: 210;
  min-width: 232px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh);
  padding: 7px;
  animation: popIn .14s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.menu-pop button {
  display: flex; align-items: center; gap: 11px;
  width: 100%; min-height: 46px; padding: 0 13px;
  background: none; border: none; cursor: pointer;
  border-radius: var(--r-sm);
  font: 700 14.5px/1.2 var(--fb);
  color: var(--ink);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.menu-pop button:hover { background: var(--brand-t); }
.menu-pop button.danger { color: var(--coral-d); }
.menu-pop button.danger:hover { background: var(--coral-t); }
.menu-pop button .ic { font-size: 17px; flex: none; width: 21px; text-align: center; }
.menu-pop hr { border: none; border-top: 2px dashed var(--line); opacity: .35; margin: 6px 4px; }

/* ===== 04-overlay.css ===== */
/* ==========================================================================
   OVERLAY — sheet (mobile) / modal (desktop) + dialog konfirmasi
   Di ponsel dialog naik dari bawah supaya mudah dijangkau jempol.
   ========================================================================== */

.mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 28, 51, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade .18s var(--ease);
  overscroll-behavior: contain;
}
@keyframes fade { from { opacity: 0; } }

.modal {
  width: 100%; max-width: 520px;
  max-height: min(88dvh, 780px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  animation: rise .22s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.modal > h2 {
  padding: 20px 22px 0;
  font-size: 21px;
}
.modal .body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.modal .acts {
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
  padding: 15px 22px;
  background: var(--surface-2);
  border-top: var(--bw) solid var(--line);
}
.modal .acts .btn { flex: 1 1 auto; }

/* kepala modal dengan tombol tutup */
.m-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 22px 0;
}
.m-head h2 { font-size: 21px; }
.m-head p { color: var(--muted); font-size: 14px; margin: 5px 0 0; }
.m-x {
  margin-left: auto; flex: none;
  width: 40px; height: 40px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: 50%;
  cursor: pointer; font-size: 16px; font-weight: 800;
  color: var(--ink);
  display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.m-x:hover { background: var(--coral-t); color: var(--coral-d); }

/* ---------- dialog konfirmasi ---------- */
.modal.confirm { max-width: 430px; }
.cf-head { display: flex; gap: 15px; align-items: flex-start; padding: 24px 24px 4px; }
.cf-ic {
  flex: none;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 26px;
  background: var(--sun-t);
  border: var(--bw) solid var(--line);
  border-radius: 18px;
  box-shadow: var(--sh-sm);
}
.modal.confirm.danger .cf-ic { background: var(--coral-t); }
.modal.confirm.info   .cf-ic { background: var(--brand-t); }
.cf-tx h2 { font-size: 19px; margin-bottom: 6px; }
.cf-tx p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.55; }
.modal.confirm .acts { padding: 18px 24px 22px; background: none; border-top: none; }

/* baris rincian di dalam dialog (mis. nama hari yang akan dihapus) */
.cf-note {
  display: flex; align-items: center; gap: 9px;
  margin: 15px 24px 0;
  padding: 11px 14px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  font-weight: 700; font-size: 13.5px;
}

/* ---------- pilihan (template / mode PDF) ---------- */
.opt {
  display: flex; align-items: center; gap: 13px;
  padding: 14px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  margin-bottom: 11px;
  transition: transform .12s var(--ease), background .15s;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { transform: translate(-1px, -1px); }
.opt.sel { background: var(--brand-t); }
.opt .ic {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 22px;
  background: var(--sun-t);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
}
.opt.sel .ic { background: var(--sun); }
.opt .tx { min-width: 0; }
.opt .tx b { display: block; font: 800 15px/1.25 var(--fh); }
.opt .tx span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.tpl-grid { display: block; }

/* ---------- mobile: semua dialog jadi bottom sheet ---------- */
@media (max-width: 640px) {
  .mask { align-items: flex-end; padding: 0; }
  .modal {
    max-width: none;
    max-height: 92dvh;
    border-radius: var(--r) var(--r) 0 0;
    border-bottom: none;
    animation: sheetUp .26s var(--ease);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  /* pegangan kecil di atas sheet */
  .modal::before {
    content: '';
    display: block;
    width: 46px; height: 5px;
    background: var(--line);
    opacity: .3;
    border-radius: var(--r-pill);
    margin: 10px auto 0;
    flex: none;
  }
  .modal.confirm .acts { flex-direction: column-reverse; }
  .modal.confirm .acts .btn { width: 100%; min-height: 50px; }
  .modal .acts .btn { min-height: 50px; }
}

/* ===== 05-list.css ===== */
/* ==========================================================================
   HALAMAN DAFTAR PERJALANAN
   Bukan grid kartu seragam: perjalanan terbaru tampil menonjol,
   sisanya baris ringkas dengan hierarki jelas.
   ========================================================================== */

main.wrap { padding-top: 22px; padding-bottom: calc(30px + var(--nav-h)); }

.list-head {
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.list-head h1 { margin-bottom: 5px; }
.list-head .who {
  font-size: 13.5px; color: var(--muted); font-weight: 600;
  display: flex; align-items: center; gap: 7px;
}
.list-head .who .av {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font: 800 12px/1 var(--fh);
  border: 2px solid var(--line);
  flex: none;
}

.cards { display: grid; gap: 14px; }
@media (min-width: 761px) { .cards { grid-template-columns: repeat(2, 1fr); } }

.icard {
  position: relative;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 20px 20px 17px;
  cursor: pointer;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.icard:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-lg); }
.icard:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--line); }

/* perjalanan terbaru: diberi pita kuning dan tampil lebih besar */
.icard:first-child::before {
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 9px;
  background: var(--sun);
  border-bottom: var(--bw) solid var(--line);
}
.icard:first-child { padding-top: 27px; }
.icard:first-child h3 { font-size: 22px; }

.icard h3 {
  font-size: 18px;
  margin: 0 42px 5px 0;
  word-break: break-word;
}
.icard .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.icard .sub:empty { display: none; }

.icard .meta {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 13px;
}
.icard .meta > span {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  font: 700 12.5px/1 var(--fb);
  color: var(--ink);
}

/* baris total: angka utama + padanan mata uang */
.icard .totals {
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
}
.icard .totals .lbl {
  font: 800 11px/1 var(--fh);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
  margin-bottom: 5px;
}
.icard .money { font: 800 21px/1.1 var(--fh); }
.icard .totals .muted { font-size: 13px; font-weight: 700; }

.icard .del {
  position: absolute; top: 13px; right: 13px;
  width: 40px; height: 40px; min-width: 40px; min-height: 40px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s, background .15s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.icard:hover .del, .icard:focus-within .del { opacity: 1; }
.icard .del:hover { background: var(--coral-t); transform: translate(-1px,-1px); }
/* di perangkat sentuh tombol hapus selalu tampak */
@media (hover: none) { .icard .del { opacity: 1; } }

/* ===== 06-editor.css ===== */
/* ==========================================================================
   EDITOR
   Desktop : tabel rapat untuk kerja cepat.
   Mobile  : tiap aktivitas jadi kartu — bukan tabel yang diperkecil.
   ========================================================================== */

.ed-head { margin-bottom: 16px; }
.title-in {
  width: 100%;
  background: transparent;
  border: none;
  font: 800 clamp(23px, 4.4vw, 33px)/1.2 var(--fh);
  color: var(--ink);
  padding: 4px 7px;
  border-radius: var(--r-sm);
  letter-spacing: -.015em;
}
.title-in:hover { background: var(--surface-2); }
.title-in:focus { background: var(--surface); outline: none; border: 2px solid var(--brand); }
.sub-in {
  width: 100%;
  background: transparent;
  border: none;
  font: 600 14.5px/1.4 var(--fb);
  color: var(--muted);
  padding: 4px 7px;
  border-radius: var(--r-sm);
}
.sub-in:focus { background: var(--surface); outline: none; border: 2px solid var(--brand); }

/* ---------- pengaturan perjalanan ---------- */
.metabar {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  padding: 16px 18px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 14px;
}
.metabar .m { min-width: 0; }
.metabar .m label {
  display: block;
  font: 800 11px/1 var(--fh);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.metabar .m input, .metabar .m select {
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-in);
  font-size: 14.5px;
}
.metabar .m select { appearance: none; padding-right: 34px; }
.metabar .m input:focus, .metabar .m select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: var(--sh-in), 0 0 0 3px var(--brand-t);
}
.metabar .fx { font-size: 12px; color: var(--muted); margin-top: 5px; font-weight: 700; }

/* ---------- hari ---------- */
.day {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  margin-bottom: 18px;
  overflow: hidden;
}
.day-h {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 16px;
  background: var(--sun-t);
  border-bottom: var(--bw) solid var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
[data-theme="dark"] .day-h { background: var(--bg-2); }
.day.collapsed .day-h { border-bottom: none; }
.day-h .chev {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  transition: transform .18s var(--ease);
}
.day.collapsed .day-h .chev { transform: rotate(-90deg); }
.day-h .n {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  font: 800 16px/1 var(--fh);
  box-shadow: 2px 2px 0 var(--line);
}
.day-h .t {
  flex: 1; min-width: 0;
  background: transparent; border: none;
  font: 800 15.5px/1.3 var(--fh);
  color: var(--ink);
  padding: 5px 7px;
  border-radius: 8px;
}
.day-h .t:focus { background: var(--surface); outline: none; border: 2px solid var(--brand); }
.day-h .d {
  flex: none;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px 11px;
  font: 700 12px/1 var(--fb);
  color: var(--ink);
}
.day-h .sum {
  flex: none;
  display: flex; flex-direction: column; align-items: flex-end;
  font: 800 16px/1.15 var(--fh);
  white-space: nowrap;
}
.day-h .sum .q { font: 700 11.5px/1.2 var(--fb); color: var(--muted); }
.day-h .btn.icon { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
.day.collapsed .day-b { display: none; }

.day-b { padding: 15px 16px 16px; }

.day-focus {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 13px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 600;
}
.day-focus:focus { outline: none; background: var(--surface); box-shadow: var(--sh-in); }
.day-focus::placeholder { color: var(--faint); font-weight: 500; }

/* petunjuk geser hanya muncul di perangkat sentuh yang sempit */
.tbl-hint {
  display: none;
  align-items: center; gap: 7px;
  padding: 8px 13px;
  margin-bottom: 10px;
  background: var(--brand-t);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  font: 700 12.5px/1 var(--fb);
  color: var(--brand-d);
}

/* ---------- tabel (desktop) ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-sm); }
table.it { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 980px; }
table.it th {
  position: sticky; top: 0;
  background: var(--bg-2);
  text-align: left;
  font: 800 11px/1 var(--fh);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 9px;
  border-bottom: var(--bw) solid var(--line);
  white-space: nowrap;
}
table.it th:first-child { border-top-left-radius: var(--r-sm); }
table.it th:last-child  { border-top-right-radius: var(--r-sm); }
table.it td {
  padding: 6px 5px;
  border-bottom: 2px solid var(--bg-2);
  vertical-align: top;
}
table.it tr:last-child td { border-bottom: none; }
table.it tbody tr:hover td { background: var(--surface-2); }
table.it td.act-x { text-align: center; padding-top: 10px; }

.cell-in {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  font: 500 14px/1.45 var(--fb);
  resize: none;
  overflow: hidden;
  transition: background .12s, border-color .12s;
}
.cell-in:hover { background: var(--bg-2); }
.cell-in:focus {
  background: var(--surface);
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-t);
}
.cell-in.act { font-weight: 700; }
select.cell-in { appearance: none; cursor: pointer; font-size: 13.5px; font-weight: 600; }
td.money .cell-in.num { text-align: right; font: 700 14px/1.4 var(--fm); }
td.money { width: 132px; }
.currency-cell { display: flex; flex-direction: column; align-items: flex-end; }
.currency-cell .q, td.money .q {
  font-size: 11.5px; color: var(--muted); font-weight: 700;
  padding: 2px 10px 0; white-space: nowrap;
}
.rowdel {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  transition: background .12s, color .12s, border-color .12s;
}
.rowdel:hover { background: var(--coral-t); color: var(--coral-d); border-color: var(--line); }

.day-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 2px dashed var(--line);
}
.day-foot .sp { flex: 1; }
.day-foot .st {
  font: 800 14px/1.3 var(--fh);
  color: var(--muted);
}
.day-foot .st small { font-size: 12px; font-weight: 700; margin-left: 4px; }

/* ---------- kartu aktivitas (mobile) ---------- */
.acts-m { display: none; }

@media (max-width: 760px) {
  .tbl-wrap { display: none; }
  .tbl-hint { display: flex; }
  .acts-m { display: grid; gap: 12px; }

  .metabar { padding: 12px 14px; grid-template-columns: 1fr 1fr; gap: 11px; }
  .metabar .m:first-child, .metabar .m:nth-child(2) { grid-column: span 1; }

  .day-h { padding: 12px 13px; gap: 9px; flex-wrap: wrap; }
  .day-h .t { font-size: 15px; order: 1; flex: 1 1 100%; padding-left: 0; }
  .day-h .n { order: 0; }
  .day-h .chev { order: 0; }
  .day-h .sum { order: 2; flex: 1; align-items: flex-start; font-size: 15px; }
  .day-h .d { order: 3; }
  .day-h .btn.icon { order: 4; }
  .day-b { padding: 13px 13px 15px; }
  .day-foot { flex-direction: column; align-items: stretch; }
  .day-foot .btn { width: 100%; }
  .day-foot .st { text-align: center; }
}

/* kartu aktivitas */
.act-c {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 0 11px;
  padding: 13px 12px 12px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}
.act-c .time-w input {
  width: 100%;
  padding: 8px 4px;
  text-align: center;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  font: 800 13px/1.2 var(--fm);
}
.act-c .time-w input:focus { outline: none; border-color: var(--brand); }
.act-c .main { min-width: 0; }
.act-c .main > textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  font: 700 15px/1.4 var(--fb);
  resize: none;
  overflow: hidden;
}
.act-c .main > textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-t); }

.act-c .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.act-c .chips select {
  flex: 1 1 auto; min-width: 0;
  min-height: 40px;
  padding: 7px 11px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  font: 700 12.5px/1 var(--fb);
  appearance: none;
}
.act-c .chips select:focus { outline: none; border-color: var(--brand); }
.act-c .det-t {
  min-height: 40px;
  padding: 0 14px;
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: var(--r-pill);
  font: 700 12.5px/1 var(--fb);
  color: var(--muted);
  cursor: pointer;
}
.act-c .det-t:active { background: var(--brand-t); color: var(--brand-d); }

/* rincian sekunder disembunyikan sampai diminta */
.act-c .det { display: none; margin-top: 9px; gap: 8px; }
.act-c.open .det { display: grid; }
.act-c .det textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: var(--r-sm);
  font: 500 13.5px/1.4 var(--fb);
  resize: none;
  overflow: hidden;
}
.act-c .det textarea:focus { outline: none; border-style: solid; border-color: var(--brand); }

.act-c .money-w { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.act-c .money-w input {
  flex: 1 1 96px; min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  font: 700 14px/1 var(--fm);
  text-align: right;
}
.act-c .money-w input:focus { outline: none; border-color: var(--brand); }
.act-c .money-w input.a-in { font-weight: 600; color: var(--muted); font-size: 13px; }
.act-c .money-w .q {
  flex: 1 1 100%;
  font-size: 11.5px; color: var(--muted); font-weight: 700; text-align: right;
}

.act-c .x {
  position: absolute; top: -9px; right: -7px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 50%;
  color: var(--coral-d);
  font-size: 13px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
}
.act-c .x:active { transform: translate(2px,2px); box-shadow: none; }

/* editor tidak perlu ruang bawah untuk bottom nav di desktop */
@media (min-width: 861px) { main.wrap { padding-bottom: 40px; } }

/* ---------- ringkasan biaya per kategori ---------- */
.cat-sum { margin: 18px 0 6px; padding: 16px 18px; }
.cat-sum h3 {
  display: flex; align-items: center; gap: 8px;
  font: 800 15px/1.2 var(--fh);
  margin: 0 0 13px;
}
.cat-sum h3 .ico { color: var(--brand); flex: none; }

.cs-rows { display: grid; gap: 10px; }
.cs-row {
  display: grid;
  grid-template-columns: minmax(66px, auto) minmax(40px, 1fr) auto auto;
  align-items: center; gap: 10px;
}
.cs-n { font: 700 13px/1.2 var(--fh); white-space: nowrap; }
.cs-bar {
  height: 11px; min-width: 40px;
  background: var(--tint-08);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.cs-bar i {
  display: block; height: 100%;
  background: var(--brand);
  border-radius: var(--r-pill);
}
.cs-v { font: 700 12.5px/1 var(--fm); white-space: nowrap; }
.cs-p {
  font: 600 11.5px/1 var(--fh); color: var(--muted);
  text-align: right; white-space: nowrap;
}
.cs-tot {
  margin-top: 12px; padding-top: 11px;
  border-top: 2px dashed var(--tint-10);
}
.cs-tot .cs-n, .cs-tot .cs-v { font-weight: 800; }

/* warna khas tiap kategori, supaya mudah dikenali sekilas */
.cs-row[data-cat=transport] .cs-bar i { background: var(--brand); }
.cs-row[data-cat=makan]     .cs-bar i { background: var(--coral); }
.cs-row[data-cat=tiket]     .cs-bar i { background: var(--brand-d); }
.cs-row[data-cat=hotel]     .cs-bar i { background: var(--mint); }
.cs-row[data-cat=belanja]   .cs-bar i { background: var(--sun); }
.cs-row[data-cat=lain]      .cs-bar i { background: var(--muted); }

@media (max-width: 560px) {
  .cat-sum { padding: 14px 15px; }
  /* Di layar sempit baris "≈ pembanding · persen" turun ke baris kedua supaya
     nama kategori, bar, dan nominal tetap muat tanpa berdesakan. */
  .cs-row {
    grid-template-columns: minmax(58px, auto) minmax(34px, 1fr) auto;
    row-gap: 3px;
  }
  .cs-n   { grid-row: 1; grid-column: 1; }
  .cs-bar { grid-row: 1; grid-column: 2; }
  .cs-v   { grid-row: 1; grid-column: 3; }
  .cs-p   { grid-row: 2; grid-column: 1 / -1; }
}

/* ===== 07-landing.css ===== */
/* ==========================================================================
   LANDING PAGE — bahasa visual sama dengan aplikasi
   Hero menampilkan pratinjau produk sungguhan, bukan sekadar judul.
   ========================================================================== */

.hero { padding: 34px 0 10px; position: relative; overflow: hidden; }

/* bentuk dekoratif lembut di latar */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: .5;
}
.hero::before {
  width: 210px; height: 210px;
  background: var(--sun-t);
  top: -70px; right: -60px;
}
.hero::after {
  width: 130px; height: 130px;
  background: var(--brand-t);
  bottom: -50px; left: -40px;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-grid { display: grid; gap: 30px; }
@media (min-width: 901px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
  .hero { padding: 56px 0 24px; }
}

.hero h1 { margin-bottom: 15px; }
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
/* garis bawah tebal ala spidol */
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 11px;
  background: var(--sun);
  border-radius: var(--r-pill);
  z-index: -1;
  border: 2px solid var(--line);
}

.hero-cta { display: flex; gap: 11px; flex-wrap: wrap; margin: 22px 0 20px; }
.hero-cta .btn { min-height: 52px; padding: 0 24px; font-size: 16px; }

.trust { display: flex; flex-wrap: wrap; gap: 9px; }
.trust span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  font: 700 12.5px/1 var(--fb);
  box-shadow: 2px 2px 0 var(--line);
}

/* ---------- pratinjau produk ---------- */
.preview {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform: rotate(-1.1deg);
}
.preview-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: var(--sun-t);
  border-bottom: var(--bw) solid var(--line);
}
.preview-bar i {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--coral);
}
.preview-bar i:nth-child(2) { background: var(--sun); }
.preview-bar i:nth-child(3) { background: var(--mint); }
.preview-bar .t {
  margin-left: 6px;
  font: 800 12.5px/1 var(--fh);
  color: var(--muted);
}
.preview-body { padding: 14px; }

.pv-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 9px;
  box-shadow: 2px 2px 0 var(--line);
}
.pv-n {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  border: 2px solid var(--line);
  border-radius: 9px;
  font: 800 13px/1 var(--fh);
}
.pv-tx { flex: 1; min-width: 0; }
.pv-tx b { display: block; font: 800 14px/1.3 var(--fh); }
.pv-tx span { font-size: 12px; color: var(--muted); font-weight: 600; }
.pv-amt { font: 800 14px/1 var(--fh); white-space: nowrap; }

.pv-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
  padding: 13px 16px;
  background: var(--brand);
  color: #fff;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}
.pv-total .k { font: 800 12px/1 var(--fh); letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.pv-total .v { font: 800 22px/1 var(--fh); }

/* ---------- bagian umum ---------- */
.section { padding: 34px 0; }
.section-head { margin-bottom: 22px; max-width: 62ch; }
.section-head h2 { margin-bottom: 9px; }
.section-head p { color: var(--muted); font-size: 15.5px; margin: 0; line-height: 1.6; }

/* keunggulan: grid rapi — ikon kiri, judul & keterangan bertumpuk di kanan.
   Semua kartu seragam supaya barisnya tidak bergerigi. */
.feat-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 641px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 961px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }

.feat {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: start;
  align-content: start;
  column-gap: 15px;
  row-gap: 6px;
  padding: 20px 18px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.feat:hover { transform: translate(-2px,-2px); box-shadow: var(--sh); }

.feat .ic {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  color: var(--ink);
  background: var(--sun-t);
  border: 2px solid var(--line);
  border-radius: 15px;
  box-shadow: 2px 2px 0 var(--line);
}
/* warna chip diputar supaya tiap kartu terasa berbeda tanpa mengubah ukuran */
.feat:nth-child(6n+2) .ic { background: var(--brand-t); }
.feat:nth-child(6n+3) .ic { background: var(--mint-t); }
.feat:nth-child(6n+4) .ic { background: var(--coral-t); }
.feat:nth-child(6n+5) .ic { background: var(--sun-t); }
.feat:nth-child(6n)   .ic { background: var(--brand-t); }

.feat h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  font-size: 16.5px;
  line-height: 1.3;
}
.feat p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* langkah: bernomor besar */
.steps { display: grid; gap: 16px; }
@media (min-width: 721px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  font: 800 23px/1 var(--fh);
  margin-bottom: 13px;
}
.step:nth-child(2) .num { background: var(--sun); color: #3A2A00; }
.step:nth-child(3) .num { background: var(--coral); }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.6; }

/* ajakan terakhir */
.cta-band {
  text-align: center;
  padding: 40px 26px;
  background: var(--brand);
  color: #fff;
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 190px; height: 190px;
  top: -34px; right: -22px;
  opacity: .14;
  transform: rotate(-14deg);
  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='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.3 3.1 2.9 10.3a.7.7 0 0 0 .1 1.3l5.5 2.1 2.1 5.5a.7.7 0 0 0 1.3.1Z'/%3E%3Cpath d='M21.3 3.1 8.5 13.7'/%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='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.3 3.1 2.9 10.3a.7.7 0 0 0 .1 1.3l5.5 2.1 2.1 5.5a.7.7 0 0 0 1.3.1Z'/%3E%3Cpath d='M21.3 3.1 8.5 13.7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cta-band h2 { color: #fff; margin-bottom: 11px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 46ch; margin: 0 auto 22px; font-size: 15.5px; }
.cta-band .btn { position: relative; }

.land-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 22px 0 34px;
  border-top: 2px dashed var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.land-foot .links { margin-left: auto; display: flex; gap: 16px; }

/* ---------- halaman masuk / daftar ---------- */
.auth { display: grid; place-items: start center; padding: 26px 0 40px; }
.auth .card { width: 100%; max-width: 470px; padding: 26px 24px; }
.auth h1 { font-size: 25px; margin-bottom: 7px; }
.auth .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.auth .or {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font: 700 12px/1 var(--fh);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.auth .or::before, .auth .or::after {
  content: ''; flex: 1;
  border-top: 2px dashed var(--line);
  opacity: .5;
}
.btn.google { background: var(--surface); color: var(--ink); }
.btn.google svg { width: 19px; height: 19px; flex: none; }
.auth-foot { text-align: center; margin: 17px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- admin ---------- */
.stat { margin-bottom: 20px; }
table.adm { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; }
table.adm th {
  text-align: left;
  font: 800 11px/1 var(--fh);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 10px;
  border-bottom: var(--bw) solid var(--line);
  white-space: nowrap;
}
table.adm td { padding: 11px 10px; border-bottom: 2px solid var(--bg-2); font-size: 14px; }
table.adm tr:last-child td { border-bottom: none; }

/* ===== 08-extra.css ===== */
/* ==========================================================================
   PELENGKAP — kelas yang dipakai halaman lain (admin, modal, toast, dsb.)
   Memakai nama token yang sama dengan 01-tokens.css.
   ========================================================================== */

/* ---- bar ringkasan anggaran ---- */
.bbar { display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; }
.bbar .track { display: flex; flex-direction: column; gap: 8px; }
.bbar .bar { height: 14px; background: var(--tint-08); border: var(--bw) solid var(--line);
  border-radius: var(--r-pill); overflow: hidden; }
.bbar .bar i { display: block; height: 100%; background: var(--sun);
  border-right: var(--bw) solid var(--line); transition: width .3s var(--ease); }
.bbar .bar i.over { background: var(--coral); }
.bbar .lbl { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; font-weight: 700; color: var(--muted); }
.bbar .lbl .bad { color: var(--coral-d); }
.bbar .tlink { background: none; border: none; padding: 0; font: inherit; font-size: 13px;
  font-weight: 800; color: var(--brand-d); cursor: pointer; text-align: left; min-height: 40px; }
.bbar .tlink:hover { text-decoration: underline; }

/* ---- pengaturan perjalanan (details) ---- */
.trip-set { border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface);
  box-shadow: var(--sh-sm); margin: 0 0 18px; overflow: hidden; }
.trip-set > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 15px 16px; font: 800 14.5px/1.2 var(--fh); min-height: 52px; }
.trip-set > summary::-webkit-details-marker { display: none; }
.trip-set > summary .ic { font-size: 17px; }
.trip-set > summary .sm { font-weight: 600; color: var(--muted); font-size: 12.5px; font-family: var(--fb); }
.trip-set > summary .chev { margin-left: auto; transition: transform .2s var(--ease); color: var(--muted); }
.trip-set[open] > summary .chev { transform: rotate(180deg); }
.trip-set .set-grid { display: grid; gap: 14px; padding: 4px 16px 18px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---- kartu statistik ---- */
.stat { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.stat .s { flex: 1 1 160px; border: var(--bw) solid var(--line); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--sh-sm); padding: 13px 16px; }
.stat .s .k { font: 800 11.5px/1 var(--fh); letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px; }
.stat .s .v { font: 800 21px/1.15 var(--fh); }
.stat .s .q { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 3px; }

/* ---- sel tabel lama yang masih dipakai ---- */
.it td.waktu, .it td.kat { white-space: nowrap; }
.it td.kat select { min-width: 108px; }

/* ---- segmen kontrol ---- */
.seg { display: inline-flex; border: var(--bw) solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); padding: 3px; gap: 3px; box-shadow: var(--sh-sm); }
.seg button { border: none; background: none; font: 700 13px/1 var(--fb); padding: 8px 14px;
  border-radius: var(--r-pill); cursor: pointer; color: var(--muted); min-height: 38px; }
.seg button.sel { background: var(--ink); color: var(--surface); }

/* ---- ruang kosong di dalam kartu hari ---- */
.meta-pad { margin: 0; padding: 12px 2px; font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* ---- area aksi menempel di bawah (mobile) ---- */
.sticky-act { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 10px);
  padding: 0 16px; z-index: 40; display: flex; gap: 10px; }
.sticky-act .wide { flex: 1; box-shadow: var(--sh); }

/* ---- tabel admin ---- */
.adm { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm th { text-align: left; font: 800 11.5px/1 var(--fh); letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); padding: 12px 10px; border-bottom: var(--bw) solid var(--line); }
.adm td { padding: 12px 10px; border-bottom: 2px solid var(--tint-08); vertical-align: middle; }
.adm tr:last-child td { border-bottom: none; }

/* ---- modal: pilihan template / mode PDF ---- */
.tpl-grid { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: var(--bw) solid var(--line);
  border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-sm);
  padding: 13px 14px; cursor: pointer; min-height: 60px; }
.opt.sel { background: var(--sun-t); box-shadow: var(--sh); }
.opt .ic { font-size: 20px; line-height: 1.2; }
.opt .tx b { display: block; font: 800 14.5px/1.2 var(--fh); }
.opt .tx span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* ---- pemisah "atau" pada halaman masuk ---- */
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted);
  font: 800 12.5px/1 var(--fh); text-transform: uppercase; letter-spacing: .05em; }
.or::before, .or::after { content: ''; flex: 1; height: 2px; background: var(--tint-10); }

/* ---- tombol lebar penuh ---- */
.btn.wide { width: 100%; justify-content: center; }

/* ---- tombol tanpa garis tepi ---- */
.btn.quiet { border-color: transparent; background: transparent; box-shadow: none; }
.btn.quiet:hover { border-color: var(--line); background: var(--surface); box-shadow: var(--sh-sm); }

/* ---- tombol besar (ajakan utama di landing) ---- */
.btn.lg { min-height: 54px; padding: 0 26px; font-size: 16px; }

/* ---- lencana waktu kecil di dalam kartu fitur ---- */
.pill { display: inline-block; border: 2px solid var(--line); border-radius: var(--r-pill);
  background: var(--sun-t); font: 800 11.5px/1.5 var(--fh); padding: 2px 9px; }

/* ---- tombol tanggal di kepala hari ---- */
.dt { background: none; border: none; font: 700 12.5px/1.2 var(--fb); color: var(--muted);
  cursor: pointer; padding: 2px 0; text-align: left; min-height: 22px; }
.dt:hover { color: var(--brand-d); text-decoration: underline; }

/* ---- contoh isi di dalam kartu fitur unggulan ---- */
.feat-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px;
  padding-top: 14px; border-top: 2px dashed var(--tint-10);
  font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---- kolom teks hero ---- */
.hero-tx { min-width: 0; }

/* ---- merek di kaki halaman ---- */
.lf-brand { display: inline-flex; align-items: center; gap: 7px; font: 800 14px/1 var(--fh); color: var(--ink); }

/* ---- tombol pasang aplikasi (PWA) ----
   Mengambang di sudut kanan bawah, gaya sama dengan kartu lain: garis tebal,
   bayangan keras, sudut pil. Tersembunyi sampai peramban menawarkan
   pemasangan, atau sampai petunjuk iPhone relevan. */
.pwa-btn {
  position: fixed; right: 16px; z-index: 118;
  bottom: calc(var(--nav-h) + 16px);
  display: none; align-items: center; gap: 8px;
  padding: 11px 17px 11px 15px;
  background: var(--sun);
  color: #3A2A00;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--sh);
  font: 800 14px/1 var(--fh);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.pwa-btn.show { display: inline-flex; }
.pwa-btn:hover { transform: translate(-1px, -1px); box-shadow: var(--sh-lg); }
.pwa-btn:active { transform: translate(3px, 3px); box-shadow: var(--sh-in); }
.pwa-btn .ico { flex: 0 0 auto; }

/* Di ponsel, tombol pasang naik ke atas aksi mengambang halaman supaya tidak
   bertumpuk: di halaman daftar ada tombol "+", di halaman editor ada bar
   "Tambah hari" yang memenuhi lebar bawah. Di layar lebar tidak ada aksi
   mengambang, jadi tidak perlu dinaikkan. */
@media (max-width: 860px) {
  .pwa-btn.lift-fab { bottom: calc(var(--nav-h) + 84px); }
  .pwa-btn.lift-bar { bottom: calc(var(--nav-h) + 74px); }
}

/* Layar sempit: sisakan ikon saja supaya tidak menutupi isi. */
@media (max-width: 460px) {
  .pwa-btn { padding: 13px; }
  .pwa-btn span { display: none; }
}

/* ---- petunjuk memasang: daftar langkah bernomor ---- */
.howto { list-style: none; counter-reset: h; margin: 2px 0 0; padding: 0; display: grid; gap: 13px; }
.howto li {
  counter-increment: h;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.55; color: var(--ink);
}
.howto li::before {
  content: counter(h);
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--brand-t); color: var(--ink);
  border: 2px solid var(--line); border-radius: 50%;
  font: 800 13px/1 var(--fh);
}

