/* ==========================================================================
   ST EXPRESS LTD — CORPORATE DESIGN SYSTEM & STYLESHEET
   Compatible with cPanel PHP / HTML5 / Static Hosting
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --primary: #0b2545;
  --primary-dark: #061527;
  --primary-light: #134074;
  --secondary: #d90429;
  --secondary-hover: #ef233c;
  --accent: #0066cc;
  --accent-light: #e6f0fa;
  
  /* Neutral Palette */
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Spacing */
  --container-max: 1280px;
  --header-height: 80px;
  --topbar-height: 40px;

  /* Elevation / Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 30px -10px rgba(11, 37, 69, 0.15);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.bg-surface {
  background-color: var(--surface);
}

.bg-alt {
  background-color: var(--surface-alt);
}

.bg-dark {
  background-color: var(--primary-dark);
  color: #ffffff;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-muted); }

/* Section Header */
.section-title-wrapper {
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
  text-align: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background-color: rgba(217, 4, 41, 0.1);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.badge-tag.primary {
  background-color: var(--accent-light);
  color: var(--primary-light);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.bg-dark .section-title {
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.bg-dark .section-subtitle {
  color: var(--text-light);
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--secondary);
  color: #ffffff;

}
.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(217, 4, 41, 0.35);
}

.btn-navy {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-navy:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.35);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}
.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary-dark);
  border-color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.top-bar {
  background-color: var(--primary-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-info-item svg {
  width: 14px;
  height: 14px;
  color: var(--secondary);
}

.top-info-item a:hover {
  color: #ffffff;
}

.top-network-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #ffffff;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--surface);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.is-sticky {
  box-shadow: var(--shadow-md);
  height: 70px;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--secondary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--surface);
  z-index: 1100;
  box-shadow: var(--shadow-xl);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease-in-out;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: auto;
}

.mobile-nav-link {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 37, 69, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 5.5rem 0 6.5rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--secondary);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ==========================================================================
   Hero Widget — Ship / Shop / Track
   ========================================================================== */

.hw-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(18, 56, 160, 0.14);
  overflow: hidden;
  border: 1px solid rgba(18, 56, 160, 0.08);
}

/* --- Tab bar --- */
.hw-tabs {
  display: flex;
  border-bottom: 2px solid #f0f2f8;
  padding: 0 0.5rem;
  background: #f9fafc;
}

.hw-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 0.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7a99;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hw-tab:hover {
  color: var(--primary);
}

.hw-tab--active {
  color: var(--primary);
  border-bottom-color: #E41830;
}

.hw-tab:disabled,
.hw-tab[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.hw-tab:disabled:hover,
.hw-tab[disabled]:hover {
  color: #6b7a99;
}

/* --- Panel --- */
.hw-panel {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.hw-panel--active {
  display: flex;
}

/* --- Field row --- */
.hw-field {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #f4f6fb;
  border: 1.5px solid #e2e7f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.hw-field:hover,
.hw-field:focus-within {
  border-color: var(--primary);
}

/* Flag selector button */
.hw-flag-select {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #ffffff;
  border: 1px solid #d8dff0;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  flex-shrink: 0;
}

.hw-flag {
  font-size: 1.35rem;
  line-height: 1;
}

/* Weight icon box */
.hw-weight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #d8dff0;
  border-radius: 8px;
  flex-shrink: 0;
  color: #6b7a99;
}

/* Field label + hint */
.hw-field-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.hw-field-text--grow {
  flex: 1;
}

.hw-field-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #3a4a6b;
  letter-spacing: 0.2px;
}

.hw-field-hint {
  font-size: 0.85rem;
  color: #8a96b4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-required {
  color: var(--secondary);
}

/* Weight input (inside .hw-field) */
.hw-weight-input {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: #1a1a2e;
  width: 100%;
  outline: none;
  font-family: inherit;
  padding: 0;
  margin-top: 0.15rem;
}

.hw-weight-input::placeholder {
  color: #b0bcd4;
}

/* Unit dropdown */
.hw-unit-select {
  flex-shrink: 0;
}

.hw-unit-dropdown {
  border: 1px solid #d8dff0;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #3a4a6b;
  background: #ffffff;
  cursor: pointer;
  outline: none;
}

/* CTA button — ST Express brand red */
.hw-cta {
  width: 100%;
  padding: 1rem;
  background: #E41830;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 16px rgba(228, 24, 48, 0.35);
}

.hw-cta:hover {
  background: #B50E23;
  transform: translateY(-2px);
}

/* Development on hold notice */
.hw-dev-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #6d4c00;
  line-height: 1.45;
}

