:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --bg-soft: #111118;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f0f0f5;
  --muted: rgba(240, 240, 245, 0.68);
  --faint: rgba(240, 240, 245, 0.44);
  --primary: #6cb4ee;
  --accent-1: #6e6ee6;
  --accent-2: #b46fe6;
  --accent-3: #e66eab;
  --accent-4: #e89244;
  --green-status: #34c759;
  --amber-status: #f5a623;
  --danger: #ff453a;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  --radius: 20px;
  --radius-sm: 12px;
  --blur: blur(24px) saturate(160%);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f2f7;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --border: rgba(0, 0, 0, 0.08);
  --text: #1c1c1e;
  --muted: rgba(28, 28, 30, 0.64);
  --faint: rgba(28, 28, 30, 0.4);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

/* Apple Intelligence gradient palette — no green, no pure yellow */
.ai-gradient,
.brand span span,
.gradient-text {
  background: linear-gradient(105deg, #6e6ee6, #b46fe6 40%, #e66eab 65%, #e89244);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(110, 110, 230, 0.18), transparent 36rem),
    radial-gradient(ellipse at 80% 8%, rgba(180, 111, 230, 0.15), transparent 34rem),
    radial-gradient(ellipse at 70% 85%, rgba(230, 110, 171, 0.10), transparent 28rem),
    radial-gradient(ellipse at 20% 80%, rgba(232, 146, 68, 0.08), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  pointer-events: none;
}

a { color: inherit; }
img, svg { display: block; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.nav {
  width: min(1100px, calc(100% - 32px));
  height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: white;
  background: conic-gradient(from 200deg, #6e6ee6, #b46fe6, #e66eab, #e89244, #6e6ee6);
  box-shadow: 0 8px 24px rgba(110, 110, 230, 0.2);
}

.brand-mark svg { width: 17px; height: 17px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.nav-links a:hover {
  background: var(--surface);
  color: var(--text);
  transform: translateY(-1px);
}

.theme-toggle,
.mobile-toggle,
.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: background 0.15s;
}

.theme-toggle:hover,
.mobile-toggle:hover,
.icon-button:hover {
  background: var(--surface-strong);
}

.theme-toggle svg,
.mobile-toggle svg { width: 16px; height: 16px; }

.mobile-toggle { display: none; }

.mobile-panel {
  display: none;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.mobile-panel.open {
  display: grid;
  gap: 2px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.25s ease, transform 0.2s ease, color 0.2s ease;
}

.mobile-panel a:hover {
  background: var(--surface);
  color: var(--text);
  transform: translateX(4px);
}

/* ─── Button Row ─── */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ─── Hero ─── */
.hero {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.eyebrow svg { width: 13px; height: 13px; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  margin-top: 16px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  max-width: 620px;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 750;
}

h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

p { margin: 0; }

.hero-copy {
  margin-top: 14px;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.chip svg { width: 13px; height: 13px; }

/* ─── Glass ─── */
.glass {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-strong), color-mix(in srgb, var(--surface) 60%, transparent));
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

/* ─── Tracker Card ─── */
.tracker-card {
  padding: clamp(18px, 3vw, 28px);
  position: relative;
  overflow: hidden;
}

.tracker-card::before,
.result-panel::before,
.feature-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, #6e6ee6, #b46fe6, #e66eab, #e89244);
}

.tracker-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.tracker-title h2 { font-size: 1.1rem; }

.tracker-title p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.tracker-title > svg,
.tracker-title > i > svg {
  width: 28px;
  height: 28px;
  color: var(--faint);
}

.field {
  display: grid;
  gap: 6px;
}

label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap i,
.input-wrap > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.input-wrap i svg {
  width: 16px;
  height: 16px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

input {
  height: 48px;
  padding: 0 14px 0 40px;
  font-size: 0.9rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
  padding: 12px 14px 12px 40px;
  font-size: 0.9rem;
}

.textarea-wrap {
  align-items: stretch;
}

.textarea-wrap i,
.textarea-wrap > svg {
  top: 16px;
  transform: none;
}

input:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--accent-1) 60%, white);
  box-shadow: 0 0 0 4px rgba(110, 110, 230, 0.12);
  background: var(--surface-strong);
}

.track-input {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.hint {
  color: var(--faint);
  font-size: 0.78rem;
  margin-top: 8px;
}

/* ─── Buttons ─── */
.button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: white;
  background: linear-gradient(110deg, #6e6ee6, #b46fe6 45%, #e66eab 75%, #e89244);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(110, 110, 230, 0.2);
  transition: transform 0.12s, box-shadow 0.12s;
}

.button svg { width: 16px; height: 16px; }

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(110, 110, 230, 0.28);
}

.button.secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--surface-strong);
  transform: translateY(-1px);
}

.button.whatsapp {
  background: linear-gradient(110deg, #25d366, #128c7e);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.15);
}

.tracker-card .button {
  width: 100%;
  margin-top: 14px;
}

.error {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 36%, transparent);
  border-radius: 10px;
  color: color-mix(in srgb, var(--danger) 85%, white);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  font-weight: 600;
  font-size: 0.82rem;
}

/* ─── Sections ─── */
.form-status {
  display: none;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.84rem;
}

.form-status.success {
  display: block;
  color: color-mix(in srgb, var(--green-status) 86%, white);
  background: color-mix(in srgb, var(--green-status) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green-status) 30%, transparent);
}

