:root {
  --purple: #4d148c;
  --purple-dark: #3a0f6b;
  --orange: #ff6600;
  --blue-link: #2a6ebb;
  --navy1: #12213f;
  --navy2: #1b3a6b;
  --ink: #2b2b2b;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --soft: #f5f6f8;
  --ok: #1a7f37;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3 { font-weight: 300; }

/* ---------- Top nav ---------- */
.nav {
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 26px;
  height: 66px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.5px;
  color: #fff;
}
.brand span { color: var(--orange); }
.brand sup { font-size: 11px; font-weight: 400; top: -10px; }
.brand { text-decoration: none; }
.nav-links { display: flex; gap: 2px; margin-left: 10px; list-style: none; padding: 0; }
.nav-item { position: relative; }
.nav-top {
  background: none; border: 0; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 10px 12px; font-family: inherit; display: inline-flex; align-items: center; gap: 6px;
}
.nav-top::after { content: "\25be"; font-size: 11px; opacity: .85; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border-radius: 0 0 8px 8px; box-shadow: 0 16px 40px rgba(0,0,0,.22);
  padding: 8px; display: none; z-index: 60;
}
.nav-item.open .dropdown { display: block; }
.dropdown a {
  display: block; color: var(--ink); font-size: 14px; font-weight: 500;
  padding: 11px 14px; border-radius: 6px; text-decoration: none;
}
.dropdown a:hover { background: #f3eefa; color: var(--purple); text-decoration: none; }
@media (hover: hover) and (min-width: 901px){ .nav-item:hover .dropdown { display: block; } }
.nav .spacer { flex: 1; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.signin {
  background: #fff; color: var(--purple); border: 0; border-radius: 6px;
  font-weight: 700; font-size: 14px; padding: 9px 18px; cursor: pointer; font-family: inherit;
}
.signin:hover { background: #f0eafa; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #fff; background: none; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% 20%, rgba(43,90,160,.55), transparent 60%),
    linear-gradient(120deg, var(--navy1), var(--navy2));
  overflow: hidden;
  min-height: 560px;
  color: #fff;
}
.hero .net {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(120,180,255,.35) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(700px 500px at 78% 30%, #000 0%, transparent 70%);
          mask-image: radial-gradient(700px 500px at 78% 30%, #000 0%, transparent 70%);
}
.hero .plane {
  position: absolute; right: -40px; top: 120px;
  width: 780px; max-width: 60%;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.35));
}
@media (max-width: 1000px){ .hero .plane { opacity: .25; } }
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto; padding: 60px 24px 70px;
}
.hero h1 {
  font-size: 46px; margin: 6px 0 34px; text-align: center; font-weight: 300;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
@media (max-width: 700px){ .hero h1 { font-size: 32px; } }

/* tabs */
.tabs { display: flex; justify-content: center; gap: 0; }
.tab {
  background: #fff; color: var(--ink);
  width: 150px; height: 118px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  font-weight: 700; font-size: 14px; letter-spacing: .5px; cursor: pointer;
  border: none;
}
.tab svg { width: 40px; height: 40px; }
.tab.active { background: var(--purple); color: #fff; }
.tab:not(.active):hover { background: #f0f0f0; }

/* track box */
.trackbar {
  display: flex; max-width: 760px; margin: 0 auto; margin-top: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,.28);
}
.trackbar input {
  flex: 1; border: none; padding: 20px 22px; font-size: 18px; font-style: italic; color: #333;
  outline: none;
}
.trackbar button {
  background: var(--orange); color: #fff; border: none; font-weight: 700; font-size: 18px;
  padding: 0 34px; cursor: pointer; display: flex; align-items: center; gap: 10px;
}
.trackbar button:hover { filter: brightness(.95); }

/* ---------- Result panel ---------- */
.result-wrap { max-width: 980px; margin: -30px auto 0; padding: 0 24px; position: relative; z-index: 5; }
.result {
  background: #fff; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.16);
  padding: 26px; border-top: 6px solid var(--orange);
}
.result.hide, .banner.hide, .notice.hide { display: none; }
.result .rhead { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.tracknum { font-family: ui-monospace, Menlo, monospace; font-size: 16px; font-weight: 700; }
.pill {
  display: inline-block; background: #eef7f0; color: var(--ok);
  border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 14px;
}
.progress { display: flex; gap: 0; margin: 24px 0 6px; }
.progress .step { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--muted); }
.progress .step .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--line); margin: 0 auto 8px; position: relative; z-index: 2; }
.progress .step::before { content:""; position:absolute; top:8px; left:-50%; width:100%; height:3px; background: var(--line); z-index:1; }
.progress .step:first-child::before { display:none; }
.progress .step.done .dot { background: var(--orange); }
.progress .step.done { color: var(--purple); font-weight: 700; }
.progress .step.done::before { background: var(--orange); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 22px; }
.grid .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.grid .v { font-weight: 600; }
@media (max-width: 700px){ .grid { grid-template-columns: 1fr; } }

.timeline { margin-top: 12px; border-left: 3px solid var(--line); padding-left: 18px; }
.tl-item { position: relative; padding: 10px 0; }
.tl-item::before { content:""; position:absolute; left:-25px; top:16px; width:12px; height:12px; border-radius:50%; background: var(--orange); border:2px solid #fff; }
.tl-item.latest::before { background: var(--purple); }
.tl-item .desc { font-weight: 600; }
.tl-item .meta { color: var(--muted); font-size: 13px; }

.notice { padding: 14px 16px; border-radius: 10px; margin-top: 6px; }
.notice.err { background: #fdecec; color: #b3261e; }

/* ---------- Banner strip ---------- */
.banner {
  max-width: 1180px; margin: 40px auto; padding: 16px 20px;
  border: 1px solid #cfe0f2; border-left: 4px solid var(--blue-link); border-radius: 6px;
  color: #234; background: #f6f9fd; display: flex; gap: 12px; align-items: center;
}

/* ---------- Quick actions row ---------- */
.actions {
  max-width: 1000px; margin: 40px auto; padding: 0 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.action { text-align: center; width: 150px; color: var(--blue-link); font-weight: 700; font-size: 14px; }
.action .circle {
  width: 74px; height: 74px; border: 2px solid var(--purple); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: var(--purple);
}
.action svg { width: 34px; height: 34px; }

/* ---------- Feature section ---------- */
.section { max-width: 1180px; margin: 60px auto; padding: 0 24px; }
.panel { background: var(--soft); border-radius: 10px; padding: 44px; }
.panel h2 { font-size: 30px; margin: 0 0 26px; }
.why { display: grid; grid-template-columns: 1fr 1fr 380px; gap: 26px 36px; align-items: start; }
@media (max-width: 900px){ .why { grid-template-columns: 1fr; } }
.why h4 { margin: 0 0 6px; font-size: 16px; }
.why p { margin: 0 0 18px; color: #444; line-height: 1.5; }
.why .art {
  grid-row: 1 / span 2; align-self: stretch; min-height: 300px; border-radius: 8px;
  overflow: hidden; background: #eef1f7;
}
.thumb svg, .art svg { width: 100%; height: 100%; display: block; }
.cta {
  display: inline-block; margin: 30px auto 0; border: 2px solid var(--orange); color: var(--orange);
  font-weight: 700; padding: 14px 40px; letter-spacing: .5px; background: #fff; cursor: pointer;
}
.cta:hover { background: var(--orange); color: #fff; text-decoration: none; }
.center { text-align: center; }

.h2center { text-align: center; font-size: 34px; margin: 0 0 40px; }
.cards3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
@media (max-width: 900px){ .cards3 { grid-template-columns: 1fr; } }
.card3 .thumb { height: 190px; border-radius: 6px; overflow: hidden; background: #eef1f7; margin-bottom: 16px; }
.card3 h3 { font-size: 20px; margin: 0 0 8px; }
.card3 p { color: #444; line-height: 1.5; }
.card3 .link { color: var(--blue-link); font-weight: 700; letter-spacing: .3px; }

.rows { display: grid; gap: 40px; max-width: 980px; margin: 0 auto; }
.frow { display: grid; grid-template-columns: 160px 1fr; gap: 26px; align-items: center; }
.frow .thumb { height: 150px; border-radius: 6px; overflow: hidden; background: #eef1f7; }
.frow h3 { font-size: 22px; margin: 0 0 8px; }
@media (max-width: 700px){ .frow { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { background: #fff; border-top: 1px solid var(--line); margin-top: 60px; }
.foot { max-width: 1180px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.foot h5 { color: var(--purple); font-size: 13px; letter-spacing: .5px; margin: 0 0 14px; }
.foot a { display: block; color: #333; font-size: 14px; margin-bottom: 10px; }
.footbar { background: var(--purple); color: #fff; }
.footbar .inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.footbar a { color: #fff; }
@media (max-width: 700px){ .foot { grid-template-columns: 1fr; } }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 24px; }
.admin-grid { display: grid; grid-template-columns: 340px 1fr; gap: 22px; }
@media (max-width: 820px){ .admin-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px;
}
.btn { background: var(--orange); color:#fff; border:0; border-radius:8px; padding:10px 18px; font-weight:700; cursor:pointer; font-size:14px; }
.btn:hover { filter: brightness(.95); }
.btn.ghost { background:#fff; color:var(--purple); border:1px solid var(--line); }
.btn.sm { padding:8px 12px; font-size:13px; }
.btn.danger { background:#d11a2a; }
.btn.block { width:100%; padding:12px; }
label { display:block; font-size:13px; color:var(--muted); margin:10px 0 4px; }
input.f, textarea.f, select.f { width:100%; border:1px solid var(--line); border-radius:8px; padding:10px 12px; font-size:14px; font-family:inherit; }
textarea.f { min-height:60px; resize:vertical; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:820px){ .row2 { grid-template-columns:1fr; } }
.toolbar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:16px; }
.list-item { border:1px solid var(--line); border-radius:10px; padding:12px; margin-bottom:10px; cursor:pointer; background:#fff; }
.list-item:hover { border-color:var(--purple); }
.list-item.active { border-color:var(--purple); box-shadow:0 0 0 2px rgba(77,20,140,.15); }
.list-item .n { font-family: ui-monospace, Menlo, monospace; font-weight:700; }
.tl-editor .tl-row { display:grid; grid-template-columns:1fr 1fr 1fr 2fr auto; gap:8px; margin-bottom:8px; align-items:center; }
@media (max-width:820px){ .tl-editor .tl-row { grid-template-columns:1fr 1fr; } }
.status-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.hide { display:none; }
.spacer { flex:1; }
.muted { color: var(--muted); }
.toast { position:fixed; bottom:20px; right:20px; background:var(--ink); color:#fff; padding:12px 18px; border-radius:10px; opacity:0; transition:opacity .2s; z-index:100; }
.toast.show { opacity:1; }
.config-warn { background:#fff8e1; border:1px solid #ffe082; color:#7a5c00; padding:14px 16px; border-radius:10px; margin:16px auto; max-width:1180px; }

/* ---------- Section anchor offset ---------- */
section[id], span#top { scroll-margin-top: 80px; }
span#top { display: block; }

/* ---------- Hero tab panels ---------- */
.hpanel.hide { display: none; }
.hcard {
  max-width: 760px; margin: 0 auto; background: #fff; border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.28); padding: 22px; text-align: left;
}
.hcard label { color: var(--muted); }
.rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rate-out { margin-top: 16px; padding: 16px; border-radius: 10px; background: #f5f6f8; color: var(--ink); }
.rate-out.show { background: #f2ecfa; }
.rate-price { font-size: 30px; font-weight: 800; color: var(--purple); }
.fineprint { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.locbar { display: flex; gap: 10px; }
.locbar .f { flex: 1; }
.loc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.loc-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: left; background: #fff; }
.loc-name { font-weight: 700; margin-bottom: 4px; }
.loc-hours { color: var(--purple); font-size: 13px; margin-top: 6px; }

/* ---------- Support / FAQ / Contact ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1000px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: inherit;
}
.faq-q span { color: var(--orange); font-size: 22px; font-weight: 400; }
.faq-a { display: none; padding: 0 0 16px; color: #444; line-height: 1.55; }
.faq-item.open .faq-a { display: block; }
.contact label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.contact .f { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; }
.contact textarea.f { min-height: 90px; resize: vertical; }

/* ---------- Sign-in modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,15,40,.55); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.hide { display: none; }
.modal {
  background: #fff; border-radius: 14px; padding: 28px; max-width: 420px; width: 100%;
  position: relative; box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.modal-close {
  position: absolute; top: 12px; right: 14px; background: none; border: 0;
  font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }

/* ---------- Mobile menu toggle ---------- */
.menu-toggle {
  display: none; background: none; border: none; color: #fff; cursor: pointer;
  width: 34px; height: 34px; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* =====================================================================
   RESPONSIVE — tablet
   ===================================================================== */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; order: -1; }
  .nav { gap: 12px; padding: 0 16px; flex-wrap: wrap; height: auto; min-height: 60px; }
  .nav-links {
    display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0;
    margin: 0 -16px; background: var(--purple-dark);
  }
  .nav-links.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-top {
    width: 100%; justify-content: space-between; padding: 15px 18px;
    border-top: 1px solid rgba(255,255,255,.12); font-size: 15px;
  }
  .dropdown {
    position: static; display: none; box-shadow: none; border-radius: 0;
    background: rgba(0,0,0,.16); padding: 4px 0; min-width: 0;
  }
  .nav-item.open .dropdown { display: block; }
  .dropdown a { color: #fff; padding: 12px 28px; }
  .dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }
}

/* =====================================================================
   RESPONSIVE — phones
   ===================================================================== */
@media (max-width: 600px) {
  .nav { padding: 0 12px; min-height: 56px; }
  .nav-links { margin: 0 -12px; }
  .brand { font-size: 20px; }
  .nav-right { gap: 10px; }
  .signin { font-size: 12px; padding: 8px 12px; }
  .icon-btn { width: 28px; height: 28px; }

  .hcard { padding: 16px; }
  .rate-grid { grid-template-columns: 1fr; }
  .locbar { flex-direction: column; }
  .loc-results { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; gap: 26px; }

  .hero { min-height: auto; }
  .hero .plane { display: none; }
  .hero .net { -webkit-mask-image: none; mask-image: none; opacity: .18; }
  .hero-inner { padding: 34px 14px 40px; }
  .hero h1 { font-size: 25px; margin: 4px 0 22px; }

  .tabs { width: 100%; }
  .tab { width: 33.33%; height: 88px; font-size: 10.5px; gap: 8px; padding: 6px 4px; }
  .tab svg { width: 28px; height: 28px; }

  .trackbar { box-shadow: 0 12px 26px rgba(0,0,0,.28); }
  .trackbar input { font-size: 15px; padding: 15px 14px; }
  .trackbar button { padding: 0 18px; font-size: 15px; }

  .result-wrap { padding: 0 12px; margin-top: -18px; }
  .result { padding: 18px; }
  .result .rhead { flex-direction: column; }
  .progress { margin: 18px 0 4px; }
  .progress .step { font-size: 9.5px; line-height: 1.2; }
  .progress .step .dot { width: 13px; height: 13px; }

  .banner { margin: 22px 12px; padding: 12px 14px; }

  .actions { justify-content: center; gap: 18px 10px; padding: 0 12px; margin: 30px auto; }
  .action { width: 45%; font-size: 12px; }
  .action .circle { width: 62px; height: 62px; }
  .action svg { width: 28px; height: 28px; }

  .section { margin: 36px auto; }
  .panel { padding: 22px; }
  .panel h2 { font-size: 23px; margin-bottom: 20px; }
  .why { gap: 4px 0; }
  .why .art { grid-row: auto; order: -1; min-height: 150px; font-size: 30px; margin-bottom: 14px; }
  .cta { width: 100%; text-align: center; padding: 14px 0; }

  .h2center { font-size: 24px; margin-bottom: 26px; }
  .cards3 { gap: 22px; }
  .card3 .thumb { height: 170px; }
  .frow { gap: 14px; }
  .frow .thumb { height: 150px; }

  .foot { padding: 28px 16px; gap: 22px; }
  .footbar .inner { gap: 10px 16px; padding: 14px 16px; }

  /* admin */
  .admin-wrap { padding: 14px; }
  .toolbar { gap: 10px; }
  .toolbar #search { max-width: 100% !important; width: 100%; }
  .toolbar #who { margin-left: 0; }
  .tl-editor .tl-row { grid-template-columns: 1fr 1fr; }
  .card { padding: 16px; }
}

/* very small phones */
@media (max-width: 380px) {
  .tab { height: 82px; font-size: 9.5px; }
  .tab svg { width: 24px; height: 24px; }
  .trackbar button span { display: none; }
  .action { width: 100%; }
  .tl-editor .tl-row { grid-template-columns: 1fr; }
}

/* =====================================================================
   Tracking result — FedEx-style vertical timeline
   ===================================================================== */
.track-head { padding-bottom: 6px; }
.track-label { font-size: 12px; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.track-date { font-size: 34px; font-weight: 300; color: var(--ink); line-height: 1.1; }
.track-status { font-size: 24px; font-weight: 300; display: flex; align-items: center; gap: 10px; }
.status-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.status-pill { display: inline-block; margin-top: 12px; border: 1px solid var(--purple); color: var(--purple); border-radius: 999px; padding: 5px 16px; font-weight: 700; font-size: 13px; }
.status-pill.ok { border-color: var(--ok); color: var(--ok); }
.status-pill.warn { border-color: #b8860b; color: #8a6d00; background: #fff8e1; }

.vtimeline { margin: 24px 0 10px; }
/* each row */
.vt-item { position: relative; min-height: 86px; padding: 12px 0 12px 86px; display: flex; flex-direction: column; justify-content: center; }
/* the thick vertical line (segment per row so colors can differ) */
.vt-item::before { content: ""; position: absolute; left: 33px; top: 0; bottom: 0; width: 8px; background: var(--purple); z-index: 0; }
.vt-item.future::before { background: #dbe0e8; }
.vt-item:first-child::before { top: 43px; border-radius: 5px 5px 0 0; }
.vt-item:last-child::before { bottom: auto; height: 43px; border-radius: 0 0 5px 5px; }
/* dots */
.vt-dot { position: absolute; left: 37px; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.vt-dot::before { content: ""; display: block; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.03); }
.vt-item.future .vt-dot::before { background: #aeb7c4; box-shadow: none; }
/* big current node — purple circle with white ring + arrow */
.vt-item.big .vt-dot::before { display: none; }
.vt-item.big .vt-dot span { display: flex; width: 58px; height: 58px; border-radius: 50%; background: var(--purple); color: #fff; align-items: center; justify-content: center; box-shadow: 0 0 0 4px #fff, 0 0 0 9px rgba(77,20,140,.12); }
.vt-item.big .vt-dot span svg { width: 34px; height: 34px; display: block; }
.vt-item.big.exception .vt-dot span { background: #e6a100; }
/* labels */
.vt-body { position: relative; z-index: 1; }
.vt-cap { font-size: 15px; font-weight: 800; letter-spacing: .4px; color: #1a1a1a; }
.vt-item.future .vt-cap { color: #9aa3b0; }
.vt-sub { font-style: italic; color: #8a93a3; font-size: 15px; margin-top: 10px; }
.vt-subval { color: #6b7280; font-size: 15px; margin-top: 2px; }
/* grey pill highlight on the active row */
.vt-item.big .vt-body { background: #f0f0f2; border-radius: 999px; padding: 20px 26px; margin: 0 0 0 -20px; }

.track-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.track-facts .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.track-facts .v { font-weight: 600; }
.shipinfo-title { font-size: 20px; font-weight: 600; margin: 8px 0 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.shipinfo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; margin-top: 14px; }
.si-row { }
.si-k { font-weight: 700; color: var(--ink); font-size: 15px; }
.si-v { color: var(--muted); font-size: 15px; margin-top: 3px; }
@media (max-width: 600px) { .shipinfo { grid-template-columns: 1fr; gap: 14px; } }
.updates-box { margin-top: 20px; background: #f5f6f8; border-radius: 10px; padding: 18px; }
.updates-form { display: flex; max-width: 520px; }
.updates-form .f { flex: 1; border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; padding: 12px 14px; font-size: 14px; font-family: inherit; }
.updates-form .btn { border-radius: 0 6px 6px 0; }

/* =====================================================================
   Customer chat widget
   ===================================================================== */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 150; background: var(--purple); color: #fff; border: 0; border-radius: 999px; padding: 14px 20px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-family: inherit; }
.chat-fab:hover { filter: brightness(1.08); }
.chat-panel { position: fixed; right: 20px; bottom: 20px; z-index: 160; width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 40px); background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.4); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel.hide { display: none; }
.chat-head { background: var(--purple); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.chat-head .brand { color: #fff; }
.chat-x { background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.chat-start { padding: 16px; overflow: auto; }
.chat-start label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.chat-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-body.hide { display: none; }
.chat-context { padding: 8px 14px; background: #f5f6f8; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.chat-msgs { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fafbfc; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4; }
.bubble-body { white-space: pre-wrap; word-break: break-word; }
.bubble-meta { font-size: 10.5px; opacity: .75; margin-top: 4px; }
.bubble.me { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: #eceff3; color: var(--ink); border-bottom-left-radius: 4px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input .f { flex: 1; border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px; font-size: 14px; font-family: inherit; }
.chat-input .btn { border-radius: 20px; }
.typing { align-self: flex-start; background: #eceff3; border-radius: 12px; border-bottom-left-radius: 4px; padding: 12px 14px; display: inline-flex; gap: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa6b6; display: inline-block; animation: ss-typing 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes ss-typing { 0%, 70%, 100% { opacity: .3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-4px); } }

/* =====================================================================
   Admin support inbox
   ===================================================================== */
.adm-tabs { display: flex; gap: 8px; align-items: center; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.adm-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; font-family: inherit; margin-bottom: -2px; }
.adm-tab.active { color: var(--purple); border-bottom-color: var(--orange); }
.badge { display: inline-block; background: var(--orange); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: 6px; font-weight: 700; }
.badge.hide { display: none; }
.chat-msgs.adm { background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; height: 380px; margin-bottom: 12px; }

/* mobile tweaks for new components */
@media (max-width: 600px) {
  .track-date { font-size: 28px; }
  .track-status { font-size: 20px; }
  .track-facts { grid-template-columns: 1fr; }
  .chat-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: 72vh; max-height: calc(100vh - 16px); }
  .chat-fab { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 13px; }
  .adm-tab { font-size: 14px; padding: 10px 10px; }
  .chat-msgs.adm { height: 300px; }
}
