/*
Theme Name: Mundo Express Houston 2
Theme URI: https://mundoexpresshouston.com
Author: Mundo Express Houston
Description: Tema premium independiente para Mundo Express Houston. Version 2.
Version: 2.0.1
Text Domain: mundo-express-houston-2
*/

:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: rgba(17, 24, 39, 0.12);
  --blue: #285784;
  --blue-deep: #082f5f;
  --blue-night: #061a34;
  --blue-bright: #2099b6;
  --yellow: #f4f719;
  --yellow-dark: #d7da00;
  --paper: #ffffff;
  --soft: #f4f7fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(244, 247, 25, 0.22);
  background: rgba(8, 47, 95, 0.92);
  color: #fff;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 210px;
}

.brand img {
  display: block;
  width: min(260px, 44vw);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  font-size: 13px;
  font-weight: 800;
}

.nav a,
.admin-entry {
  position: relative;
  border: 0;
  background: transparent;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  cursor: pointer;
}

.nav a:hover,
.admin-entry:hover {
  color: #fff;
}

.nav a::after,
.admin-entry::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--yellow);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover::after,
.admin-entry:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.admin-entry {
  color: var(--yellow);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 128px clamp(18px, 5vw, 76px) 72px;
  color: #fff;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 26, 52, 0.96), rgba(8, 47, 95, 0.72) 46%, rgba(6, 26, 52, 0.18)),
    linear-gradient(0deg, rgba(6, 26, 52, 0.84), transparent 54%);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.hero-logo {
  display: block;
  width: min(470px, 80vw);
  height: auto;
  margin-bottom: 26px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--blue-bright);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 780px;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--blue-deep);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--blue-deep);
  font-size: 17px;
  font-weight: 900;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proof span {
  border: 1px solid rgba(244, 247, 25, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.btn,
.tracking-row button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary,
.tracking-row button {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--blue-deep);
  box-shadow: 0 16px 34px rgba(244, 247, 25, 0.22);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(12px);
}

.btn.blue {
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 16px 34px rgba(8, 47, 95, 0.18);
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 76px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
  background: #fff;
}

.section p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

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

.feature-grid article {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f9fbfd);
  padding: 22px;
  box-shadow: 0 18px 45px rgba(8, 34, 53, 0.07);
}

.feature-grid span {
  display: block;
  margin-bottom: 44px;
  color: var(--blue-bright);
  font-size: 12px;
  font-weight: 900;
}

.promo-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(244, 247, 25, 0.12), transparent 32%),
    linear-gradient(135deg, #fff, #f6f9fc);
}

.promo-copy {
  max-width: 720px;
}

.promo-copy h2 {
  max-width: 760px;
}

.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.promo-art {
  position: relative;
}

.promo-art::before {
  position: absolute;
  inset: 18px -10px -18px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  content: "";
}

.promo-art img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(8, 47, 95, 0.14);
  border-radius: 8px;
  object-fit: contain;
  background: var(--blue-night);
  box-shadow: 0 30px 80px rgba(8, 34, 53, 0.18);
}

.office-showcase {
  background: #fff;
}

.office-gallery {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  grid-template-rows: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.office-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue-deep);
  box-shadow: 0 22px 58px rgba(8, 34, 53, 0.12);
}

.office-card.large {
  grid-row: span 2;
  min-height: 560px;
}

.office-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.office-card::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6, 26, 52, 0.84), transparent 58%),
    linear-gradient(90deg, rgba(6, 26, 52, 0.25), transparent);
  content: "";
}

.office-card:hover img {
  transform: scale(1.035);
}

.office-card div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
}

.office-card span {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(244, 247, 25, 0.18);
  padding: 7px 10px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.office-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1;
}

.tracking-section {
  background:
    linear-gradient(135deg, rgba(8, 47, 95, 0.06), rgba(32, 153, 182, 0.05)),
    var(--soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.tracking-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(8, 47, 95, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 24px 70px rgba(8, 34, 53, 0.10);
}

.tracking-cta h2 {
  margin-bottom: 12px;
}

.tracking-cta p {
  max-width: 720px;
  margin-bottom: 0;
}

.tracking-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1.28fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 24px 70px rgba(8, 34, 53, 0.10);
}

.tracking-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 900;
}