.section {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 22px;
}

.section-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ─── Feature Grid ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.status-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  padding: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
  border-color: color-mix(in srgb, var(--accent-2) 30%, transparent);
}

.card i svg {
  width: 18px;
  height: 18px;
}

.card-icon {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, #6e6ee6, #b46fe6);
  display: grid;
  place-items: center;
}

.card i,
.card > svg {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, #6e6ee6, #b46fe6);
}

.card h3 { margin-top: 12px; }

.card p,
.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 0.86rem;
}

.card p { margin-top: 6px; }

/* ─── How-To Steps as Cards ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  padding: 20px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
  border-color: color-mix(in srgb, var(--accent-3) 30%, transparent);
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #e66eab, #e89244);
  font-weight: 800;
  font-size: 0.82rem;
}

.step-card h3 { margin-top: 10px; }

.step-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Old steps layout - kept for compat */
.feature-band {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 32px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step { padding: 16px; }
.step h3 { margin-top: 10px; }
.step p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ─── SEO Content ─── */
.seo-copy {
  columns: 2 300px;
  column-gap: 28px;
  padding: 24px;
}

.seo-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.seo-copy h3 {
  margin: 16px 0 6px;
  font-size: 0.94rem;
}

.seo-copy h3:first-child { margin-top: 0; }

/* ─── FAQ ─── */
.faq {
  display: grid;
  gap: 8px;
}

.faq details {
  padding: 14px 18px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.faq details[open] {
  background: var(--surface-strong);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.2s ease;
}

.faq summary:hover {
  color: var(--accent-2);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--faint);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  color: var(--accent-2);
}

.faq details .faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
}

.faq details[open] .faq-answer {
  max-height: 300px;
  opacity: 1;
  margin-top: 8px;
}

.faq p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

/* ─── Page Hero (subpages) ─── */
.page-hero {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 24px;
  text-align: center;
}

.page-hero h1 {
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-hero p {
  max-width: 560px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ─── Tracking Result ─── */
.not-found {
  width: min(920px, calc(100% - 32px));
  min-height: calc(100vh - 260px);
  margin: 0 auto;
  padding: 72px 0 56px;
  display: grid;
  place-items: center;
}

.not-found-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  padding: clamp(28px, 6vw, 52px);
  overflow: hidden;
  text-align: center;
}

.not-found-card::before {
  content: "404";
  position: absolute;
  inset: auto -18px -58px auto;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(5rem, 20vw, 11rem);
  font-weight: 900;
  line-height: 1;
  color: color-mix(in srgb, var(--accent-1) 12%, transparent);
  pointer-events: none;
}

.not-found-card h1 {
  position: relative;
  max-width: 520px;
  margin: 12px auto 0;
  font-size: clamp(2rem, 6vw, 4rem);
}

.not-found-card p {
  position: relative;
  max-width: 500px;
  margin: 14px auto 0;
  color: var(--muted);
}

.not-found-actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.result-layout {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}

.result-panel,
.side-panel {
  padding: clamp(18px, 3vw, 26px);
}

.result-panel {
  position: relative;
  overflow: hidden;
}

.status-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.tracking-number {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
}

.tracking-number svg { width: 14px; height: 14px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--green-status);
  background: color-mix(in srgb, var(--green-status) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green-status) 28%, transparent);
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
}

