/* ================= TRACKING PORTAL STYLES ================= */
:root {
  --bg-main: #050811;
  --bg-card: rgba(13, 19, 33, 0.85);
  --bg-card-hover: rgba(19, 27, 47, 0.95);
  --bg-surface: #0a0f1d;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-green: rgba(34, 197, 94, 0.35);
  
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.4);
  --green-glow-subtle: rgba(34, 197, 94, 0.15);
  --red: #ef4444;
  --yellow: #f59e0b;
  --blue: #3b82f6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #050811;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.track-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HEADER ================= */
.track-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 17, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}

.track-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.track-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.track-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}

.header-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.nav-text-short {
  display: none;
}
.header-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border);
}

.header-btn.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.header-btn.whatsapp-btn:hover {
  background: var(--green);
  color: var(--text-dark);
  box-shadow: 0 4px 18px var(--green-glow);
}

/* ================= HERO & SEARCH ================= */
.track-hero {
  position: relative;
  padding: 50px 0 40px;
  text-align: center;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(34, 197, 94, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(239, 68, 68, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
  margin-bottom: 14px;
}

.pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: livePulse 1.8s infinite;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 40%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtext {
  max-width: 650px;
  margin: 0 auto 30px;
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* ================= SEARCH FORM CARD ================= */
.search-box-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(34, 197, 94, 0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr auto;
  gap: 14px;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.required-star {
  color: #ef4444;
  font-size: 0.95rem;
}

/* Courier Selection Required Alert Banner */
.courier-alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  text-align: left;
  animation: slideDownAlert 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.15);
}

@keyframes slideDownAlert {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.courier-alert-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.courier-alert-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.courier-alert-text strong {
  font-size: 0.92rem;
  color: #fca5a5;
  display: block;
  margin-bottom: 3px;
  font-weight: 700;
}

.courier-alert-text p {
  font-size: 0.84rem;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.4;
}

.courier-alert-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.15s;
}
.courier-alert-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.select-highlight-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35) !important;
  animation: shakeInput 0.4s ease-in-out;
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.input-wrapper,
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(5, 8, 17, 0.8);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.input-wrapper:focus-within,
.select-wrapper:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 14px var(--green-glow-subtle);
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 14px 12px 42px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
}
.input-wrapper input::placeholder {
  color: #475569;
}

.select-wrapper select {
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.select-wrapper select option {
  background: #0d1321;
  color: #fff;
}

.track-btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  height: 48px;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 20px var(--green-glow);
}
.track-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.6);
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.quick-examples {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.sample-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sample-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.sample-chip:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
}

/* ================= RESULTS SECTION ================= */
.results-section {
  padding: 10px 0 60px;
}

.hidden {
  display: none !important;
}

/* Loader */
.track-loader {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 50px 20px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.loader-wheel {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(34, 197, 94, 0.15);
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.track-loader h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.track-loader p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Error Card */
.track-error-card {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.error-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.track-error-card h3 {
  color: #fca5a5;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.track-error-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.retry-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* ================= SUMMARY CARD ================= */
.shipment-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.summary-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .summary-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.summary-id-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.summary-awb-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
}

.summary-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.courier-badge {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.status-pill {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}
.status-pill.in-transit {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #86efac;
}
.status-pill.out-for-delivery {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
}
.status-pill.delivered {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #93c5fd;
}

.summary-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.meta-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}
.meta-val.text-green {
  color: #86efac;
}
.meta-val.highlight-eta {
  color: #38bdf8;
}

/* Milestone Stepper */
.stepper-progress-wrap {
  position: relative;
  padding-top: 10px;
}

.stepper-track {
  position: absolute;
  top: 26px;
  left: 5%;
  right: 5%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  z-index: 1;
}

.stepper-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #38bdf8 100%);
  border-radius: 2px;
  transition: width 0.8s ease-in-out;
}

.stepper-steps {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  flex: 1;
}

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0a0f1d;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.step-node.active .step-icon {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 12px var(--green-glow);
}

.step-node.in-progress .step-icon {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
  animation: livePulse 1.6s infinite;
}

.step-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}
.step-node.active .step-title,
.step-node.in-progress .step-title {
  color: #fff;
}

.step-info small {
  font-size: 0.7rem;
  color: #64748b;
  display: block;
}

@media (max-width: 640px) {
  .step-info small {
    display: none;
  }
  .step-title {
    font-size: 0.7rem;
  }
}

/* ================= TRANSIT TIMELINE CARD ================= */
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

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

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title-group svg {
  color: var(--green);
}

.card-title-group h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.btn-sm-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-sm-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Delivery Branch Info Card */
.delivery-branch-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 18px 22px;
  margin-top: 16px;
  margin-bottom: 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.branch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.branch-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.branch-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.branch-badge-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #38bdf8;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: block;
}
.branch-name-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 2px 0 0 0;
}
.branch-btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.branch-btn-call:hover {
  background: #38bdf8;
  color: #0f172a;
}
.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.branch-info-item .bi-label {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 4px;
}
.branch-info-item .bi-val {
  font-size: 0.95rem;
  color: #f1f5f9;
  font-weight: 600;
}
.branch-info-item .bi-val-p {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}
.branch-info-item.full-width {
  grid-column: 1 / -1;
}

/* Timeline Events List */
.events-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 18px;
}

.events-timeline-list::-webkit-scrollbar {
  width: 4px;
}
.events-timeline-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.timeline-event-card {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}
.timeline-event-card.latest {
  border-left-color: var(--green);
}

