/* ── Variables ── */
:root {
  --p: #1a365d;
  --pd: #0f2744;
  --a: #e91e8c;
  --ah: #c41875;
  --t: #00b4d8;
  --g: #eef2f7;
  --border: #e2e8f0;
  --error: #e53e3e;
  --muted: #718096;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #2d3748;
}

/* ── Auth: Login & Register ── */
.auth-page,
.register-page {
  background: var(--g);
  min-height: 60vh;
  padding: 2rem 0 3rem;
}

.auth-heading,
.register-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-heading h1,
.register-heading h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #1a202c;
}

.auth-heading h1 span,
.register-heading h1 span {
  color: var(--a);
  border-bottom: 3px solid var(--a);
  padding-bottom: 2px;
}

.auth-heading p,
.register-heading p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.auth-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
  padding: 2rem;
  max-width: 420px;
  margin: 0 auto;
}

.register-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.auth-card .form-label,
.register-card .form-label {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.register-card .form-label .req {
  color: var(--error);
}

.auth-card .form-control,
.auth-card .form-select,
.register-card .form-control,
.register-card .form-select {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus,
.register-card .form-control:focus,
.register-card .form-select:focus {
  border-color: var(--a);
  box-shadow: 0 0 0 3px rgba(233, 30, 140, .12);
  outline: 0;
}

.auth-card .field-error,
.register-card .field-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.2rem;
}

.auth-card .password-wrapper,
.register-card .password-wrapper {
  position: relative;
}

.auth-card .password-wrapper .form-control,
.register-card .password-wrapper .form-control {
  padding-right: 2.5rem;
}

.auth-card .toggle-eye,
.register-card .toggle-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1.05rem;
}

.register-card .input-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.register-card .city-autocomplete {
  position: relative;
}

.register-card .city-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 2px;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 100;
  display: none;
}

.register-card .city-suggestions.open {
  display: block;
}

.register-card .city-suggestions .city-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #2d3748;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.register-card .city-suggestions .city-item:hover,
.register-card .city-suggestions .city-item:focus {
  background: #f7fafc;
  outline: 0;
}

.register-card .city-suggestions .city-item--empty {
  cursor: default;
  color: var(--muted);
}

.register-card .city-suggestions .city-item--empty:hover {
  background: transparent;
}

.register-card .section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  border-bottom: 2px solid var(--a);
  padding-bottom: 0.5rem;
  margin: 1.5rem 0 1rem;
}

.register-card .section-title:first-of-type {
  margin-top: 0;
}

.register-card .file-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.register-card .file-input-wrap .btn-choose {
  background: #f7fafc;
  border: none;
  border-right: 1px solid var(--border);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  white-space: nowrap;
}

.register-card .file-input-wrap .file-name {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
}

.register-card .file-input-wrap input[type="file"] {
  display: none;
}

.register-card .selfie-box {
  border: 2px dashed #cbd5e0;
  border-radius: 10px;
  padding: 1.5rem;
  background: #fafafa;
}

.register-card .btn-start-camera {
  background: var(--a);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.register-card .btn-start-camera:hover {
  background: var(--ah);
  color: #fff;
}

.register-card .selfie-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.register-card .camera-help-box {
  background: #ebf8ff;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #2d3748;
}

.register-card .btn-capture {
  background: #38a169;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.register-card #cameraPreview,
.register-card #capturedSelfie {
  display: none;
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.register-card #captureBtn {
  display: none;
  margin-top: 0.5rem;
}

.register-card .signature-canvas {
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  max-width: 280px;
  height: 120px;
  background: #fff;
  cursor: crosshair;
  display: block;
  touch-action: none;
}

.register-card .btn-clear-sig {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  margin-top: 0.5rem;
  cursor: pointer;
  color: #4a5568;
}

.register-card .terms-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: #fafafa;
}

.register-card .terms-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.register-card .terms-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--a);
}

.register-card .terms-row a {
  color: var(--a);
  font-weight: 600;
}

.auth-card .actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.auth-card .actions-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--a);
}

