:root {
  --navy: #193456;
  --navy-deep: #12263f;
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #20242b;
  --muted: #66717e;
  --green: #087d5a;
  --border: #e7e9ed;
  --shadow: 0 10px 30px rgba(25, 52, 86, 0.07);
  --radius: 22px;
  --app-max: 480px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.icon { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.icon--sm { width: 17px; height: 17px; }
.icon--lg { width: 28px; height: 28px; }
.icon--xl { width: 46px; height: 46px; }

.app-frame { min-height: 100vh; }
.content-shell { min-height: 100vh; padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
.app-main { max-width: var(--app-max); margin: 0 auto; padding: 0 20px 44px; }

/* ---------- Top bar ---------- */
.topbar {
  max-width: var(--app-max, 100%);
  width: 100%;
  margin: 0 auto;
  padding: 18px 20px 10px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--navy);
  box-shadow: 0 5px 16px rgba(25, 52, 86, 0.05);
}
.topbar-actions { display: flex; justify-content: flex-end; gap: 8px; }
.brand-lockup { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; overflow: hidden; }
.brand-lockup .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .brand-affix { display: none; }
  .topbar { grid-template-columns: 36px 1fr auto; padding: 12px 10px 8px; }
  .topbar-actions { gap: 4px; }
}
@media (max-width: 360px) {
  .icon-btn { width: 30px; height: 30px; }
}
.brand-mark {
  width: 46px; height: 46px; border-radius: 13px; background: var(--navy);
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800;
  letter-spacing: 0.02em; flex: 0 0 auto;
}
.brand-logo {
  width: 46px; height: 46px; border-radius: 13px; object-fit: contain;
  background: #fff; padding: 4px; flex: 0 0 auto; border: 1px solid var(--border);
}
.brand-lockup { gap: 12px; line-height: 1; }
.institution-logo.brand-logo { background: #fff; border-color: rgba(255,255,255,0.35); color: var(--navy); }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -0.025em; white-space: nowrap; line-height: 1; display: flex; align-items: center; }
.brand-sub { display: block; font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* ---------- Navigation ---------- */
.nav-shell--sidebar { display: none; }
.bottom-nav {
  position: fixed; z-index: 40; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 100%; max-width: var(--app-max);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(25, 52, 86, 0.06);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 6px 2px; color: var(--muted); font-size: 10.5px; font-weight: 700;
  border-radius: 14px; text-align: center;
}
.nav-item.is-active { color: var(--navy); }
.nav-item.is-active .icon { stroke-width: 2.2; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 28px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; }
.sidebar-nav .nav-item {
  flex-direction: row; justify-content: flex-start; gap: 12px;
  padding: 13px 14px; font-size: 13px;
}
.sidebar-nav .nav-item.is-active { background: #e8eef6; }
.sidebar-foot { margin-top: 28px; padding: 14px; border-radius: 16px; background: #e9eef5; color: var(--muted); font-size: 11px; line-height: 1.5; }

/* ---------- Shared page pieces ---------- */
.page-head { margin: 12px 0 18px; }
.page-kicker { font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.page-title { font-size: 29px; line-height: 1.12; font-weight: 800; letter-spacing: -0.045em; margin: 7px 0 0; }
.page-sub { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 8px 0 0; }
.back-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.back-row .page-title { font-size: 25px; margin: 0; }

.card {
  background: var(--card); border: 1px solid rgba(231, 233, 237, 0.95);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.section-title { margin: 26px 4px 12px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.demo-note { margin: 18px 4px 0; font-size: 10.5px; line-height: 1.55; color: var(--muted); text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 14px; padding: 14px 18px; font-weight: 700; font-size: 14px;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; width: 100%; box-shadow: 0 9px 20px rgba(25, 52, 86, 0.18); }
.btn-primary:hover { background: #142b48; }
.btn-secondary { background: #eef2f7; color: var(--navy); }
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--navy); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.notice {
  display: flex; gap: 10px; padding: 14px 16px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-size: 11.5px; line-height: 1.55; margin-top: 16px;
}
.notice--green { background: #edf8f3; border-color: #cfeadd; color: #0a5f47; }
.notice .icon { margin-top: 1px; }

.badge-new {
  background: #e6f6ef; color: var(--green); font-size: 9px; font-weight: 800;
  padding: 4px 8px; border-radius: 999px; margin-left: 8px; letter-spacing: 0.06em;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 6px 10px; font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
  background: #edf8f3; color: var(--green);
}
.pill--navy { background: rgba(255,255,255,0.14); color: #fff; }

/* ---------- Dashboard ---------- */
.welcome { padding: 6px 2px 0; }
.welcome h1 { font-size: 29px; line-height: 1.14; letter-spacing: -0.045em; margin: 0; font-weight: 800; }
.welcome p { font-size: 12.5px; color: var(--muted); margin: 7px 0 0; }
.accounts-card { overflow: hidden; margin-top: 20px; }
.card-strip {
  background: var(--navy); color: #fff; padding: 14px 18px;
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13.5px;
}
.strip-action { margin-left: auto; font-size: 11px; opacity: 0.78; font-weight: 600; }
.account-row {
  display: flex; align-items: center; gap: 13px; padding: 17px 18px;
  min-height: 84px; width: 100%; text-align: left;
}
.account-row + .account-row { border-top: 1px solid var(--border); }
.account-icon {
  width: 46px; height: 46px; border-radius: 50%; background: #eef2f7;
  color: var(--navy); display: grid; place-items: center; flex: 0 0 auto;
}
.account-main { flex: 1; min-width: 0; }
.account-name { font-weight: 700; font-size: 15px; }
.account-number { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.account-right { text-align: right; }
.account-balance { font-size: 18px; font-weight: 800; letter-spacing: -0.025em; }
.account-meta { font-size: 10.5px; color: var(--green); margin-top: 4px; font-weight: 700; }
.insurance-row {
  border-top: 1px solid var(--border); padding: 14px 18px;
  display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); line-height: 1.4;
}
.insurance-row .icon { color: var(--green); }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 18px; }
.quick-btn {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 13px 3px 11px; display: flex; flex-direction: column; align-items: center;
  gap: 9px; min-height: 94px; box-shadow: var(--shadow);
}
.quick-icon {
  width: 42px; height: 42px; border-radius: 14px; background: #f1f4f8;
  color: var(--navy); display: grid; place-items: center;
}
.quick-label { font-size: 10.5px; font-weight: 700; text-align: center; }
.info-strip {
  margin-top: 18px; padding: 14px 16px; border-radius: 16px;
  background: #e9eef5; color: var(--navy); display: flex; gap: 10px;
  font-size: 11.5px; line-height: 1.5;
}
.service-list { overflow: hidden; }
.service-row {
  display: flex; align-items: center; gap: 13px; padding: 15px 17px;
  width: 100%; text-align: left;
}
.service-row + .service-row { border-top: 1px solid var(--border); }
.service-icon {
  width: 42px; height: 42px; border-radius: 13px; background: #f1f4f8;
  color: var(--navy); display: grid; place-items: center; flex: 0 0 auto;
}
.service-copy { flex: 1; }
.service-copy strong { display: block; font-size: 13.5px; }
.service-copy span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.chev { color: #98a2ae; }

/* ---------- Deposit center ---------- */
.deposit-list {
  margin-top: 20px; overflow: hidden; border-radius: 24px;
  border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow);
}
.deposit-row {
  display: flex; align-items: center; gap: 15px; padding: 17px 16px;
  min-height: 92px; width: 100%; text-align: left;
}
.deposit-row + .deposit-row { border-top: 1px solid var(--border); }
.deposit-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #f0f2f5;
  color: var(--navy); display: grid; place-items: center; flex: 0 0 auto;
}
.deposit-copy { flex: 1; min-width: 0; }
.deposit-title { font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.deposit-sub { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.under-list { margin: 14px 4px 0; font-size: 10.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Detail / shipping ---------- */
.facility-visual {
  height: 168px; border-radius: 20px; margin-top: 20px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #d8e0e9 0%, #b8c6d6 100%);
  display: grid; place-items: center; color: #5f7187;
}
.facility-visual::before {
  content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,0.32); right: -50px; top: -90px;
}
.facility-visual .icon { width: 76px; height: 76px; stroke-width: 1.2; }
.facility-tag {
  position: absolute; bottom: 12px; left: 14px; background: rgba(255,255,255,0.9);
  color: var(--navy); padding: 7px 10px; border-radius: 10px; font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.facility-meta {
  margin: -16px 12px 0; position: relative; background: var(--card);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
}
.facility-meta .icon { color: var(--green); }
.facility-meta strong { display: block; font-size: 12.5px; }
.facility-meta span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.detail-card { margin-top: 18px; padding: 4px 18px; }
.detail-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: 0; }
.detail-label { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }
.detail-value { font-size: 12.5px; font-weight: 700; text-align: right; max-width: 64%; line-height: 1.4; }
.copy-wrap { margin-top: 16px; }

/* ---------- Courier tracking ---------- */
.map-card { overflow: hidden; border-radius: 24px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-wrap { height: 320px; position: relative; background: #e7ecf2; overflow: hidden; }
.map-wrap > svg { width: 100%; height: 100%; display: block; }
.live-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(18, 38, 63, 0.94); color: #fff; border-radius: 999px;
  padding: 7px 11px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.09em;
  display: flex; align-items: center; gap: 6px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ad9a0; box-shadow: 0 0 0 4px rgba(74,217,160,0.18); }
.map-label {
  position: absolute; z-index: 2; background: #fff; border-radius: 9px; padding: 6px 8px;
  font-size: 9px; font-weight: 800; color: var(--navy); box-shadow: 0 4px 10px rgba(25,52,86,0.12);
}
.courier-info { padding: 20px; }
.status-line { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.status-title { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; }
.status-sub { font-size: 11.5px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.eta-box {
  background: var(--navy); color: #fff; border-radius: 16px; padding: 12px 13px;
  text-align: center; min-width: 96px; flex: 0 0 auto;
}
.eta-time { font-size: 16px; font-weight: 800; }
.eta-label { font-size: 9.5px; opacity: 0.8; margin-top: 3px; }
.driver-row {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.avatar {
  width: 48px; height: 48px; border-radius: 50%; background: #dbe5f0; color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: 0 0 auto;
}
.driver-main { flex: 1; min-width: 0; }
.driver-name { font-weight: 700; font-size: 13.5px; }
.driver-role { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.driver-right { text-align: right; }
.reg-badge {
  border: 1px solid var(--border); border-radius: 10px; padding: 7px 9px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em; color: var(--navy); white-space: nowrap;
}
.vehicle-meta { font-size: 10px; color: var(--muted); margin-top: 7px; line-height: 1.4; }
.courier-footer {
  margin-top: 17px; padding-top: 14px; border-top: 1px dashed var(--border);
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700;
}

/* ---------- Claims shell ---------- */
body[data-shell="claims"] .bottom-nav,
body[data-shell="claims"] .nav-shell--sidebar { display: none; }
body[data-shell="claims"] .content-shell { padding-bottom: 0; }
body[data-shell="claims"] .topbar {
  max-width: none; margin: 0; border-radius: 0 0 20px 20px;
  padding: 16px 20px; grid-template-columns: 44px 1fr 60px;
  background: var(--navy); color: #fff; box-shadow: 0 8px 24px rgba(25,52,86,0.16);
}
body[data-shell="claims"] .icon-btn {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.14); color: #fff; box-shadow: none;
}
body[data-shell="claims"] .brand-mark { background: rgba(255,255,255,0.16); }
body[data-shell="claims"] .brand-lockup { justify-content: flex-start; }
body[data-shell="claims"] .brand-name { font-size: 13px; letter-spacing: 0.04em; }
body[data-shell="claims"] .brand-sub { color: rgba(255,255,255,0.66); }
body[data-shell="claims"] .app-main { max-width: 720px; padding: 0 0 60px; }
.claims-inner { padding: 20px 20px 0; }
.claims-heading { color: var(--navy); margin: 4px 0 20px; }
.claims-heading h1 { font-size: 22px; letter-spacing: -0.03em; margin: 0; }
.claims-heading p { font-size: 11px; color: var(--muted); margin: 5px 0 0; }
.case-card { overflow: hidden; margin-bottom: 16px; }
.case-amount { padding: 22px; font-size: 30px; font-weight: 800; letter-spacing: -0.035em; color: var(--navy); }
.case-amount small {
  display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 800; margin-bottom: 7px;
}
.case-link {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px; width: 100%; text-align: left;
  border-top: 1px solid var(--border);
}
.case-link-copy { flex: 1; }
.case-link-copy strong { display: block; font-size: 13.5px; }
.case-link-copy span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.field-block { padding: 18px 20px; border-top: 1px solid var(--border); }
.case-card > .field-block:first-child { border-top: 0; }
.field-label {
  font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); font-weight: 800;
}
.field-value { font-size: 14.5px; font-weight: 700; margin-top: 7px; line-height: 1.45; }
.field-sub { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.institution-row { display: flex; align-items: center; gap: 12px; }
.institution-logo {
  width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: 0 0 auto;
}

/* ---------- Evidence ---------- */
.evidence-card { padding: 20px; }
.evidence-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.evidence-top h2 { font-size: 18px; letter-spacing: -0.025em; margin: 0; }
.evidence-top p { font-size: 11.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.evidence-count {
  background: #eef2f7; color: var(--navy); border-radius: 12px; padding: 9px 11px;
  font-size: 11px; font-weight: 800; text-align: center; flex: 0 0 auto;
}
.evidence-count strong { display: block; font-size: 17px; }
.gallery-bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; margin: 18px 0 12px; }
.gallery-btn {
  width: 44px; height: 44px; border-radius: 50%; background: #eef2f7; color: var(--navy);
  display: grid; place-items: center;
}
.gallery-counter { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.evidence-preview {
  width: 100%; border-radius: 16px; border: 1px solid var(--border);
  display: block; aspect-ratio: 3 / 2; object-fit: cover; background: #e9edf2;
}
.evidence-meta { margin-top: 15px; }
.evidence-meta h3 { font-size: 14px; margin: 0; }
.meta-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 11px; }
.meta-row:last-child { border-bottom: 0; }
.meta-row span { color: var(--muted); }
.meta-row strong { text-align: right; font-weight: 700; }
.customer-action { margin-top: 16px; padding: 20px; }
.customer-action .page-kicker { color: var(--green); }
.customer-action h2 { font-size: 18px; margin: 8px 0 0; letter-spacing: -0.025em; }
.customer-action p { font-size: 11.5px; color: var(--muted); line-height: 1.55; margin: 8px 0 16px; }

/* ---------- Forms / report ---------- */
.stepper { display: flex; gap: 6px; margin: 18px 0 20px; }
.step-dot { height: 5px; flex: 1; border-radius: 999px; background: #dfe4ea; }
.step-dot.is-active { background: var(--navy); }
.step-dot.is-done { background: var(--green); }
.form-card { padding: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.field-hint { font-size: 10.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 14px; background: #fff; color: var(--text); outline: none; font-size: 13px;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(25,52,86,0.08); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.option-card {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px;
  background: #fff; width: 100%; text-align: left;
}
.option-card.is-selected { border-color: var(--navy); background: #f4f7fb; }
.radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b9c2cd; flex: 0 0 auto; }
.option-card.is-selected .radio-dot { border-color: var(--navy); background: var(--navy); box-shadow: inset 0 0 0 4px #fff; }
.option-copy strong { display: block; font-size: 13px; }
.option-copy span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.upload-box {
  border: 1.5px dashed #c9d2dd; border-radius: 16px; padding: 22px 16px; text-align: center;
  background: #fafbfc; color: var(--muted);
}
.upload-box .icon { margin: 0 auto 8px; color: var(--navy); }
.upload-box strong { display: block; color: var(--text); font-size: 13px; }
.file-chip {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px;
  background: #eef2f7; border-radius: 12px; margin-top: 10px; font-size: 11.5px; font-weight: 600;
}
.review-block { padding: 13px 0; border-bottom: 1px solid var(--border); }
.review-block:last-child { border-bottom: 0; }
.review-block span { display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.review-block strong { display: block; font-size: 13px; margin-top: 6px; line-height: 1.5; }
.success-card { padding: 26px 20px; text-align: center; }
.success-icon {
  width: 62px; height: 62px; border-radius: 50%; background: #e6f6ef; color: var(--green);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.success-icon .icon { width: 32px; height: 32px; }
.success-card h2 { font-size: 20px; margin: 0; letter-spacing: -0.03em; }
.success-card p { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 9px 0 18px; }
.ref-box { background: #eef2f7; border-radius: 14px; padding: 13px; margin-bottom: 18px; }
.ref-box span { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; }
.ref-box strong { display: block; font-size: 17px; margin-top: 5px; letter-spacing: 0.04em; }

/* ---------- Simple utility pages ---------- */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.tile {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 17px;
  box-shadow: var(--shadow); text-align: left; min-height: 118px; display: flex; flex-direction: column; gap: 10px;
}
.tile-icon { width: 40px; height: 40px; border-radius: 13px; background: #f1f4f8; color: var(--navy); display: grid; place-items: center; }
.tile strong { font-size: 13px; }
.tile span { font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.txn-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.txn-row + .txn-row { border-top: 1px solid var(--border); }
.txn-icon { width: 38px; height: 38px; border-radius: 50%; background: #f1f4f8; color: var(--navy); display: grid; place-items: center; }
.txn-main { flex: 1; }
.txn-main strong { display: block; font-size: 12.5px; }
.txn-main span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.txn-amount { font-size: 13px; font-weight: 800; }
.txn-amount.in { color: var(--green); }
/* ---------- Auth + admin ---------- */
.auth-wrap { max-width: 560px; width: 100%; margin: 10px auto 0; }

/* Sign-in pages as full-size pages (chrome hidden): center the card
   vertically & horizontally at the same content width as other pages. */
/* Auth pages: topbar stays a full-width bar at the very top; the sign-in card
   is centered horizontally below it (normal block flow — do NOT flex, that
   lays the topbar and the card out side by side). */
body.auth-layout .content-shell {
  min-height: 100vh;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}
body.auth-layout .app-main { max-width: 600px; }
body.auth-layout .auth-wrap { margin: 12vh auto 0; }
body.auth-layout .auth-wrap { margin: 0 auto; padding: 16px; }
body.auth-layout .app-main { width: 100%; max-width: 600px; margin: 0 auto; }
.auth-card { padding: 28px 22px; text-align: center; }
.auth-title { font-size: 23px; letter-spacing: -0.035em; margin: 0; }
.auth-sub { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 8px 0 20px; }
.auth-card .field { text-align: left; }
.credential-box {
  background: #eef2f7; border-radius: 14px; padding: 13px; margin-top: 18px;
  display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted);
}
.credential-box strong { font-size: 14px; color: var(--navy); letter-spacing: 0.04em; }
.auth-info-card, .auth-admin-card { padding: 20px 18px; margin-top: 14px; text-align: left; }
.auth-info-title { font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-bottom: 12px; }
.auth-nav-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.auth-nav-chip {
  display: flex; align-items: center; gap: 8px; background: #f1f4f8; border-radius: 11px;
  padding: 10px 11px; font-size: 11.5px; font-weight: 700; color: var(--navy);
}
.auth-admin-card { background: #193456; color: #fff; }
.auth-admin-title { font-size: 16px; letter-spacing: -0.025em; margin: 0; }
.auth-admin-card .auth-sub { color: #c4d2e2; }
.auth-admin-card .credential-box { background: rgba(255,255,255,0.1); color: #dae5f1; }
.auth-admin-card .credential-box strong { color: #fff; }
.auth-admin-card .demo-note { color: #b9c9db; }
.admin-url {
  background: rgba(255,255,255,0.14); border: 1px dashed rgba(255,255,255,0.45);
  border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 800;
  letter-spacing: 0.03em; color: #fff; word-break: break-all;
}
.auth-admin-card .btn-secondary { background: #fff; color: var(--navy); border-color: #fff; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 15px; box-shadow: var(--shadow);
}
.stat-card span { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.stat-card strong { display: block; font-size: 23px; letter-spacing: -0.03em; margin-top: 6px; color: var(--navy); }
.admin-user { padding: 15px 17px; }
.admin-user + .admin-user { border-top: 1px solid var(--border); }
.admin-user-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.admin-user-head strong { display: block; font-size: 13.5px; }
.admin-user-head span:not(.pill) { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.pill--muted { background: #eef2f7; color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.admin-actions .btn { padding: 9px 11px; font-size: 11px; border-radius: 11px; }

.card-visual {
  border-radius: 22px; background: linear-gradient(135deg, #193456, #0e2036); color: #fff;
  padding: 22px; min-height: 190px; position: relative; overflow: hidden; box-shadow: 0 16px 34px rgba(25,52,86,0.22);
}
.card-visual::after { content: ''; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; right: -70px; top: -80px; }
.card-visual .brand-mark { background: rgba(255,255,255,0.16); }
.card-number { font-size: 18px; letter-spacing: 0.14em; margin-top: 34px; font-weight: 600; }
.card-foot { display: flex; justify-content: space-between; margin-top: 22px; font-size: 10px; opacity: 0.8; letter-spacing: 0.08em; }

/* ---------- Toast + modal ---------- */
.toast-region {
  position: fixed; z-index: 80; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(420px, calc(100% - 32px));
  pointer-events: none; display: flex; flex-direction: column; gap: 8px;
}
.secure-splash {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 50% -120px, rgba(28,60,110,0.08), transparent 60%),
    linear-gradient(180deg, #f4f7fb 0%, #eef2f8 100%);
}
.secure-splash-inner { width: min(440px, 92vw); text-align: center; }
.secure-splash-logo {
  width: 96px; height: 96px; margin: 0 auto 20px auto; border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(16,42,74,0.10);
  box-shadow: 0 12px 30px rgba(16,42,74,0.16), inset 0 0 0 6px #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.secure-splash-title { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--navy); white-space: nowrap; }
.secure-splash-sub { margin: 0 0 24px; font-size: 13px; color: var(--muted); }
.secure-loader {
  height: 6px; border-radius: 99px; background: rgba(16,42,74,0.10); overflow: hidden;
}
.secure-loader > span {
  display: block; height: 100%; width: 0; border-radius: 99px; position: relative;
  background:
    repeating-linear-gradient(-45deg,
      #14284a 0 12px,
      var(--brand) 12px 24px);
  background-size: 34px 34px;
  animation: secure-loader-fill 1.45s cubic-bezier(0.25, 0.8, 0.35, 1) forwards,
             secure-loader-stripes 0.7s linear infinite;
  box-shadow: 0 0 8px rgba(40,90,170,0.35);
}
.secure-loader > span::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
  animation: secure-loader-shine 0.9s ease-in-out infinite;
}
@keyframes secure-loader-fill { 0% { width: 0%; } 100% { width: 100%; } }
@keyframes secure-loader-stripes { to { background-position: 34px 0; } }
@keyframes secure-loader-shine { to { transform: translateX(100%); } }
.secure-splash-note { margin: 16px 0 0; font-size: 11px; letter-spacing: 0.04em; color: rgba(16,42,74,0.50); }

.toast {
  background: var(--navy-deep); color: #fff; border-radius: 14px; padding: 12px 14px;
  font-size: 12.5px; line-height: 1.4; box-shadow: 0 12px 28px rgba(18,38,63,0.25);
  animation: toast-in 0.18s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(15,28,45,0.52);
  display: grid; place-items: end center; padding: 14px;
}
.modal {
  background: #fff; border-radius: 22px; width: min(460px, 100%); padding: 20px;
  box-shadow: 0 24px 60px rgba(15,28,45,0.25); animation: modal-in 0.2s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.modal-head h2 { font-size: 17px; margin: 0; letter-spacing: -0.02em; }
.modal p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }

/* ---------- Responsive ---------- */
@media (min-width: 600px) and (max-width: 959px) {
  :root { --app-max: 560px; }
  .deposit-icon { width: 64px; height: 64px; }
  .deposit-row { min-height: 104px; }
  .map-wrap { height: 380px; }
}
@media (min-width: 960px) {
  body.auth-layout .app-frame { grid-template-columns: 1fr; max-width: 1180px; }
  body.auth-layout .content-shell { padding-bottom: 0; }
  .app-frame { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 250px 1fr; gap: 34px; padding: 0 32px; }
  .nav-shell--sidebar { display: block; position: sticky; top: 0; height: 100vh; padding: 30px 0; }
  .bottom-nav { display: none; }
  .content-shell { padding-bottom: 0; }
  .topbar { max-width: none; padding: 30px 0 18px; }
  .app-main { max-width: none; padding: 0 0 60px; }
  .welcome h1 { font-size: 34px; }
  .deposit-icon { width: 66px; height: 66px; }
  .deposit-row { min-height: 108px; padding: 20px; }
  .map-wrap { height: 420px; }
  .quick-btn { min-height: 108px; }
  body[data-shell="claims"] .app-frame { display: block; max-width: none; padding: 0; }
}
@media print {
  body { background: #fff; }
  .topbar, .bottom-nav, .nav-shell, .toast-region, .no-print { display: none !important; }
  .app-frame, .content-shell, .app-main, .claims-inner { max-width: none; padding: 0; margin: 0; display: block; }
  .card, .case-card { box-shadow: none; border: 1px solid #d5d9df; break-inside: avoid; }
  .claims-heading { color: var(--navy); }
}


/* courier live map */
.courier-map-shell { position: relative; height: 100%; }
.courier-map-loading {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, #eef2f8, #e6edf5); color: var(--muted); font-size: 13px;
}
.spinner {
  width: 36px; height: 36px; border: 3px solid rgba(16,42,74,0.15); border-top-color: #193456;
  border-radius: 50%; animation: courier-spin 1s linear infinite; margin: 0 auto 10px;
}
@keyframes courier-spin { to { transform: rotate(360deg); } }


/* ── courier tracking hero (mobile-first) ───────────────────────────────── */
.map-hero {
  position: relative;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 42, 74, 0.12);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  background: #e8eef5;
}
.map-hero-canvas { width: 100%; height: 100%; }
.map-float-status {
  position: absolute; top: 14px; left: 14px; z-index: 500;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px;
  padding: 8px 14px; box-shadow: 0 6px 18px rgba(16, 42, 74, 0.16);
  font-size: 13px; font-weight: 700; color: var(--navy);
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-green { background: #2e7d32; box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.18); }
.dot-gold { background: #f9a825; box-shadow: 0 0 0 4px rgba(249, 168, 37, 0.18); }
.eta-pill {
  background: var(--navy); color: #fff; border-radius: 999px;
  padding: 2px 10px; font-size: 12px; font-weight: 700;
}
.marker-pin {
  width: 16px; height: 16px; background: #0f4ac7; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(16,42,74,0.35);
}
.tracking-card-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.tracking-block h3 { margin: 0 0 10px; font-size: 14px; color: var(--navy); }
.courier-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.courier-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-size: 18px; font-weight: 800; letter-spacing: 0.02em;
}
.courier-name { font-weight: 800; font-size: 16px; color: var(--navy); letter-spacing: -0.01em; }
.courier-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.vehicle-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: rgba(16,42,74,0.05);
  border: 1px solid var(--border); border-radius: 10px;
}
.vehicle-name { font-weight: 600; color: var(--navy); }
.vehicle-reg {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  background: #fff; border: 1.5px solid #193456; color: #193456;
  font-weight: 800; font-size: 12px; letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .map-hero { height: 300px; }
  .tracking-card-grid { gap: 16px; }
  .map-float-status { font-size: 12px; padding: 7px 12px; }
}
@media (min-width: 768px) {
  .tracking-card-grid { grid-template-columns: 1fr 1fr; }
}

/* bottom nav: consistent icon+label spacing; white bg + top border (already fixed) */
.app-bottomnav { background: #fff; border-top: 1.5px solid var(--border); }


/* courier reference layout refresh */
.tracking-card { padding: 18px 18px 16px; }
.tracking-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tracking-headline { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: #111827; }
.eta-badge {
  min-width: 62px; text-align: center; padding: 8px 10px;
  background: #0f1d2d; color: #fff; border-radius: 9px; flex: 0 0 auto;
}
.eta-badge-num { font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
.eta-badge-sub { margin-top: 3px; font-size: 8.5px; letter-spacing: 0.18em; font-weight: 700; opacity: 0.85; }
.tracking-address-line { margin: 10px 0 0; font-size: 12.5px; color: #6b7280; }
.tracking-divider { height: 1px; background: #e5e7eb; margin: 16px 0 14px; }
.tracking-profile { display: flex; align-items: center; gap: 12px; }
.courier-avatar-sm {
  width: 32px; height: 32px; border-radius: 50%; background: #e9edf2; color: #4b5563;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: 0 0 auto;
}
.courier-id { flex: 1; min-width: 0; }
.courier-name { font-weight: 700; font-size: 15px; color: #111827; letter-spacing: -0.01em; }
.courier-role { font-size: 11.5px; color: #6b7280; margin-top: 2px; }
.vehicle-info { flex: 0 0 auto; text-align: right; }
.vehicle-reg {
  display: inline-block; padding: 3px 9px; border: 1.5px solid #111827; border-radius: 6px;
  font-weight: 800; font-size: 12px; letter-spacing: 0.08em; color: #111827; background: #fff;
}
.vehicle-desc { margin-top: 5px; font-size: 11.5px; color: #6b7280; }
.tracking-assurance {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 14px; font-size: 11.5px; color: #6b7280;
}
.assurance-mark { font-weight: 800; color: #111827; letter-spacing: 0.06em; }

/* destination marker: white circle with house glyph */
.courier-dest-marker {
  width: 30px; height: 30px; border-radius: 50%; background: #fff;
  border: 1.5px solid #d8dee6; box-shadow: 0 3px 8px rgba(16,42,74,0.2);
  display: grid; place-items: center;
}
.courier-chip {
  width: 34px; height: 22px; border-radius: 999px; background: #0f1d2d;
  display: grid; place-items: center; box-shadow: 0 1.5px 5px rgba(16,42,74,0.35), 0 0 0 2px #fff;
}

@media (max-width: 640px) {
  .tracking-headline { font-size: 18px; }
  .eta-badge-num { font-size: 18px; }
}


/* courier page professional polish */
.card.tracking-card {
  border: 1px solid rgba(16,42,74,0.10);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(16,42,74,0.08);
  padding: 20px 20px 18px;
}
.tracking-headline { font-size: 20px; }
.map-float-status { backdrop-filter: blur(6px); background: rgba(255,255,255,0.92); }


/* pickup meta chip rows */
.pickup-meta-rows { display: grid; gap: 8px; margin-top: 12px; }
.pickup-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: rgba(16,42,74,0.04);
  border: 1px solid var(--border); border-radius: 10px; font-size: 13px;
}
.pickup-meta-label { color: var(--muted); font-weight: 600; letter-spacing: 0.01em; flex: 0 0 auto; }
.pickup-meta-value { color: var(--navy); font-weight: 700; text-align: right; }


/* admin console professional layout */
.section-title {
  margin: 26px 0 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: #193456; opacity: 0.92;
}
.card {
  background: #fff; border: 1px solid rgba(16,42,74,0.08); border-radius: 14px;
  box-shadow: 0 6px 18px rgba(16,42,74,0.05); padding: 18px 20px;
}
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
  margin: 12px 0 20px;
}
.stat-card {
  background: linear-gradient(135deg, #f4f8fc, #eef3fa); border: 1px solid rgba(16,42,74,0.08);
  border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
}
.stat-card span { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; }
.stat-card strong { font-size: 22px; font-weight: 800; color: #193456; }
.admin-user {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  margin-bottom: 10px;
}


/* exact geometric centering for auth pages */
body.auth-layout #topbar .brand-lockup { justify-content: center; width: 100%; }
body.auth-layout .brand-lockup .brand-name { margin-left: auto; margin-right: auto; }
body.auth-layout #app { align-items: center; }
body.auth-layout .auth-card { margin-top: 0; }


/* pin final centering */
body.auth-layout #topbar { justify-content: center; }
body.auth-layout #topbar .brand-lockup { justify-content: center; display: flex; width: 100%; }
body.auth-layout #topbar .brand-lockup .brand-name { justify-content: center; }
body.auth-layout #app { padding-bottom: 0; }


/* account overview rounded tiles */
.account-card, [class*='account-tile'] { border-radius: 16px; }
.overview .accounts .account-card { border-radius: 16px; }


/* account overview rows rounded */
.account-row { border-radius: 16px; overflow: hidden; }
