/* =====================================================================
   Stellar Gate Logistics – public site styles
   ===================================================================== */
:root {
  --navy-950: #040c1f;
  --navy-900: #071530;
  --navy-800: #0b1f45;
  --navy-700: #13306a;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --gold-400: #fbbf24;
  --gold-500: #f5a50a;
  --gold-600: #d98a00;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #5b6b85;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --border: #e2e8f0;
  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(4, 12, 31, 0.45);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container: 1180px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--gold-400); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: 15px; cursor: pointer;
  text-decoration: none !important; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold-400); color: var(--navy-950); box-shadow: 0 8px 20px -8px rgba(245, 165, 10, .7); }
.btn-primary:hover { background: var(--gold-500); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-outline { border-color: currentColor; color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: rgba(11, 31, 69, .06); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar { background: var(--navy-950); color: #cbd5e1; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: #e2e8f0; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy-900); text-decoration: none !important; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; letter-spacing: .04em; font-size: 17px; }
.brand-sub { font-size: 10.5px; letter-spacing: .32em; color: var(--gold-600); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2);
  font-weight: 550; font-size: 15px; text-decoration: none;
}
.nav-links a:hover { background: #eef2f8; color: var(--navy-900); }
.nav-links a[aria-current='page'] { color: var(--navy-900); background: #eef2f8; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy-900); border-radius: 8px;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 12px 20px 20px; display: none; flex-direction: column; gap: 12px;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-cta { flex-direction: column; align-items: stretch; }
  .topbar .hide-sm { display: none; }
}
@media (min-width: 921px) {
  .nav-menu { display: flex; align-items: center; gap: 18px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(59, 130, 246, .35), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(251, 191, 36, .18), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
}
.stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 120px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 160px 60px, #cbd5e1, transparent),
    radial-gradient(1px 1px at 230px 180px, #fff, transparent),
    radial-gradient(1px 1px at 300px 90px, #e2e8f0, transparent);
  background-size: 320px 220px;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 88px 0 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .35);
  color: var(--gold-400); font-size: 13px; font-weight: 650; letter-spacing: .02em; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .accent { color: var(--gold-400); }
.hero-lead { font-size: clamp(17px, 1.6vw, 19px); color: #cbd5e1; max-width: 560px; margin-bottom: 28px; }

.track-box {
  background: #fff; border-radius: 18px; padding: 8px; display: flex; gap: 8px;
  box-shadow: var(--shadow-lg); max-width: 560px;
}
.track-box input {
  flex: 1; min-width: 0; border: 0; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink);
  border-radius: 12px; background: transparent; text-transform: uppercase; letter-spacing: .04em;
}
.track-box input::placeholder { text-transform: none; letter-spacing: 0; color: #94a3b8; }
.track-box input:focus { outline: none; }
.track-box:focus-within { box-shadow: var(--shadow-lg), 0 0 0 3px rgba(251, 191, 36, .6); }
.track-box .btn { border-radius: 12px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 44px; }
.hero-stats strong { display: block; font-size: 28px; font-weight: 800; color: #fff; }
.hero-stats span { color: #94a3b8; font-size: 14px; }

.hero-visual { position: relative; }
.globe { width: 100%; max-width: 480px; margin-inline: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.4)); }
.globe .route { stroke-dasharray: 6 8; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -56; } }
.float-card {
  position: absolute; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: 13px; display: flex; gap: 12px; align-items: center;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card strong { display: block; font-size: 14px; }
.float-card small { color: var(--muted); }
.float-card.one { left: -10px; bottom: 40px; }
.float-card.two { right: -10px; top: 30px; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) {
  .track-box { flex-direction: column; }
  .track-box .btn { width: 100%; }
  .hero-stats { gap: 22px; }
  .float-card { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: #fff; }
.section-dark { background: var(--navy-900); color: #e2e8f0; }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker { color: var(--gold-600); font-weight: 750; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.section-dark .kicker { color: var(--gold-400); }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; }
.section-dark .section-head p { color: #94a3b8; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.page-hero {
  color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(59, 130, 246, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; }
.page-hero p { color: #cbd5e1; font-size: 18px; max-width: 640px; margin: 0; }
.breadcrumb { font-size: 14px; color: #94a3b8; margin-bottom: 14px; }
.breadcrumb a { color: #cbd5e1; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.service-card h3 { font-size: 19px; margin-top: 14px; }
.service-card p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.service-card .more { margin-top: 16px; font-weight: 650; color: var(--blue-500); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #eef4ff, #dbe7ff); color: var(--navy-700);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.gold { background: linear-gradient(135deg, #fff7e0, #ffe9b0); color: var(--gold-600); }
.service-card.featured { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; border-color: transparent; }
.service-card.featured p { color: #cbd5e1; }
.service-card.featured .more { color: var(--gold-400); }
.service-card.featured .icon-badge { background: rgba(251,191,36,.15); color: var(--gold-400); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--gold-400); color: var(--navy-950); margin-bottom: 16px;
}
.section-dark .step h3 { color: #fff; font-size: 19px; }
.section-dark .step p { color: #94a3b8; margin: 0; }

/* Features */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature h3 { font-size: 18px; margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.check-list li::before {
  content: ''; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}

.panel-visual {
  border-radius: 24px; padding: 28px; color: #fff; min-height: 360px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
  box-shadow: var(--shadow-lg);
}
.mini-track { background: rgba(255,255,255,.96); color: var(--ink); border-radius: 16px; padding: 20px; position: relative; }
.mini-track + .mini-track { margin-top: 14px; }
.mini-track .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.mini-track .tn { font-weight: 750; letter-spacing: .04em; }

/* CTA band */
.cta-band {
  border-radius: 24px; padding: 52px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  background:
    radial-gradient(600px 300px at 100% 0, rgba(251,191,36,.25), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 6px; }
.cta-band p { color: #cbd5e1; margin: 0; font-size: 17px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } }

/* ---------- Services page ---------- */
.service-detail { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; padding: 56px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 100px; }
.service-detail:last-child { border-bottom: 0; }
.service-detail h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 18px; }
.service-detail .lead { color: var(--muted); font-size: 17px; }
.service-detail .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #eef2f8; color: var(--navy-700); font-size: 13px; font-weight: 600; }
.service-detail .card { padding: 28px 32px; }
.service-detail h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
@media (max-width: 900px) { .service-detail { grid-template-columns: 1fr; gap: 24px; } }
.service-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.service-nav a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.service-nav a:hover { border-color: var(--navy-700); color: var(--navy-800); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink-2); }
.field .req { color: var(--danger); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.alert { padding: 14px 16px; border-radius: 12px; font-size: 15px; margin-bottom: 16px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
[hidden] { display: none !important; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list strong { display: block; }
.contact-list span { color: var(--muted); font-size: 15px; }

/* ---------- Tracking page ---------- */
.track-page-form { margin-top: 28px; }
.track-result { margin-top: -40px; position: relative; z-index: 2; }
.track-summary { padding: 0; overflow: hidden; }
.track-summary .top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap;
  padding: 28px 32px; border-bottom: 1px solid var(--border);
}
.track-summary .tn-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 650; }
.track-summary .tn { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: .04em; margin: 2px 0 8px; word-break: break-all; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--success); background: #ecfdf5; padding: 5px 12px; border-radius: 999px; }
.live-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 1.8s infinite; }
.live-pill.off { color: var(--muted); background: #f1f5f9; }
.live-pill.off::before { background: #94a3b8; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.tone-neutral { background: #f1f5f9; color: #334155; }
.tone-info { background: #e0ecff; color: #1d4ed8; }
.tone-success { background: #dcfce7; color: #166534; }
.tone-warning { background: #fef3c7; color: #92400e; }
.tone-danger { background: #fee2e2; color: #991b1b; }

.route { padding: 32px; }
.route-ends { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.route-ends div:last-child { text-align: right; }
.route-ends small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; }
.route-ends strong { font-size: 17px; }
.progress-track { position: relative; height: 10px; border-radius: 999px; background: #e2e8f0; }
.progress-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--blue-500), var(--gold-400)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.progress-pkg {
  position: absolute; top: 50%; width: 36px; height: 36px; margin-left: -18px; transform: translateY(-50%);
  border-radius: 50%; background: var(--navy-800); color: var(--gold-400); display: grid; place-items: center;
  box-shadow: 0 0 0 4px #fff, var(--shadow); transition: left .8s cubic-bezier(.2,.8,.2,1);
}
.progress-pkg svg { width: 18px; height: 18px; }
.progress-meta { display: flex; justify-content: space-between; margin-top: 16px; font-size: 14px; color: var(--muted); gap: 12px; flex-wrap: wrap; }
.progress-meta strong { color: var(--ink); }

.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.detail-grid > div { padding: 20px 32px; border-right: 1px solid var(--border); }
.detail-grid > div:last-child { border-right: 0; }
.detail-grid small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 650; margin-bottom: 2px; }
.detail-grid strong { font-size: 15px; }
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid > div { border-bottom: 1px solid var(--border); }
  .detail-grid > div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 520px) {
  .track-summary .top, .route { padding: 22px 20px; }
  .detail-grid > div { padding: 16px 20px; }
}

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 28px 40px; }
.timeline li::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: -2px; width: 2px; background: var(--border); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #cbd5e1; display: grid; place-items: center; }
.timeline li:first-child .dot { border-color: var(--blue-500); background: var(--blue-500); box-shadow: 0 0 0 5px rgba(37,99,235,.15); }
.timeline li:first-child .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.timeline .t-status { font-weight: 700; }
.timeline .t-loc { color: var(--ink-2); font-size: 15px; }
.timeline .t-desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
.timeline .t-time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.timeline .t-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state .icon-badge { margin: 0 auto 16px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #cbd5e1; border-top-color: var(--blue-500); animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #94a3b8; padding: 72px 0 28px; font-size: 15px; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Chat widget ---------- */
.chat-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy-800); color: #fff; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; transition: transform .2s ease, background .2s;
}
.chat-launcher:hover { transform: scale(1.06); background: var(--navy-700); }
.chat-launcher svg { width: 28px; height: 28px; }
.chat-launcher .badge {
  position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; border-radius: 999px; padding: 0 6px;
  background: var(--gold-400); color: var(--navy-950); font-size: 12px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid #fff;
}
.chat-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 900; width: 380px; max-width: calc(100vw - 24px);
  height: min(600px, calc(100vh - 130px)); background: #fff; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(4,12,31,.5);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border);
  transform-origin: bottom right; animation: pop .2s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(.95) translateY(10px); } }
.chat-head { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 18px 20px; display: flex; gap: 12px; align-items: center; }
.chat-head .avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }
.chat-head .avatar svg { width: 24px; height: 24px; }
.chat-head strong { display: block; font-size: 16px; }
.chat-head .presence { font-size: 13px; color: #cbd5e1; display: flex; align-items: center; gap: 6px; }
.chat-head .presence::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.chat-head .presence.online::before { background: #22c55e; }
.chat-close { margin-left: auto; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.chat-close:hover { background: rgba(255,255,255,.2); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: #f8fafc; display: flex; flex-direction: column; gap: 10px; }
.chat-start { padding: 20px; overflow-y: auto; flex: 1; }
.chat-start p { color: var(--muted); font-size: 14px; }
.chat-start .field { margin-bottom: 12px; }
.chat-start .field input, .chat-start .field textarea { padding: 10px 12px; font-size: 14px; }
.chat-start .field textarea { min-height: 80px; }
.chat-start .field label { font-size: 13px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg time { display: block; font-size: 11px; opacity: .65; margin-top: 4px; }
.msg.me { align-self: flex-end; background: var(--navy-800); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-system { align-self: center; font-size: 12.5px; color: var(--muted); background: #eef2f8; padding: 6px 12px; border-radius: 999px; text-align: center; }
.typing { align-self: flex-start; font-size: 13px; color: var(--muted); font-style: italic; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.chat-input textarea { flex: 1; resize: none; border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14.5px; max-height: 120px; }
.chat-input textarea:focus { outline: none; border-color: var(--blue-500); }
.chat-input button { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 0; background: var(--gold-400); color: var(--navy-950); cursor: pointer; display: grid; place-items: center; align-self: flex-end; }
.chat-input button:hover { background: var(--gold-500); }
.chat-input button svg { width: 20px; height: 20px; }
@media (max-width: 520px) {
  .chat-panel { right: 0; left: 0; bottom: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100dvh; border-radius: 0; }
  .chat-launcher { right: 16px; bottom: 16px; }
}
