@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --smoke: #F4F6F9;
  --panel: #FFFFFF;
  --panel-hover: #F8FAFC;
  --primary: #1E3A8A; /* Premium US Royal Blue */
  --primary-light: #3B82F6;
  --primary-glow: rgba(59, 130, 246, 0.15);
  --accent: #0F172A;
  --ink: #0F172A;
  --slate: #475569;
  --slate-light: #94A3B8;
  --green: #10B981;
  --green-glow: rgba(16, 185, 129, 0.15);
  --amber: #F59E0B;
  --amber-glow: rgba(245, 158, 11, 0.15);
  --red: #EF4444;
  --red-glow: rgba(239, 68, 68, 0.15);
  --rule: rgba(226, 232, 240, 0.8);
  --rule-strong: rgba(203, 213, 225, 0.8);
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 8px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--smoke);
  color: var(--ink);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img, svg {
  display: block;
  max-width: 100%;
}

.mono {
  font-family: var(--font-mono);
}

::selection {
  background: var(--primary);
  color: #ffffff;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER & NAVIGATION */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.02);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-suffix {
  font-weight: 500;
  color: var(--slate);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate);
}

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

.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary);
  padding: 10px 22px;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--rule);
    padding: 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.05rem;
    font-weight: 700;
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .nav-cta {
    display: none;
  }
  .brand-suffix {
    display: none;
  }
}

