/* Heros Trans Solutions
   Warna diambil dari logo: navy lambung kapal + oranye kontainer.
   Display: Marcellus (gaya huruf klasik seperti logo). Teks: Figtree. */

:root {
  --navy: #10264A;
  --navy-deep: #0A1A33;
  --navy-soft: #1D3A66;
  --orange: #EE6A12;
  --orange-ink: #B4500C;   /* oranye untuk teks kecil di atas putih, kontras cukup */
  --paper: #F3F6FA;
  --white: #FFFFFF;
  --ink: #16233A;
  --steel: #56657C;
  --line: #D8DFE9;
  --ok: #1E7A4C;
  --warn: #9A5B00;

  --display: 'Marcellus', 'Trajan Pro', Georgia, serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1180px;
  --r-sm: 6px;
  --r-md: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 820px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.25rem; border-radius: var(--r-sm); border: 2px solid transparent;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: #D45C0C; color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); }
.btn-lg { padding: .9rem 1.5rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-soft); text-decoration: underline; cursor: pointer; }
.linkish-danger { color: #A3261B; }
.link { font-weight: 600; color: var(--navy); text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 1.35rem; color: var(--orange); letter-spacing: .04em; }
.brand-sub { font-family: var(--display); font-size: .82rem; color: var(--navy); letter-spacing: .32em; margin-top: .2rem; }
.brand-sm .brand-name { font-size: 1.05rem; color: var(--white); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) { padding: .5rem .8rem; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: var(--r-sm); }
.nav a:not(.btn):hover { color: var(--orange-ink); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; gap: 5px; background: none; border: 0; padding: .6rem; cursor: pointer; }
  .nav-toggle .bar { width: 24px; height: 2px; background: var(--navy); display: block; }
  .nav {
    position: absolute; inset: 72px 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.25rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--orange-ink); }
  .nav-cta { margin: 1rem 0 0; }
}

/* ---------- Hero beranda ---------- */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-block: 4.5rem 5.5rem; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.12; max-width: 17ch; }
.hero-kicker { font-family: var(--display); color: var(--orange); font-size: 1.15rem; margin-bottom: 1rem; }
.hero-lead { color: #C9D4E5; max-width: 52ch; font-size: 1.125rem; margin-bottom: 2rem; }

.hero-photo { margin: 0; position: relative; align-self: stretch; }
.hero-photo img {
  width: 100%; height: 100%; min-height: 340px; object-fit: cover; object-position: 40% center;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
/* sayatan oranye, gaya diagonal yang sama dengan brosur */
.hero-photo::before {
  content: ""; position: absolute; left: -10px; top: 0; bottom: 0; width: 14%;
  background: var(--orange); clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%); opacity: .95;
}

.mode-strip { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.08); }
.mode-strip .wrap { display: flex; gap: 2.5rem; padding-block: .9rem; font-family: var(--display); font-size: 1.05rem; color: #9FB0CB; }
.mode-strip span::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--orange); vertical-align: middle; margin-right: .7rem; }

/* ---------- Kartu resi (waybill) ---------- */
.waybill {
  position: relative; background: var(--white); color: var(--ink); border-radius: var(--r-md);
  max-width: 560px;
  /* tepi sobekan di sisi kiri seperti lembar resi */
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) 0 0 / 100% 22px repeat-y;
          mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) 0 0 / 100% 22px repeat-y;
}
.waybill::before { content: ""; position: absolute; left: 22px; top: 14px; bottom: 14px; border-left: 2px dashed var(--line); }
.waybill-body { padding: 1.4rem 1.5rem 1.2rem 2.6rem; }
.waybill-label { display: block; font-weight: 600; color: var(--steel); font-size: .95rem; margin-bottom: .5rem; }
.waybill-row { display: flex; gap: .6rem; }
.waybill input {
  flex: 1; min-width: 0; font: 600 1.35rem/1 var(--body); letter-spacing: .06em; font-variant-numeric: tabular-nums;
  color: var(--navy); padding: .7rem .2rem; border: 0; border-bottom: 2px solid var(--line); background: transparent; text-transform: uppercase;
}
.waybill input::placeholder { color: #A6B1C2; font-weight: 500; letter-spacing: .02em; text-transform: none; font-size: 1.05rem; }
.waybill input:focus { outline: none; border-bottom-color: var(--orange); }
.waybill .btn { padding-inline: 1.6rem; font-size: 1.05rem; }
.waybill-hint { margin: .8rem 0 0; font-size: .9rem; color: var(--steel); }

/* ---------- Section umum ---------- */
.section { padding-block: 5rem; }
.section-tint { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.75rem, 2.6vw, 2.35rem); }
.section-head p { color: var(--steel); font-size: 1.1rem; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg);
}