.hw-dev-notice svg {
  flex-shrink: 0;
  color: #f59e0b;
  margin-top: 1px;
}

/* Shop / coming soon block */
.hw-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  color: #6b7a99;
}

.hw-coming-soon svg {
  color: #b0bcd4;
}

.hw-coming-soon h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.hw-coming-soon p {
  font-size: 0.85rem;
  margin: 0;
  max-width: 260px;
}

/* Track form spacing */
.hw-track-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}



/* ==========================================================================
   Tracking Portal (track.php) — tp-* components
   ========================================================================== */

/* Search card */
.tp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.tp-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.tp-card-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.75rem;
}

/* Form */
.tp-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Input row */
.tp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tp-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  pointer-events: none;
}

.tp-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.tp-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(18, 56, 160, 0.12);
}

.tp-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Submit button */
.tp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(18, 56, 160, 0.28);
}

.tp-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Development / warning notice */
.tp-dev-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-top: 1.25rem;
  font-size: 0.84rem;
  color: #6d4c00;
  line-height: 1.5;
}

.tp-dev-notice svg {
  flex-shrink: 0;
  color: #f59e0b;
  margin-top: 2px;
}

/* Result card */
.tp-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.tp-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tp-result-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.tp-result-num {
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.tp-status-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* 5-step tracking timeline */
.tp-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  gap: 0.5rem;
}

.tp-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--border);
  z-index: 0;
}

.tp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.tp-step-node {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 3px var(--border);
}

.tp-step--done .tp-step-node {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

.tp-step--active .tp-step-node {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(18,56,160,0.2);
  animation: pulse-ring 1.8s ease infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 3px rgba(18,56,160,0.25); }
  50%  { box-shadow: 0 0 0 8px rgba(18,56,160,0.08); }
  100% { box-shadow: 0 0 0 3px rgba(18,56,160,0.25); }
}

.tp-step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.tp-step-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* FAQ item */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  font-size: 1rem;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--secondary);
  transition: transform 0.2s;
}