.auth-card .actions-row a {
  color: var(--a);
  text-decoration: none;
}

.auth-card .actions-row a:hover {
  text-decoration: underline;
}

.auth-card .btn-submit,
.register-card .btn-submit {
  background: var(--a);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.auth-card .btn-submit {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
}

.register-card .btn-submit {
  padding: 0.65rem 2rem;
  font-size: 1rem;
}

.auth-card .btn-submit:hover,
.register-card .btn-submit:hover {
  background: var(--ah);
  color: #fff;
}

.auth-card .register-link {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #4a5568;
}

.auth-card .register-link a {
  color: var(--a);
  font-weight: 600;
  text-decoration: none;
}

.auth-card .register-link a:hover {
  text-decoration: underline;
}

/* Register pending (account status pending) page */
.auth-card--pending {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.pending-status {
  padding: 0.5rem 0;
}

.pending-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.pending-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 1rem;
}

.pending-message {
  color: #4a5568;
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.pending-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.pending-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.pending-actions .btn-submit {
  width: 100%;
  max-width: 220px;
  margin: 0;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-pending-secondary {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--a);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-pending-secondary:hover {
  background: #f7fafc;
  color: var(--ah);
}

@media (max-width: 768px) {
  .register-card {
    padding: 1.25rem;
  }
}

/* ── Shared components ── */
.btn-cta {
  background: var(--a);
  color: #fff !important;
  border: none;
  padding: 11px 24px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-cta:hover {
  background: var(--ah);
}

.flex-input {
  display: flex;
}

.flex-input input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: none;
  outline: none;
  font-size: 0.88rem;
  border-radius: 5px 0 0 5px;
}

.flex-input .btn-cta {
  border-radius: 0 5px 5px 0;
  white-space: nowrap;
}

.sec-label {
  color: var(--a);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 6px;
}

.sec-title {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 28px;
}

.sec-h-accent {
  color: var(--a);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.sec-desc {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.88rem;
}

/* ── Ticker ── */
.ticker {
  background: var(--t);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-block;
  animation: tick 30s linear infinite;
}

.ticker-inner span {
  margin: 0 36px;
}

@keyframes tick {
  to {
    transform: translateX(-50%);
  }
}

/* ── Navbar ── */
.main-nav {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  max-width: 1200px;
  height: 44px;
  margin: 0 auto;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand svg {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--p);
  display: block;
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--p);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  color: #2d3748;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--p);
}

.btn-acct {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555;
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 30, 60, 0.88), rgba(10, 30, 60, 0.6) 60%, rgba(10, 30, 60, 0.35));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero-left {
  color: #fff;
}

.hero-sub {
  font-size: 0.88rem;
  opacity: 0.88;
  margin-bottom: 10px;
  font-style: italic;
}

.hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.65;
  margin-bottom: 22px;
}

.track-card {
  background: rgba(26, 54, 93, 0.88);
  border-radius: 10px;
  padding: 22px;
  color: #fff;
}

.track-note {
  font-size: 0.78rem;
  opacity: 0.88;
  margin-bottom: 14px;
  line-height: 1.55;
}

.track-card .flex-input input {
  color: #444;
}

.track-card .btn-cta {
  padding: 11px 16px;
}

/* ── Feature Bar ── */
.feat-wrap {
  position: relative;
  z-index: 10;
  margin-top: -60px;
}

.feat-bar {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
  padding: 16px 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.fi {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  cursor: pointer;
  flex: 1;
  min-width: 100px;
}

.fi svg {
  width: 44px;
  height: 44px;
}

.fi .lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.3;
}

/* ── Deliver Beyond ── */
.deliver {
  background: var(--g);
  padding: 90px 0 50px;
}

.deliver-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 32px 36px;
}

/* ── Core Services ── */
.services {
  background: var(--g);
  padding: 60px 0 70px;
}

.svc-circle {
  width: 90px;
  height: 90px;
  border: 2.5px solid var(--a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: #fff;
}

.svc-circle svg {
  width: 52px;
  height: 52px;
}

.svc-card {
  text-align: center;
  padding: 12px 20px;
}

.svc-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a202c;
}

