/* ==========================================================
   Airport Intelligence — Mockup UI
   Mobile-first, aman untuk Cordova WebView & browser desktop
   ========================================================== */
:root {
  --navy-900: #0b1f38;
  --navy-800: #0f2a4a;
  --navy-700: #16406e;
  --navy-100: #e6eef8;
  --amber: #f5a524;
  --amber-600: #d98a0b;
  --amber-50: #fff6e5;
  --green: #12a150;
  --green-50: #e7f7ee;
  --red: #e5484d;
  --ink: #14202e;
  --ink-2: #4a5a6c;
  --ink-3: #8794a3;
  --line: #e3e8ee;
  --bg: #f3f5f8;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 42, 74, .06), 0 4px 14px rgba(15, 42, 74, .06);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: #dfe4ea;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* App frame: penuh di HP, "phone frame" di desktop */
#app {
  position: relative;
  max-width: 480px;
  min-height: 100%;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
@media (min-width: 600px) {
  body { padding: 24px 0; }
  #app { min-height: calc(100vh - 48px); border-radius: 28px; overflow: hidden; box-shadow: 0 20px 60px rgba(11,31,56,.25); }
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(12px + var(--safe-top)) 14px 12px;
  background: linear-gradient(90deg, #0a0a0a 0%, #3a3a3c 45%, #8e9094 78%, #c4c7cc 100%);
  color: #fff;
}
.topbar-title { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar h1 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar p { margin: 1px 0 0; font-size: 12px; opacity: .7; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--amber); color: var(--navy-900); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 22px; height: 22px; stroke-width: 1.6; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; flex: none; }
.icon-btn:active { background: rgba(255,255,255,.2); }
.icon-btn { position: relative; }
.topbar-text { min-width: 0; }
/* Kualitas koneksi ke server: titik bulat berwarna sesuai level (0–4) */
.signal { width: 22px; height: 22px; background: none; cursor: pointer; color: #ff6b6f; }
.signal .dot { width: 14px; height: 14px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255,255,255,.12); transition: background .3s; animation: pulse 2s infinite; }
.signal.lv-4 { color: #3ddc84; }
.signal.lv-3 { color: #a6e05a; }
.signal.lv-2 { color: var(--amber); }
.signal.lv-1 { color: #ff7a59; }
.signal.lv-0 { color: #ff6b6f; }
.signal.lv-0 .dot { animation: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(255,255,255,.12); } 50% { box-shadow: 0 0 0 7px rgba(255,255,255,.04); } }
.clock { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1.15; padding: 0 2px; }
.clock b { font-size: 15px; font-variant-numeric: tabular-nums; }
.clock span { font-size: 10.5px; opacity: .75; white-space: nowrap; }

/* ---------- View ---------- */
.view { flex: 1; padding: 16px 14px calc(var(--nav-h) + 28px + var(--safe-bottom)); }
.view.has-action { padding-bottom: calc(var(--nav-h) + 120px + var(--safe-bottom)); }

/* ---------- Bottom nav ---------- */
.bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 30;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex; align-items: center; justify-content: space-around;
  background: #fff; border-top: 1px solid var(--line);
}
@media (min-width: 600px) { .bottomnav { bottom: 24px; border-radius: 0 0 28px 28px; } }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-3); text-decoration: none; font-size: 11px; font-weight: 600; }
.nav-item.active { color: var(--navy-700); }
.nav-fab {
  width: 56px; height: 56px; margin-top: -26px; border-radius: 18px;
  background: var(--amber); color: var(--navy-900);
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(245,165,36,.45);
  border: 4px solid var(--bg);
}
.nav-fab svg { width: 26px; height: 26px; stroke-width: 2.4; }
.nav-fab.active { background: var(--navy-800); color: #fff; box-shadow: 0 6px 16px rgba(15,42,74,.35); }

/* ---------- Generic ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.section { padding: 16px; margin-bottom: 12px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step { width: 24px; height: 24px; border-radius: 50%; background: var(--navy-100); color: var(--navy-700); font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.section-head h2 { margin: 0; font-size: 15px; font-weight: 700; flex: 1; }
/* Field: label & input menyatu dalam satu kotak */
.field { border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 8px 12px 10px; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s; }
.field:last-child { margin-bottom: 0; }
.field:focus-within { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(22,64,110,.12); }
.field > label { display: block; font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.field input, .field textarea { width: 100%; border: 0; outline: none; padding: 2px 0; background: transparent; }
.field textarea { resize: vertical; line-height: 1.45; min-height: 90px; }
.field .money { display: flex; align-items: center; gap: 6px; }
.field .money .prefix { position: static; transform: none; }
.field .money input { font-size: 18px; font-weight: 800; }
.field .picker { border: 0; padding: 2px 0; }
.field .combo-selected { border: 0; background: none; padding: 2px 0; }
.field .hint { margin-top: 6px; }
.combo-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.mini-btn { width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--navy-100); color: var(--navy-700); display: grid; place-items: center; text-decoration: none; }
.mini-btn svg { width: 18px; height: 18px; }
.mini-btn:active { background: #d3e0ef; }
.req { color: var(--red); font-weight: 700; }
.hint { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }
.muted { color: var(--ink-3); }
.row { display: flex; gap: 8px; align-items: center; }
.spacer { flex: 1; }
.label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 12px 0 6px; text-transform: uppercase; letter-spacing: .4px; }
.label:first-child { margin-top: 0; }

.input, .select, .textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: 12px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(22,64,110,.12); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238794a3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 36px; }

.btn { border: 0; border-radius: 12px; padding: 13px 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:active { background: var(--navy-900); }
.btn-amber { background: var(--amber); color: var(--navy-900); }
.btn-ghost { background: var(--navy-100); color: var(--navy-700); }
.btn-outline { background: #fff; color: var(--navy-700); border: 1.5px dashed #b9c8da; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600;
}
.chip.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip.add { border-style: dashed; color: var(--navy-700); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--navy-100); color: var(--navy-700); white-space: nowrap; }
.badge.amber { background: var(--amber-50); color: var(--amber-600); }
.badge.green { background: var(--green-50); color: var(--green); }

/* ---------- Home ---------- */
.hello { margin: 2px 2px 14px; }
.hello h2 { margin: 0; font-size: 20px; }
.hello p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }

.search { position: relative; margin-bottom: 12px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 18px; height: 18px; }
.search .input { padding-left: 38px; }

.list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px 10px; }
.list-head h3 { margin: 0; font-size: 15px; }
.list-head span { font-size: 12px; color: var(--ink-3); }