.faq-answer {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Responsive: timeline collapses on mobile */
@media (max-width: 600px) {
  .tp-timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .tp-timeline::before { display: none; }
  .tp-step { flex-direction: row; text-align: left; gap: 0.75rem; }
  .tp-result-header { flex-direction: column; align-items: flex-start; }
  .tp-card { padding: 1.5rem; }
}

/* ==========================================================================
   Services Section Grid
   ========================================================================== */


.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  background-color: var(--secondary);
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background-color: var(--accent-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon-wrapper svg {
  width: 30px;
  height: 30px;
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Global Network Cards
   ========================================================================== */

.network-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.network-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.network-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.network-card.hq {
  border: 2px solid var(--primary);
  background: linear-gradient(to bottom, #ffffff, var(--surface-alt));
}

.network-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.country-flag-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.flag-icon {
  font-size: 2rem;
  line-height: 1;
}

.country-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.hub-type-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hub-type-tag.hq {
  background-color: var(--primary);
  color: #ffffff;
}

.hub-type-tag.partner {
  background-color: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.entity-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.network-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.network-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.network-detail-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.network-detail-item a:hover {
  color: var(--secondary);
}

/* ==========================================================================
   Why Choose Us & Values
   ========================================================================== */

.features-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
}

.feature-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.feature-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Mission & Vision Grid
   ========================================================================== */

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mvv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.mvv-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mvv-icon svg {
  width: 36px;
  height: 36px;
}

.mvv-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.mvv-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Tracking Portal UI
   ========================================================================== */

.tracking-portal-box {
  background-color: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-tracker {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2rem;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 4px;
  background-color: var(--border);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.step-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 4px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.timeline-step.completed .step-node {
  background-color: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.timeline-step.active .step-node {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: #ffffff;
  box-shadow: 0 0 0 6px rgba(217, 4, 41, 0.2);
}

.step-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
}

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

/* ==========================================================================
   Reviews & Testimonials
   ========================================================================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.stars-rating {
  color: #f59e0b;
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.reviewer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Blog / Business Insights Grid
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.blog-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ==========================================================================
   Forms & Contact Page
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-panel {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
}

.contact-info-panel h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-info-panel p {
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: auto;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-details h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.contact-details p, .contact-details a {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}
.contact-details a:hover {
  color: var(--secondary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.98rem;
  background-color: var(--surface);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--accent-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 4.5rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* --- Global overflow guard --- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

*, *::before, *::after {
  min-width: 0; /* Prevents flex/grid children from overflowing */
}

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
  .hero-grid,
  .features-two-col,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-description {
    max-width: 100%;
  }

  .services-grid,
  .network-grid,
  .mvv-grid,
  .reviews-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --topbar-height: 0px;
  }

  /* Hide top bar & desktop nav */
  .top-bar { display: none; }
  .nav-menu { display: none; }
  .header-actions .btn:not(.mobile-toggle) { display: none; }
  .mobile-toggle { display: block; }

  /* Header */
  .header {
    height: var(--header-height);
  }

  .brand-logo img {
    height: 38px;
    width: auto;
  }

  /* Hero */
  .hero {
    padding: 3rem 0 3.5rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 1.875rem;
    letter-spacing: -0.5px;
    word-break: break-word;
  }

  .hero-description {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-top: 1.5rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  /* Hero track card */
  .hero-track-card {
    padding: 1.5rem;
  }

  /* Section padding */
  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* All card grids → single column */
  .services-grid,
  .network-grid,
  .mvv-grid,
  .reviews-grid,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Features two-column internal fix */
  .features-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Contact layout */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Global network card header */
  .network-card-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Timeline */
  .timeline-steps {
    flex-direction: column;
    gap: 1.5rem;
  }
  .timeline-steps::before {
    display: none;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Tracking portal */
  .tracking-portal-box {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   PRIMARY INTERNATIONAL HUBS (UAE & USA PROMINENCE) & CRM PORTAL STYLES
   ========================================================================== */

/* Featured Primary Hub Cards (UAE & USA) */
.featured-hubs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.featured-hub-card {
  background: var(--surface);
  border: 2px solid #0066cc22;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.featured-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.featured-hub-card.uae-hub {
  border-top: 5px solid #00732f;
}

.featured-hub-card.usa-hub {
  border-top: 5px solid #b22234;
}

.featured-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.hub-flag-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flag-icon-lg {
  font-size: 2.5rem;
  line-height: 1;
}

.hub-country-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.hub-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.primary-badge {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(0, 102, 204, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hub-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.hub-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.hub-detail-row svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Secondary Regional Card (BD / UK / China) */
.secondary-hubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.secondary-hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* Top Bar Flag Badges */
.top-network-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.hub-pill--primary {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Modal Overlay System */
.stx-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 21, 39, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1.5rem;
}

.stx-modal-backdrop.is-open,
.stx-modal-backdrop[style*="display: flex"],
.stx-modal-backdrop[style*="display:flex"],
.stx-modal-backdrop[style*="display: block"],
.stx-modal-backdrop[style*="display:block"] {
  opacity: 1;
  pointer-events: auto;
}

.stx-modal {
  background: var(--surface);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.stx-modal-backdrop.is-open .stx-modal,
.stx-modal-backdrop[style*="display: flex"] .stx-modal,
.stx-modal-backdrop[style*="display:flex"] .stx-modal,
.stx-modal-backdrop[style*="display: block"] .stx-modal,
.stx-modal-backdrop[style*="display:block"] .stx-modal {
  transform: translateY(0);
}

.stx-modal-header {
  padding: 1.25rem 1.75rem;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stx-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;

}

.stx-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  opacity: 0.8;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
}
.stx-modal-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

.stx-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
}

.stx-modal-footer {
  padding: 1rem 1.75rem;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* CRM Portal Dashboard (`dashboard.php`) */
.portal-wrapper {
  background: #f1f5f9;
  min-height: calc(100vh - 120px);
  padding: 2.5rem 0 4rem 0;
}

.portal-grid,
.portal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

.portal-layout {
  max-width: var(--container-width, 1280px);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem 1.5rem;
}

.portal-main,
.portal-content,
.portal-grid > main {
  min-width: 0;
}

@media (max-width: 992px) {
  .portal-grid,
  .portal-layout {
    grid-template-columns: 1fr;
  }
}

.portal-sidebar-nav {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  min-width: 260px;
  width: 100%;
}

.user-profile-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

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

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-group-title {
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.75px;
  padding: 0.85rem 1rem 0.25rem 1rem;
  margin-top: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.sidebar-link:hover, .sidebar-link.active {
  background: var(--accent-light);
  color: var(--accent);
}
.sidebar-link svg {
  width: 18px;
  height: 18px;
}

.address-box-card {
  background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.75rem;
  position: relative;
}

.suite-badge {
  background: #f59e0b;
  color: #0b2545;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;

}

.copy-address-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

}
.copy-address-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.portal-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.portal-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.25rem 0;
}

/* Tables & Badges */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 var(--surface-alt);
}

.table-responsive::-webkit-scrollbar {
  height: 10px;
}
.table-responsive::-webkit-scrollbar-track {
  background: var(--surface-alt);
  border-radius: 6px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 6px;
  border: 2px solid var(--surface-alt);
  cursor: grab;
  transition: background 0.2s ease;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
.table-responsive::-webkit-scrollbar-thumb:active {
  cursor: grabbing;
  background: var(--accent);
}

/* Synchronized Top Horizontal Scrollbar for Tables */
.stx-table-top-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  height: 12px;
  margin-bottom: 6px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-sizing: border-box;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 var(--surface-alt);
  transition: opacity 0.2s ease;
}

.stx-table-top-scroll::-webkit-scrollbar {
  height: 10px;
}
.stx-table-top-scroll::-webkit-scrollbar-track {
  background: var(--surface-alt);
  border-radius: 6px;
}
.stx-table-top-scroll::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 6px;
  border: 2px solid var(--surface-alt);
  cursor: grab;
  transition: background 0.2s ease;
}
.stx-table-top-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
.stx-table-top-scroll::-webkit-scrollbar-thumb:active {
  cursor: grabbing;
  background: var(--accent);
}

.stx-table-top-scroll-inner {
  height: 1px;
  pointer-events: none;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  text-align: left;
}

.portal-table th {
  background: var(--surface-alt);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.portal-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.925rem;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.775rem;
  font-weight: 700;
}
.status-badge.in-transit {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}
.status-badge.delivered {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}
.status-badge.received {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}
.status-badge.pending {
  background: rgba(100, 116, 139, 0.15);
  color: #475569;
}

/* Visual Timeline Stepper */
.stx-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2.5rem 0 1.5rem 0;
}
.stx-timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border);
  z-index: 1;
}
.stx-timeline-progress {
  position: absolute;
  top: 18px;
  left: 0;
  height: 4px;
  background: var(--accent);
  z-index: 2;
  transition: width 0.4s ease;
}
.stx-timeline-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 20%;
}
.step-node {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.stx-timeline-step.completed .step-node {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.stx-timeline-step.active .step-node {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}
.step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}
.step-date {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.stx-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.stx-toast {
  background: var(--primary);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  animation: slideInRight 0.3s ease;
  border-left: 5px solid var(--success);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Global Network & Logistics Hubs CSS Fixture (Desktop & Mobile)
   ========================================================================== */
.featured-hubs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

.featured-hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.featured-hub-card.uae-hub {
  border-top: 5px solid #f59e0b;
}

.featured-hub-card.usa-hub {
  border-top: 5px solid #0066cc;
}

.featured-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.hub-flag-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flag-icon-lg {
  font-size: 2.5rem;
  line-height: 1;
}

.hub-country-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.hub-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.primary-badge {
  background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.hub-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1rem 0;
}

.hub-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
}

.hub-detail-row svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.network-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.network-card.hq {
  border-top: 4px solid var(--accent);
}

.network-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.country-flag-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.flag-icon {
  font-size: 2rem;
  line-height: 1;
}

.country-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.hub-type-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  white-space: nowrap;
}

.hub-type-tag.hq {
  background: rgba(0, 102, 204, 0.12);
  color: #0066cc;
}

.hub-type-tag.partner {
  background: var(--surface-alt);
  color: var(--text-muted);
}

.entity-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border);
}

.network-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.network-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-muted);
}

