/* public/css/tracking/tracking.css */
:root {
  --trk-dark: var(--nd-public-navy, #14274a);
  --trk-primary: var(--nd-public-red, #ff3b2f);
  --trk-orange: var(--nd-public-orange, #ff8a3d);
  --trk-green: #43bd48;
  --trk-bg: var(--nd-public-bg, #fbfcff);
  --trk-surface: #ffffff;
  --trk-border: rgba(20, 39, 74, .10);
  --trk-muted: var(--nd-public-muted, #526681);
  --trk-shadow: 0 24px 70px rgba(20, 39, 74, .10);
  --trk-radius: 18px;
}

/* Public /tracking search page */
.tracking-page-shell {
  position: relative;
  min-height: calc(100dvh - var(--nav-h, 72px));
  margin-top: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 4%, rgba(255, 59, 47, .19) 0, transparent 22rem),
    radial-gradient(circle at 100% 94%, rgba(132, 96, 255, .15) 0, transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 62%, #ffffff 100%),
    var(--trk-bg);
}

@supports not (min-height: 100dvh) {
  .tracking-page-shell { min-height: calc(100vh - var(--nav-h, 72px)); }
}

/* Tracking is already wrapped by the global layout. Remove extra bottom shell
   whitespace and keep the page flush under the navbar on authenticated pages. */
body:has(.tracking-page-shell) main {
  padding-bottom: 0 !important;
}

.tracking-page-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(20, 39, 74, .07) 1.8px, transparent 2px) 49% 13% / 28px 28px no-repeat,
    linear-gradient(110deg, transparent 0 56%, rgba(20, 39, 74, .08) 56.1%, transparent 56.4%),
    radial-gradient(circle at 82% 30%, rgba(255, 59, 47, .08), transparent 20rem);
  opacity: 1;
}
.tracking-hero-modern {
  position: relative;
  z-index: 1;
  /* Keep the tracking page visually attached to the fixed navbar/sidebar.
     The old 92px top padding created a large empty band on desktop. */
  padding: clamp(120px, 8.7vw, 146px) 0 clamp(54px, 5vw, 68px);
}
.tracking-hero-modern .container,
.tracking-benefits .container {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(2.4rem, 3.7vw, 6.1rem);
  padding-right: clamp(2.2rem, 3.6vw, 3.8rem);
}
.tracking-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .9fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.tracking-hero-grid > div:first-child {
  padding-top: clamp(3.4rem, 4.7vw, 4rem);
}
.tracking-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .62rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(67, 189, 72, .22);
  background: #ddf7db;
  color: #2e9632;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tracking-hero-title {
  margin: 0 0 1.45rem;
  font-size: clamp(3.4rem, 6.2vw, 5.35rem);
  line-height: .91;
  letter-spacing: -.045em;
  color: var(--trk-dark);
  font-weight: 900;
}
.tracking-hero-title .accent {
  display: block;
  color: transparent;
  background: linear-gradient(110deg, var(--trk-primary) 8%, var(--trk-orange) 47%, var(--trk-primary) 84%);
  -webkit-background-clip: text;
  background-clip: text;
}
.tracking-hero-subtitle {
  max-width: 680px;
  color: var(--trk-muted);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.65;
  margin-bottom: 1.85rem;
}
.tracking-search-card {
  position: relative;
  max-width: 720px;
  border: 1px solid rgba(20, 39, 74, .06);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--trk-shadow);
  backdrop-filter: blur(20px);
  padding: clamp(24px, 2.8vw, 34px);
}
.tracking-search-label {
  display: block;
  margin-bottom: .7rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--trk-dark);
}
.tracking-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: stretch;
}
.tracking-search-input-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 70px;
  padding: 0 1.35rem;
  border-radius: 14px;
  background: var(--trk-surface);
  border: 1px solid rgba(20, 39, 74, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 22px rgba(20, 39, 74, .06);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.tracking-search-input-wrap:focus-within {
  background: var(--trk-surface);
  border-color: rgba(255, 59, 47, .42);
  box-shadow: 0 0 0 .22rem rgba(255, 59, 47, .12), 0 10px 24px rgba(20, 39, 74, .08);
}
.tracking-search-input-wrap i {
  color: #7a8aa4;
  font-size: 1.22rem;
}
.tracking-search-input {
  border: 0;
  outline: 0;
  background: transparent!important;
  width: 100%;
  height: 100%;
  min-height: 64px;
  color: var(--trk-dark);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.tracking-search-input::placeholder {
  color: color-mix(in srgb, var(--trk-muted) 76%, transparent);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.tracking-search-submit {
  min-height: 70px;
  border: 0;
  border-radius: 12px;
  padding: 0 1.7rem;
  color: #fff;
  background: linear-gradient(135deg, var(--trk-orange), var(--trk-primary) 58%, #f02d25);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  box-shadow: 0 18px 35px rgba(255, 59, 47, .28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tracking-search-submit:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ff9a50, #ff3b2f 58%, #df241d);
  box-shadow: 0 20px 40px rgba(255, 59, 47, .34);
}
.tracking-search-error {
  margin-top: .85rem;
  color: #dc2626;
  font-weight: 700;
  font-size: .9rem;
}
.tracking-helper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.55rem;
}
.tracking-helper-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .72rem 1.05rem;
  border-radius: 999px;
  color: var(--trk-dark);
  background: var(--trk-surface);
  border: 1px solid var(--trk-border);
  text-decoration: none;
  font-weight: 700;
  font-size: .86rem;
}
.tracking-helper-chip:hover {
  color: var(--theme-primary, var(--theme-primary, #e61a0a));
  border-color: color-mix(in srgb, var(--theme-primary, var(--theme-primary, #e61a0a)) 28%, #e2e8f0);
}
.tracking-side-card {
  position: relative;
  border-radius: 22px;
  padding: clamp(2rem, 3.2vw, 2.5rem);
  background:
    radial-gradient(circle at 82% 8%, rgba(57, 89, 185, .45), transparent 18rem),
    linear-gradient(135deg, #14213f 0%, #1a2f55 58%, #203760 100%);
  color: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .22);
  overflow: hidden;
}
.tracking-side-card::before {
  content: '';
  position: absolute;
  inset: -45% -30% auto auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 59, 47, .32), transparent 68%);
}
.tracking-side-inner {
  position: relative;
  z-index: 1;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.tracking-side-card .tracking-eyebrow {
  border-color: rgba(67, 189, 72, .22);
  background: #ddf7db;
  color: #2e9632;
}
.tracking-preview-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1.35rem;
  padding: clamp(1.45rem, 2.4vw, 2rem);
  border: 1px solid rgba(20, 39, 74, .08);
  border-radius: 16px;
  background: #ffffff;
  color: var(--nd-page-text, #202223);
}
.tracking-preview-panel span {
  display: block;
  margin-bottom: .45rem;
  color: var(--trk-primary);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tracking-preview-panel strong {
  display: block;
  font-size: clamp(1.55rem, 2vw, 1.85rem);
  line-height: 1.15;
}
.tracking-preview-panel p {
  margin: .55rem 0 0;
  color: var(--trk-muted);
}
.tracking-preview-panel > i {
  width: 104px;
  height: 92px;
  display: grid;
  place-items: center;
  color: var(--trk-primary);
  background: linear-gradient(135deg, #ffe5df, #ffd3cc);
  border: 0;
  border-radius: 18px;
  font-size: 2.2rem;
}
.tracking-status-preview {
  display: grid;
  gap: 1.55rem;
  margin-top: 2rem;
}
.tracking-status-step {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 1rem;
  align-items: center;
}
.tracking-status-step .dot {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
}
.tracking-status-step.is-active .dot {
  background: linear-gradient(135deg, var(--trk-orange), var(--trk-primary));
}
.tracking-status-step:last-child .dot {
  background: #43bd48;
}
.tracking-status-step strong {
  display: block;
  font-size: 1.06rem;
}
.tracking-status-step span {
  color: rgba(255,255,255,.68);
  font-size: .95rem;
}
.tracking-page-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(1rem, 2.3vw, 3.3rem);
  margin-top: 1.9rem;
}
.tracking-page-meta span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--trk-dark);
  font-weight: 800;
  font-size: .96rem;
}
.tracking-page-meta i { color: var(--trk-dark); font-size: 1.15rem; }
.tracking-page-meta span::after {
  content: '→';
  color: var(--trk-primary);
  font-size: 1.1rem;
}
.tracking-benefits {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(20, 39, 74, .08);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 -10px 40px rgba(20, 39, 74, .04);
  padding: clamp(26px, 3vw, 36px) 0;
}
.tracking-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.tracking-benefit {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: .8rem clamp(1rem, 2.6vw, 2.1rem);
  border-right: 1px solid var(--trk-border);
}
.tracking-benefit:last-child {
  border-right: 0;
}
.tracking-benefit-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: var(--trk-primary);
  background: #ffe5e5;
  border: 0;
  border-radius: 12px;
  font-size: 1.6rem;
}
.tracking-benefit:nth-child(2) .tracking-benefit-icon { color: #1f5fff; background: #e7edff; }
.tracking-benefit:nth-child(3) .tracking-benefit-icon { color: #43bd48; background: #e4f8e4; }
.tracking-benefit:nth-child(4) .tracking-benefit-icon { color: #8b45e8; background: #f0e4ff; }
.tracking-benefit strong {
  display: block;
  color: var(--trk-dark);
  font-weight: 800;
  line-height: 1.25;
}
.tracking-benefit p {
  margin: .35rem 0 0;
  color: var(--trk-muted);
  line-height: 1.45;
  font-size: .95rem;
}

/* Result page styles extracted/refined */
  :root {
    --trk-dark: #0f172a;
    --trk-green: #10b981;
    --trk-blue: #2563eb;
    --trk-bg: #f8fafc;
  }

  /* Layout Fix: Spazio per navbar IGM */
  .trk-result-wrapper {
    position: relative;
    min-height: 100vh;
    background: var(--trk-bg);
    padding-top: 0px; /* Altezza navbar mobile standard */
  }

  /* Sticky Bar: Subito sotto navbar IGM */
  .trk-sticky-glass {
    position: sticky;
    top: 64px; /* Allinea con padding-top wrapper */
    z-index: 90;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  }

  /* Mobile: la barra di ricerca fa parte del normale flusso della pagina.
     Scorre via insieme al contenuto invece di restare fissata sotto la navbar. */
  @media (max-width: 767.98px) {
    .trk-sticky-glass {
      position: static;
      top: auto;
      z-index: auto;
    }
  }

  .courier-logo {
    max-width: 46px;
    max-height: 46px;
    object-fit: contain;
    display: block;
    border-radius: 10px; /* stesso raggio icona accanto */
  }

  .icon-sq {
    overflow: hidden;
  }

  /* Input Moderni */
  .search-capsule-sq {
    display: flex; align-items: center;
    background: #f1f5f9; border: 1px solid transparent;
    border-radius: 8px; height: 48px;
    transition: all 0.2s ease;
  }
  .search-capsule-sq:focus-within {
    background: #fff; border-color: var(--trk-dark);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
  }
  .capsule-input-sq {
    border: none; width: 100%; height: 100%; background: transparent;
    padding: 0 1rem; font-size: 1rem; outline: none; color: #334155;
  }
  .btn-square-icon {
    width: 48px; height: 48px; display: grid; place-items: center;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    color: #64748b; transition: all 0.2s;
  }

  /* Card Header */
  .card-header-bg {
    background: var(--trk-bg);
    color: white;
  }
  .text-emerald { color: var(--trk-green) !important; }
  .bg-emerald-subtle { background: #ecfdf5; color: var(--trk-green); }
  .bg-dark-subtle { background: #f1f5f9; color: #334155; }
  .bg-blue-subtle { background: #eff6ff; color: var(--trk-blue); }
  .text-blue { color: var(--trk-blue); }

  /* Status Pill */
  .status-badge-modern {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.75rem 1.25rem; border-radius: 8px;
    display: flex; align-items: center; gap: 1rem;
    transition: background 0.3s ease;
  }
  .status-dot {
    flex-shrink: 0; width: 10px; height: 10px;
    background: #fff; border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
  }
  .pulsate { animation: pulse 2s infinite; }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  }

  /* Info Grid */
  .info-box-sq {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.5rem;
  }
  .icon-sq {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px;
    display: grid; place-items: center; font-size: 1.3rem;
  }

  /* Tabs - Wrapping Logic */
  .nav-pills-modern .nav-link {
    color: #64748b; background: transparent;
    border: 1px solid #e2e8f0; border-radius: 50px;
    padding: 0.5rem 1rem;
    white-space: nowrap; /* Non spezzare il codice a metà */
  }
  .nav-pills-modern .nav-link.active {
    background: var(--trk-dark); color: #fff; border-color: var(--trk-dark);
  }

  /* Timeline Modern */
  .timeline-modern { position: relative; padding-left: 1.5rem; border-left: 2px solid #e2e8f0; }
  .tl-item { position: relative; padding-bottom: 2rem; padding-left: 1.5rem; }
  .tl-item:last-child { padding-bottom: 0; }
  .tl-marker {
    position: absolute; left: -9px; top: 2px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 3px solid #cbd5e1;
    z-index: 1; transition: all 0.3s;
  }
  .tl-item.active .tl-marker {
    border-color: var(--trk-green); background: var(--trk-green); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  }

  /* Mobile Specific */
  @media (min-width: 768px) {
    .border-md-end { border-right: 1px solid #e2e8f0 !important; }
    .border-md-bottom-0 { border-bottom: 0 !important; }
  }
  @media (max-width: 576px) {
    .display-6 { font-size: 1.75rem; }
    .status-badge-modern { padding: 0.6rem 1rem; }
    .info-box-sq { padding: 1.2rem; }
  }

  /* Dark mode — solo colori */
  html[data-theme="dark"] .trk-result-wrapper,
  body.dark-mode .trk-result-wrapper,
  body.dark .trk-result-wrapper {
    background: var(--spedire-bg, #0f172a);
    color: var(--spedire-text, #e5e7eb);
  }
  html[data-theme="dark"] .trk-result-wrapper .trk-sticky-glass,
  body.dark-mode .trk-result-wrapper .trk-sticky-glass,
  body.dark .trk-result-wrapper .trk-sticky-glass {
    background: color-mix(in srgb, var(--dark-card-bg, #111827) 92%, transparent);
    border-bottom-color: var(--spedire-border, #334155);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25);
  }
  html[data-theme="dark"] .trk-result-wrapper .search-capsule-sq,
  body.dark-mode .trk-result-wrapper .search-capsule-sq,
  body.dark .trk-result-wrapper .search-capsule-sq {
    background: var(--dark-input-bg, #0b1220);
    border-color: transparent;
  }
  html[data-theme="dark"] .trk-result-wrapper .search-capsule-sq:focus-within,
  body.dark-mode .trk-result-wrapper .search-capsule-sq:focus-within,
  body.dark .trk-result-wrapper .search-capsule-sq:focus-within {
    background: var(--dark-input-bg, #0b1220);
    border-color: var(--spedire-border, #475569);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary, #6366f1) 22%, transparent);
  }
  html[data-theme="dark"] .trk-result-wrapper .capsule-input-sq,
  body.dark-mode .trk-result-wrapper .capsule-input-sq,
  body.dark .trk-result-wrapper .capsule-input-sq {
    color: var(--spedire-text, #e5e7eb);
  }
  html[data-theme="dark"] .trk-result-wrapper .capsule-input-sq::placeholder,
  body.dark-mode .trk-result-wrapper .capsule-input-sq::placeholder,
  body.dark .trk-result-wrapper .capsule-input-sq::placeholder {
    color: var(--dark-muted-color, #94a3b8);
  }
  html[data-theme="dark"] .trk-result-wrapper .btn-square-icon,
  body.dark-mode .trk-result-wrapper .btn-square-icon,
  body.dark .trk-result-wrapper .btn-square-icon {
    background: var(--dark-input-bg, #0b1220);
    border-color: var(--spedire-border, #334155);
    color: var(--dark-muted-color, #94a3b8);
  }
  html[data-theme="dark"] .trk-result-wrapper .glass-card-full,
  body.dark-mode .trk-result-wrapper .glass-card-full,
  body.dark .trk-result-wrapper .glass-card-full {
    background: var(--dark-card-bg, #111827);
    border-color: var(--spedire-border, #334155) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
  html[data-theme="dark"] .trk-result-wrapper .card-header-dark,
  body.dark-mode .trk-result-wrapper .card-header-dark,
  body.dark .trk-result-wrapper .card-header-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--spedire-text, #f1f5f9);
    border-bottom: 1px solid var(--spedire-border, #334155);
  }
  html[data-theme="dark"] .trk-result-wrapper .card-header-dark .text-dark,
  html[data-theme="dark"] .trk-result-wrapper .card-header-dark .tracking-code,
  body.dark-mode .trk-result-wrapper .card-header-dark .text-dark,
  body.dark-mode .trk-result-wrapper .card-header-dark .tracking-code,
  body.dark .trk-result-wrapper .card-header-dark .text-dark,
  body.dark .trk-result-wrapper .card-header-dark .tracking-code {
    color: var(--spedire-text, #f8fafc) !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .card-header-dark .badge.border-dark,
  body.dark-mode .trk-result-wrapper .card-header-dark .badge.border-dark,
  body.dark .trk-result-wrapper .card-header-dark .badge.border-dark {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--dark-muted-color, #94a3b8) !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .bg-white,
  body.dark-mode .trk-result-wrapper .bg-white,
  body.dark .trk-result-wrapper .bg-white {
    background-color: var(--dark-card-bg, #111827) !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .border-light-subtle,
  body.dark-mode .trk-result-wrapper .border-light-subtle,
  body.dark .trk-result-wrapper .border-light-subtle {
    border-color: var(--spedire-border, #334155) !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .text-dark,
  body.dark-mode .trk-result-wrapper .text-dark,
  body.dark .trk-result-wrapper .text-dark {
    color: var(--spedire-text, #e5e7eb) !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .text-muted,
  html[data-theme="dark"] .trk-result-wrapper .text-secondary,
  body.dark-mode .trk-result-wrapper .text-muted,
  body.dark-mode .trk-result-wrapper .text-secondary,
  body.dark .trk-result-wrapper .text-muted,
  body.dark .trk-result-wrapper .text-secondary {
    color: var(--dark-muted-color, #94a3b8) !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .bg-dark-subtle,
  body.dark-mode .trk-result-wrapper .bg-dark-subtle,
  body.dark .trk-result-wrapper .bg-dark-subtle {
    background: rgba(148, 163, 184, 0.12) !important;
    color: var(--spedire-text, #e5e7eb) !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .bg-emerald-subtle,
  body.dark-mode .trk-result-wrapper .bg-emerald-subtle,
  body.dark .trk-result-wrapper .bg-emerald-subtle {
    background: color-mix(in srgb, var(--trk-green) 18%, var(--dark-card-bg, #111827)) !important;
    color: #6ee7b7 !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .bg-blue-subtle,
  body.dark-mode .trk-result-wrapper .bg-blue-subtle,
  body.dark .trk-result-wrapper .bg-blue-subtle {
    background: color-mix(in srgb, var(--trk-blue) 20%, var(--dark-card-bg, #111827)) !important;
    color: #93c5fd !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .text-emerald,
  body.dark-mode .trk-result-wrapper .text-emerald,
  body.dark .trk-result-wrapper .text-emerald {
    color: #34d399 !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .text-blue,
  body.dark-mode .trk-result-wrapper .text-blue,
  body.dark .trk-result-wrapper .text-blue {
    color: #93c5fd !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .nav-pills-modern .nav-link,
  body.dark-mode .trk-result-wrapper .nav-pills-modern .nav-link,
  body.dark .trk-result-wrapper .nav-pills-modern .nav-link {
    color: var(--dark-muted-color, #94a3b8);
    border-color: var(--spedire-border, #334155);
    background: transparent;
  }
  html[data-theme="dark"] .trk-result-wrapper .nav-pills-modern .nav-link.active,
  body.dark-mode .trk-result-wrapper .nav-pills-modern .nav-link.active,
  body.dark .trk-result-wrapper .nav-pills-modern .nav-link.active {
    background: var(--theme-primary, var(--trk-dark));
    border-color: var(--theme-primary, var(--trk-dark));
    color: #fff;
  }
  html[data-theme="dark"] .trk-result-wrapper .timeline-modern,
  body.dark-mode .trk-result-wrapper .timeline-modern,
  body.dark .trk-result-wrapper .timeline-modern {
    border-left-color: var(--spedire-border, #334155);
  }
  html[data-theme="dark"] .trk-result-wrapper .tl-marker,
  body.dark-mode .trk-result-wrapper .tl-marker,
  body.dark .trk-result-wrapper .tl-marker {
    background: var(--dark-card-bg, #111827);
    border-color: #64748b;
  }
  html[data-theme="dark"] .trk-result-wrapper .tl-item.active .tl-marker,
  body.dark-mode .trk-result-wrapper .tl-item.active .tl-marker,
  body.dark .trk-result-wrapper .tl-item.active .tl-marker {
    border-color: var(--trk-green);
    background: var(--trk-green);
  }
  html[data-theme="dark"] .trk-result-wrapper .alert-light,
  body.dark-mode .trk-result-wrapper .alert-light,
  body.dark .trk-result-wrapper .alert-light {
    background: rgba(148, 163, 184, 0.08) !important;
    border-color: var(--spedire-border, #334155) !important;
    color: var(--dark-muted-color, #94a3b8) !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .border-top,
  body.dark-mode .trk-result-wrapper .border-top,
  body.dark .trk-result-wrapper .border-top {
    border-top-color: var(--spedire-border, #334155) !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .border-bottom,
  body.dark-mode .trk-result-wrapper .border-bottom,
  body.dark .trk-result-wrapper .border-bottom {
    border-bottom-color: var(--spedire-border, #334155) !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .btn-outline-light.text-muted,
  body.dark-mode .trk-result-wrapper .btn-outline-light.text-muted,
  body.dark .trk-result-wrapper .btn-outline-light.text-muted {
    color: var(--dark-muted-color, #94a3b8) !important;
    border-color: var(--spedire-border, #334155) !important;
  }
  html[data-theme="dark"] .trk-result-wrapper .btn-outline-light.text-muted:hover,
  body.dark-mode .trk-result-wrapper .btn-outline-light.text-muted:hover,
  body.dark .trk-result-wrapper .btn-outline-light.text-muted:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--spedire-text, #e5e7eb) !important;
  }
  @media (min-width: 768px) {
    html[data-theme="dark"] .trk-result-wrapper .border-md-end,
    body.dark-mode .trk-result-wrapper .border-md-end,
    body.dark .trk-result-wrapper .border-md-end {
      border-right-color: var(--spedire-border, #334155) !important;
    }
  }
.trk-status-caption { font-size: .65rem; }
.trk-empty-icon { width: 80px; height: 80px; }

/* Standalone /track public page */
.tracking-public-page {
  min-height: 100vh;
  background: #f6f8fb;
  color: #0f172a;
}
.tracking-public-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--theme-primary, var(--theme-primary, #e61a0a)) 24%, transparent), transparent 36%),
    linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  padding: 3.2rem 0 4.5rem;
}
.tracking-public-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(246,248,251,.96));
}
.tracking-public-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: .65rem;
}
.tracking-public-logo {
  max-height: 46px;
  max-width: 190px;
  object-fit: contain;
}
.tracking-public-main {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin-top: -3.25rem;
}
.tracking-public-card {
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15,23,42,.12);
  overflow: hidden;
}
.tracking-public-summary {
  text-align: center;
  padding: 2rem;
  border-bottom: 1px solid #e2e8f0;
}
.tracking-public-courier-logo {
  max-height: 42px;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: .8rem;
}
.tracking-public-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: .85rem;
}
.tracking-public-badge.bg-warning { color: #854d0e !important; background: #fef3c7 !important; }
.tracking-public-badge.bg-info { color: #075985 !important; background: #e0f2fe !important; }
.tracking-public-badge.bg-success { color: #166534 !important; background: #dcfce7 !important; }
.tracking-public-badge.bg-secondary { color: #334155 !important; background: #e2e8f0 !important; }
.tracking-public-timeline {
  padding: 1.7rem 2rem 2rem;
}
.tracking-public-timeline .timeline-item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 1.45rem;
}
.tracking-public-timeline .timeline-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}
.tracking-public-timeline .timeline-item:last-child::before { display: none; }
.tracking-public-timeline .timeline-dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--theme-primary, var(--theme-primary, #e61a0a));
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--theme-primary, var(--theme-primary, #e61a0a));
}
.tracking-public-timeline .timeline-item.past .timeline-dot {
  background: #94a3b8;
  box-shadow: 0 0 0 2px #94a3b8;
}
.tracking-public-empty {
  text-align: center;
  color: #64748b;
  padding: 3rem 1rem;
}
.tracking-public-footer {
  text-align: center;
  color: #64748b;
  font-size: .85rem;
  padding: 1.2rem 0 2rem;
}

@media (max-width: 959.98px) {
  .tracking-hero-grid { grid-template-columns: 1fr; }
  .tracking-side-card { display: none; }
  .tracking-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracking-benefit:nth-child(2) { border-right: 0; }
  .tracking-benefit:nth-child(n + 3) { border-top: 1px solid var(--trk-border); }
}
@media (max-width: 575.98px) {
  .tracking-hero-modern { padding: 34px 0 54px; }
  .tracking-search-row { grid-template-columns: 1fr; }
  .tracking-search-submit { width: 100%; }
  .tracking-helper-actions { justify-content: center; }
  .tracking-page-meta { justify-content: center; }
  .tracking-hero-title, .tracking-hero-subtitle { text-align: center; }
  .tracking-eyebrow { margin-inline: auto; }
  .tracking-benefits-grid { grid-template-columns: 1fr; }
  .tracking-benefit,
  .tracking-benefit:nth-child(2) {
    border-right: 0;
    border-top: 1px solid var(--trk-border);
  }
  .tracking-benefit:first-child { border-top: 0; }
  .tracking-public-main { margin-top: -2rem; }
  .tracking-public-summary, .tracking-public-timeline { padding-inline: 1.2rem; }
}

html[data-theme="dark"] .tracking-page-shell,
body.dark-mode .tracking-page-shell,
body.dark .tracking-page-shell {
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--theme-primary, #fb7185) 12%, transparent) 0, transparent 32%),
    linear-gradient(180deg, var(--nd-page-bg, #0f172a) 0%, color-mix(in srgb, var(--nd-page-bg, #0f172a) 86%, #000) 100%);
}
html[data-theme="dark"] .tracking-hero-title,
body.dark-mode .tracking-hero-title,
body.dark .tracking-hero-title { color: #f8fafc; }
html[data-theme="dark"] .tracking-hero-subtitle,
body.dark-mode .tracking-hero-subtitle,
body.dark .tracking-hero-subtitle,
html[data-theme="dark"] .tracking-page-meta span,
body.dark-mode .tracking-page-meta span,
body.dark .tracking-page-meta span { color: #94a3b8; }
html[data-theme="dark"] .tracking-search-card,
body.dark-mode .tracking-search-card,
body.dark .tracking-search-card,
html[data-theme="dark"] .tracking-helper-chip,
body.dark-mode .tracking-helper-chip,
body.dark .tracking-helper-chip {
  background: color-mix(in srgb, var(--nd-page-surface, #111827) 88%, transparent);
  border-color: var(--trk-border);
}
html[data-theme="dark"] .tracking-search-input-wrap,
body.dark-mode .tracking-search-input-wrap,
body.dark .tracking-search-input-wrap {
  background: var(--dark-input-bg, #0b1220);
  border-color: var(--trk-border);
}
html[data-theme="dark"] .tracking-search-input,
body.dark-mode .tracking-search-input,
body.dark .tracking-search-input { color: #e5e7eb; }
html[data-theme="dark"] .tracking-preview-panel,
body.dark-mode .tracking-preview-panel,
body.dark .tracking-preview-panel,
html[data-theme="dark"] .tracking-benefits,
body.dark-mode .tracking-benefits,
body.dark .tracking-benefits {
  background: var(--nd-page-surface, #111827);
}
html[data-theme="dark"] .tracking-preview-panel,
body.dark-mode .tracking-preview-panel,
body.dark .tracking-preview-panel {
  color: var(--nd-page-text, #e5e7eb);
}
.tracking-search-input-wrap.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 .22rem rgba(239,68,68,.12);
}
.letter-spacing-sm { letter-spacing: .06em; }
.fw-black { font-weight: 900; }

/* Tracking search: align width/size with FAQ search controls, reusing existing classes. */
body.nedate-public-standard:has(.tracking-page-shell) .tracking-search-card {
  width: 100% !important;
  max-width: 860px !important;
  padding: 1rem 1.05rem !important;
}

body.nedate-public-standard:has(.tracking-page-shell) .tracking-search-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 96px !important;
  align-items: center !important;
  gap: .8rem !important;
}

body.nedate-public-standard:has(.tracking-page-shell) .tracking-search-row > div {
  min-width: 0 !important;
}

body.nedate-public-standard:has(.tracking-page-shell) button.tracking-search-submit:not(.btn-icon-glass):not(.btn-user-glass) {
  width: 96px !important;
  min-width: 96px !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 1.6rem !important;
  border-radius: 8px !important;
}

@media (max-width: 575.98px) {
  body.nedate-public-standard:has(.tracking-page-shell) .tracking-search-row {
    grid-template-columns: 1fr !important;
  }

  body.nedate-public-standard:has(.tracking-page-shell) button.tracking-search-submit:not(.btn-icon-glass):not(.btn-user-glass) {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Tracking page — stronger dark-mode overrides for authenticated /tracking */
html[data-theme="dark"] body:has(.tracking-page-shell),
html[data-bs-theme="dark"] body:has(.tracking-page-shell),
body.dark-mode:has(.tracking-page-shell),
body.dark:has(.tracking-page-shell) {
  --trk-dark-page-bg: var(--nd-page-bg, #0b1220);
  --trk-dark-surface: var(--nd-page-surface, #111827);
  --trk-dark-surface-2: color-mix(in srgb, var(--nd-page-surface, #111827) 92%, #1f2937);
  --trk-dark-input: var(--dark-input-bg, #0b1220);
  --trk-dark-border: var(--nd-page-border, #243247);
  --trk-dark-border-soft: color-mix(in srgb, var(--nd-page-border, #243247) 72%, transparent);
  --trk-dark-text: var(--nd-page-text, #e5e7eb);
  --trk-dark-text-strong: #f8fafc;
  --trk-dark-muted: var(--dark-muted-color, #94a3b8);
}

html[data-theme="dark"] .tracking-page-shell,
html[data-bs-theme="dark"] .tracking-page-shell,
body.dark-mode .tracking-page-shell,
body.dark .tracking-page-shell {
  background:
    radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--theme-primary, #fb7185) 12%, transparent) 0, transparent 28%),
    radial-gradient(circle at 92% 88%, color-mix(in srgb, #8b5cf6 10%, transparent) 0, transparent 26%),
    linear-gradient(180deg, var(--trk-dark-page-bg, #0b1220) 0%, color-mix(in srgb, var(--trk-dark-page-bg, #0b1220) 86%, #000) 100%);
}

html[data-theme="dark"] .tracking-page-shell::before,
html[data-bs-theme="dark"] .tracking-page-shell::before,
body.dark-mode .tracking-page-shell::before,
body.dark .tracking-page-shell::before {
  background:
    radial-gradient(circle, rgba(255,255,255,.06) 1.6px, transparent 2px) 49% 13% / 28px 28px no-repeat,
    linear-gradient(110deg, transparent 0 56%, rgba(255,255,255,.04) 56.1%, transparent 56.4%),
    radial-gradient(circle at 82% 30%, rgba(255, 59, 47, .08), transparent 20rem);
}

html[data-theme="dark"] body.nedate-public-standard:has(.tracking-page-shell) .tracking-page-shell .faq-modern-eyebrow,
html[data-bs-theme="dark"] body.nedate-public-standard:has(.tracking-page-shell) .tracking-page-shell .faq-modern-eyebrow,
body.dark-mode.nedate-public-standard:has(.tracking-page-shell) .tracking-page-shell .faq-modern-eyebrow,
body.dark.nedate-public-standard:has(.tracking-page-shell) .tracking-page-shell .faq-modern-eyebrow,
html[data-theme="dark"] .tracking-page-shell .faq-modern-eyebrow,
html[data-bs-theme="dark"] .tracking-page-shell .faq-modern-eyebrow,
body.dark-mode .tracking-page-shell .faq-modern-eyebrow,
body.dark .tracking-page-shell .faq-modern-eyebrow {
  color: #ff8c83 !important;
  background: color-mix(in srgb, var(--theme-primary, var(--theme-primary, #e61a0a)) 14%, transparent) !important;
  border-color: color-mix(in srgb, var(--theme-primary, var(--theme-primary, #e61a0a)) 24%, transparent) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-modern-title.faq-modern-title,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-modern-title.faq-modern-title,
body.dark-mode .tracking-page-shell .tracking-modern-title.faq-modern-title,
body.dark .tracking-page-shell .tracking-modern-title.faq-modern-title,
html[data-theme="dark"] .tracking-page-shell .tracking-hero-title,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-hero-title,
body.dark-mode .tracking-page-shell .tracking-hero-title,
body.dark .tracking-page-shell .tracking-hero-title {
  color: var(--trk-dark-text-strong, #f8fafc) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-modern-title-line.contact-modern-title-line,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-modern-title-line.contact-modern-title-line,
body.dark-mode .tracking-page-shell .tracking-modern-title-line.contact-modern-title-line,
body.dark .tracking-page-shell .tracking-modern-title-line.contact-modern-title-line,
html[data-theme="dark"] .tracking-page-shell .tracking-hero-title .tracking-modern-title-line,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-hero-title .tracking-modern-title-line,
body.dark-mode .tracking-page-shell .tracking-hero-title .tracking-modern-title-line,
body.dark .tracking-page-shell .tracking-hero-title .tracking-modern-title-line {
  color: var(--trk-dark-text-strong, #f8fafc) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-modern-subtitle.pricing-modern-subtitle,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-modern-subtitle.pricing-modern-subtitle,
body.dark-mode .tracking-page-shell .tracking-modern-subtitle.pricing-modern-subtitle,
body.dark .tracking-page-shell .tracking-modern-subtitle.pricing-modern-subtitle,
html[data-theme="dark"] .tracking-page-shell .tracking-hero-subtitle,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-hero-subtitle,
body.dark-mode .tracking-page-shell .tracking-hero-subtitle,
body.dark .tracking-page-shell .tracking-hero-subtitle {
  color: var(--trk-dark-muted, #94a3b8) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-search-card,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-search-card,
body.dark-mode .tracking-page-shell .tracking-search-card,
body.dark .tracking-page-shell .tracking-search-card {
  background: color-mix(in srgb, var(--trk-dark-surface, #111827) 92%, transparent) !important;
  border-color: var(--trk-dark-border, #243247) !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .28) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-search-card .form-control,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-search-card .form-control,
body.dark-mode .tracking-page-shell .tracking-search-card .form-control,
body.dark .tracking-page-shell .tracking-search-card .form-control {
  background: var(--trk-dark-input, #0b1220) !important;
  border-color: var(--trk-dark-border, #243247) !important;
  color: var(--trk-dark-text, #e5e7eb) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-search-card .form-control:focus,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-search-card .form-control:focus,
body.dark-mode .tracking-page-shell .tracking-search-card .form-control:focus,
body.dark .tracking-page-shell .tracking-search-card .form-control:focus {
  border-color: color-mix(in srgb, var(--theme-primary, var(--theme-primary, #e61a0a)) 52%, #ffffff) !important;
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--theme-primary, var(--theme-primary, #e61a0a)) 16%, transparent) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-search-card .form-control::placeholder,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-search-card .form-control::placeholder,
body.dark-mode .tracking-page-shell .tracking-search-card .form-control::placeholder,
body.dark .tracking-page-shell .tracking-search-card .form-control::placeholder {
  color: var(--trk-dark-muted, #94a3b8) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-search-card .form-floating > label,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-search-card .form-floating > label,
body.dark-mode .tracking-page-shell .tracking-search-card .form-floating > label,
body.dark .tracking-page-shell .tracking-search-card .form-floating > label,
html[data-theme="dark"] .tracking-page-shell .tracking-search-label,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-search-label,
body.dark-mode .tracking-page-shell .tracking-search-label,
body.dark .tracking-page-shell .tracking-search-label {
  color: var(--trk-dark-text-strong, #f8fafc) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-helper-chip,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-helper-chip,
body.dark-mode .tracking-page-shell .tracking-helper-chip,
body.dark .tracking-page-shell .tracking-helper-chip {
  color: var(--trk-dark-text, #e5e7eb) !important;
  background: color-mix(in srgb, var(--trk-dark-surface, #111827) 92%, transparent) !important;
  border-color: var(--trk-dark-border, #243247) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-helper-chip i,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-helper-chip i,
body.dark-mode .tracking-page-shell .tracking-helper-chip i,
body.dark .tracking-page-shell .tracking-helper-chip i {
  color: #ff8c83 !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-page-meta span,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-page-meta span,
body.dark-mode .tracking-page-shell .tracking-page-meta span,
body.dark .tracking-page-shell .tracking-page-meta span,
html[data-theme="dark"] .tracking-page-shell .tracking-page-meta i,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-page-meta i,
body.dark-mode .tracking-page-shell .tracking-page-meta i,
body.dark .tracking-page-shell .tracking-page-meta i {
  color: var(--trk-dark-muted, #94a3b8) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-side-card,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-side-card,
body.dark-mode .tracking-page-shell .tracking-side-card,
body.dark .tracking-page-shell .tracking-side-card {
  background:
    radial-gradient(circle at 82% 8%, rgba(99, 102, 241, .24), transparent 18rem),
    linear-gradient(135deg, #1b2438 0%, #141c2d 58%, #101826 100%) !important;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .34) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-preview-panel,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-preview-panel,
body.dark-mode .tracking-page-shell .tracking-preview-panel,
body.dark .tracking-page-shell .tracking-preview-panel {
  background: color-mix(in srgb, var(--trk-dark-surface, #111827) 90%, #1f2937) !important;
  border-color: rgba(255,255,255,.10) !important;
  color: var(--trk-dark-text, #e5e7eb) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-preview-panel p,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-preview-panel p,
body.dark-mode .tracking-page-shell .tracking-preview-panel p,
body.dark .tracking-page-shell .tracking-preview-panel p {
  color: var(--trk-dark-muted, #94a3b8) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefits,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefits,
body.dark-mode .tracking-page-shell .tracking-benefits,
body.dark .tracking-page-shell .tracking-benefits {
  background: color-mix(in srgb, var(--trk-dark-surface, #111827) 90%, transparent) !important;
  border-top-color: var(--trk-dark-border, #243247) !important;
  box-shadow: 0 -8px 30px rgba(0,0,0,.16) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefit,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefit,
body.dark-mode .tracking-page-shell .tracking-benefit,
body.dark .tracking-page-shell .tracking-benefit {
  border-right-color: var(--trk-dark-border-soft, rgba(255,255,255,.12)) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefit strong,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefit strong,
body.dark-mode .tracking-page-shell .tracking-benefit strong,
body.dark .tracking-page-shell .tracking-benefit strong {
  color: var(--trk-dark-text-strong, #f8fafc) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefit p,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefit p,
body.dark-mode .tracking-page-shell .tracking-benefit p,
body.dark .tracking-page-shell .tracking-benefit p {
  color: var(--trk-dark-muted, #94a3b8) !important;
}


/* === TRACKING PAGE: stronger dark mode polish (2026-06-09) === */
html[data-theme="dark"] .tracking-page-shell,
html[data-bs-theme="dark"] .tracking-page-shell,
body.dark-mode .tracking-page-shell,
body.dark .tracking-page-shell,
body.theme-dark .tracking-page-shell {
  background:
    radial-gradient(circle at 0% 6%, rgba(255, 59, 47, .14) 0, transparent 24rem),
    radial-gradient(circle at 100% 0%, rgba(99, 102, 241, .16) 0, transparent 22rem),
    linear-gradient(180deg, #07101f 0%, #081223 52%, #091325 100%) !important;
}

html[data-theme="dark"] .tracking-page-shell::before,
html[data-bs-theme="dark"] .tracking-page-shell::before,
body.dark-mode .tracking-page-shell::before,
body.dark .tracking-page-shell::before,
body.theme-dark .tracking-page-shell::before {
  background:
    radial-gradient(circle, rgba(255,255,255,.06) 1.6px, transparent 2px) 49% 13% / 28px 28px no-repeat,
    linear-gradient(110deg, transparent 0 56%, rgba(255,255,255,.035) 56.1%, transparent 56.4%),
    radial-gradient(circle at 82% 30%, rgba(255, 59, 47, .08), transparent 20rem) !important;
  opacity: .9 !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-search-card,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-search-card,
body.dark-mode .tracking-page-shell .tracking-search-card,
body.dark .tracking-page-shell .tracking-search-card,
body.theme-dark .tracking-page-shell .tracking-search-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, .94), rgba(10, 17, 30, .96)) !important;
  border-color: rgba(59, 73, 97, .9) !important;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .34) !important;
  backdrop-filter: blur(18px) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-search-card .form-floating > .form-control,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-search-card .form-floating > .form-control,
body.dark-mode .tracking-page-shell .tracking-search-card .form-floating > .form-control,
body.dark .tracking-page-shell .tracking-search-card .form-floating > .form-control,
body.theme-dark .tracking-page-shell .tracking-search-card .form-floating > .form-control {
  background: #081120 !important;
  border-color: #2a3a56 !important;
  color: #f8fafc !important;
  min-height: 72px !important;
  padding-top: 1.55rem !important;
  padding-bottom: .72rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-search-card .form-floating > .form-control:focus,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-search-card .form-floating > .form-control:focus,
body.dark-mode .tracking-page-shell .tracking-search-card .form-floating > .form-control:focus,
body.dark .tracking-page-shell .tracking-search-card .form-floating > .form-control:focus,
body.theme-dark .tracking-page-shell .tracking-search-card .form-floating > .form-control:focus {
  background: #081120 !important;
  border-color: rgba(255, 91, 77, .95) !important;
  box-shadow: 0 0 0 .2rem rgba(255, 59, 47, .12) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-search-card .form-floating > label,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-search-card .form-floating > label,
body.dark-mode .tracking-page-shell .tracking-search-card .form-floating > label,
body.dark .tracking-page-shell .tracking-search-card .form-floating > label,
body.theme-dark .tracking-page-shell .tracking-search-card .form-floating > label {
  color: #cbd5e1 !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-search-card .form-floating > .form-control:focus ~ label,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-search-card .form-floating > .form-control:focus ~ label,
body.dark-mode .tracking-page-shell .tracking-search-card .form-floating > .form-control:focus ~ label,
body.dark .tracking-page-shell .tracking-search-card .form-floating > .form-control:focus ~ label,
body.theme-dark .tracking-page-shell .tracking-search-card .form-floating > .form-control:focus ~ label,
html[data-theme="dark"] .tracking-page-shell .tracking-search-card .form-floating > .form-control:not(:placeholder-shown) ~ label,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-search-card .form-floating > .form-control:not(:placeholder-shown) ~ label,
body.dark-mode .tracking-page-shell .tracking-search-card .form-floating > .form-control:not(:placeholder-shown) ~ label,
body.dark .tracking-page-shell .tracking-search-card .form-floating > .form-control:not(:placeholder-shown) ~ label,
body.theme-dark .tracking-page-shell .tracking-search-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #f8fafc !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-helper-chip,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-helper-chip,
body.dark-mode .tracking-page-shell .tracking-helper-chip,
body.dark .tracking-page-shell .tracking-helper-chip,
body.theme-dark .tracking-page-shell .tracking-helper-chip {
  background: rgba(10, 17, 30, .92) !important;
  border-color: #2a3a56 !important;
  color: #e5e7eb !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-page-meta span,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-page-meta span,
body.dark-mode .tracking-page-shell .tracking-page-meta span,
body.dark .tracking-page-shell .tracking-page-meta span,
body.theme-dark .tracking-page-shell .tracking-page-meta span {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-side-card,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-side-card,
body.dark-mode .tracking-page-shell .tracking-side-card,
body.dark .tracking-page-shell .tracking-side-card,
body.theme-dark .tracking-page-shell .tracking-side-card {
  background:
    radial-gradient(circle at 82% 8%, rgba(99, 102, 241, .18), transparent 18rem),
    linear-gradient(135deg, #1b2436 0%, #151e2d 58%, #111827 100%) !important;
  border: 1px solid rgba(75, 85, 99, .35) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-preview-panel,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-preview-panel,
body.dark-mode .tracking-page-shell .tracking-preview-panel,
body.dark .tracking-page-shell .tracking-preview-panel,
body.theme-dark .tracking-page-shell .tracking-preview-panel {
  background: linear-gradient(180deg, rgba(21, 29, 43, .96), rgba(17, 24, 39, .98)) !important;
  border-color: rgba(148, 163, 184, .18) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-preview-panel > i,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-preview-panel > i,
body.dark-mode .tracking-page-shell .tracking-preview-panel > i,
body.dark .tracking-page-shell .tracking-preview-panel > i,
body.theme-dark .tracking-page-shell .tracking-preview-panel > i {
  background: linear-gradient(135deg, rgba(255, 91, 77, .18), rgba(255, 138, 61, .20)) !important;
  color: #ff8a7a !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-status-step .dot,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-status-step .dot,
body.dark-mode .tracking-page-shell .tracking-status-step .dot,
body.dark .tracking-page-shell .tracking-status-step .dot,
body.theme-dark .tracking-page-shell .tracking-status-step .dot {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.12) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefits,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefits,
body.dark-mode .tracking-page-shell .tracking-benefits,
body.dark .tracking-page-shell .tracking-benefits,
body.theme-dark .tracking-page-shell .tracking-benefits {
  background: rgba(8, 15, 28, .92) !important;
  border-top-color: rgba(59, 73, 97, .65) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefit,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefit,
body.dark-mode .tracking-page-shell .tracking-benefit,
body.dark .tracking-page-shell .tracking-benefit,
body.theme-dark .tracking-page-shell .tracking-benefit {
  border-right-color: rgba(59, 73, 97, .5) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefit-icon,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefit-icon,
body.dark-mode .tracking-page-shell .tracking-benefit-icon,
body.dark .tracking-page-shell .tracking-benefit-icon,
body.theme-dark .tracking-page-shell .tracking-benefit-icon {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

@media (max-width: 959.98px) {
  html[data-theme="dark"] .tracking-page-shell,
  html[data-bs-theme="dark"] .tracking-page-shell,
  body.dark-mode .tracking-page-shell,
  body.dark .tracking-page-shell,
  body.theme-dark .tracking-page-shell {
    background: linear-gradient(180deg, #07101f 0%, #081223 100%) !important;
  }
}


/* === TRACKING PAGE: dark mode readability hard fix (2026-06-09 v2) === */
html[data-theme="dark"] .tracking-page-shell .tracking-modern-title,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-modern-title,
body.dark-mode .tracking-page-shell .tracking-modern-title,
body.dark .tracking-page-shell .tracking-modern-title,
body.theme-dark .tracking-page-shell .tracking-modern-title,
html[data-theme="dark"] .tracking-page-shell .tracking-modern-title-line,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-modern-title-line,
body.dark-mode .tracking-page-shell .tracking-modern-title-line,
body.dark .tracking-page-shell .tracking-modern-title-line,
body.theme-dark .tracking-page-shell .tracking-modern-title-line {
  color: #f4f7fb !important;
  text-shadow: 0 2px 16px rgba(0,0,0,.20);
}

html[data-theme="dark"] .tracking-page-shell .tracking-modern-title-accent,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-modern-title-accent,
body.dark-mode .tracking-page-shell .tracking-modern-title-accent,
body.dark .tracking-page-shell .tracking-modern-title-accent,
body.theme-dark .tracking-page-shell .tracking-modern-title-accent {
  color: transparent !important;
  background: linear-gradient(135deg, #ff9466 0%, #ff5b4d 45%, #ff3b2f 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-side-card,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-side-card,
body.dark-mode .tracking-page-shell .tracking-side-card,
body.dark .tracking-page-shell .tracking-side-card,
body.theme-dark .tracking-page-shell .tracking-side-card {
  background:
    radial-gradient(circle at 82% 8%, rgba(99, 102, 241, .14), transparent 18rem),
    linear-gradient(135deg, #232b39 0%, #202836 58%, #1d2431 100%) !important;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .40) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-preview-panel span,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-preview-panel span,
body.dark-mode .tracking-page-shell .tracking-preview-panel span,
body.dark .tracking-page-shell .tracking-preview-panel span,
body.theme-dark .tracking-page-shell .tracking-preview-panel span {
  color: #f5a19a !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-preview-panel strong,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-preview-panel strong,
body.dark-mode .tracking-page-shell .tracking-preview-panel strong,
body.dark .tracking-page-shell .tracking-preview-panel strong,
body.theme-dark .tracking-page-shell .tracking-preview-panel strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-status-step .dot,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-status-step .dot,
body.dark-mode .tracking-page-shell .tracking-status-step .dot,
body.dark .tracking-page-shell .tracking-status-step .dot,
body.theme-dark .tracking-page-shell .tracking-status-step .dot {
  background: #343d4f !important;
  border-color: rgba(255,255,255,.10) !important;
  color: #dbe3ee !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-status-step .dot i,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-status-step .dot i,
body.dark-mode .tracking-page-shell .tracking-status-step .dot i,
body.dark .tracking-page-shell .tracking-status-step .dot i,
body.theme-dark .tracking-page-shell .tracking-status-step .dot i {
  color: inherit !important;
  font-size: 1.18rem !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-status-step.is-active .dot,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-status-step.is-active .dot,
body.dark-mode .tracking-page-shell .tracking-status-step.is-active .dot,
body.dark .tracking-page-shell .tracking-status-step.is-active .dot,
body.theme-dark .tracking-page-shell .tracking-status-step.is-active .dot {
  background: linear-gradient(135deg, #ff8a3d, #ff4c3b) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-status-step:last-child .dot,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-status-step:last-child .dot,
body.dark-mode .tracking-page-shell .tracking-status-step:last-child .dot,
body.dark .tracking-page-shell .tracking-status-step:last-child .dot,
body.theme-dark .tracking-page-shell .tracking-status-step:last-child .dot {
  background: #48c25a !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-status-step strong,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-status-step strong,
body.dark-mode .tracking-page-shell .tracking-status-step strong,
body.dark .tracking-page-shell .tracking-status-step strong,
body.theme-dark .tracking-page-shell .tracking-status-step strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-status-step span,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-status-step span,
body.dark-mode .tracking-page-shell .tracking-status-step span,
body.dark .tracking-page-shell .tracking-status-step span,
body.theme-dark .tracking-page-shell .tracking-status-step span {
  color: #c4cfdd !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefits,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefits,
body.dark-mode .tracking-page-shell .tracking-benefits,
body.dark .tracking-page-shell .tracking-benefits,
body.theme-dark .tracking-page-shell .tracking-benefits {
  background: transparent !important;
  box-shadow: none !important;
  padding-top: 1.4rem !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefits-grid,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefits-grid,
body.dark-mode .tracking-page-shell .tracking-benefits-grid,
body.dark .tracking-page-shell .tracking-benefits-grid,
body.theme-dark .tracking-page-shell .tracking-benefits-grid {
  gap: 0 !important;
  border: 1px solid rgba(59, 73, 97, .62) !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(31, 39, 55, .96), rgba(24, 31, 46, .98)) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefit,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefit,
body.dark-mode .tracking-page-shell .tracking-benefit,
body.dark .tracking-page-shell .tracking-benefit,
body.theme-dark .tracking-page-shell .tracking-benefit {
  background: rgba(255,255,255,.02) !important;
  min-height: 106px;
  align-items: center !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefit-icon,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefit-icon,
body.dark-mode .tracking-page-shell .tracking-benefit-icon,
body.dark .tracking-page-shell .tracking-benefit-icon,
body.theme-dark .tracking-page-shell .tracking-benefit-icon {
  width: 58px !important;
  height: 58px !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.06) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefit-icon i,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefit-icon i,
body.dark-mode .tracking-page-shell .tracking-benefit-icon i,
body.dark .tracking-page-shell .tracking-benefit-icon i,
body.theme-dark .tracking-page-shell .tracking-benefit-icon i {
  opacity: 1 !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefit:nth-child(1) .tracking-benefit-icon,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefit:nth-child(1) .tracking-benefit-icon,
body.dark-mode .tracking-page-shell .tracking-benefit:nth-child(1) .tracking-benefit-icon,
body.dark .tracking-page-shell .tracking-benefit:nth-child(1) .tracking-benefit-icon,
body.theme-dark .tracking-page-shell .tracking-benefit:nth-child(1) .tracking-benefit-icon {
  color: #ff9e96 !important;
  background: rgba(255, 114, 95, .14) !important;
}
html[data-theme="dark"] .tracking-page-shell .tracking-benefit:nth-child(2) .tracking-benefit-icon,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefit:nth-child(2) .tracking-benefit-icon,
body.dark-mode .tracking-page-shell .tracking-benefit:nth-child(2) .tracking-benefit-icon,
body.dark .tracking-page-shell .tracking-benefit:nth-child(2) .tracking-benefit-icon,
body.theme-dark .tracking-page-shell .tracking-benefit:nth-child(2) .tracking-benefit-icon {
  color: #cfd8ff !important;
  background: rgba(96, 137, 255, .14) !important;
}
html[data-theme="dark"] .tracking-page-shell .tracking-benefit:nth-child(3) .tracking-benefit-icon,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefit:nth-child(3) .tracking-benefit-icon,
body.dark-mode .tracking-page-shell .tracking-benefit:nth-child(3) .tracking-benefit-icon,
body.dark .tracking-page-shell .tracking-benefit:nth-child(3) .tracking-benefit-icon,
body.theme-dark .tracking-page-shell .tracking-benefit:nth-child(3) .tracking-benefit-icon {
  color: #98f0a0 !important;
  background: rgba(72, 194, 90, .14) !important;
}
html[data-theme="dark"] .tracking-page-shell .tracking-benefit:nth-child(4) .tracking-benefit-icon,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefit:nth-child(4) .tracking-benefit-icon,
body.dark-mode .tracking-page-shell .tracking-benefit:nth-child(4) .tracking-benefit-icon,
body.dark .tracking-page-shell .tracking-benefit:nth-child(4) .tracking-benefit-icon,
body.theme-dark .tracking-page-shell .tracking-benefit:nth-child(4) .tracking-benefit-icon {
  color: #e1c8ff !important;
  background: rgba(139, 69, 232, .16) !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefit strong,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefit strong,
body.dark-mode .tracking-page-shell .tracking-benefit strong,
body.dark .tracking-page-shell .tracking-benefit strong,
body.theme-dark .tracking-page-shell .tracking-benefit strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .tracking-page-shell .tracking-benefit p,
html[data-bs-theme="dark"] .tracking-page-shell .tracking-benefit p,
body.dark-mode .tracking-page-shell .tracking-benefit p,
body.dark .tracking-page-shell .tracking-benefit p,
body.theme-dark .tracking-page-shell .tracking-benefit p {
  color: #cbd5e1 !important;
}

/* ========================================================================
   Tracking hero typography dark mode — match Pricing hero colors
   ------------------------------------------------------------------------
   /tracking uses the same public hero title rhythm as /pricing. In dark mode
   the light-mode navy override on .tracking-modern-title-line was winning, so
   "Track your" became almost invisible. Keep the first line like Pricing
   (soft white) and keep the accent line with the same Pricing gradient.
   ======================================================================== */
html[data-theme="dark"] body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title.faq-modern-title,
html[data-bs-theme="dark"] body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title.faq-modern-title,
html.dark body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title.faq-modern-title,
html.dark-mode body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title.faq-modern-title,
html.theme-dark body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title.faq-modern-title,
body.dark:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title.faq-modern-title,
body.dark-mode:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title.faq-modern-title,
body.theme-dark:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title.faq-modern-title {
  color: var(--nd-pricing-dark-text, #f5f8ff) !important;
}

html[data-theme="dark"] body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-line.contact-modern-title-line,
html[data-bs-theme="dark"] body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-line.contact-modern-title-line,
html.dark body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-line.contact-modern-title-line,
html.dark-mode body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-line.contact-modern-title-line,
html.theme-dark body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-line.contact-modern-title-line,
body.dark:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-line.contact-modern-title-line,
body.dark-mode:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-line.contact-modern-title-line,
body.theme-dark:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-line.contact-modern-title-line {
  color: var(--nd-pricing-dark-text, #f5f8ff) !important;
  background: none !important;
  -webkit-text-fill-color: var(--nd-pricing-dark-text, #f5f8ff) !important;
  text-shadow: none !important;
}

html[data-theme="dark"] body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-accent.pricing-modern-title-accent,
html[data-bs-theme="dark"] body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-accent.pricing-modern-title-accent,
html.dark body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-accent.pricing-modern-title-accent,
html.dark-mode body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-accent.pricing-modern-title-accent,
html.theme-dark body:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-accent.pricing-modern-title-accent,
body.dark:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-accent.pricing-modern-title-accent,
body.dark-mode:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-accent.pricing-modern-title-accent,
body.theme-dark:is(.nedate-ui-standard,.nedate-public-standard):has(.tracking-page-shell) .tracking-page-shell .tracking-modern-title-accent.pricing-modern-title-accent {
  color: transparent !important;
  background: linear-gradient(180deg, var(--nd-public-red, #ff3b2f), var(--nd-public-orange, #ff8a3d)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ========================================================================
   TRACKING — FINAL DARK PALETTE ALIGNMENT WITH PRICING / CONTACT
   ------------------------------------------------------------------------
   This block is intentionally at the end of tracking.css because this file is
   loaded after the global public CSS. Keep tracking-specific layout here, but
   force all dark-mode colors to the same public dark tokens used by Pricing
   and Contact Us. No separate grey palette for /tracking.
   ======================================================================== */
html[data-theme="dark"] body.nedate-public-standard:has(.tracking-page-shell),
html[data-bs-theme="dark"] body.nedate-public-standard:has(.tracking-page-shell),
body.dark-mode.nedate-public-standard:has(.tracking-page-shell),
body.dark.nedate-public-standard:has(.tracking-page-shell),
body.theme-dark.nedate-public-standard:has(.tracking-page-shell) {
  --nd-public-dark-bg: #070b14;
  --nd-public-dark-bg-2: #0f172a;
  --nd-public-dark-surface: rgba(8, 15, 28, .94);
  --nd-public-dark-surface-2: rgba(15, 23, 42, .92);
  --nd-public-dark-card: rgba(17, 24, 39, .88);
  --nd-public-dark-border: rgba(148, 163, 184, .18);
  --nd-public-dark-border-strong: rgba(148, 163, 184, .28);
  --nd-public-dark-text: #f5f8ff;
  --nd-public-dark-muted: #aeb8c8;
  --nd-public-dark-muted-2: #8ea0b6;
  --nd-public-red: #ff3b2f;
  --nd-public-orange: #ff8a3d;
  --nd-public-accent-gradient: linear-gradient(180deg, var(--nd-public-red), var(--nd-public-orange));
}

html[data-theme="dark"] body.nedate-public-standard .tracking-page-shell,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-page-shell,
body.dark-mode.nedate-public-standard .tracking-page-shell,
body.dark.nedate-public-standard .tracking-page-shell,
body.theme-dark.nedate-public-standard .tracking-page-shell {
  color: var(--nd-public-dark-text) !important;
  background:
    radial-gradient(circle at 7% 14%, rgba(255, 59, 47, .13) 0 18rem, transparent 30rem),
    radial-gradient(circle at 94% 18%, rgba(255, 59, 47, .10) 0 18rem, transparent 31rem),
    radial-gradient(circle at 96% 48%, rgba(139, 92, 246, .10) 0 18rem, transparent 31rem),
    linear-gradient(180deg, var(--nd-public-dark-bg-2) 0%, var(--nd-public-dark-bg) 100%) !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-page-shell::before,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-page-shell::before,
body.dark-mode.nedate-public-standard .tracking-page-shell::before,
body.dark.nedate-public-standard .tracking-page-shell::before,
body.theme-dark.nedate-public-standard .tracking-page-shell::before {
  background:
    radial-gradient(circle, rgba(255, 59, 47, .18) 1.5px, transparent 2px) 48% 10rem / 18px 18px no-repeat,
    linear-gradient(115deg, transparent 0 56%, rgba(255,255,255,.035) 56.1%, transparent 56.4%) !important;
  opacity: .58 !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-page-shell .faq-modern-eyebrow,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-page-shell .faq-modern-eyebrow,
body.dark-mode.nedate-public-standard .tracking-page-shell .faq-modern-eyebrow,
body.dark.nedate-public-standard .tracking-page-shell .faq-modern-eyebrow,
body.theme-dark.nedate-public-standard .tracking-page-shell .faq-modern-eyebrow {
  color: #ff9b91 !important;
  background: rgba(255, 59, 47, .14) !important;
  border: 0 !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-modern-title,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-modern-title,
body.dark-mode.nedate-public-standard .tracking-modern-title,
body.dark.nedate-public-standard .tracking-modern-title,
body.theme-dark.nedate-public-standard .tracking-modern-title,
html[data-theme="dark"] body.nedate-public-standard .tracking-modern-title-line,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-modern-title-line,
body.dark-mode.nedate-public-standard .tracking-modern-title-line,
body.dark.nedate-public-standard .tracking-modern-title-line,
body.theme-dark.nedate-public-standard .tracking-modern-title-line {
  color: var(--nd-public-dark-text) !important;
  -webkit-text-fill-color: var(--nd-public-dark-text) !important;
  background: none !important;
  text-shadow: none !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-modern-title-accent,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-modern-title-accent,
body.dark-mode.nedate-public-standard .tracking-modern-title-accent,
body.dark.nedate-public-standard .tracking-modern-title-accent,
body.theme-dark.nedate-public-standard .tracking-modern-title-accent {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: var(--nd-public-accent-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-modern-subtitle,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-modern-subtitle,
body.dark-mode.nedate-public-standard .tracking-modern-subtitle,
body.dark.nedate-public-standard .tracking-modern-subtitle,
body.theme-dark.nedate-public-standard .tracking-modern-subtitle,
html[data-theme="dark"] body.nedate-public-standard .tracking-page-meta span,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-page-meta span,
body.dark-mode.nedate-public-standard .tracking-page-meta span,
body.dark.nedate-public-standard .tracking-page-meta span,
body.theme-dark.nedate-public-standard .tracking-page-meta span {
  color: var(--nd-public-dark-muted) !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-search-card,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-search-card,
body.dark-mode.nedate-public-standard .tracking-search-card,
body.dark.nedate-public-standard .tracking-search-card,
body.theme-dark.nedate-public-standard .tracking-search-card,
html[data-theme="dark"] body.nedate-public-standard .tracking-side-card,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-side-card,
body.dark-mode.nedate-public-standard .tracking-side-card,
body.dark.nedate-public-standard .tracking-side-card,
body.theme-dark.nedate-public-standard .tracking-side-card,
html[data-theme="dark"] body.nedate-public-standard .tracking-benefits-grid,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-benefits-grid,
body.dark-mode.nedate-public-standard .tracking-benefits-grid,
body.dark.nedate-public-standard .tracking-benefits-grid,
body.theme-dark.nedate-public-standard .tracking-benefits-grid {
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 59, 47, .10), transparent 18rem),
    linear-gradient(180deg, var(--nd-public-dark-surface-2), var(--nd-public-dark-surface)) !important;
  border: 1px solid var(--nd-public-dark-border-strong) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28) !important;
  color: var(--nd-public-dark-text) !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-side-card,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-side-card,
body.dark-mode.nedate-public-standard .tracking-side-card,
body.dark.nedate-public-standard .tracking-side-card,
body.theme-dark.nedate-public-standard .tracking-side-card {
  border-radius: 22px !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-preview-panel,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-preview-panel,
body.dark-mode.nedate-public-standard .tracking-preview-panel,
body.dark.nedate-public-standard .tracking-preview-panel,
body.theme-dark.nedate-public-standard .tracking-preview-panel,
html[data-theme="dark"] body.nedate-public-standard .tracking-helper-chip,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-helper-chip,
body.dark-mode.nedate-public-standard .tracking-helper-chip,
body.dark.nedate-public-standard .tracking-helper-chip,
body.theme-dark.nedate-public-standard .tracking-helper-chip {
  background: rgba(8, 15, 28, .88) !important;
  border: 1px solid var(--nd-public-dark-border) !important;
  color: var(--nd-public-dark-text) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-preview-panel span,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-preview-panel span,
body.dark-mode.nedate-public-standard .tracking-preview-panel span,
body.dark.nedate-public-standard .tracking-preview-panel span,
body.theme-dark.nedate-public-standard .tracking-preview-panel span {
  color: #cdd6e4 !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-preview-panel strong,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-preview-panel strong,
body.dark-mode.nedate-public-standard .tracking-preview-panel strong,
body.dark.nedate-public-standard .tracking-preview-panel strong,
body.theme-dark.nedate-public-standard .tracking-preview-panel strong,
html[data-theme="dark"] body.nedate-public-standard .tracking-status-step strong,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-status-step strong,
body.dark-mode.nedate-public-standard .tracking-status-step strong,
body.dark.nedate-public-standard .tracking-status-step strong,
body.theme-dark.nedate-public-standard .tracking-status-step strong,
html[data-theme="dark"] body.nedate-public-standard .tracking-benefit strong,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-benefit strong,
body.dark-mode.nedate-public-standard .tracking-benefit strong,
body.dark.nedate-public-standard .tracking-benefit strong,
body.theme-dark.nedate-public-standard .tracking-benefit strong {
  color: var(--nd-public-dark-text) !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-preview-panel p,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-preview-panel p,
body.dark-mode.nedate-public-standard .tracking-preview-panel p,
body.dark.nedate-public-standard .tracking-preview-panel p,
body.theme-dark.nedate-public-standard .tracking-preview-panel p,
html[data-theme="dark"] body.nedate-public-standard .tracking-status-step span:not(.dot),
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-status-step span:not(.dot),
body.dark-mode.nedate-public-standard .tracking-status-step span:not(.dot),
body.dark.nedate-public-standard .tracking-status-step span:not(.dot),
body.theme-dark.nedate-public-standard .tracking-status-step span:not(.dot),
html[data-theme="dark"] body.nedate-public-standard .tracking-benefit p,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-benefit p,
body.dark-mode.nedate-public-standard .tracking-benefit p,
body.dark.nedate-public-standard .tracking-benefit p,
body.theme-dark.nedate-public-standard .tracking-benefit p {
  color: var(--nd-public-dark-muted) !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-preview-panel > i,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-preview-panel > i,
body.dark-mode.nedate-public-standard .tracking-preview-panel > i,
body.dark.nedate-public-standard .tracking-preview-panel > i,
body.theme-dark.nedate-public-standard .tracking-preview-panel > i {
  color: #ff9b91 !important;
  background: rgba(255, 59, 47, .16) !important;
  border: 1px solid rgba(255, 91, 77, .18) !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-status-step .dot,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-status-step .dot,
body.dark-mode.nedate-public-standard .tracking-status-step .dot,
body.dark.nedate-public-standard .tracking-status-step .dot,
body.theme-dark.nedate-public-standard .tracking-status-step .dot {
  background: linear-gradient(135deg, var(--nd-public-orange), var(--nd-public-red)) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 18px 38px rgba(255, 59, 47, .20) !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-status-step:not(.is-active) .dot,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-status-step:not(.is-active) .dot,
body.dark-mode.nedate-public-standard .tracking-status-step:not(.is-active) .dot,
body.dark.nedate-public-standard .tracking-status-step:not(.is-active) .dot,
body.theme-dark.nedate-public-standard .tracking-status-step:not(.is-active) .dot {
  background: #22c55e !important;
  color: #ffffff !important;
  box-shadow: 0 18px 38px rgba(34, 197, 94, .22) !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-status-step .dot i,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-status-step .dot i,
body.dark-mode.nedate-public-standard .tracking-status-step .dot i,
body.dark.nedate-public-standard .tracking-status-step .dot i,
body.theme-dark.nedate-public-standard .tracking-status-step .dot i,
html[data-theme="dark"] body.nedate-public-standard .tracking-benefit-icon i,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-benefit-icon i,
body.dark-mode.nedate-public-standard .tracking-benefit-icon i,
body.dark.nedate-public-standard .tracking-benefit-icon i,
body.theme-dark.nedate-public-standard .tracking-benefit-icon i,
html[data-theme="dark"] body.nedate-public-standard .tracking-page-meta i,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-page-meta i,
body.dark-mode.nedate-public-standard .tracking-page-meta i,
body.dark.nedate-public-standard .tracking-page-meta i,
body.theme-dark.nedate-public-standard .tracking-page-meta i {
  color: currentColor !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-search-card .form-floating > .form-control,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-search-card .form-floating > .form-control,
body.dark-mode.nedate-public-standard .tracking-search-card .form-floating > .form-control,
body.dark.nedate-public-standard .tracking-search-card .form-floating > .form-control,
body.theme-dark.nedate-public-standard .tracking-search-card .form-floating > .form-control {
  min-height: 64px !important;
  padding: 1.48rem 1rem .68rem !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  border-radius: 10px !important;
  background: #081120 !important;
  color: var(--nd-public-dark-text) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-search-card .form-floating > .form-control:focus,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-search-card .form-floating > .form-control:focus,
body.dark-mode.nedate-public-standard .tracking-search-card .form-floating > .form-control:focus,
body.dark.nedate-public-standard .tracking-search-card .form-floating > .form-control:focus,
body.theme-dark.nedate-public-standard .tracking-search-card .form-floating > .form-control:focus {
  border-color: rgba(255, 91, 77, .92) !important;
  box-shadow: 0 0 0 .18rem rgba(255, 59, 47, .12) !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-search-card .form-floating > label,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-search-card .form-floating > label,
body.dark-mode.nedate-public-standard .tracking-search-card .form-floating > label,
body.dark.nedate-public-standard .tracking-search-card .form-floating > label,
body.theme-dark.nedate-public-standard .tracking-search-card .form-floating > label {
  color: #cbd5e1 !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-benefits,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-benefits,
body.dark-mode.nedate-public-standard .tracking-benefits,
body.dark.nedate-public-standard .tracking-benefits,
body.theme-dark.nedate-public-standard .tracking-benefits {
  background: transparent !important;
  border-top: 1px solid rgba(148, 163, 184, .14) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-benefits-grid,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-benefits-grid,
body.dark-mode.nedate-public-standard .tracking-benefits-grid,
body.dark.nedate-public-standard .tracking-benefits-grid,
body.theme-dark.nedate-public-standard .tracking-benefits-grid {
  border-radius: 0 !important;
  overflow: hidden !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-benefit,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-benefit,
body.dark-mode.nedate-public-standard .tracking-benefit,
body.dark.nedate-public-standard .tracking-benefit,
body.theme-dark.nedate-public-standard .tracking-benefit {
  background: transparent !important;
  border-right-color: rgba(148, 163, 184, .16) !important;
}

html[data-theme="dark"] body.nedate-public-standard .tracking-benefit-icon,
html[data-bs-theme="dark"] body.nedate-public-standard .tracking-benefit-icon,
body.dark-mode.nedate-public-standard .tracking-benefit-icon,
body.dark.nedate-public-standard .tracking-benefit-icon,
body.theme-dark.nedate-public-standard .tracking-benefit-icon {
  color: #ff9b91 !important;
  background: rgba(255, 59, 47, .14) !important;
  border: 1px solid rgba(255, 91, 77, .18) !important;
  box-shadow: none !important;
}

/* Tracking required-field marker: keep the shared red asterisk visible even when tracking label rules override text colour. */
.tracking-page-shell .sw-req,
.trk-result-wrapper .sw-req {
    color: var(--sw-danger, #dc3545) !important;
    -webkit-text-fill-color: var(--sw-danger, #dc3545) !important;
}