.intel { display: flex; gap: 12px; padding: 10px; margin-bottom: 10px; text-decoration: none; color: inherit; }
.intel-thumb { width: 78px; height: 78px; border-radius: 10px; background: var(--navy-100) center/cover no-repeat; flex: none; position: relative; overflow: hidden; }
.intel-thumb .count { position: absolute; right: 4px; bottom: 4px; background: rgba(11,31,56,.75); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.intel-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.intel-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.intel-desc { font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.intel-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.price { font-weight: 800; color: var(--navy-800); font-size: 14px; }

.empty { text-align: center; padding: 36px 16px; color: var(--ink-3); }
.empty svg { width: 48px; height: 48px; margin-bottom: 8px; }

/* ---------- Foto ---------- */
/* Satu baris besar; geser ke samping bila foto lebih dari satu */
.photo-grid { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.photo-grid::-webkit-scrollbar { display: none; }
.photo { position: relative; flex: none; width: 82%; aspect-ratio: 4/3; border-radius: 12px; background: var(--navy-100) center/cover no-repeat; overflow: hidden; scroll-snap-align: start; }
.photo .del { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(11,31,56,.7); color: #fff; display: grid; place-items: center; }
.photo .del svg { width: 14px; height: 14px; stroke-width: 2.4; }
.photo .tag { position: absolute; left: 4px; bottom: 4px; border: 0; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 6px; background: var(--amber); color: var(--navy-900); letter-spacing: .4px; }
.photo .tag.logo { background: #fff; color: var(--navy-700); }
.photo-add { flex: none; width: 38%; aspect-ratio: auto; border-radius: 12px; border: 1.5px dashed #b9c8da; background: #f8fafc; color: var(--navy-700); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; scroll-snap-align: start; }
.photo-add:only-child { width: 100%; aspect-ratio: 4/3; font-size: 13px; }
.photo-add svg { width: 30px; height: 30px; }
.photo-add:only-child svg { width: 44px; height: 44px; stroke-width: 1.5; }
.photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }

/* ---------- Combobox travel ---------- */
.combo-selected { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--navy-700); border-radius: var(--radius-sm); background: #f6f9fd; }
.avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--navy-800); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; font-size: 14px; }
.combo-selected .info { flex: 1; min-width: 0; }
.combo-selected b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-selected small { color: var(--ink-3); font-size: 12px; }
.link-btn { border: 0; background: none; color: var(--navy-700); font-weight: 700; font-size: 13px; padding: 6px; }

.picker { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; width: 100%; text-align: left; color: var(--ink-3); }
.picker svg { color: var(--ink-3); }
.picker span { flex: 1; }

/* ---------- Harga ---------- */
.money { position: relative; }
.money .prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--ink-2); }
.money .input { padding-left: 42px; font-size: 20px; font-weight: 800; letter-spacing: .3px; }
.by-caption { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 8px; font-size: 12px; color: var(--ink-2); }
.by-caption svg, .intel-by svg { width: 14px; height: 14px; }
.intel-by { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); }