.svc-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.learn-more {
  color: var(--a);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.learn-more:hover {
  color: var(--ah);
}

/* ── Image Cards ── */
.img-cards {
  padding: 60px 0;
  background: #fff;
}

.icard {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.icard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}

.icard-img {
  height: 190px;
  background-size: cover;
  background-position: center;
}

.icard-body {
  padding: 14px 18px;
}

.icard-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icard-title::before {
  content: '→';
  color: var(--a);
}

.icard-sub {
  font-size: 0.78rem;
  color: #999;
}

/* ── Newsletter ── */
.newsletter {
  background: var(--p);
  padding: 50px 0;
}

.nl-title {
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.nl-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  background: var(--p);
  padding: 50px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.f-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.f-logo-circle {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.f-logo-circle svg {
  width: 38px;
  height: 38px;
}

.f-brand-name {
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: block;
}

.f-brand-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.68rem;
}

.f-about {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.s-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.s-link:hover {
  background: var(--a);
}

.f-head {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.f-list {
  list-style: none;
  padding: 0;
}

.f-list li {
  margin-bottom: 8px;
}

.f-list a,
.f-list span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  text-decoration: none;
}

.f-list a:hover {
  color: #fff;
}

/* ── Copyright ── */
.copy {
  background: var(--pd);
  padding: 12px 0;
}

.copy small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

/* ── Responsive: tablet ≤991px ── */
@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 999;
    border-radius: 0 0 8px 8px;
    padding: 4px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .btn-acct {
    display: none;
  }

  .hero {
    padding-bottom: 100px;
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 16px 24px;
  }

  .hero-left {
    text-align: center;
  }

  .hero-desc {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-left .btn-cta {
    width: 100%;
    text-align: center;
    display: block;
  }

  .track-card .flex-input {
    flex-direction: column;
    gap: 10px;
  }

  .track-card .flex-input input,
  .track-card .flex-input .btn-cta {
    border-radius: 5px;
  }

  .feat-wrap {
    margin-top: -48px;
  }

  .feat-bar {
    padding: 12px 10px;
  }

  .fi {
    min-width: 80px;
    padding: 6px 8px;
  }

  .fi svg {
    width: 36px;
    height: 36px;
  }

  .fi .lbl {
    font-size: 0.68rem;
  }

  .deliver {
    padding: 80px 0 40px;
  }

  .deliver-card {
    padding: 24px 20px;
  }

  .newsletter .text-center-mobile {
    text-align: center;
  }

  .nl-wrap {
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }

  .nl-wrap input,
  .nl-wrap .btn-cta {
    border-radius: 5px;
  }

  .nl-wrap .btn-cta {
    width: 100%;
  }
}

/* ── Track Page ── */
.track-page {
  background: var(--g);
  padding: 0 0 60px;
}

.track-banner {
  background: linear-gradient(135deg, var(--p) 0%, var(--pd) 100%);
  padding: 56px 0 68px;
  text-align: center;
  color: #fff;
}

.track-banner .track-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.4rem;
}

.track-banner h1 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.track-banner p {
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.track-search {
  max-width: 560px;
  margin: 0 auto;
}

.track-search .flex-input {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,.22);
}

.track-search .flex-input input {
  font-size: 0.92rem;
  padding: 13px 16px;
  border-radius: 8px 0 0 8px;
}

.track-search .flex-input .btn-cta {
  border-radius: 0 8px 8px 0;
  padding: 13px 24px;
}

.track-error {
  color: #fff;
  background: var(--error);
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
  margin-top: 14px;
}

.track-results {
  max-width: 900px;
  margin: -36px auto 0;
  position: relative;
  z-index: 5;
}

.track-loading {
  text-align: center;
  padding: 40px 0;
}

.track-loading .spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--a);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 12px;
}

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

.track-loading p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Full Card */
.track-card-full {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  overflow: hidden;
}