/* HERO SECTION */
.hero {
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

h1 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-ghost {
  border: 2px solid var(--rule-strong);
  color: var(--ink);
  padding: 12px 26px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.hero-panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.hero-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hero-panel p {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.stat-row div {
  background: var(--smoke);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-row .num {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.stat-row .lbl {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
  margin-top: 4px;
}

/* SECTIONS & CARDS */
section {
  padding: 80px 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.eyebrow.live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.section-head {
  max-width: 600px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--slate);
  font-size: 1.05rem;
}

/* TRACK FORM */
.track-form {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin-top: 16px;
}

.track-form input {
  flex: 1;
  background: var(--panel);
  border: 2px solid var(--rule-strong);
  color: var(--ink);
  padding: 16px 20px;
  border-radius: var(--radius-xl);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
  transition: all 0.2s ease;
}

.track-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.track-form button {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0 32px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.track-form button:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.form-note {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 16px;
}

.form-note strong {
  color: var(--primary);
  cursor: pointer;
}

.form-error {
  background: var(--red-glow);
  color: var(--red);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
  border-left: 4px solid var(--red);
  display: none;
}

/* CARDS GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card .glyph {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--slate);
  font-size: 0.95rem;
}

.card ul {
  margin-top: 18px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card ul li {
  font-size: 0.9rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card ul li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

.card .badge {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* HOW IT WORKS / STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

.step {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.step .num {
  font-family: var(--font-mono);
  color: var(--primary-light);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--slate);
  font-size: 0.9rem;
}

/* CTA BAND */
.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  padding: 64px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  text-align: center;
  margin: 40px 0 80px;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 28px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-buttons .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.cta-buttons .btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* TRACKING CATEGORIES AND DETAILS */
.track-result {
  margin-top: 48px;
  display: none;
}

.track-result.show {
  display: block;
}

.category-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.category-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.category-card-header h2 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-card-header h2 span {
  font-size: 1.2rem;
  opacity: 0.6;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--amber-glow);
  color: var(--amber);
}

.status-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-chip.delivered {
  background: var(--green-glow);
  color: var(--green);
}

.status-chip.exception {
  background: var(--red-glow);
  color: var(--red);
}

/* DATA FIELDS GRID */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.data-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.data-item .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-item .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.data-item .value.highlight {
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* MAP DESIGN */
#map {
  height: 420px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  margin-top: 8px;
  background: #EAEAE9;
  z-index: 1;
}

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 12px 0 12px 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 7px;
  width: 2px;
  background: var(--rule-strong);
}

.tl-item {
  display: flex;
  position: relative;
  padding-bottom: 28px;
  gap: 24px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--panel);
  border: 3px solid var(--primary-light);
  position: absolute;
  left: -24px;
  top: 4px;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--panel);
}

.tl-item.latest .tl-dot {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--panel), 0 0 0 8px var(--green-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

.tl-time {
  min-width: 120px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  padding-top: 2px;
}

.tl-content {
  flex: 1;
}

.tl-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.tl-desc {
  font-size: 0.9rem;
  color: var(--slate);
}

.tl-place {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

/* TWO-COL LAYOUTS */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* CONTACT FORM & INFO LIST */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: -10px;
}

input, select, textarea {
  background: var(--panel);
  border: 1px solid var(--rule-strong);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--ink);
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-list .k {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.info-list .v {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.info-list .v a:hover {
  color: var(--primary);
}

/* FOOTER */
footer {
  background: var(--accent);
  color: #ffffff;
  padding: 64px 0 32px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .brand .mark {
  background: #ffffff;
  color: var(--accent);
  box-shadow: none;
}

footer .brand-suffix {
  color: rgba(255, 255, 255, 0.7);
}

.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.foot-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.foot-links a:hover {
  color: #ffffff;
}

.foot-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* LOGIN SCREEN STYLES */
.login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--smoke);
  padding: 24px;
}

.login-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-card h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.login-card p {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-card input {
  width: 100%;
}

.login-error {
  color: var(--red);
  background: var(--red-glow);
  border-left: 4px solid var(--red);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  display: none;
}

/* ADMIN PANEL STYLING */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

@media (max-width: 860px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
}

.admin-nav {
  background: var(--accent);
  color: #ffffff;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-nav .brand {
  margin-bottom: 24px;
}

.admin-nav .brand .mark {
  background: #ffffff;
  color: var(--accent);
  box-shadow: none;
}

.admin-nav .brand-suffix {
  color: rgba(255, 255, 255, 0.7);
}

.admin-nav a {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.admin-main {
  background: var(--smoke);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 600px) {
  .admin-main {
    padding: 20px;
  }
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-topbar h1 {
  font-size: 1.8rem;
}

#table-wrap {
  background: var(--panel);
  border-radius: var(--radius-xl);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.table th {
  background: var(--panel-hover);
  padding: 16px 24px;
  font-weight: 700;
  color: var(--slate);
  border-bottom: 1px solid var(--rule);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--panel-hover);
}

.table td.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.table td.actions a {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}

.table td.actions a:hover {
  color: var(--primary-light);
}

.table td.actions button {
  background: rgba(239, 68, 68, 0.08);
  color: var(--red);
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.table td.actions button:hover {
  background: var(--red);
  color: #ffffff;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show .modal {
  transform: translateY(0);
}

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.btn-secondary {
  background: var(--smoke);
  color: var(--slate);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--rule-strong);
  color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group.full {
  grid-column: 1 / -1;
}

/* FLOATING CHAT WIDGET */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  font-family: var(--font-main);
}

.chat-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.chat-bubble:hover {
  transform: scale(1.08) rotate(5deg);
  background: var(--primary-light);
}

.chat-bubble svg {
  width: 28px;
  height: 28px;
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 520px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 480px) {
  .chat-window {
    width: calc(100vw - 48px);
    height: 480px;
  }
}

.chat-window.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: var(--primary);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.chat-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-status {
  font-size: 0.75rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.chat-close {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.8;
}

.chat-close:hover {
  opacity: 1;
}

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.4;
}

.chat-msg.agent {
  background: #ffffff;
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.chat-msg.user {
  background: var(--primary);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  box-shadow: 0 2px 6px var(--primary-glow);
}

.chat-msg-time {
  font-size: 0.7rem;
  color: var(--slate-light);
  margin-top: 4px;
  text-align: right;
}

.chat-msg.user .chat-msg-time {
  color: rgba(255, 255, 255, 0.7);
}

.chat-form-pane {
  background: #ffffff;
  padding: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-form-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-form-inputs input {
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.chat-footer {
  border-top: 1px solid var(--rule);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  background: #ffffff;
}

.chat-footer input {
  flex: 1;
  border: 1px solid var(--rule-strong);
  padding: 10px 14px;
  border-radius: var(--radius-xl);
  font-size: 0.88rem;
}

.chat-footer input:focus {
  border-color: var(--primary);
  outline: none;
}

.chat-footer button {
  background: var(--primary);
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chat-footer button:hover {
  background: var(--primary-light);
}

/* AUTOCOMPLETE SUGGESTIONS */
.autocomplete-suggestions {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1100;
  width: 100%;
}

.autocomplete-suggestion {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--rule);
}

.autocomplete-suggestion:last-child {
  border-bottom: none;
}

.autocomplete-suggestion:hover {
  background: var(--panel-hover);
  color: var(--primary);
}

.relative-container {
  position: relative;
  width: 100%;
}

.col-span-2 {
  grid-column: span 2;
}

/* MOBILE RESPONSIVENESS OVERRIDES AND IMPROVEMENTS */
@media (max-width: 560px) {
  .hero {
    padding: 40px 0;
  }
  .stat-row {
    gap: 8px;
    margin-top: 16px;
  }
  .stat-row div {
    padding: 10px 6px;
  }
  .stat-row .num {
    font-size: 1.15rem;
  }
  .stat-row .lbl {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
  }
  .track-form {
    flex-direction: column;
    gap: 12px;
  }
  .track-form button {
    padding: 16px;
    width: 100%;
  }
  .cta-band {
    padding: 32px 16px;
    margin: 20px 0 40px;
  }
  .category-card {
    padding: 20px 16px;
  }
  .col-span-2 {
    grid-column: span 1 !important;
  }
  .timeline {
    padding: 12px 0 12px 16px;
  }
  .timeline::before {
    left: 4px;
  }
  .tl-item {
    flex-direction: column;
    gap: 4px;
    padding-left: 16px;
    padding-bottom: 20px;
  }
  .tl-dot {
    left: -20px;
    top: 4px;
  }
  .tl-time {
    min-width: auto;
    font-size: 0.75rem;
    padding-top: 0;
  }
  .page-head {
    padding-top: 40px !important;
    text-align: center;
  }
  .page-head h1 {
    font-size: 2rem;
  }
  .page-head p {
    font-size: 0.95rem;
  }
  .login-card {
    padding: 32px 20px;
  }
}

/* HERO BG ENHANCED (PEXELS STUNNING BACKGROUND FOR HOMEPAGE) */
.hero-bg-enhanced {
  position: relative;
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.55) 100%), url('https://images.pexels.com/photos/379964/pexels-photo-379964.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-2xl);
  padding: 100px 48px !important;
  color: #ffffff !important;
  margin-top: 24px;
}

.hero-bg-enhanced h1,
.hero-bg-enhanced h1 span,
.hero-center .eyebrow {
  background: linear-gradient(135deg, #38bdf8, #34d399) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0px 2px 8px rgba(15, 23, 42, 0.85)) !important;
}

.hero-bg-enhanced p.lede {
  color: rgba(241, 245, 249, 0.95) !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-bg-enhanced .btn-ghost {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-bg-enhanced .btn-ghost:hover {
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
}

/* HERO CENTERED LAYOUT */
.hero-center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-center p.lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
  color: rgba(241, 245, 249, 0.95);
  font-size: 1.2rem;
  line-height: 1.7;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

.hero-center .btn-row {
  justify-content: center;
}

/* BESPOKE SOLUTIONS ENHANCED BACKGROUND CARDS */
.card-bg-enhanced {
  background-size: cover !important;
  background-position: center !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  position: relative;
  z-index: 1;
}

.card-bg-enhanced.service-card-1 {
  background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.85)), url('https://images.pexels.com/photos/4386431/pexels-photo-4386431.jpeg?auto=compress&cs=tinysrgb&w=600') !important;
}

.card-bg-enhanced.service-card-2 {
  background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.85)), url('https://images.pexels.com/photos/280221/pexels-photo-280221.jpeg?auto=compress&cs=tinysrgb&w=600') !important;
}

.card-bg-enhanced.service-card-3 {
  background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.85)), url('https://images.pexels.com/photos/1267325/pexels-photo-1267325.jpeg?auto=compress&cs=tinysrgb&w=600') !important;
}

.card-bg-enhanced h3 {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.card-bg-enhanced p {
  color: rgba(241, 245, 249, 0.95) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  line-height: 1.5;
}

.card-bg-enhanced .glyph {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.2) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  text-shadow: none !important;
}

.card-bg-enhanced ul li {
  color: rgba(241, 245, 249, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.card-bg-enhanced:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5) !important;
}

/* INTER-SECTION IMAGE BANNERS */
.visual-banner {
  position: relative;
  height: 320px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin: 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
}

.visual-banner-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  max-width: 720px;
}

.visual-banner-content h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.visual-banner-content p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(241, 245, 249, 0.9);
  font-weight: 500;
  line-height: 1.6;
}

/* TESTIMONIALS SECTION */
.testimonials-section {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 980px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate);
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-quote::before {
  content: "“";
  font-family: serif;
  font-size: 3.5rem;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: -24px;
  left: -8px;
  z-index: -1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.testimonial-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 2px;
}

.testimonial-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

@media (max-width: 560px) {
  .hero-bg-enhanced {
    padding: 60px 20px !important;
  }
  .hero-center p.lede {
    font-size: 1.05rem;
  }
  .visual-banner {
    height: 220px;
    margin: 36px 0;
  }
  .visual-banner-content {
    padding: 16px;
  }
  .testimonials-section {
    padding: 60px 0;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .testimonial-card {
    padding: 24px;
  }
  
  /* Mobile scaling for gradient headers and shadow filters */
  .hero-bg-enhanced h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem) !important;
    line-height: 1.25 !important;
  }
  .hero-bg-enhanced h1,
  .hero-bg-enhanced h1 span,
  .hero-center .eyebrow {
    filter: drop-shadow(0px 1px 4px rgba(15, 23, 42, 0.9)) !important;
  }
  .faq-header {
    padding: 16px 18px !important;
    font-size: 0.98rem !important;
  }
  .faq-content {
    padding: 0 18px 16px 18px !important;
    font-size: 0.9rem !important;
  }
}

/* FAQ SECTION ACCORDION STYLE */
.faq-accordion {
  max-width: 820px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--panel, #ffffff) !important;
  border: 1px solid var(--rule, rgba(0,0,0,0.08));
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.faq-item:hover {
  border-color: var(--primary-light, #38bdf8);
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.05));
}

.faq-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink, #0f172a);
  cursor: pointer;
  transition: color 0.2s ease;
  outline: none;
  gap: 16px;
}

.faq-header:focus-visible {
  outline: 2px solid var(--primary, #38bdf8);
  outline-offset: -2px;
}

.faq-header span {
  flex: 1;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--slate, #64748b);
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
}

.faq-header[aria-expanded="true"] {
  color: var(--primary, #38bdf8);
}

.faq-header[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary, #38bdf8);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease-out;
}

.faq-content {
  padding: 0 24px 20px 24px;
  color: var(--slate, #64748b);
  line-height: 1.6;
  font-size: 0.98rem;
}

.faq-content p {
  margin: 0;
}

/* STANDALONE FAQ PAGE ACCORDION */
.page-faq-section {
  max-width: 800px;
  margin: 40px auto 80px;
  padding: 0 16px;
}

.page-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-faq-item {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-faq-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.page-faq-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--ink);
  padding: 20px 24px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: color 0.2s ease;
  gap: 20px;
}

.page-faq-header:hover,
.page-faq-header[aria-expanded="true"] {
  color: var(--primary);
}

.page-faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--slate-light);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  flex-shrink: 0;
}

.page-faq-header[aria-expanded="true"] .page-faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.page-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-faq-content {
  padding: 0 24px 20px 24px;
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.7;
}

.page-faq-content p {
  margin: 0;
}

.page-faq-content a {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: underline;
}

.page-faq-content a:hover {
  color: var(--primary);
}

/* GLOBAL FOOTER FAQ ACCORDION */
.foot-faq {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.foot-faq-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.foot-faq-accordion {
  display: flex;
  flex-direction: column;
}

.foot-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.foot-faq-item:last-child {
  border-bottom: none;
}

.foot-faq-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.95);
  padding: 14px 0;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: color 0.2s ease;
  gap: 16px;
}