/* ---------- Sticky action ---------- */
.action-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-bottom));
  width: 100%; max-width: 480px; z-index: 25; padding: 8px 14px 10px; background: var(--bg); border-top: 1px solid var(--line);
}
@media (min-width: 600px) { .action-bar { bottom: calc(var(--nav-h) + 24px); } }

/* ---------- Detail ---------- */
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: -16px -14px 14px; padding: 0; }
.gallery .g { flex: none; width: 100%; aspect-ratio: 4/3; background: var(--navy-100) center/cover no-repeat; scroll-snap-align: start; position: relative; }
.gallery .g .tag { position: absolute; left: 12px; bottom: 12px; }
.gallery-dots { display: flex; justify-content: center; gap: 5px; margin: -6px 0 12px; }
.gallery-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c5cfdb; }
.gallery-dots i.on { background: var(--navy-700); width: 16px; border-radius: 3px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 12px; font-size: 14px; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; }
.note { white-space: pre-wrap; line-height: 1.5; font-size: 14px; color: var(--ink-2); margin: 0; }
.price-big { font-size: 26px; font-weight: 800; color: var(--navy-800); }

/* ---------- Travel list ---------- */
.tr-item { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; }
.tr-item .info { flex: 1; min-width: 0; }
.tr-item b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-item small { color: var(--ink-3); font-size: 12px; }