.event-dot {
  position: absolute;
  left: -6px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
  border: 2px solid #0a0f1d;
}
.timeline-event-card.latest .event-dot {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.event-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.event-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}
.timeline-event-card.latest .event-time {
  color: #86efac;
}

.event-loc {
  font-size: 0.74rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.timeline-event-card.latest .event-loc {
  color: #fff;
}

.event-desc {
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.35;
}

/* Support Actions Card */
.support-action-box {
  margin-top: auto;
  background: rgba(5, 8, 17, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.support-text strong {
  font-size: 0.85rem;
  color: #fff;
  display: block;
}
.support-text p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.action-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-action.btn-wa {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}
.btn-action.btn-wa:hover {
  background: var(--green);
  color: var(--text-dark);
}

.btn-action.btn-ext {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #cbd5e1;
}
.btn-action.btn-ext:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ================= FOOTER ================= */
.track-footer {
  margin-top: auto;
  background: rgba(5, 8, 17, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 24px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-right {
  display: flex;
  gap: 16px;
}
.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-right a:hover {
  color: #fff;
}

/* ================= HIGH TRAFFIC QUEUE MODAL ================= */
.traffic-queue-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 17, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  animation: fadeIn 0.25s ease;
}
.traffic-queue-overlay.hidden {
  display: none !important;
}
.traffic-queue-card {
  background: linear-gradient(145deg, #0d1527 0%, #080d18 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.15);
  position: relative;
  overflow: hidden;
}
.tq-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tq-icon {
  font-size: 32px;
  line-height: 1;
}
.tq-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.5);
  animation: tqPulse 1.8s infinite;
}
@keyframes tqPulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  100% { transform: scale(1.3); opacity: 0; }
}
.tq-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 8px;
}
.tq-sub {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 20px;
}
.tq-sub b {
  color: #ffffff;
}
.tq-progress-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tq-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
  border-radius: 999px;
  transition: width 1s linear;
}
.tq-status-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #94a3b8;
}
.tq-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-top-color: #fbbf24;
  border-radius: 50%;
  animation: tqSpin 0.8s linear infinite;
}
@keyframes tqSpin {
  to { transform: rotate(360deg); }
}

/* ================= COURIER MISMATCH MODAL ================= */
.mismatch-card {
  border-color: rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(239, 68, 68, 0.15) !important;
}
.mismatch-icon-wrap {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}
.mismatch-title {
  color: #f87171 !important;
}
.mismatch-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.btn-mismatch-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}
.btn-mismatch-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}
.btn-mismatch-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-mismatch-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.detected-courier-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #86efac;
  margin-top: 6px;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  animation: fadeIn 0.2s ease;
}

/* Tracking Mode Switcher Tabs */
.track-mode-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.track-mode-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.track-mode-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.track-mode-tab.active {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.5);
  color: #86efac;
}

/* AfterShip Widget Container */
.aftership-widget-container {
  background: rgba(10, 16, 28, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 520px;
  margin-top: 24px;
  box-shadow: var(--shadow-card);
}
.aftership-iframe {
  width: 100%;
  height: 540px;
  border: none;
  border-radius: var(--radius-md);
}

/* ================= MOBILE RESPONSIVE ADAPTATIONS (< 768px & < 480px) ================= */
@media (max-width: 768px) {
  .nav-text-full {
    display: none;
  }
  .nav-text-short {
    display: inline;
  }

  .track-container {
    padding: 0 12px;
  }

  .track-header-inner {
    padding: 8px 10px;
    gap: 8px;
  }

  .track-brand {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .track-brand img {
    height: 30px;
    max-width: 140px;
    object-fit: contain;
  }

  .header-nav-actions {
    gap: 4px;
    flex-shrink: 0;
  }

  .header-link {
    padding: 5px 8px;
    font-size: 0.75rem;
    gap: 4px;
  }

  .header-btn.whatsapp-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
    gap: 4px;
  }

  .header-link svg,
  .header-btn.whatsapp-btn svg {
    width: 14px;
    height: 14px;
  }

  .track-hero {
    padding: 14px 0 18px;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    margin-bottom: 6px;
    letter-spacing: 0.8px;
  }

  .hero-headline {
    font-size: clamp(1.25rem, 5.2vw, 1.55rem);
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .hero-subtext {
    font-size: 0.78rem;
    line-height: 1.35;
    margin: 0 auto 12px;
    max-width: 320px;
  }

  .search-box-card {
    padding: 14px 12px;
    border-radius: 14px;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .input-group label {
    font-size: 0.75rem;
    margin-bottom: 3px;
    text-align: left;
    display: block;
    font-weight: 700;
  }

  .input-wrapper,
  .select-wrapper {
    height: 42px;
    border-radius: 9px;
  }

  .input-wrapper input {
    font-size: 0.84rem;
    padding: 8px 10px 8px 34px;
  }

  .input-icon {
    left: 10px;
    width: 15px;
    height: 15px;
  }

  .select-wrapper select {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .track-btn.primary {
    width: 100%;
    min-height: 42px;
    font-size: 0.9rem;
    padding: 9px 14px;
    border-radius: 9px;
    justify-content: center;
    margin-top: 2px;
  }

  .courier-alert-banner {
    padding: 8px 10px;
    margin-bottom: 10px;
    gap: 6px;
  }

  .courier-alert-icon {
    font-size: 1.1rem;
  }

  .courier-alert-text strong {
    font-size: 0.8rem;
  }

  .courier-alert-text p {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .result-container {
    margin-top: 16px;
    padding: 16px 12px;
    border-radius: 14px;
  }
}
