/* =========================================================
   TrustWay Global Shipping: design system
   ========================================================= */
:root {
  --bg: #050a16;
  --bg-2: #0a1428;
  --bg-3: #101d38;
  --glass: rgba(16, 29, 56, 0.58);
  --glass-strong: rgba(12, 22, 44, 0.86);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eaf0fb;
  --muted: #8d9ab5;
  --dim: #5d6a85;
  --emerald: #34d399;
  --emerald-2: #10b981;
  --gold: #d4af6a;
  --gold-2: #f1d59a;
  --amber: #fbbf24;
  --rose: #fb7185;
  --blue: #7aa2ff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold-2); }
code { font-family: var(--mono); font-size: 0.9em; background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 6px; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.muted { color: var(--muted); }

/* ---------- Ambient background ---------- */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(212,175,106,.14), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(16,185,129,.12), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(58,92,190,.22), transparent 60%),
    var(--bg);
}
.ambient::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
}

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(145deg, #1d2d52, #0b1630);
  border: 1px solid rgba(212,175,106,.45);
  box-shadow: 0 0 0 4px rgba(212,175,106,.06), inset 0 1px 0 rgba(255,255,255,.1);
  color: var(--gold-2);
}
.brand-name { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: .01em; line-height: 1; }
.brand-sub { display: block; font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 3px; font-weight: 700; }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
  padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s;
  text-decoration: none; color: var(--text); white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:hover { background: rgba(255,255,255,.08); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-gold {
  background: linear-gradient(135deg, #f3dca6, #c89c4f 60%, #a77b32);
  color: #1b1405; border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(212,175,106,.7), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-gold:hover { background: linear-gradient(135deg, #f7e3b3, #d3a85b 60%, #b0853a); }
.btn-emerald { background: linear-gradient(135deg, #34d399, #059669); color: #03150e; border-color: transparent; }
.btn-danger { color: var(--rose); border-color: rgba(251,113,133,.35); }
.btn-sm { padding: 8px 12px; font-size: 12.5px; border-radius: 11px; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 13px; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.input, select.input, textarea.input {
  width: 100%; background: rgba(4,10,24,.6); border: 1px solid var(--line-2);
  border-radius: 13px; padding: 12px 14px; font-size: 16px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { resize: vertical; min-height: 84px; }
.input:focus { border-color: rgba(212,175,106,.6); box-shadow: 0 0 0 4px rgba(212,175,106,.1); }
select.input { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238d9ab5' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
input[type="datetime-local"].input { min-height: 48px; }

/* Range sliders */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--emerald) var(--fill, 50%), rgba(255,255,255,.1) var(--fill, 50%));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--emerald); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 4px solid var(--emerald-2); box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--emerald-2);
}

/* Toggle */
.toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle i {
  width: 42px; height: 24px; border-radius: 99px; background: rgba(255,255,255,.12);
  position: relative; transition: background .2s; flex: none;
}
.toggle i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .2s;
}
.toggle input:checked + i { background: var(--emerald-2); }
.toggle input:checked + i::after { transform: translateX(18px); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid; white-space: nowrap;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.pill-emerald { color: var(--emerald); border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.pill-emerald i { animation: blink 1.6s infinite; }
.pill-gold { color: var(--gold-2); border-color: rgba(212,175,106,.4); background: rgba(212,175,106,.1); }
.pill-amber { color: var(--amber); border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.pill-rose { color: var(--rose); border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.08); }
.pill-blue { color: var(--blue); border-color: rgba(122,162,255,.35); background: rgba(122,162,255,.08); }
.pill-slate { color: #b7c2d8; border-color: rgba(183,194,216,.3); background: rgba(183,194,216,.06); }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Map markers ---------- */
.tw-marker { background: none; border: 0; }
.mk-origin {
  width: 22px; height: 22px; border-radius: 50%; background: #0b1630;
  border: 3px solid var(--emerald); box-shadow: 0 0 0 5px rgba(52,211,153,.18);
}
.mk-dest { width: 30px; height: 30px; display: grid; place-items: center; }
.mk-dest span {
  width: 18px; height: 18px; transform: rotate(45deg); border-radius: 4px;
  background: linear-gradient(135deg, #f7e3b3, #c89c4f);
  box-shadow: 0 0 0 5px rgba(212,175,106,.2), 0 6px 18px rgba(0,0,0,.6);
}
.mk-current { position: relative; width: 48px; height: 48px; display: grid; place-items: center; }
.mk-core {
  position: relative; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #03150e;
  background: radial-gradient(circle at 30% 30%, #7ff0c4, #10b981);
  border: 2px solid #eafff6; box-shadow: 0 8px 24px rgba(16,185,129,.55);
}
.mk-pulse {
  position: absolute; inset: 4px; border-radius: 50%; border: 2px solid var(--emerald);
  animation: pulse 2.4s ease-out infinite;
}
.mk-pulse.d2 { animation-delay: 1.2s; }
@keyframes pulse { from { transform: scale(.7); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }

.leaflet-container { background: #0a1224; font-family: var(--font); }
.leaflet-control-attribution {
  background: rgba(5,10,22,.65) !important; color: var(--dim) !important; font-size: 9.5px !important;
  border-radius: 8px 0 0 0;
}
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-tooltip.tw-tip {
  background: var(--glass-strong); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 10px; font-weight: 700; font-size: 12px; padding: 5px 9px; box-shadow: var(--shadow);
}
.leaflet-tooltip.tw-tip::before { border-top-color: var(--line-2); }
.leaflet-bar a { background: var(--glass-strong) !important; color: var(--text) !important; border-color: var(--line) !important; }

/* =========================================================
   CLIENT TRACKER
   ========================================================= */
.landing {
  min-height: 100svh; display: flex; flex-direction: column; padding: 20px 18px calc(24px + var(--safe-b));
  max-width: 560px; margin: 0 auto;
}
.landing-top { display: flex; justify-content: space-between; align-items: center; }
.landing-hero { min-height: calc(100svh - 70px); display: flex; flex-direction: column; justify-content: center; padding: 30px 0 10px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--display); font-weight: 500; font-size: clamp(38px, 10vw, 56px); line-height: 1.02;
  margin: 16px 0 14px; letter-spacing: -.02em;
}
.hero-title em { font-style: italic; color: var(--gold-2); }
.hero-copy { color: var(--muted); font-size: 16px; margin: 0 0 28px; max-width: 420px; }
.track-form { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.track-form .input {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 17px;
  padding: 16px; background: rgba(4,10,24,.7);
}
.track-form .btn { padding: 16px; font-size: 15px; }
.form-error { color: var(--rose); font-size: 13.5px; min-height: 20px; padding: 0 6px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.feature { padding: 14px 12px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.feature svg { color: var(--gold); }
.feature b { display: block; font-size: 12.5px; margin-top: 8px; }
.feature small { color: var(--dim); font-size: 11px; }
.landing-foot { text-align: center; color: var(--dim); font-size: 11.5px; letter-spacing: .06em; }

/* Tracker layout */
.tracker-map {
  position: fixed; top: 0; left: 0; right: 0; height: 54svh; z-index: 1;
}
.map-fade {
  position: fixed; top: 0; left: 0; right: 0; height: 110px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,10,22,.85), transparent);
}
.topbar {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 12px; border-radius: 18px;
}
.topbar .brand-name { font-size: 17px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.code-chip {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  padding: 8px 10px; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid var(--line);
  color: var(--gold-2);
}
.map-recenter { position: fixed; z-index: 5; right: 14px; top: calc(54svh - 108px); }

.sheet {
  position: relative; z-index: 10; margin-top: calc(54svh - 44px);
  background: linear-gradient(180deg, rgba(10,20,40,.94), var(--bg) 220px);
  border-top-left-radius: 28px; border-top-right-radius: 28px;
  border-top: 1px solid var(--line-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 10px 16px calc(110px + var(--safe-b));
  min-height: 60svh;
  box-shadow: 0 -30px 60px -20px rgba(0,0,0,.8);
}
.grabber { width: 42px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.18); margin: 2px auto 16px; }

.section { margin-top: 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 10px; }
.section-title { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 0; }
.section-meta { font-size: 11.5px; color: var(--dim); }

.card { padding: 18px; }
.status-card { padding: 18px; }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.status-headline { font-family: var(--display); font-size: 25px; font-weight: 500; line-height: 1.15; margin: 14px 0 6px; letter-spacing: -.01em; }
.status-note { color: var(--muted); font-size: 14.5px; margin: 0; }
.updated { font-size: 11.5px; color: var(--dim); display: inline-flex; align-items: center; gap: 6px; }
.updated .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }

.route-strip { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; margin-top: 18px; }
.route-end small { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.route-end b { display: block; font-size: 15px; font-weight: 700; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-end.right { text-align: right; }
.route-mid { color: var(--gold); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px dashed rgba(212,175,106,.4); }

.progress { margin-top: 18px; }
.progress-track {
  position: relative; height: 10px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden;
}
.progress-fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, #059669, #34d399 70%, #b8f5dc);
  box-shadow: 0 0 20px rgba(52,211,153,.5);
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.progress-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  background-size: 60px 100%; background-repeat: no-repeat; animation: sheen 2.6s infinite;
}
@keyframes sheen { from { background-position: -60px 0; } to { background-position: calc(100% + 60px) 0; } }
.progress-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.progress-meta b { color: var(--text); }

.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; margin-top: 18px; border-radius: 16px; overflow: hidden; background: var(--line); }
.stat { background: rgba(8,16,34,.9); padding: 12px; }
.stat small { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.stat b { display: block; font-size: 13.5px; margin-top: 3px; line-height: 1.3; overflow-wrap: anywhere; }

/* Cargo card */
.cargo { display: flex; gap: 14px; align-items: center; padding: 14px; }
.cargo-photo {
  width: 74px; height: 74px; border-radius: 18px; object-fit: cover; flex: none;
  border: 1px solid var(--line-2); background: var(--bg-3) center/cover;
  display: grid; place-items: center; color: var(--gold);
}
.cargo-name { font-family: var(--display); font-size: 21px; font-weight: 500; margin: 0; line-height: 1.15; }
.cargo-desc { color: var(--muted); font-size: 13.5px; margin: 2px 0 0; }
.cargo-tag { display: inline-block; margin-top: 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 800; }

/* Telemetry */
.telemetry { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.tile { padding: 16px; position: relative; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; }
.tile::before {
  content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -60px; top: -60px;
  background: radial-gradient(circle, var(--tile-glow, rgba(52,211,153,.18)), transparent 70%);
}
.tile-head { display: flex; justify-content: space-between; align-items: center; }
.tile-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.tile-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--emerald); }
.tile-value { font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin-top: 12px; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-value small { font-size: 15px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.tile-foot { margin-top: auto; padding-top: 12px; }
.tile-state { font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.tile-state.ok { color: var(--emerald); }
.tile-state.warn { color: var(--amber); }
.tile-state.bad { color: var(--rose); }
.tile-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.gauge { position: relative; height: 8px; border-radius: 99px; margin-top: 10px;
  background: linear-gradient(90deg, #4f7cff 0%, #34d399 35%, #34d399 60%, #fbbf24 80%, #fb7185 100%); opacity: .9; }
.gauge-needle {
  position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%); border: 3px solid var(--bg); box-shadow: 0 0 0 2px rgba(255,255,255,.4);
  transition: left 1s cubic-bezier(.2,.8,.2,1);
}
.ring { position: absolute; right: 14px; bottom: 14px; }
.ring circle { transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; border-radius: 99px; transition: width 1s; }
.tile-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.unit-toggle { font-size: 11px; font-weight: 800; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 18px 16px 6px; position: relative; }
.tl-item { position: relative; padding: 0 0 22px 36px; animation: rise .5s both; }
.tl-item::before {
  content: ""; position: absolute; left: 11px; top: 26px; bottom: -2px; width: 2px;
  background: linear-gradient(var(--line-2), var(--line));
}
.tl-item:last-child::before { display: none; }
.tl-node {
  position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-3); border: 1.5px solid var(--line-2); color: var(--muted);
}
.tl-item.milestone .tl-node { border-color: var(--gold); color: var(--gold-2); background: rgba(212,175,106,.1); }
.tl-item.care .tl-node { border-color: rgba(52,211,153,.6); color: var(--emerald); background: rgba(52,211,153,.08); }
.tl-item.latest .tl-node { box-shadow: 0 0 0 6px rgba(52,211,153,.12); }
.tl-item.latest.milestone .tl-node { box-shadow: 0 0 0 6px rgba(212,175,106,.14); }
.tl-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tl-title { font-weight: 700; font-size: 15px; }
.tl-time { font-size: 11.5px; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-note { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.tl-kind { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--dim); margin-top: 6px; }
.tl-badge { font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #03150e; background: var(--emerald); padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.empty { color: var(--dim); font-size: 13.5px; text-align: center; padding: 18px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.handler { display: flex; align-items: center; gap: 12px; padding: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(212,175,106,.5); background: var(--bg-3); display: grid; place-items: center; color: var(--gold); font-weight: 800; flex: none; }
.foot-note { text-align: center; color: var(--dim); font-size: 11.5px; margin-top: 26px; letter-spacing: .04em; }

/* ---------- Chat ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(18px + var(--safe-b)); z-index: 40;
  width: 60px; height: 60px; border-radius: 20px; border: 0;
  background: linear-gradient(135deg, #f3dca6, #c89c4f 60%, #a77b32); color: #1b1405;
  display: grid; place-items: center;
  box-shadow: 0 16px 40px -10px rgba(212,175,106,.7), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .2s;
}
.fab:active { transform: scale(.94); }
.fab-badge {
  position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 99px; background: var(--rose); color: #fff; font-size: 11.5px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.chat-panel {
  position: fixed; z-index: 50; inset: 0; display: flex; flex-direction: column;
  background: rgba(6,12,26,.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  transform: translateY(105%); transition: transform .38s cubic-bezier(.2,.8,.2,1);
}
.chat-panel.open { transform: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.chat-head h3 { margin: 0; font-size: 16px; }
.chat-head p { margin: 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.presence-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.presence-dot.on { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.4; word-wrap: break-word; white-space: pre-wrap; animation: rise .25s both; }
.msg time { display: block; font-size: 10.5px; opacity: .6; margin-top: 4px; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, #d9b979, #b88c42); color: #1b1405; border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat-day { align-self: center; font-size: 11px; color: var(--dim); letter-spacing: .08em; margin: 6px 0; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-height: 46px; max-height: 120px; resize: none; border-radius: 16px; padding: 12px 14px; }
.chat-welcome { text-align: center; padding: 20px 10px; color: var(--muted); font-size: 13.5px; }
.chat-welcome .brand-mark { margin: 0 auto 10px; width: 48px; height: 48px; border-radius: 16px; }

.state-screen { min-height: 100svh; display: grid; place-items: center; padding: 24px; text-align: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.setup-notice { max-width: 440px; margin: 40px auto; padding: 24px; }
.setup-notice h2 { font-family: var(--display); font-weight: 500; margin-top: 0; }

.toast {
  position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--glass-strong); border: 1px solid var(--line-2); padding: 11px 16px; border-radius: 14px;
  font-size: 13.5px; font-weight: 600; transition: all .3s; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Desktop tracker */
@media (min-width: 1000px) {
  .tracker-map { right: auto; width: calc(100% - 480px); height: 100vh; }
  .map-fade { width: calc(100% - 480px); }
  .topbar { right: auto; width: calc(100% - 480px - 24px); }
  .map-recenter { top: auto; bottom: 24px; right: 504px; }
  .sheet { margin: 0 0 0 auto; width: 480px; min-height: 100vh; border-radius: 0; border-top: 0; border-left: 1px solid var(--line); padding-top: 24px; }
  .grabber { display: none; }
  .chat-panel { inset: auto 24px 24px auto; width: 400px; height: min(640px, calc(100vh - 48px)); border-radius: 24px; border: 1px solid var(--line-2); box-shadow: var(--shadow); transform: translateY(calc(100% + 40px)); }
  .chat-panel.open { transform: none; }
  .chat-head { padding-top: 14px; }
}

/* =========================================================
   ADMIN
   ========================================================= */
.admin-shell { max-width: 1180px; margin: 0 auto; padding: 0 14px calc(120px + var(--safe-b)); }
.admin-top {
  position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 2px; margin: 0 -2px; background: linear-gradient(180deg, var(--bg) 70%, transparent);
}
.admin-badge { font-size: 10px; letter-spacing: .2em; font-weight: 800; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(212,175,106,.35); padding: 4px 8px; border-radius: 8px; }
.login-wrap { min-height: 100svh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 400px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.login-card h1 { font-family: var(--display); font-weight: 500; font-size: 30px; margin: 10px 0 0; }

.admin-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .admin-grid { grid-template-columns: 340px 1fr; align-items: start; } .ship-list-wrap { position: sticky; top: 72px; } }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.kpi b { display: block; font-size: 24px; font-weight: 800; }
.kpi small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.ship-list { display: flex; flex-direction: column; gap: 8px; max-height: none; }
@media (min-width: 960px) { .ship-list { max-height: calc(100vh - 330px); overflow-y: auto; padding-right: 4px; } }
.ship-item {
  display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; text-align: left; width: 100%;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); transition: border-color .2s, background .2s;
}
.ship-item:hover { background: rgba(255,255,255,.05); }
.ship-item.active { border-color: rgba(212,175,106,.55); background: rgba(212,175,106,.06); }
.ship-thumb { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; background: var(--bg-3); flex: none; display: grid; place-items: center; color: var(--gold); }
.ship-info { flex: 1; min-width: 0; }
.ship-info b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ship-info small { font-size: 11.5px; color: var(--muted); }
.unread-dot { min-width: 20px; height: 20px; border-radius: 99px; background: var(--rose); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }

.editor-head { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.editor-title { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.editor-title h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.15; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back-btn { display: none; }
@media (max-width: 959px) {
  .has-selection .ship-list-wrap { display: none; }
  .back-btn { display: inline-flex; }
}
@media (min-width: 960px) { .no-selection-hint:not(.hidden) { display: grid; } }

.tabs {
  position: sticky; top: 64px; z-index: 25; display: flex; gap: 4px; padding: 5px; margin: 14px 0;
  border-radius: 16px; background: rgba(8,16,34,.9); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1; border: 0; background: none; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; position: relative; }
.tab.active { background: rgba(212,175,106,.14); color: var(--gold-2); }
.tab .unread-dot { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; font-size: 9.5px; }

.panel { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.panel h3 { margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .grid-2.stack-sm { grid-template-columns: 1fr; } }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.slider-row { display: flex; flex-direction: column; gap: 4px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; }
.slider-val { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.inline-actions { display: flex; gap: 8px; align-items: flex-end; }
.inline-actions .field { flex: 1; }

.admin-map { height: 340px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.pick-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pick-mode { padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pick-mode.active { border-color: var(--emerald); background: rgba(52,211,153,.1); color: var(--emerald); }
.pick-mode .sw { width: 10px; height: 10px; border-radius: 50%; }
.point-card { padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 8px; }
.point-card .label { display: flex; align-items: center; gap: 8px; }
.search-results { display: flex; flex-direction: column; gap: 4px; }
.search-results button { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 13px; }

.preset-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 12.5px; font-weight: 600; }
.chip:active { background: rgba(212,175,106,.15); }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: rgba(4,10,24,.6); border: 1px solid var(--line-2); }
.seg button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button.active { background: rgba(255,255,255,.1); color: var(--text); }

.log-list { display: flex; flex-direction: column; gap: 8px; }
.log-item { display: flex; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); align-items: flex-start; }
.log-item .k { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; }
.log-item .body { flex: 1; min-width: 0; }
.log-item b { font-size: 14px; }
.log-item p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.log-item small { font-size: 11px; color: var(--dim); }

.admin-chat { display: flex; flex-direction: column; height: min(62svh, 560px); }
.admin-chat .chat-body { border-radius: 16px; background: rgba(4,10,24,.5); border: 1px solid var(--line); }
.admin-chat .chat-form { padding: 10px 0 0; border: 0; }

.save-bar {
  position: fixed; z-index: 60; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translate(-50%, 140%);
  width: min(560px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 16px; border-radius: 18px; background: rgba(12,22,44,.95); border: 1px solid rgba(212,175,106,.4);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.8); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.save-bar.show { transform: translate(-50%, 0); }
.save-bar span { font-size: 13.5px; font-weight: 700; }

.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(2,6,14,.7); display: grid; place-items: end center; padding: 12px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (min-width: 640px) { .modal-back { place-items: center; } }
.modal { width: 100%; max-width: 460px; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: var(--glass-strong); animation: rise .3s both; }
.modal h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 24px; }
.no-selection-hint { display: none; place-items: center; min-height: 320px; text-align: center; color: var(--muted); padding: 30px; }

/* Keep admin columns from growing past the screen on phones */
.admin-grid > * { min-width: 0; }
@media (max-width: 420px) { .admin-badge { display: none; } .admin-top .btn-sm { padding: 8px 10px; } }
.btn-emerald:hover { background: linear-gradient(135deg, #4ee0aa, #059669); }
@media (max-width: 420px) { .tab { padding: 10px 9px; font-size: 12.5px; } }

/* ---------- Live tracking stepper ---------- */
.stages { list-style: none; margin: 0; padding: 20px 16px 2px; }
.stage { position: relative; padding: 0 0 24px 48px; min-height: 58px; }
.stage::before {
  content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; border-radius: 2px;
  background: rgba(255,255,255,.1);
}
.stage:last-child::before { display: none; }
.stage.done::before { background: linear-gradient(var(--emerald), rgba(52,211,153,.55)); box-shadow: 0 0 8px rgba(52,211,153,.4); }
.stage.current::before {
  background: repeating-linear-gradient(180deg, var(--emerald) 0 6px, transparent 6px 12px);
  background-size: 2px 24px; animation: flow 1.1s linear infinite; opacity: .7;
}
@keyframes flow { to { background-position: 0 24px; } }
.stage-node {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: rgba(255,255,255,.03); border: 1.5px solid rgba(255,255,255,.14); color: var(--dim);
  transition: all .4s;
}
.stage.done .stage-node {
  background: linear-gradient(135deg, #34d399, #059669); border-color: transparent; color: #03150e;
  box-shadow: 0 0 14px rgba(52,211,153,.45);
}
.stage.current .stage-node {
  border: 2px solid var(--emerald); background: rgba(52,211,153,.12);
  box-shadow: 0 0 0 6px rgba(52,211,153,.12), 0 0 28px rgba(52,211,153,.75);
  animation: glow 1.8s ease-in-out infinite;
}
.stage-core { width: 12px; height: 12px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 12px var(--emerald); animation: blink 1.2s infinite; }
@keyframes glow {
  50% { box-shadow: 0 0 0 11px rgba(52,211,153,.05), 0 0 42px rgba(52,211,153,.95); }
}
.stage.hold .stage-node { border-color: var(--amber); background: rgba(251,191,36,.12); box-shadow: 0 0 26px rgba(251,191,36,.6); animation: none; }
.stage.hold .stage-core { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.stage.hold::before { display: none; }
.stage-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 6px; }
.stage-label { font-weight: 700; font-size: 15px; color: var(--dim); }
.stage.done .stage-label { color: var(--text); }
.stage.current .stage-label { color: #eafff6; font-size: 16.5px; text-shadow: 0 0 18px rgba(52,211,153,.45); }
.stage-time { font-size: 11.5px; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stage-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.stage-live {
  display: inline-block; margin-left: 8px; vertical-align: 2px; font-size: 9.5px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: #03150e; background: var(--emerald); padding: 3px 7px; border-radius: 6px;
  box-shadow: 0 0 12px rgba(52,211,153,.6);
}
.stage.hold .stage-live { background: var(--amber); box-shadow: 0 0 12px rgba(251,191,36,.6); }

/* Admin stage picker */
.stage-picker { display: flex; flex-direction: column; gap: 6px; }
.sp-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; width: 100%;
  border: 1px solid var(--line); background: rgba(255,255,255,.02); text-align: left;
}
.sp-row .sp-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 800; border: 1.5px solid var(--line-2); color: var(--dim); }
.sp-row.done .sp-dot { background: var(--emerald-2); border-color: transparent; color: #03150e; }
.sp-row.current { border-color: var(--emerald); background: rgba(52,211,153,.08); box-shadow: 0 0 18px rgba(52,211,153,.2); }
.sp-row.current .sp-dot { border-color: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.sp-row.skipped { opacity: .4; }
.sp-row.skipped .sp-name { text-decoration: line-through; }
.sp-main { flex: 1; min-width: 0; }
.sp-name { display: block; font-weight: 700; font-size: 14px; }
.sp-row small { color: var(--dim); font-size: 11px; }
.sp-skip { font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 9px; border: 1px solid var(--line-2); background: none; color: var(--muted); }

/* ---------- Admin notice box (client) ---------- */
.notice {
  --n: var(--gold); --n-bg: rgba(212,175,106,.1); --n-line: rgba(212,175,106,.4);
  position: relative; overflow: hidden; display: flex; gap: 12px; padding: 16px; margin-bottom: 14px;
  border-radius: var(--radius); border: 1px solid var(--n-line);
  background: linear-gradient(135deg, var(--n-bg), rgba(10,20,40,.85) 70%);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 18px 40px -18px var(--n-line);
  animation: rise .5s both;
}
.notice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--n); box-shadow: 0 0 16px var(--n); }
.notice-warning { --n: var(--amber); --n-bg: rgba(251,191,36,.12); --n-line: rgba(251,191,36,.45); }
.notice-urgent { --n: var(--rose); --n-bg: rgba(251,113,133,.13); --n-line: rgba(251,113,133,.5); }
.notice-urgent .notice-icon { animation: glowN 1.8s ease-in-out infinite; }
@keyframes glowN { 50% { box-shadow: 0 0 22px var(--n); } }
.notice-icon { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--n); background: rgba(255,255,255,.05); border: 1px solid var(--n-line); }
.notice-body { flex: 1; min-width: 0; }
.notice-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--n); }
.notice-title { font-family: var(--display); font-size: 19px; font-weight: 500; line-height: 1.25; margin-top: 4px; }
.notice-msg { font-size: 14px; color: #c9d3e6; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.notice-chat { border-color: var(--n-line); color: var(--n); }
.notice-time { font-size: 11.5px; color: var(--dim); margin-left: auto; }

/* ---------- Homepage information sections ---------- */
html { scroll-behavior: smooth; }
.landing-links { display: none; gap: 22px; }
.landing-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.landing-links a:hover { color: var(--gold-2); }
.scroll-cue {
  align-self: center; margin-top: 26px; display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--dim); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; text-decoration: none;
}
.scroll-cue svg { animation: bob 1.8s ease-in-out infinite; color: var(--gold); }
@keyframes bob { 50% { transform: translateY(4px); } }

.lp-section { padding: 56px 0 8px; scroll-margin-top: 16px; }
.lp-title {
  font-family: var(--display); font-weight: 500; font-size: clamp(28px, 7.5vw, 40px); line-height: 1.1;
  letter-spacing: -.015em; margin: 12px 0 12px;
}
.lp-title em { font-style: italic; color: var(--gold-2); }
.lp-lead { color: var(--muted); font-size: 15.5px; margin: 0 0 24px; max-width: 620px; }
.lp-grid { display: grid; gap: 14px; }
.lp-card { padding: 22px; }
.lp-card h3 { margin: 14px 0 6px; font-size: 18px; }
.lp-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lp-icon {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--gold-2);
  background: linear-gradient(145deg, rgba(212,175,106,.18), rgba(212,175,106,.04)); border: 1px solid rgba(212,175,106,.3);
}
.lp-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.lp-list li { position: relative; padding-left: 24px; font-size: 13.5px; color: #c9d3e6; }
.lp-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(52,211,153,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/9px no-repeat;
}

.lp-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.lp-steps li {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.025); border: 1px solid var(--line);
}
.lp-step-n { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--gold); font-style: italic; min-width: 44px; }
.lp-steps h3 { margin: 2px 0 4px; font-size: 16px; }
.lp-steps p { margin: 0; color: var(--muted); font-size: 14px; }

.lp-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 8px; }
.lp-mini { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.lp-mini svg { color: var(--emerald); }
.lp-mini b { display: block; margin-top: 10px; font-size: 14.5px; }
.lp-mini small { color: var(--muted); font-size: 12.5px; }
.lp-note { color: var(--dim); font-size: 13px; margin: 14px 2px 0; }

.lp-about { padding: 22px; }
.lp-about > p { margin: 0; color: #c9d3e6; font-size: 15.5px; line-height: 1.65; }
.lp-values { display: grid; gap: 10px; margin-top: 20px; }
.lp-values div { padding: 14px 16px; border-radius: 16px; background: rgba(4,10,24,.5); border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.lp-values b { display: block; font-size: 14.5px; }
.lp-values small { color: var(--muted); font-size: 13px; }
.lp-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.lp-facts dt { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.lp-facts dd { margin: 3px 0 0; font-size: 14px; overflow-wrap: anywhere; }

.lp-faq { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.lp-faq details { padding: 0; border-radius: 18px; }
.lp-faq summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; font-size: 15px; position: relative;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--gold); transition: transform .25s;
}
.lp-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lp-faq details p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 14.5px; }

.lp-cta { padding: 28px 22px; text-align: center; background: linear-gradient(145deg, rgba(212,175,106,.12), rgba(16,29,56,.6)); border-color: rgba(212,175,106,.3); }
.lp-cta .lp-lead { margin-left: auto; margin-right: auto; }
.lp-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.lp-contact a { color: var(--gold-2); text-decoration: none; font-weight: 600; }
.lp-contact span { color: var(--muted); }

.landing-foot { padding: 40px 0 8px; display: flex; flex-direction: column; gap: 4px; }

@media (min-width: 900px) {
  .landing { max-width: 1080px; padding-left: 28px; padding-right: 28px; }
  .landing-links { display: flex; }
  .landing-hero { max-width: 560px; }
  .lp-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lp-steps { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .lp-steps li { flex-direction: column; }
  .lp-mini-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .lp-values { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lp-facts { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .lp-faq { max-width: 760px; }
}

/* Recipient card (client tracker) */
.recipient { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-top: 12px; }
.recipient b { display: block; font-size: 15px; margin-top: 4px; }
.recipient p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; white-space: pre-line; overflow-wrap: anywhere; }