.status-pill svg { width: 14px; height: 14px; }

.status-pill.transit {
  color: var(--accent-1);
  background: color-mix(in srgb, var(--accent-1) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent-1) 28%, transparent);
}

.status-pill.ofd {
  color: var(--amber-status);
  background: color-mix(in srgb, var(--amber-status) 10%, transparent);
  border-color: color-mix(in srgb, var(--amber-status) 28%, transparent);
}

.status-pill.cached {
  color: var(--amber-status);
  background: color-mix(in srgb, var(--amber-status) 10%, transparent);
  border-color: color-mix(in srgb, var(--amber-status) 28%, transparent);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.metric {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.metric span {
  display: block;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
}

/* ─── Timeline ─── */
.timeline {
  margin-top: 18px;
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  min-height: 72px;
}

.rail {
  display: grid;
  justify-items: center;
  grid-template-rows: 16px 1fr;
}

.dot {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--faint);
  border: 2px solid color-mix(in srgb, var(--bg) 80%, transparent);
}

.timeline-item:first-child .dot {
  background: var(--green-status);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--green-status) 14%, transparent);
}

.line {
  width: 2px;
  background: var(--border);
}

.timeline-card {
  padding: 0 0 16px;
}

.timeline-card strong {
  display: block;
  font-size: 0.88rem;
}

.timeline-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ─── Side Panel ─── */
.side-panel {
  display: grid;
  gap: 10px;
}

.side-panel h3 { font-size: 0.94rem; }

.side-panel .button {
  width: 100%;
  font-size: 0.82rem;
}

/* ─── Track Page: Status Bar ─── */
.track-status-bar {
  width: min(1100px, calc(100% - 32px));
  margin: 24px auto 0;
}

.track-status-bar-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-strong), color-mix(in srgb, var(--surface) 60%, transparent));
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  position: relative;
  overflow: hidden;
}

.track-status-bar-inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, #6e6ee6, #b46fe6, #e66eab, #e89244);
}

.track-status-left h2 {
  font-size: 1.15rem;
  margin-top: 6px;
}

/* ─── Track Page: Two Column Layout ─── */
.track-two-col {
  width: min(1100px, calc(100% - 32px));
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 14px;
  align-items: start;
}

/* ─── Booking Panel (Left) ─── */
.booking-panel {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.booking-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.booking-panel-header i,
.booking-panel-header svg {
  width: 18px;
  height: 18px;
  color: var(--accent-2);
}

.booking-panel-header h3 {
  font-size: 1rem;
}

.booking-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.booking-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

.booking-row:nth-last-child(-n+2) {
  border-bottom: none;
}

.booking-row:nth-child(odd) {
  padding-right: 16px;
  border-right: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

.booking-row:nth-child(even) {
  padding-left: 16px;
}

.booking-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.booking-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.booking-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.booking-actions .button {
  width: 100%;
  font-size: 0.8rem;
  min-height: 40px;
}

/* ─── Timeline Panel (Right) ─── */
.timeline-panel {
  padding: 24px;
  position: sticky;
  top: 74px;
}

.timeline-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.timeline-panel-header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-panel-header i,
.timeline-panel-header svg {
  width: 18px;
  height: 18px;
  color: var(--accent-2);
}

.timeline-panel-header h3 {
  font-size: 1rem;
}

.timeline-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--faint);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.mini-timeline {
  max-height: 340px;
  overflow: hidden;
  position: relative;
}

.mini-timeline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to top, var(--bg-soft), transparent);
  pointer-events: none;
  opacity: 0.8;
}

.view-all-btn {
  width: 100%;
  margin-top: 14px;
}