/* Card Header */
.tc-header {
  background: var(--p);
  color: #fff;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tc-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tc-header-left .tc-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.tc-cn-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .7;
  display: block;
}

.tc-cn-value {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.tc-status-badge {
  background: var(--t);
  color: #fff;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Route Bar */
.tc-route {
  background: var(--g);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tc-city {
  text-align: center;
}

.tc-city small {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tc-city strong {
  font-size: 0.95rem;
  color: #1a202c;
}

.tc-route-line {
  flex: 1;
  max-width: 200px;
  min-width: 60px;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.tc-route-line::before {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
}

.tc-route-line i {
  color: var(--a);
  font-size: 1rem;
  flex-shrink: 0;
}

.tc-route-line::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
}

/* Card Body */
.tc-body {
  padding: 24px 28px;
}

.tc-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--a);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tc-section-title i { font-size: 0.9rem; }

.tc-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

.tc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.tc-detail-item {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  gap: 8px;
}

.tc-detail-item:nth-child(odd) { padding-right: 20px; }
.tc-detail-item:nth-child(even) { padding-left: 20px; border-left: 1px solid #f5f5f5; }

.tc-detail-label {
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 90px;
  flex-shrink: 0;
}

.tc-detail-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d3748;
  word-break: break-word;
}

/* History Timeline */
.tc-hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.tc-hist-table thead th {
  background: var(--g);
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}

.tc-hist-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f5f5f5;
  color: #2d3748;
}

.tc-hist-table tbody tr:hover { background: #fafbfe; }

.tc-hist-table .hist-status {
  font-weight: 700;
  color: var(--p);
}

/* Responsive */
@media (max-width: 767px) {
  .track-results {
    margin-top: -24px;
    padding: 0 8px;
  }
  .tc-header { padding: 16px 18px; }
  .tc-route { padding: 12px 18px; }
  .tc-body { padding: 18px; }
  .tc-detail-grid { grid-template-columns: 1fr; }
  .tc-detail-item:nth-child(odd) { padding-right: 0; }
  .tc-detail-item:nth-child(even) { padding-left: 0; border-left: none; }
  .track-banner { padding: 40px 0 56px; }
}

@media (max-width: 575px) {
  .track-banner { padding: 32px 0 48px; }
  .track-search .flex-input { flex-direction: column; gap: 10px; }
  .track-search .flex-input input,
  .track-search .flex-input .btn-cta { border-radius: 8px; }
  .tc-header { flex-direction: column; align-items: flex-start; }
  .tc-cn-value { font-size: 1rem; }
}

/* ── Responsive: mobile ≤575px ── */
@media (max-width: 575px) {
  .ticker {
    font-size: 0.7rem;
  }

  .ticker-inner span {
    margin: 0 20px;
  }

  .hero {
    padding-bottom: 115px;
  }

  .hero-inner {
    padding: 28px 14px 20px;
    gap: 18px;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .track-card {
    padding: 16px;
  }

  .feat-wrap {
    margin-top: -28px;
    padding: 0 8px;
  }

  .feat-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 8px;
    border-radius: 8px;
  }

  .fi {
    min-width: unset;
    padding: 10px 6px;
    border: 1px solid #f0f0f0;
    flex: none;
  }

  .fi svg {
    width: 34px;
    height: 34px;
  }

  .fi .lbl {
    font-size: 0.65rem;
  }

  .deliver {
    padding: 55px 0 32px;
  }

  .deliver-card {
    padding: 18px 14px;
    border-radius: 8px;
  }

  .services {
    padding: 36px 0 48px;
  }

  .svc-circle {
    width: 76px;
    height: 76px;
  }

  .svc-circle svg {
    width: 44px;
    height: 44px;
  }

  .svc-card {
    padding: 8px 10px;
  }

  .img-cards {
    padding: 36px 0;
  }

  .icard-img {
    height: 170px;
  }

  .newsletter {
    padding: 32px 0;
  }

  .footer {
    padding: 32px 0 20px;
  }

  .copy small {
    font-size: 0.7rem;
  }
}