.tracking-form {
  align-self: start;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 47, 95, 0.07), rgba(32, 153, 182, 0.05)),
    #fff;
  padding: 18px;
}

.tracking-row {
  display: flex;
  gap: 10px;
}

.tracking-row input {
  min-width: 0;
  flex: 1;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.tracking-row input:focus {
  border-color: rgba(32, 153, 182, 0.62);
  box-shadow: 0 0 0 4px rgba(32, 153, 182, 0.12);
}

.tracking-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tracking-result {
  min-height: 420px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(244, 247, 25, 0.18), transparent 28%),
    linear-gradient(135deg, var(--blue-night), var(--blue-deep) 52%, #174665);
  padding: clamp(20px, 3vw, 30px);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.tracking-result::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.tracking-result h3 {
  color: #fff;
}

.tracking-result p {
  color: rgba(255, 255, 255, 0.76);
}

.tracking-empty,
.tracking-dashboard {
  position: relative;
  z-index: 1;
}

.tracking-empty {
  display: grid;
  min-height: 350px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.tracking-orb {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid rgba(244, 247, 25, 0.30);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.10);
  color: var(--yellow);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.18);
}

.status-pill {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(244, 247, 25, 0.16);
  padding: 8px 12px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.tracking-dashboard {
  display: grid;
  gap: 20px;
}

.tracking-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.tracking-kicker {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tracking-code {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.95;
  font-weight: 900;
}

.tracking-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid rgba(244, 247, 25, 0.34);
  border-radius: 999px;
  background: rgba(244, 247, 25, 0.16);
  padding: 0 14px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.tracking-note {
  max-width: 620px;
  margin: 14px 0 0;
}

.badge-pulse,
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(244, 247, 25, 0.64);
  animation: livePulse 1.2s ease-out infinite;
}

.tracking-progress {
  display: grid;
  gap: 12px;
}

.tracking-progress-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: visible;
}

.tracking-progress-fill {
  width: var(--progress, 66%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), #ffffff);
  box-shadow: 0 0 24px rgba(244, 247, 25, 0.44);
}

.progress-runner {
  position: absolute;
  top: 50%;
  left: var(--progress, 66%);
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 7px rgba(244, 247, 25, 0.16), 0 0 30px rgba(244, 247, 25, 0.52);
  transform: translate(-50%, -50%);
  animation: runnerBlink 1s ease-in-out infinite;
}

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

.tracking-step {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 800;
}

.tracking-step-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}

.tracking-step-dot .live-dot {
  position: absolute;
  width: 7px;
  height: 7px;
}

.tracking-step.done,
.tracking-step.current {
  color: #fff;
}

.tracking-step.done .tracking-step-dot,
.tracking-step.current .tracking-step-dot {
  border-color: var(--yellow);
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(244, 247, 25, 0.48);
}

.tracking-panel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.tracking-mini-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
}

.tracking-mini-card span {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tracking-mini-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.tracking-timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 4px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0 0;
}

.timeline-item::before {
  position: absolute;
  top: 30px;
  bottom: -8px;
  left: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  margin-top: 5px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: var(--blue-deep);
  box-shadow: 0 0 0 5px rgba(244, 247, 25, 0.10);
}

.timeline-item:first-child .timeline-dot {
  background: var(--yellow);
}

.timeline-item.active .timeline-dot {
  background: var(--yellow);
}

.timeline-dot .live-dot {
  position: absolute;
  width: 8px;
  height: 8px;
}

.timeline-meta {
  margin-bottom: 5px;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-copy {
  min-width: 0;
}

.timeline-copy h4 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.timeline-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.45;
}

.tracking-landing-page {
  min-height: 100vh;
  background: var(--blue-night);
}

.tracking-header {
  position: fixed;
  right: 0;
  left: 0;
  background: rgba(6, 26, 52, 0.78);
}

.tracking-landing {
  min-height: 100vh;
}

.tracking-hero-page {
  position: relative;
  min-height: auto;
  overflow: hidden;
  padding: clamp(96px, 9vh, 118px) clamp(18px, 5vw, 76px) clamp(38px, 5vh, 56px);
  color: #fff;
}

.tracking-hero-image,
.tracking-hero-overlay {
  position: absolute;
  inset: 0;
}