/* ---------- Sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(11,31,56,.45); z-index: 40; animation: fade .2s; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 41;
  width: 100%; max-width: 480px; max-height: 86vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 20px 20px 0 0; padding: 8px 16px calc(16px + var(--safe-bottom));
  animation: up .22s ease-out;
}
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: #d3dae3; margin: 4px auto 10px; }
.sheet h3 { margin: 0 0 4px; font-size: 17px; }
.sheet .sheet-sub { margin: 0 0 12px; font-size: 13px; color: var(--ink-3); }
.sheet-list { overflow-y: auto; margin: 8px -16px 0; padding: 0 8px; flex: 1; min-height: 160px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 10px 8px; border-radius: 10px; text-align: left; }
.opt:active, .opt:hover { background: var(--bg); }
.opt .avatar { width: 34px; height: 34px; font-size: 12px; background: var(--navy-100); color: var(--navy-700); }
.opt .info { flex: 1; min-width: 0; }
.opt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt small { color: var(--ink-3); font-size: 12px; }
.opt mark { background: var(--amber-50); color: inherit; padding: 0 1px; border-radius: 3px; }
.opt-new { margin-top: 6px; border: 1.5px dashed #b9c8da; background: #f8fafc; }
.opt-new .avatar { background: var(--amber); color: var(--navy-900); }
.new-link { text-align: center; margin-top: 4px; }
.sheet .foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

@keyframes up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Lightbox / toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.9); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 90px + var(--safe-bottom)); transform: translateX(-50%); z-index: 70;
  background: var(--navy-900); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: fade .2s; max-width: 90%; text-align: center;
}

/* ---------- History per travel ---------- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: #d3dce7; }
.tl-item { position: relative; margin-bottom: 12px; }
.tl-dot { position: absolute; left: -21px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #b9c8da; }
.tl-dot.on { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 4px var(--amber-50); }
.tl-card { padding: 12px; }
.tl-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13px; }
.tl-photos { display: flex; gap: 6px; overflow-x: auto; margin: 0 -12px; padding: 0 12px; scrollbar-width: none; }
.tl-photos::-webkit-scrollbar { display: none; }
.tl-photo { flex: none; width: 46%; aspect-ratio: 4/3; border-radius: 10px; background: var(--navy-100) center/cover no-repeat; position: relative; }
.tl-photo:only-child { width: 100%; }
.tl-photo .badge { position: absolute; left: 6px; bottom: 6px; }
.tl-card .note { font-size: 13px; margin-bottom: 10px; }
.tl-foot { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.hist-last { flex: none; text-align: right; line-height: 1.25; align-self: flex-start; }
.hist-last span { display: block; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.hist-last b { font-size: 13px; color: var(--navy-800); white-space: nowrap; }
.detail-price { flex: none; text-align: right; line-height: 1.2; }
.detail-price span { display: block; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.detail-price b { font-size: 18px; font-weight: 800; color: var(--navy-800); white-space: nowrap; }
.btn-xs { padding: 6px 8px 6px 12px; font-size: 12.5px; border-radius: 9px; gap: 2px; text-decoration: none; }
.btn-xs svg { width: 16px; height: 16px; stroke-width: 2.2; }
.kota-list { margin-top: 6px; max-height: 220px; overflow-y: auto; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 4px; }
.kota-list .opt { padding: 8px; }
.photo.single { width: 100%; }
.photo-actions.single { grid-template-columns: 1fr; }
.photo-grid:empty { display: none; }
.photo-grid:empty + .photo-actions { margin-top: 0; }

/* ---------- Notifikasi ---------- */
.notif-badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: var(--navy-900); font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--navy-800); }
.notif-list { margin-top: 4px; }
.notif { display: flex; align-items: flex-start; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 12px 8px; border-radius: 12px; position: relative; }
.notif + .notif { border-top: 1px solid var(--line); border-radius: 0; }
.notif:active { background: var(--bg); }
.notif.unread { background: #f6f9fd; }
.notif .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif b { font-size: 14px; font-weight: 600; }
.notif.unread b { font-weight: 800; }
.notif .n-body { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.notif small { font-size: 11.5px; color: var(--ink-3); }
.n-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.n-ic svg { width: 19px; height: 19px; }
.n-intel { background: var(--amber-50); color: var(--amber-600); }
.n-travel { background: var(--navy-100); color: var(--navy-700); }
.n-reminder { background: #fdecec; color: var(--red); }
.n-info { background: var(--green-50); color: var(--green); }
.n-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; margin-top: 6px; }

/* Panel dari atas (notifikasi) */
.sheet.top { bottom: auto; max-height: 75vh; border-radius: 0 0 20px 20px; padding: 14px 16px 8px; animation: down .22s ease-out; box-shadow: 0 12px 30px rgba(11,31,56,.25); }
.sheet.top .grab { margin: 10px auto 2px; }
@keyframes down { from { transform: translate(-50%, -100%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* Banner push dari atas */
.push-banner {
  position: fixed; left: 50%; top: calc(8px + var(--safe-top)); z-index: 80;
  width: calc(100% - 20px); max-width: 460px; display: flex; align-items: flex-start; gap: 12px; text-align: left;
  border: 0; border-radius: 16px; padding: 12px 14px; background: #fff; box-shadow: 0 10px 30px rgba(11,31,56,.3);
  transform: translate(-50%, -140%); transition: transform .3s ease;
}
.push-banner.show { transform: translate(-50%, 0); }
.push-banner .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.push-banner b { font-size: 14px; font-weight: 800; }
.push-banner .n-body { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Header hitam -> abu -> silver: elemen di sisi silver diberi latar gelap supaya tetap terbaca */
.topbar .icon-btn { background: rgba(0,0,0,.28); }
.topbar .icon-btn:active { background: rgba(0,0,0,.45); }
.topbar .clock { background: rgba(0,0,0,.28); border-radius: 10px; padding: 4px 8px; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.topbar .notif-badge { box-shadow: 0 0 0 2px #5a5b5e; }

/* Lonceng, jam, logout tanpa bentuk tombol; teks/ikon diberi bayangan agar terbaca di sisi silver */
.topbar #btnAlarm, .topbar #btnLogout, .topbar .clock { background: none; }
.topbar #btnAlarm:active, .topbar #btnLogout:active { background: rgba(0,0,0,.18); }
.topbar #btnAlarm svg, .topbar #btnLogout svg { stroke-width: 2.2; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.45)); }
.topbar .clock { align-items: flex-end; text-align: right; padding: 0 2px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.topbar .clock b, .topbar .clock span { font-weight: 800; }
.topbar .clock span { opacity: 1; }
.topbar #btnLogout svg { width: 27px; height: 27px; }
.topbar #btnBack { background: none; width: 30px; margin-right: -4px; }
.topbar #btnBack:active { background: rgba(255,255,255,.12); }
.topbar #btnBack svg { width: 26px; height: 26px; stroke-width: 2.4; }

/* ---------- Popup fullscreen: Tambah Data ---------- */
body.modal-open { overflow: hidden; }
.fullmodal {
  position: fixed; inset: 0; z-index: 35; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; display: flex; flex-direction: column; background: var(--bg);
  animation: fmIn .22s ease-out;
}
@media (min-width: 600px) { .fullmodal { top: 24px; bottom: 24px; border-radius: 28px; overflow: hidden; box-shadow: 0 20px 60px rgba(11,31,56,.35); } }
@keyframes fmIn { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
.fm-head { display: flex; align-items: center; gap: 6px; padding: calc(10px + var(--safe-top)) 10px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.fm-head h2 { margin: 0; font-size: 17px; font-weight: 800; flex: 1; }
.fm-close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--ink); display: grid; place-items: center; }
.fm-close:active { background: var(--bg); }
.fm-close svg { width: 24px; height: 24px; stroke-width: 2.2; }
.fm-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px; }
.fm-foot { padding: 10px 14px calc(10px + var(--safe-bottom)); background: #fff; border-top: 1px solid var(--line); }

/* Tombol + : hitam gradasi mewah dengan kilap halus & bingkai silver */
.nav-fab, .nav-fab.active {
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(145deg, #4a4a4d 0%, #1c1c1e 45%, #050505 100%);
  color: #f2f2f2;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(200,203,208,.55) inset, 0 8px 18px rgba(0,0,0,.45), 0 2px 4px rgba(0,0,0,.3);
}
.nav-fab svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.nav-fab:active { transform: scale(.96); }
.nav-fab, .nav-fab.active { border: 0; }

/* Header: hitam pekat -> abu -> silver dengan kilap metalik halus */
.topbar {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(100deg, #030303 0%, #111113 28%, #26262a 52%, #5f6166 76%, #aeb1b6 100%);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  isolation: isolate;
}
/* kilap tipis di bagian atas (efek kaca/metal) */
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 55%);
}
/* garis silver halus di bawah header */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(210,213,218,.55) 45%, rgba(255,255,255,.85) 100%);
}
.topbar .clock b, .topbar .clock span { font-size: 13px; line-height: 1.2; }

/* Penanda menu aktif di navbar bawah */
.nav-item { position: relative; height: 100%; justify-content: center; transition: color .2s; }
.nav-item::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #2b2b2e, #050505); transform: translateX(-50%); transition: width .2s ease;
}
.nav-item.active { color: #111113; font-weight: 800; }
.nav-item.active::before { width: 36px; }
.nav-item.active svg { stroke-width: 2.2; }

/* Header popup Tambah Data: samakan dengan header utama */
.fm-head {
  position: relative; isolation: isolate; color: #fff; border-bottom: 0;
  padding: calc(12px + var(--safe-top)) 10px 12px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(100deg, #030303 0%, #111113 28%, #26262a 52%, #5f6166 76%, #aeb1b6 100%);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.fm-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 55%); }
.fm-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(210,213,218,.55) 45%, rgba(255,255,255,.85) 100%); }
.fm-head h2 { color: #fff; }
.fm-close { color: #fff; }
.fm-close:active { background: rgba(255,255,255,.12); }

/* Tombol Simpan biru */
.fm-foot .btn-primary { background: linear-gradient(180deg, #2f7bf0 0%, #1a5fd1 100%); color: #fff; box-shadow: 0 6px 16px rgba(26,95,209,.35); }
.fm-foot .btn-primary:active { background: #1550b3; }

/* Tombol Ambil Foto hijau */
.photo-actions [data-act="camera"] { background: linear-gradient(180deg, #1fb866 0%, #129a50 100%); color: #fff; box-shadow: 0 4px 12px rgba(18,154,80,.3); }
.photo-actions [data-act="camera"]:active { background: #0f8444; }
/* Tombol tutup popup di kanan */
.fm-close { order: 2; }
.fm-head h2 { padding-left: 6px; }
.fm-close svg { filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.5)); stroke-width: 2.4; }
.tr-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.tr-foot .price { font-size: 13px; }
.tr-foot small { white-space: nowrap; }
/* Card travel: panah di kanan atas, baris "Terakhir" rata kanan sejajar panah */
.tr-item { position: relative; }
.tr-item > svg { position: absolute; right: 12px; top: 22px; }
.tr-item .info > b, .tr-item .info > small { padding-right: 30px; }
/* Popup Detail di atas popup History; galeri foto selebar popup */
.fullmodal.fm-detail { z-index: 36; }
.fm-body .gallery { margin: -14px -14px 14px; }

/* Tombol refresh di pojok kanan kolom cari travel */
.search.has-refresh .input { padding-right: 48px; }
.search-refresh {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 9px; background: none; color: var(--ink-2);
  display: grid; place-items: center;
}
.search .search-refresh svg { position: static; transform: none; width: 20px; height: 20px; color: inherit; }
.search-refresh:active { background: var(--bg); }
.search-refresh.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tombol Isi Harga di Detail (harga diisi belakangan) */
.detail-price .btn-price { margin-top: 6px; background: linear-gradient(180deg, #1fb866 0%, #129a50 100%); color: #fff; padding: 6px 10px 6px 8px; gap: 4px; }
.detail-price .btn-price svg { width: 15px; height: 15px; stroke-width: 2.6; }
.sheet .field { margin-top: 4px; }
.sheet .btn-save-price { background: linear-gradient(180deg, #2f7bf0 0%, #1a5fd1 100%); }
.detail-price b { display: block; }

/* Tombol refresh: hijau & tebal */
.search-refresh { color: #129a50; }
.search .search-refresh svg { stroke-width: 3; width: 22px; height: 22px; }
.search-refresh:active { background: #e4f5ec; }

/* ---------- Layar login ---------- */
.login { position: fixed; inset: 0; z-index: 90; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; }
@media (min-width: 600px) { .login { top: 24px; bottom: 24px; border-radius: 28px; box-shadow: 0 20px 60px rgba(11,31,56,.35); } }
.login-hero {
  position: relative; isolation: isolate; color: #fff; text-align: center; padding: calc(56px + var(--safe-top)) 24px 48px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(100deg, #030303 0%, #111113 28%, #26262a 52%, #5f6166 76%, #aeb1b6 100%);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.login-mark { width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(145deg, #4a4a4d, #050505); box-shadow: 0 0 0 1px rgba(200,203,208,.5) inset, 0 8px 18px rgba(0,0,0,.45); display: inline-grid; place-items: center; color: #f2f2f2; margin-bottom: 14px; }
.login-mark svg { width: 32px; height: 32px; stroke-width: 1.6; }
.login-hero h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .1px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.login-hero p { margin: 6px 0 0; font-size: 13.5px; opacity: .85; max-width: none; color: inherit; }
.login-card { margin: -22px 16px 0; padding: 18px 16px 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 12px; position: relative; }
.login-card .field { margin: 0; }
.login-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: #b3262b; font-size: 13px; font-weight: 600; }
.login-foot { text-align: center; font-size: 12px; color: var(--ink-3); padding: 18px 16px calc(18px + var(--safe-bottom)); margin-top: auto; }

/* ---------- Memuat & galat ---------- */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 36px 16px; color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #d3dae3; border-top-color: var(--navy-700); animation: spin .8s linear infinite; }
.empty .btn { margin-top: 12px; }
.empty .err-msg { color: var(--red); font-weight: 600; margin-top: 4px; }
button[disabled], .btn[disabled] { opacity: .6; pointer-events: none; }

/* ===== Tambahan untuk halaman Blade (server-side) ===== */
.inline-form { margin: 0; display: contents; }
a.icon-btn, a.fm-close, a.search-refresh { text-decoration: none; }
a.icon-btn { position: relative; display: grid; place-items: center; }
a.search-refresh { display: grid; place-items: center; }
.pilih-list form { margin: 0; }
.pilih-list a.opt { text-decoration: none; color: inherit; }
.foot2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.foot2 .btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.err-msg { margin: 6px 0 0; color: #d92d3a; font-size: 13px; font-weight: 600; }
.baca-semua { text-align: right; margin: 0 0 6px; }
.notif-list form { margin: 0; }
.notif-list .notif { width: 100%; text-align: left; }
.isi-harga { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.isi-harga[hidden] { display: none; }
.card.intel { text-decoration: none; color: inherit; }
.login-err { display: block; }
.fm-foot form.foot2 { margin: 0; }
.fm-body { overflow-x: hidden; }
.pilih-list, .pilih-list form { min-width: 0; max-width: 100%; }
.pilih-list .opt { max-width: 100%; box-sizing: border-box; }
.pilih-list a.opt-new { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
/* Notifikasi sebagai kartu putih yang jelas di atas latar abu-abu */
.notif-list form + form { margin-top: 10px; }
.notif-list .notif { background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 14px 14px 14px 12px; border-radius: var(--radius); }
.notif-list .notif.unread { background: #fff; border-color: #c9d8ee; box-shadow: var(--shadow), inset 4px 0 0 var(--amber); }
.notif-list .notif:not(.unread) { opacity: .82; }
.notif-list .notif:active { background: #f1f4f9; }