.network-detail-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

@media (max-width: 992px) {
  .featured-hubs-grid, .secondary-hubs-grid, .portal-grid, .network-grid {
    grid-template-columns: 1fr;
  }
  .portal-stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .hero-track-card {
    padding: 1.25rem;
  }

  /* Full-width buttons */
  .btn {
    width: 100%;
    justify-content: center;
  }

  /* Section title */
  .section-title {
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  /* Badge tags */
  .badge-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }

  /* Service/Network cards full width */
  .service-card,
  .network-card,
  .mvv-card,
  .review-card,
  .blog-card {
    width: 100%;
    box-sizing: border-box;
  }

  /* Footer brand logo container */
  .footer-brand img {
    max-width: 100%;
    height: auto;
  }


  /* Mobile drawer width safety */
  .mobile-drawer {
    width: min(300px, 90vw);
  }
}

/* --- Very small (≤360px) --- */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.375rem;
  }

  .track-card-title {
    font-size: 1.1rem;
  }

  .hero-stats-row {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* ==========================================================================
   SaaS Dashboard Standard Components (Customer / Agent / Manager / Admin)
   Strictly compliant with ST Express Brand Tokens
   ========================================================================== */

/* Font Awesome Base Harmonization */
.fa-solid, .fas {
  display: inline-block;
  line-height: inherit;
  color: inherit;
}

/* Sidebar Navigation Icon Standard */
.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.sidebar-link:hover i,
.sidebar-link.active i {
  color: var(--accent);
}

/* Standardized Alerts System */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}
.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  color: #92400e;
}
.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #10b981;
  color: #166534;
}
.alert-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  color: #075985;
}