.tracking-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tracking-hero-overlay {
  background:
    radial-gradient(circle at 78% 22%, rgba(244, 247, 25, 0.20), transparent 26%),
    linear-gradient(100deg, rgba(6, 26, 52, 0.96), rgba(8, 47, 95, 0.84) 45%, rgba(6, 26, 52, 0.58)),
    linear-gradient(0deg, rgba(6, 26, 52, 0.92), rgba(6, 26, 52, 0.12));
}

.tracking-landing-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  min-height: calc(100vh - 156px);
}

.tracking-landing-copy {
  max-width: 640px;
}

.tracking-page-logo {
  display: block;
  width: min(340px, 74vw);
  height: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.32));
}

.tracking-landing-copy h1 {
  margin-bottom: 14px;
  max-width: 660px;
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 0.98;
}

.tracking-landing-copy p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
}

.tracking-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tracking-trust-row span {
  border: 1px solid rgba(244, 247, 25, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.tracking-command-center {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(244, 247, 25, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
  padding: clamp(14px, 2vw, 20px);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
}

.tracking-form-premium {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.96)),
    #fff;
  box-shadow: 0 18px 42px rgba(3, 14, 31, 0.20);
}

.tracking-result-premium {
  min-height: 430px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.contact-section {
  background: #fff;
}

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

.contact-grid a {
  display: block;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(8, 34, 53, 0.07);
}

.contact-grid span {
  display: block;
  margin-bottom: 20px;
  color: var(--blue-bright);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-grid strong {
  color: var(--blue-deep);
  font-size: 18px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 76px);
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.footer p {
  margin: 0;
  color: inherit;
}

button,
input,
select,
textarea {
  font-family: inherit;
  text-transform: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: clamp(12px, 3vw, 34px);
}

.admin-modal.open {
  display: grid;
  place-items: center;
}

.admin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 14, 31, 0.68);
  backdrop-filter: blur(16px);
}

.admin-shell {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(900px, 92vh);
  overflow: auto;
  border: 1px solid rgba(244, 247, 25, 0.20);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.98)),
    #fff;
  box-shadow: 0 34px 100px rgba(3, 14, 31, 0.46);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(18px, 3vw, 30px);
  backdrop-filter: blur(18px);
}

.admin-topbar h2,
.admin-topbar .eyebrow {
  margin-bottom: 0;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-deep);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.login-panel,
.admin-workspace {
  padding: clamp(18px, 3vw, 30px);
}

.login-panel {
  display: grid;
  max-width: 480px;
  gap: 14px;
}

.login-panel h3,
.shipment-editor h3,
.shipment-list-panel h3 {
  margin-bottom: 6px;
  color: var(--blue-deep);
}

.login-panel p,
.shipment-editor p,
.shipment-list-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.login-panel label,
.shipment-editor label {
  display: grid;
  gap: 8px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-panel input,
.shipment-editor input,
.shipment-editor select,
.shipment-editor textarea,
.admin-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.premium-calendar {
  position: relative;
}

.calendar-trigger {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(8, 47, 95, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 47, 95, 0.05), rgba(32, 153, 182, 0.06)),
    #fff;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.calendar-trigger.selected {
  color: var(--blue-deep);
}

.calendar-trigger:focus {
  border-color: rgba(32, 153, 182, 0.62);
  box-shadow: 0 0 0 4px rgba(32, 153, 182, 0.12);
  outline: none;
}

.calendar-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 2px solid var(--blue-deep);
  border-radius: 6px;
  background: rgba(244, 247, 25, 0.18);
}

.calendar-icon::before,
.calendar-icon::after {
  position: absolute;
  content: "";
}

.calendar-icon::before {
  top: 4px;
  right: 2px;
  left: 2px;
  height: 2px;
  background: var(--blue-deep);
}

.calendar-icon::after {
  right: 4px;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
}

.calendar-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 5;
  width: min(360px, 86vw);
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid rgba(244, 247, 25, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(244, 247, 25, 0.18), transparent 30%),
    linear-gradient(135deg, var(--blue-night), var(--blue-deep));
  padding: 14px;
  box-shadow: 0 26px 70px rgba(3, 14, 31, 0.32);
}

.calendar-popover[hidden] {
  display: none;
}

.calendar-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-head strong {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-transform: capitalize;
}