/* ---------- Tiga moda ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.mode { border-top: 3px solid var(--navy); padding-top: 1.25rem; }
.mode-img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-sm); margin-bottom: 1.25rem; background: var(--paper); }
.mode-img picture, .svc-photo picture { display: block; width: 100%; height: 100%; }
.mode-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mode:hover .mode-img img { transform: scale(1.04); }
/* satu foto armada, dipotong per moda */
.mode h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }

/* ---------- Pita janji layanan ---------- */
.band { background: var(--navy); color: #C9D4E5; padding-block: 3rem; }
.promises { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; }
.promise svg { width: 36px; height: 36px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .8rem; }
.promise h3 { color: var(--white); font-size: 1.02rem; margin-bottom: .3rem; }
.promise p { font-size: .95rem; margin: 0; }

/* ---------- Alur (urutan sungguhan, jadi bernomor) ---------- */
.route { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.route::before { content: ""; position: absolute; top: 22px; left: 22px; right: 10%; border-top: 2px dashed var(--line); }
.route li { counter-increment: step; position: relative; }
.route li::before {
  content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--navy); color: var(--navy); font-weight: 700; margin-bottom: 1rem; position: relative;
}
.route li:last-child::before { background: var(--orange); border-color: var(--orange); color: var(--white); }
.route p { color: var(--steel); font-size: .98rem; }

/* ---------- Promo ---------- */
.promo { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 4rem; align-items: center; }
.promo-art { margin: 0; }
.promo-art img { border-radius: var(--r-sm); box-shadow: 0 24px 48px -24px rgba(16, 38, 74, .45); }
.promo-copy h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 18ch; }
.promo-copy > p { color: var(--steel); max-width: 52ch; font-size: 1.1rem; }
.promo-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.75rem 0 1rem; }
.promo-note { font-size: .95rem; }

/* ---------- Halaman dalam ---------- */
.page-hero { background: var(--navy); color: #C9D4E5; padding-block: 3.5rem; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-lead { font-size: 1.15rem; max-width: 60ch; }
.page-hero-track .waybill { margin-top: 1.75rem; }
.error-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }

.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.svc-flip .svc-photo { order: 2; }
.svc-photo { margin: 0; aspect-ratio: 645 / 454; overflow: hidden; border-radius: var(--r-sm); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc h2 { font-size: 2.2rem; }
.svc-lead { color: var(--steel); font-size: 1.125rem; }
.svc-list { margin: 1.5rem 0 2rem; }
.svc-list div { padding: .85rem 0; border-top: 1px solid var(--line); }
.svc-list dt { font-weight: 700; color: var(--navy); }
.svc-list dd { margin: .15rem 0 0; color: var(--steel); }

.about { display: grid; grid-template-columns: 1fr 340px; gap: 4rem; align-items: start; }
.about-text { max-width: 66ch; }
.about-text h2 { font-size: 1.8rem; margin-top: 2rem; }
.about-text h2:first-child { margin-top: 0; }
.about-card { background: var(--paper); border-radius: var(--r-md); padding: 2rem; position: sticky; top: 100px; }
.about-card img { width: 220px; margin: 0 auto 1.25rem; }
.about-card p { color: var(--steel); font-size: .98rem; }

.contact { display: grid; grid-template-columns: 380px 1fr; gap: 4rem; align-items: start; }
.contact-wa {
  display: block; text-decoration: none; background: var(--navy); color: var(--white); border-radius: var(--r-md);
  padding: 1.5rem; margin-bottom: 2rem; border-left: 6px solid var(--orange);
}
.contact-wa span { display: block; color: #9FB0CB; font-weight: 600; }
.contact-wa strong { font-size: 1.6rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.contact-wa:hover { background: var(--navy-soft); color: var(--white); }
.h-small { font-family: var(--body); font-size: 1rem; font-weight: 700; margin: 1.5rem 0 .3rem; }
.map { margin-top: 1.5rem; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.contact-form h2 { font-size: 1.9rem; }

/* ---------- Form ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .97rem; }
.field input, .field select, .field textarea, .admin-filter input, .admin-filter select {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .7rem .85rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(238, 106, 18, .25); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-half { max-width: 50%; }
.has-error input, .has-error textarea { border-color: #B3261E; }
.field-err { color: #B3261E; font-size: .92rem; margin: .35rem 0 0; }
.form-note { color: var(--steel); font-size: .9rem; }
.hp { position: absolute; left: -9999px; }

.notice { border-radius: var(--r-md); padding: 1.5rem 1.75rem; margin-bottom: 2rem; }
.notice h2 { font-family: var(--body); font-weight: 700; font-size: 1.2rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-ok { background: #E7F4EC; border-left: 5px solid var(--ok); }
.notice-warn { background: #FFF4E8; border-left: 5px solid var(--orange); }

/* ---------- Hasil lacak ---------- */
.manifest { border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.manifest-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.5rem 1.75rem; background: var(--paper); border-bottom: 1.5px dashed var(--line); flex-wrap: wrap; }
.manifest-mode { margin: 0 0 .2rem; font-weight: 600; color: var(--steel); }
.manifest-resi { font-family: var(--body); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: .06em; margin: 0; font-variant-numeric: tabular-nums; }
.status-pill { margin: 0; padding: .4rem .9rem; border-radius: 999px; background: #E6EDF7; color: var(--navy); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.status-pill.is-done { background: #E2F2E8; color: var(--ok); }
.status-pill.is-delay { background: #FFF0DC; color: var(--warn); }
.status-sm { font-size: .82rem; padding: .25rem .65rem; }

.leg { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; padding: 1.75rem 1.75rem .5rem; }
.leg-cap { display: block; color: var(--steel); font-size: .88rem; }
.leg-end strong { font-size: 1.15rem; color: var(--navy); }
.leg-end-to { text-align: right; }
.leg-line { height: 4px; background: var(--line); border-radius: 4px; position: relative; }
.leg-line span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--orange); border-radius: 4px; }
.leg-line .p1 { width: 25%; } .leg-line .p2 { width: 50%; } .leg-line .p3 { width: 75%; } .leg-line .p4 { width: 100%; }
.leg-line span::after {
  content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: var(--white); border: 4px solid var(--orange);
}

.stages { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: .75rem 1.75rem 1.5rem; margin: 0; gap: .5rem; }
.stages li { font-size: .85rem; color: #8A97AB; padding-top: .5rem; border-top: 3px solid var(--line); }
.stages li.is-past { color: var(--steel); border-top-color: #F6B78B; }
.stages li.is-now { color: var(--navy); font-weight: 700; border-top-color: var(--orange); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.5rem; padding: 1.25rem 1.75rem; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: .85rem; color: var(--steel); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }

.timeline-title { padding: 1.5rem 1.75rem 0; margin: 0; }
.timeline { list-style: none; margin: 0; padding: 1rem 1.75rem 1.75rem; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; position: relative; padding-bottom: 1.25rem; }
.timeline li > div { position: relative; padding-left: 1.5rem; border-left: 2px solid var(--line); padding-bottom: .25rem; }
.timeline li:last-child > div { border-left-color: transparent; }
.timeline li > div::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid #9FB0CB; }
.timeline li.is-latest > div::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(238, 106, 18, .2); }
.timeline li.is-delay > div::before { border-color: var(--warn); }
.timeline time { font-size: .88rem; color: var(--steel); text-align: right; font-variant-numeric: tabular-nums; }
.tl-status { font-weight: 700; margin: 0; color: var(--navy); }
.tl-loc { font-weight: 500; color: var(--steel); }
.tl-note { margin: .15rem 0 0; color: var(--ink); }
.after-track { margin-top: 1.25rem; color: var(--steel); }
.empty-track { color: var(--steel); }

.mode-tag { white-space: nowrap; display: inline-block; font-size: .8rem; font-weight: 700; padding: .15rem .55rem; border-radius: 4px; background: #E6EDF7; color: var(--navy); }
.mode-tag-udara { background: #FDEBDD; color: var(--orange-ink); }
.mode-tag-darat { background: #E4F0EA; color: var(--ok); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #A9B7CC; padding-top: 3.5rem; font-size: .98rem; }
.site-footer a { color: #DCE4F0; text-decoration-color: rgba(255,255,255,.3); }
.site-footer a:hover { color: var(--white); text-decoration-color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-logo { width: 180px; margin-bottom: 1rem; }
.footer-quote { font-family: var(--display); color: #DCE4F0; font-size: 1.1rem; }
.footer-h { font-family: var(--body); font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: .6rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.25rem; font-size: .88rem; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
}
.wa-float:hover { background: #1EBE5A; color: var(--white); }

/* ---------- Admin ---------- */
.admin { background: var(--paper); }
.admin-bar { background: var(--navy); }
.admin-bar-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; flex-wrap: wrap; gap: .5rem; }
.admin-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.admin-nav a, .admin-nav .linkish { color: #C9D4E5; text-decoration: none; font-weight: 500; }
.admin-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--orange); }
.admin-nav form { margin: 0; }
.admin-main { padding-block: 2rem 4rem; }
.admin-main h1 { font-family: var(--body); font-weight: 700; font-size: 1.7rem; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.admin-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.resi-title { letter-spacing: .05em; font-variant-numeric: tabular-nums; margin-bottom: .2rem; }
.crumb { margin-bottom: .5rem; font-size: .95rem; }
.crumb a::before { content: "\2039  "; }
.admin-filter { display: flex; gap: .6rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.admin-filter input { flex: 1 1 260px; width: auto; }
.admin-filter select { width: auto; }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--r-md); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.table th { text-align: left; font-size: .85rem; color: var(--steel); font-weight: 600; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: #FAFBFD; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.resi-link { font-weight: 700; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; }
.panel h2 { font-family: var(--body); font-weight: 700; font-size: 1.15rem; }
.admin-cols { display: grid; grid-template-columns: 360px 1fr; gap: 1.5rem; align-items: start; }
.admin-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.75rem; max-width: 820px; }
.timeline-admin { padding: 0; }
.timeline-admin form { margin: .3rem 0 0; }
.timeline-admin .linkish { font-size: .85rem; }
.facts-admin { grid-template-columns: repeat(2, 1fr); padding: 1.25rem 0 0; border-bottom: 0; }
.danger-zone { margin-top: 2rem; }
.empty-admin { background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 2rem; color: var(--steel); }
.flash { padding: .8rem 1rem; border-radius: var(--r-sm); margin-bottom: 1.25rem; font-weight: 500; }
.flash-ok { background: #E2F2E8; color: var(--ok); }
.flash-err { background: #FCE8E6; color: #A3261B; }
.flash-info { background: #E6EDF7; }
.login { max-width: 400px; margin: 4rem auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 2.25rem; }
.login img { width: 170px; margin: 0 auto 1.25rem; }
.login h1 { text-align: center; }
.messages { display: grid; gap: 1rem; }
.msg.is-unread { border-left: 4px solid var(--orange); }
.msg h2 { margin-bottom: .1rem; }
.msg-meta { color: var(--steel); font-size: .9rem; }
.msg-body { white-space: pre-line; }
.msg-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; }
.msg-actions form { margin: 0; }

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
  .promises { grid-template-columns: repeat(3, 1fr); }
  .route { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .route::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 3rem 0; gap: 2rem; }
  .hero-photo { margin-inline: -1.25rem; }
  .hero-photo img { min-height: 220px; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  .hero-photo::before { display: none; }
  .modes { grid-template-columns: 1fr; gap: 2.5rem; }
  .promo, .svc-grid, .about, .contact, .admin-cols { grid-template-columns: 1fr; gap: 2.5rem; }
  .promo-art { max-width: 340px; }
  .svc-flip .svc-photo { order: 0; }
  .about-card { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding-block: 3.5rem; }
  .promises { grid-template-columns: 1fr 1fr; }
  .route { grid-template-columns: 1fr; }
  .waybill-row { flex-direction: column; }
  .waybill-body { padding-left: 2.3rem; padding-right: 1.1rem; }
  .field-pair { grid-template-columns: 1fr; }
  .field-half { max-width: none; }
  .leg { grid-template-columns: 1fr; gap: .75rem; }
  .leg-end-to { text-align: left; }
  .stages { grid-template-columns: 1fr; padding-top: 0; }
  .stages li { border-top: 0; border-left: 3px solid var(--line); padding: .2rem 0 .2rem .7rem; }
  .stages li.is-past { border-left-color: #F6B78B; }
  .stages li.is-now { border-left-color: var(--orange); }
  .timeline li { grid-template-columns: 1fr; gap: .1rem; }
  .timeline time { text-align: left; padding-left: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .mode-strip .wrap { gap: 1.25rem; }
}

/* ================= Tambahan v2: database, akun, pengaturan ================= */
.footer-tagline { font-family: var(--display); color: var(--orange); margin-bottom: .2rem; }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .75rem 0 0; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid currentColor; color: inherit; }
.socials svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: currentColor; stroke: none; }
.site-footer .socials a { color: #DCE4F0; border-color: rgba(255,255,255,.3); }
.site-footer .socials a:hover { border-color: var(--orange); color: var(--white); }
.contact-info .socials a { color: var(--navy); border-color: var(--line); }
.contact-info .socials a:hover { border-color: var(--orange); color: var(--orange-ink); }

.badge { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: var(--orange); color: var(--white); font-size: .75rem; font-weight: 700; }
.admin-nav-sep { width: 1px; height: 22px; background: rgba(255,255,255,.2); }
.admin-me small { display: inline-block; margin-left: .25rem; font-size: .75rem; color: #9FB0CB; }
.nav-toggle-light .bar { background: var(--white); }
.admin-intro { color: var(--steel); max-width: 75ch; }
.muted { color: var(--steel); }
.login-sub { text-align: center; color: var(--steel); margin-top: -.25rem; }
.login-note { text-align: center; margin: 1rem 0 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat { display: block; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.2rem; text-decoration: none; color: var(--steel); }
.stat strong { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat:hover { border-color: var(--navy-soft); color: var(--steel); }
.stat.is-on { border-color: var(--navy); box-shadow: inset 0 -3px 0 var(--orange); }
.stat-warn strong { color: var(--warn); }
.stat-ok strong { color: var(--ok); }

.tl-by { font-size: .82rem; color: var(--steel); margin: .2rem 0 0; }
.tl-by:empty { display: none; }
.facts-stack { grid-template-columns: 1fr; }

.admin-cols-wide { grid-template-columns: 340px 1fr; }
.role-tag { white-space: nowrap; display: inline-block; font-size: .8rem; font-weight: 700; padding: .15rem .55rem; border-radius: 4px; background: #E6EDF7; color: var(--navy); }
.role-admin { background: #FDEBDD; color: var(--orange-ink); }
.table tr.is-off td { color: #98A3B3; }
.input-with-btn { display: flex; gap: .5rem; }
.input-with-btn input { flex: 1; min-width: 0; }
.input-with-btn .btn { padding-inline: .9rem; white-space: nowrap; }
.check { display: flex !important; align-items: center; gap: .5rem; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.form-narrow { max-width: 420px; }

.settings { display: grid; gap: 1.25rem; max-width: 900px; }
.settings fieldset { margin: 0; min-width: 0; }
.settings legend { font-weight: 700; font-size: 1.1rem; color: var(--navy); padding: 0 .4rem; margin-left: -.4rem; }
.wa-preview { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding-top: .25rem; color: var(--steel); }
.settings-save { position: sticky; bottom: 0; background: var(--paper); padding: 1rem 0; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .admin-bar .nav-toggle { display: grid; }
  .admin-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: .25rem; padding-bottom: 1rem; }
  .admin-nav.is-open { display: flex; }
  .admin-nav a, .admin-nav .linkish { padding: .5rem 0; }
  .admin-nav-sep { width: 100%; height: 1px; }
  .admin-cols-wide { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) {
  .admin-bar .nav-toggle { display: none; }
}