/* Standard Portal Card */
.portal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
  transition: var(--transition);
}
.portal-card:hover {
  box-shadow: var(--shadow-md);
}

.portal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.portal-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.portal-card-title i {
  color: var(--accent);
}

.portal-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Standard KPI Metrics Grid & Card */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
}
.kpi-icon.success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.kpi-icon.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
.kpi-icon.danger {
  background: rgba(217, 4, 41, 0.10);
  color: var(--secondary);
}

.kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin: 0.25rem 0;
}

.kpi-subtext {
  font-size: 0.775rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Enhanced Portal Table */
.portal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  text-align: left;
}

.portal-table th {
  background: var(--surface-alt);
  padding: 0.85rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.portal-table th.stx-sortable {
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}
.portal-table th.stx-sortable:hover {
  color: var(--primary);
  background: #e2e8f0;
}
.portal-table th.stx-sortable i {
  margin-left: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.5;
}

.portal-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  vertical-align: middle;
  color: var(--text);
}

.portal-table tbody tr {
  transition: background-color 0.15s ease;
}
.portal-table tbody tr:hover {
  background-color: rgba(241, 245, 249, 0.6);
}
.portal-table tbody tr:last-child td {
  border-bottom: none;
}

/* Standardized Status Badges (Strict Brand Tokens) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

.status-badge.delivered,
.status-badge.completed,
.status-badge.paid,
.status-badge.approved,
.status-badge.active,
.status-badge.online {
  background-color: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

.status-badge.in-transit,
.status-badge.processing,
.status-badge.shipped,
.status-badge.out_for_delivery,
.status-badge.in_transit {
  background-color: rgba(0, 102, 204, 0.12);
  color: var(--accent);
  border-color: rgba(0, 102, 204, 0.25);
}

.status-badge.pending,
.status-badge.received,
.status-badge.received_hub,
.status-badge.pickup_pending,
.status-badge.customs_processing,
.status-badge.action-required,
.status-badge.hold {
  background-color: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.25);
}

.status-badge.exception,
.status-badge.rejected,
.status-badge.unpaid,
.status-badge.failed,
.status-badge.cancelled,
.status-badge.danger {
  background-color: rgba(217, 4, 41, 0.10);
  color: var(--secondary);
  border-color: rgba(217, 4, 41, 0.25);
}

.status-badge.draft,
.status-badge.neutral,
.status-badge.untracked,
.status-badge.closed {
  background-color: rgba(100, 116, 139, 0.12);
  color: var(--text-muted);
  border-color: rgba(100, 116, 139, 0.25);
}

.status-badge.picked_up {
  background-color: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
}

.status-badge.sent_to_hub {
  background-color: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.25);
}

/* Empty State Component */
.stx-empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  margin: 1rem 0;
}
.stx-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}
.stx-empty-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.stx-empty-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 1.25rem auto;
  line-height: 1.5;
}