.calendar-nav {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays {
  margin-bottom: 8px;
}

.calendar-weekdays span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.calendar-empty-day,
.calendar-day {
  aspect-ratio: 1;
}

.calendar-day {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.calendar-day:hover {
  border-color: rgba(244, 247, 25, 0.44);
  background: rgba(244, 247, 25, 0.12);
}

.calendar-day.today {
  border-color: rgba(244, 247, 25, 0.52);
  color: var(--yellow);
}

.calendar-day.selected {
  border-color: var(--yellow);
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--blue-deep);
  box-shadow: 0 0 24px rgba(244, 247, 25, 0.30);
}

.login-panel input:focus,
.shipment-editor input:focus,
.shipment-editor select:focus,
.shipment-editor textarea:focus,
.admin-search:focus {
  border-color: rgba(32, 153, 182, 0.62);
  box-shadow: 0 0 0 4px rgba(32, 153, 182, 0.12);
}

.shipment-editor textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.5;
  text-transform: none;
}

.admin-note {
  min-height: 20px;
  font-size: 12px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-stat-grid div {
  border: 1px solid rgba(8, 47, 95, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 47, 95, 0.96), rgba(40, 87, 132, 0.96)),
    var(--blue-deep);
  padding: 18px;
  color: #fff;
  box-shadow: 0 18px 45px rgba(8, 34, 53, 0.10);
}

.admin-stat-grid span {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stat-grid strong {
  color: var(--yellow);
  font-size: 36px;
  line-height: 1;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.shipment-editor,
.shipment-list-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(8, 34, 53, 0.07);
}

.shipment-editor {
  display: grid;
  gap: 16px;
}

.editor-head,
.list-head,
.editor-actions {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

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

.ghost-button,
.danger-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.ghost-button {
  border: 1px solid rgba(8, 47, 95, 0.16);
  background: rgba(8, 47, 95, 0.04);
  color: var(--blue-deep);
}

.danger-button {
  border: 1px solid rgba(190, 18, 60, 0.22);
  background: rgba(190, 18, 60, 0.06);
  color: #be123c;
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.shipment-list-panel {
  display: grid;
  gap: 14px;
}

.shipment-list {
  display: grid;
  max-height: 480px;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.shipment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(8, 47, 95, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.shipment-row:hover {
  border-color: rgba(32, 153, 182, 0.34);
  box-shadow: 0 12px 30px rgba(8, 34, 53, 0.08);
}

.shipment-row strong,
.shipment-row small {
  display: block;
}

.shipment-row strong {
  color: var(--blue-deep);
  font-size: 14px;
}

.shipment-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.row-status {
  border-radius: 999px;
  background: rgba(244, 247, 25, 0.22);
  padding: 8px 10px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.empty-list {
  border: 1px dashed rgba(8, 47, 95, 0.18);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 247, 25, 0.64);
  }

  100% {
    box-shadow: 0 0 0 12px rgba(244, 247, 25, 0);
  }
}

@keyframes runnerBlink {
  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.56;
    transform: translate(-50%, -50%) scale(1.16);
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 74vh;
    padding-top: 118px;
  }

  .split,
  .promo-showcase,
  .tracking-card,
  .contact-grid,
  .tracking-cta,
  .tracking-landing-shell {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .promo-art img {
    max-height: none;
  }

  .promo-art::before {
    inset: 12px -6px -12px 12px;
  }

  .office-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .office-card,
  .office-card.large {
    grid-row: auto;
    min-height: 360px;
  }

  .tracking-row {
    flex-direction: column;
  }

  .tracking-row button {
    width: 100%;
  }

  .tracking-summary,
  .tracking-panel-grid,
  .admin-stat-grid,
  .admin-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .tracking-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tracking-empty {
    grid-template-columns: 1fr;
  }

  .tracking-cta .btn {
    width: 100%;
  }

  .tracking-header {
    position: sticky;
  }

  .tracking-hero-page {
    min-height: auto;
    padding-top: 42px;
  }

  .tracking-landing-shell {
    min-height: auto;
    align-items: start;
  }

  .tracking-command-center {
    padding: 12px;
  }

  .tracking-result-premium {
    min-height: 520px;
  }

  .admin-modal {
    padding: 0;
  }

  .admin-shell {
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .editor-head,
  .list-head,
  .editor-actions {
    flex-direction: column;
  }

  .editor-actions .btn,
  .editor-actions .danger-button,
  .ghost-button {
    width: 100%;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