/* ─── Modal / Popup ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-overlay.opening {
  display: flex;
}

.modal-content {
  width: min(680px, 100%);
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.05rem;
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ─── Loading skeleton ─── */
.loading-container {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 14px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ─── Contact / Form ─── */
.form-grid {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto 56px;
  display: grid;
  gap: 14px;
}

.form-card {
  padding: clamp(18px, 3vw, 28px);
}

.form-card form {
  display: grid;
  gap: 12px;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Contact info cards */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.contact-info-card {
  padding: 18px;
  text-align: center;
}

.contact-info-card svg,
.contact-info-card i {
  width: 20px;
  height: 20px;
  margin: 0 auto 8px;
  color: var(--accent-2);
}

.contact-info-card h3 {
  font-size: 0.84rem;
  margin-bottom: 3px;
}

.contact-info-card p {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── Legal ─── */
.legal-content {
  width: min(800px, calc(100% - 32px));
  margin: 0 auto 56px;
  padding: clamp(20px, 3vw, 32px);
}

.legal-content h2 {
  margin-top: 22px;
  font-size: 1.1rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content ul {
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 18px;
}

/* ─── About sections ─── */
.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.about-feature {
  padding: 18px;
  text-align: center;
}

.about-feature i,
.about-feature svg {
  width: 24px;
  height: 24px;
  margin: 0 auto 10px;
  color: var(--accent-2);
}

.about-feature h3 {
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

.footer-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-note {
  max-width: 520px;
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-content: start;
}

.footer-links a {
  transition: color 0.25s ease, transform 0.2s ease;
}

.footer-links a:hover {
  transform: translateY(-1px);
}

.footer-links a:hover {
  color: var(--text);
}

.small {
  color: var(--faint);
  font-size: 0.76rem;
  margin-top: 6px;
}

/* ─── Responsive ─── */
.desktop-copy { display: inline; }
.mobile-copy { display: none; }

@media (max-width: 900px) {
  .hero,
  .result-layout {
    grid-template-columns: 1fr;
  }

  .track-two-col {
    grid-template-columns: 1fr;
  }

  .timeline-panel {
    position: static;
  }

  .grid,
  .status-guide-grid,
  .steps,
  .steps-grid,
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-features,
  .contact-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links { display: none; }
  .mobile-toggle { display: inline-grid; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }

  .nav { height: 54px; }

  .nav .button-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .nav .theme-toggle,
  .nav .mobile-toggle {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .brand span { font-size: 0.88rem; }

  .hero,
  .section,
  .page-hero {
    width: min(100% - 28px, 1100px);
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 42px;
    text-align: center;
    gap: 0;
  }

  .hero > div {
    display: contents;
  }

  .hero .eyebrow {
    order: 1;
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1 {
    order: 2;
    max-width: 330px;
    margin-top: 18px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy {
    display: block;
    order: 3;
    max-width: 350px;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero .tracker-card {
    order: 5;
    margin-top: 34px;
    padding: 22px 18px;
  }

  .hero-points {
    order: 4;
    margin-top: 22px;
    row-gap: 10px;
    justify-content: center;
  }

  .hero .tracker-title {
    margin-bottom: 18px;
  }

  .hero .tracker-title > svg,
  .hero .tracker-title > i > svg {
    display: block;
    width: 30px;
    height: 30px;
  }

  .hero .tracker-title h2 {
    font-size: 1.15rem;
  }

  .hero .desktop-copy {
    display: none !important;
  }

  .hero .mobile-copy {
    display: inline !important;
  }

  h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }

  .grid,
  .status-guide-grid,
  .steps,
  .steps-grid,
  .metric-grid,
  .two-cols,
  .about-features,
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .status-top { display: grid; }
  .button-row { display: grid; }

  .booking-details-grid {
    grid-template-columns: 1fr;
  }

  .booking-row:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }

  .booking-row:nth-child(even) {
    padding-left: 0;
  }

  .booking-row:nth-last-child(-n+2) {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  }

  .booking-row:last-child {
    border-bottom: none;
  }

  .booking-actions {
    grid-template-columns: 1fr;
  }

  .track-status-bar-inner {
    flex-direction: column;
  }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }

  .seo-copy { columns: 1; }
}