/* Loading Skeleton & Spinner */
.stx-skeleton {
  background: linear-gradient(90deg, var(--surface-alt) 25%, #e2e8f0 50%, var(--surface-alt) 75%);
  background-size: 200% 100%;
  animation: stxShimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes stxShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.stx-spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(0, 102, 204, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: stxSpin 0.7s linear infinite;
}
@keyframes stxSpin {
  to { transform: rotate(360deg); }
}

/* Toolbar & Quick Filter Search */
.portal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.portal-search-wrapper {
  position: relative;
  max-width: 320px;
  width: 100%;
}
.portal-search-wrapper i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}
.portal-search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}
.portal-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ==========================================================================
   ST EXPRESS LTD — RESPONSIVE MOBILE STYLES (ADDITIVE MEDIA QUERIES)
   Strictly scoped to <= 991px, <= 768px, and <= 480px viewports. Zero desktop alterations.
   ========================================================================== */

/* 1. Global Responsive Containers & Table Wrappers */
.table-responsive,
.stx-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
  /* Container padding for mobile viewports */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Top Bar Header Layout */
  .top-bar {
    padding: 0.5rem 0 !important;
  }
  .top-bar .container {
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: flex-start !important;
  }
  .top-info {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    font-size: 0.8rem !important;
  }
  .top-network-badge {
    width: 100% !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  /* Header Navigation */
  .header {
    height: auto !important;
    padding: 0.75rem 0 !important;
  }
  .nav-menu {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
  }

  /* Portal Grid Layout (Customer, Agent, Manager, Admin) */
  .portal-wrapper {
    padding: 1rem 0 !important;
  }
  .portal-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
  }
  .portal-sidebar-nav {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.5rem !important;
  }
  .sidebar-menu {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 0.5rem !important;
    gap: 0.4rem !important;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-group-title {
    display: none !important;
  }
  .sidebar-link {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.825rem !important;
    border-radius: var(--radius) !important;
    flex-shrink: 0 !important;
  }

  /* Dashboard Cards & Stat Grids */
  .stat-grid,
  .kpi-grid,
  .cards-grid,
  .address-box-card {
    grid-template-columns: 1fr !important;
  }

  /* Inline Grids on Portal Dashboard & Orders */
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 220px 1fr"],
  div[style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  /* Typography Scaling for Mobile */
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.25 !important;
  }
  .hero-description {
    font-size: 1rem !important;
  }
  .hero-stats-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
  }
  .hero-ctas .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Footer Layout */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Order Creation & Shipping Wizard Rate Grid */
  div[style*="grid-template-columns: 60px 1.2fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
  
  #order-get-rate-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
    text-align: center !important;
  }
  #btn-order-get-rate {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Modals Overlay Mobile Bounds */
  .stx-modal-backdrop,
  .modal-backdrop,
  div[id*="-modal"] {
    padding: 0.5rem !important;
  }
  .stx-modal-content,
  .modal-content,
  div[id*="-modal"] > div {
    width: 100% !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 1.25rem !important;
    border-radius: var(--radius-lg) !important;
  }

  /* Camera Scanner Container (agent-scan.php) */
  #interactive,
  #qr-video,
  canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-md) !important;
  }
  .scan-actions-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Form Inputs & Buttons Touch Targets (Min ~44px Height) */
  .btn,
  .form-control,
  select,
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="password"] {
    min-height: 44px;
    font-size: 0.95rem;
  }

  /* Data Table Scroller Defaults */
  .table-responsive table,
  .stx-table-wrapper table {
    min-width: 580px;
  }
}