.foot-faq-header:hover,
.foot-faq-header[aria-expanded="true"] {
  color: #38bdf8;
}

.foot-faq-chevron {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
}

.foot-faq-header[aria-expanded="true"] .foot-faq-chevron {
  transform: rotate(180deg);
  color: #38bdf8;
}

.foot-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease-out;
}

.foot-faq-content {
  padding-bottom: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

.foot-faq-content a {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: underline;
}

.foot-faq-content a:hover {
  color: #60a5fa;
}

/* RESPONSIVE FOOTER LINKS & ACCESSIBILITY ON MOBILE */
@media (max-width: 560px) {
  .foot-grid {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }
  .foot-links {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0 !important;
  }
  .foot-links a {
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important; /* At least 44px height tap target */
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }
  .foot-links a:last-child {
    border-bottom: none !important;
  }
  footer {
    padding-bottom: 110px !important; /* Proper bottom padding so floating chat bubble doesn't cover footer links */
  }
}

/* RESPONSIVE ADMIN PORTAL STYLES */
@media (max-width: 768px) {
  .admin-shell {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }

  .admin-nav {
    flex-direction: column !important;
    align-items: center !important;
    padding: 20px 16px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    gap: 12px !important;
    text-align: center;
  }

  .admin-nav .brand {
    margin-bottom: 8px !important;
  }

  .admin-nav a {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important; /* At least 44px tap target height */
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
  }

  .admin-nav a#logout-link {
    margin-top: 4px !important;
  }

  .admin-main {
    padding: 24px 16px !important;
    gap: 24px !important;
  }

  .admin-topbar {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center;
    gap: 16px !important;
  }

  .admin-topbar h1 {
    font-size: 1.6rem !important;
  }

  .admin-topbar p {
    font-size: 0.88rem !important;
  }

  .admin-topbar button {
    width: 100% !important;
    min-height: 44px !important; /* At least 44px height tap target */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Form and inputs stacking */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  .form-group {
    margin-bottom: 12px !important;
  }

  input, select, textarea {
    min-height: 44px !important; /* Min 44px height tap target on touch screens */
    font-size: 1rem !important; /* Prevents automatic zoom on mobile devices */
    padding: 10px 14px !important;
  }

  textarea {
    min-height: 100px !important;
  }

  /* Wide shipment tables to beautiful cards stack */
  #table-wrap {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow-x: visible !important;
  }

  .table {
    display: block !important;
    width: 100% !important;
  }

  .table thead {
    display: none !important;
  }

  .table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .table tr {
    display: block !important;
    background: var(--panel) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    box-shadow: var(--shadow) !important;
    margin: 0 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .table tr:hover {
    border-color: var(--primary-light) !important;
    box-shadow: var(--shadow-lg) !important;
  }

  .table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: 1px dashed var(--rule) !important;
    text-align: right !important;
    font-size: 0.9rem !important;
    background: transparent !important;
  }

  .table tr:hover td {
    background: transparent !important;
  }

  .table td:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-top: 12px;
    justify-content: center !important;
  }

  /* Responsive dynamic labels for each column cell */
  .table td:nth-child(1)::before {
    content: "Tracking Code:";
    font-weight: 700;
    color: var(--slate);
    text-align: left;
    margin-right: 12px;
  }

  .table td:nth-child(2)::before {
    content: "Route Manifest:";
    font-weight: 700;
    color: var(--slate);
    text-align: left;
    margin-right: 12px;
  }

  .table td:nth-child(3)::before {
    content: "Type:";
    font-weight: 700;
    color: var(--slate);
    text-align: left;
    margin-right: 12px;
  }

  .table td:nth-child(4)::before {
    content: "Service Mode:";
    font-weight: 700;
    color: var(--slate);
    text-align: left;
    margin-right: 12px;
  }

  .table td:nth-child(5)::before {
    content: "Status:";
    font-weight: 700;
    color: var(--slate);
    text-align: left;
    margin-right: 12px;
  }

  .table td:nth-child(6)::before {
    content: "Dispatch Update:";
    font-weight: 700;
    color: var(--slate);
    text-align: left;
    margin-right: 12px;
  }

  .table td:nth-child(7)::before {
    content: "Control Actions:";
    font-weight: 700;
    color: var(--slate);
    text-align: left;
    margin-right: 12px;
  }

  /* Actions container styling */
  .table td.actions {
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .table td.actions a, 
  .table td.actions button {
    flex: 1 1 calc(50% - 10px) !important;
    min-width: 100px !important;
    min-height: 44px !important; /* Min 44px tap target height */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 12px !important;
    border-radius: var(--radius-md) !important;
    font-size: 0.85rem !important;
    box-sizing: border-box !important;
  }

  .table td.actions a {
    background: var(--smoke) !important;
    border: 1px solid var(--rule) !important;
  }

  .table td.actions button {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    margin: 0 !important;
  }

  /* Modals on mobile */
  .modal {
    padding: 24px 16px !important;
    margin: 12px !important;
    max-height: 92vh !important;
    border-radius: 16px !important;
  }

  .modal h2 {
    font-size: 1.25rem !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
  }

  .modal h3 {
    font-size: 0.95rem !important;
    margin: 16px 0 10px !important;
  }

  .modal-actions {
    margin-top: 20px !important;
    padding-top: 16px !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .modal-actions button {
    width: 100% !important;
    min-height: 44px !important; /* Min 44px height tap target */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
  }
}