@media (max-width: 480px) {
  /* Extra Small Phone Layout Adjustments */
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .suite-badge {
    font-size: 0.7rem !important;
  }
  .top-info-item {
    font-size: 0.75rem !important;
  }
}

/* ==========================================================================
   Unified In-App Notifications Bell & Dropdown Panel
   ========================================================================== */
.stx-notif-dropdown-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.stx-bell-btn {
  position: relative;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: var(--primary, #0b2545);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin-right: 0.35rem;
}

.stx-bell-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--secondary, #f59e0b);
  transform: translateY(-1px);
}

.stx-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

.stx-notif-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 380px;
  max-width: 92vw;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 15px 35px -5px rgba(11, 37, 69, 0.2), 0 8px 12px -6px rgba(11, 37, 69, 0.1);
  border: 1px solid #e2e8f0;
  z-index: 1050;
  overflow: hidden;
  animation: stxNotifSlideDown 0.2s ease-out;
}

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

.stx-notif-menu-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.stx-bell-badge-header {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
}

.stx-btn-text {
  background: none;
  border: none;
  font-size: 0.775rem;
  color: #0284c7;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

.stx-btn-text:hover {
  text-decoration: underline;
  color: #0369a1;
}

.stx-notif-menu-body {
  max-height: 360px;
  overflow-y: auto;
}

.stx-notif-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
  text-align: left;
}

.stx-notif-item:hover {
  background: #f8fafc;
}

.stx-notif-item.unread {
  background: rgba(245, 158, 11, 0.05);
}

.stx-notif-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(11, 37, 69, 0.06);
  color: var(--primary, #0b2545);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.stx-notif-item.unread .stx-notif-item-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--secondary, #f59e0b);
}

.stx-notif-item-body {
  flex-grow: 1;
  min-width: 0;
}

.stx-notif-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary, #0b2545);
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.stx-notif-item-msg {
  font-size: 0.775rem;
  color: #475569;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.stx-notif-item-time {
  font-size: 0.7rem;
  color: #94a3b8;
}

.stx-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  margin-top: 6px;
}

.stx-notif-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

.stx-notif-empty i {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  display: block;
  color: #cbd5e1;
}

.stx-notif-menu-footer {
  padding: 0.65rem 1rem;
  text-align: center;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
}

.stx-notif-menu-footer a {
  color: var(--primary, #0b2545);
  font-weight: 700;
  text-decoration: none;
  display: block;
}

.stx-notif-menu-footer a:hover {
  color: var(--secondary, #f59e0b);
}



