/* ==========================================================================
   TodayClient Global Trade - Core Premium Style System
   Theme: Slate & Indigo/Teal (Stripe/Linear SaaS Aesthetic)
   ========================================================================== */

/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Theme: Slate & Indigo/Teal */
  --color-bg-primary: #0F172A;     /* Slate 900 */
  --color-bg-secondary: #0A0F1D;   /* Darker Slate */
  --color-surface: #1E293B;        /* Slate 800 */
  --color-surface-hover: #334155;  /* Slate 700 */
  
  --color-accent: #6366F1;         /* Indigo 500 */
  --color-accent-hover: #4F46E5;   /* Indigo 600 */
  --color-teal: #06B6D4;           /* Teal 500 */
  --color-teal-hover: #0891B2;     /* Teal 600 */
  --color-violet: #8B5CF6;         /* Violet 500 */
  
  --color-border: rgba(99, 102, 241, 0.15); /* Indigo border */
  
  --color-text-primary: #F8FAFC;   /* Slate 50 */
  --color-text-secondary: #94A3B8; /* Slate 400 */
  --color-text-muted: #64748B;     /* Slate 500 */
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-input: 8px;
  
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 10px 30px -10px rgba(99, 102, 241, 0.3);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
}

/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg-primary);
  background-image: radial-gradient(circle at 50% 0%, #1e1b4b 0%, var(--color-bg-secondary) 100%);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-surface);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

/* Base Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.max-w-md { max-width: 800px; }
.max-w-sm { max-width: 500px; }

/* Grid System */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.gap-xs { gap: 12px; }
.gap-sm { gap: 20px; }
.gap-md { gap: 32px; }
.gap-lg { gap: 48px; }

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

/* Flex Utilities */
.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-between { justify-content: space-between; }
.flex-center { justify-content: center; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.gap-xs { gap: 8px; }
.gap-sm { gap: 16px; }
.gap-md { gap: 24px; }

/* Spacing & Padding System (Pixel Perfect Alignments) */
.py-xs { padding: 32px 0; }
.py-sm { padding: 56px 0; }
.py-md { padding: 80px 0; }
.py-lg { padding: 120px 0; }

.mt-xxs { margin-top: 4px; }
.mt-xs { margin-top: 8px; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 56px; }
.mb-xs { margin-bottom: 8px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 56px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn-h-full {
  height: 48px;
}

.btn-accent {
  background: var(--color-accent);
  color: #FFFFFF;
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
}
.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-text-primary);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.btn-link {
  background: transparent;
  color: var(--color-accent);
  border: none;
  padding: 0;
}
.btn-link:hover {
  color: var(--color-teal);
  text-decoration: underline;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

/* Badges & Texts */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.badge-gold {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-teal);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 40%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-text {
  color: var(--color-accent);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-green { color: #10B981; }
.text-red { color: #EF4444; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ==========================================================================
   Global Header / Sticky Navbar (Pixel Perfect placement)
   ========================================================================== */
#main-navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  transition: var(--transition-smooth);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
.nav-link:hover, .nav-link.active {
  color: var(--color-text-primary);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  min-width: 180px;
  padding: 8px 0;
  margin-top: 12px;
  display: none;
  box-shadow: var(--shadow-card);
}

.dropdown-content a {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-primary);
}

.nav-dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.15s ease;
}

.nav-auth-desktop {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-auth-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  cursor: pointer;
}

/* User Profile Badge */
.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.admin-badge {
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--color-accent);
}

/* ==========================================================================
   Hero Section / Home Page
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
}

.hero-map-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.65;
}

#hero-map-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-text-block h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text-block p {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 580px;
}

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

.hero-widget-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Floating Widgets on Hero */
.floating-widget {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  width: 220px;
}

.widget-left {
  top: -30px;
  left: -60px;
}

.widget-right {
  bottom: -20px;
  right: -40px;
}

.widget-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.bg-gold {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.bg-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-teal);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero-illustration-card {
  width: 300px;
  height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: rgba(30, 41, 59, 0.6);
}

.vessel-anim-container {
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.svg-cargo-vessel {
  width: 100px;
  align-self: center;
  animation: floatVessel 4s ease-in-out infinite;
}

.ocean-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  overflow: hidden;
  opacity: 0.4;
}

.status-indicator-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-indicator-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-teal);
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 1.5s infinite;
}

/* ==========================================================================
   Section 2: Trusted By Scrolling Logos
   ========================================================================== */
.scrolling-logos-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
  position: relative;
}

.scrolling-logos-container::before, .scrolling-logos-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.scrolling-logos-container::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-primary), transparent);
}

.scrolling-logos-container::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-primary), transparent);
}

.scrolling-logos-track {
  display: inline-block;
  animation: scrollLogos 25s linear infinite;
}

.scrolling-logos-track span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  opacity: 0.25;
  margin: 0 40px;
}

/* ==========================================================================
   Section 3: Services Card / Hover Glow
   ========================================================================== */
.section-title {
  font-size: 2.5rem;
  margin-top: 10px;
}

.section-description {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 12px auto 0 auto;
}

.service-card {
  padding: 36px 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Section 4: Timeline Operations
   ========================================================================== */
.timeline-container {
  position: relative;
  padding: 16px 0;
}

.timeline-item {
  position: relative;
  padding: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.timeline-step {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--color-accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
}

.timeline-item h4 {
  font-size: 1.15rem;
}

.timeline-item p {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

/* ==========================================================================
   Section 5: Industry Small Cards
   ========================================================================== */
.industry-card-small {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  cursor: pointer;
  height: 100%;
}

.ind-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.industry-card-small h4 {
  font-size: 0.95rem;
}

/* ==========================================================================
   Section 6: Marketplace B2B Directory
   ========================================================================== */
.filter-bar-card {
  padding: 16px 20px;
  border-color: rgba(255, 255, 255, 0.08);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary);
}

.filter-inputs input[type="text"] {
  padding-left: 36px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-input);
  color: var(--color-text-primary);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: var(--transition-smooth);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
  background: rgba(15, 23, 42, 0.8);
}

.filter-inputs select {
  min-width: 160px;
}

/* Product Cards */
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.product-img-wrapper {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.03);
}

.country-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.supplier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-teal);
  font-size: 0.75rem;
  font-weight: 600;
}

.product-details h4 {
  font-size: 1.05rem;
  margin-top: 6px;
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.supplier-name {
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  margin-top: 4px;
}

.product-pricing {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.price-val {
  font-size: 0.95rem;
}

/* ==========================================================================
   Section 7: Shared Container Cards
   ========================================================================== */
.lcl-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-accent), var(--color-teal));
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.min-w-150 {
  min-width: 150px;
}

/* ==========================================================================
   Section 8: Logistics Rates Search Widget
   ========================================================================== */
.freight-calculator-widget {
  padding: 20px;
  border-color: rgba(99, 102, 241, 0.2);
}

.form-group-custom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-custom label {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.input-wrapper input {
  padding-left: 36px;
}

/* ==========================================================================
   Section 9: Satellite Tracking Widget
   ========================================================================== */
.search-tracking-bar {
  display: flex;
  gap: 10px;
}

.search-tracking-bar input {
  font-family: var(--font-heading);
  font-size: 1rem;
  border-radius: var(--radius-input);
  padding: 12px 16px;
}

.search-tracking-bar button {
  border-radius: var(--radius-btn);
  padding: 0 24px;
}

.hint-codes {
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  margin-top: 12px;
  text-align: left;
}

.code-tag {
  color: var(--color-accent);
  cursor: pointer;
  margin-right: 10px;
  text-decoration: underline;
}

.tracking-card-wrapper {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.empty-track-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.track-icon-large {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* Live Coordinate Telemetry Styles */
.tracking-canvas-map {
  overflow: hidden;
}

.brightness-50 {
  filter: brightness(0.4);
}

.max-h-300 {
  max-height: 200px;
  object-fit: cover;
  width: 100%;
}

.map-loading-indicator {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  z-index: 5;
}

.live-coordinate-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 6;
}

.coordinate-pulse {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.4);
  position: absolute;
  animation: pulseCoordinates 2s infinite;
  transform: scale(0.5);
  top: -6px;
  left: -6px;
}

.coordinate-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* Vertical Timeline Milestones */
.milestones-vertical-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 20px;
}

.milestones-vertical-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 29px;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.timeline-row {
  position: relative;
  z-index: 2;
}

.timeline-indicator-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-bg-primary);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 0.65rem;
}

.timeline-row.completed .timeline-indicator-dot {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background: rgba(6, 182, 212, 0.05);
}

.timeline-row.active .timeline-indicator-dot {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.timeline-row-content {
  border-color: rgba(255, 255, 255, 0.04);
}

.timeline-row.active .timeline-row-content {
  border-color: var(--color-border);
}

.timeline-date {
  color: var(--color-accent);
}

/* ==========================================================================
   Section 10: Dedicated Map Wrapper
   ========================================================================== */
.map-large-wrapper {
  overflow: hidden;
  padding: 8px;
}

#large-network-map {
  width: 100%;
  display: block;
}

.map-overlay-stats {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
}

.map-stat-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--color-teal);
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 1.5s infinite;
}

.pulse-indicator.bg-gold {
  background-color: var(--color-accent);
}

/* ==========================================================================
   Section 11: Stats Counters
   ========================================================================== */
.stat-counter-card {
  padding: 24px;
}

.counter-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--color-text-secondary);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================================================
   Section 12: Testimonials
   ========================================================================== */
.testimonial-card {
  padding: 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-accent);
}

.avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.rating-stars i {
  width: 12px;
  height: 12px;
}

.fill-gold {
  fill: var(--color-accent);
}

.quote-text {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Section 13: Consultation Form Section
   ========================================================================== */
.consultation-box {
  padding: 40px;
}

/* ==========================================================================
   Section 14: Shared Global Footer
   ========================================================================== */
footer {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px 0;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand p {
  font-size: 0.8rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col h4 {
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  color: var(--color-text-secondary);
  font-size: 0.8rem;
}
.footer-links-col a:hover {
  color: var(--color-text-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

/* ==========================================================================
   Subpages Template Elements
   ========================================================================== */
.subpage-header {
  padding: 56px 0;
}

.page-title {
  font-size: 3rem;
}

.stat-badge-mini {
  padding: 12px 16px;
  text-align: center;
  min-width: 90px;
}

.stat-badge-mini h3 {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.stat-badge-mini p {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
}

.img-responsive {
  width: 100%;
  height: auto;
  display: block;
}

.rounded-card {
  border-radius: var(--radius-card);
}

.bg-gradient-navy {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
}

/* Accordion Component */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-header {
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--font-heading);
}

.accordion-body {
  padding: 0 20px 16px 20px;
  display: none;
}

.accordion-item.active .accordion-body {
  display: block;
}

.accordion-item.active {
  border-color: var(--color-accent);
}

/* Checklist benefit */
.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-icon-check {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mode Cards */
.mode-card {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.mode-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.logistics-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Industry Page Row */
.industry-detail-row {
  padding: 32px;
}

.industry-row-img {
  max-width: 440px;
}

/* Office details */
.office-card {
  padding: 20px;
}

.office-card h4 {
  margin-bottom: 6px;
}

.icon-inline {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   AUTHENTICATION TEMPLATE STYLES
   ========================================================================== */
.auth-section {
  padding: 56px 0;
}

.auth-card {
  padding: 36px 28px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.divider-auth {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.divider-auth::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.divider-auth span {
  position: relative;
  z-index: 2;
  background: #121A2E;
  padding: 0 10px;
  font-size: 0.7rem;
  color: var(--color-text-secondary);
}

.demo-login-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Register toggle role */
.auth-role-toggle {
  display: flex;
  background: rgba(10, 15, 29, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-input);
  padding: 4px;
}

.role-toggle-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 8px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.role-toggle-btn.active {
  background: var(--color-accent);
  color: #FFFFFF;
}

/* ==========================================================================
   DASHBOARDS STYLES (SELLER, BUYER, ADMIN - Pixel Perfect Grids)
   ========================================================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background-color: var(--color-bg-secondary);
}

.dashboard-sidebar {
  background-color: #0B0F19;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 20px;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 36px;
  flex-grow: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.sidebar-link:hover, .sidebar-link.active {
  color: var(--color-text-primary);
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--color-accent);
  padding-left: 11px;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.user-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Main Content Panel */
.dashboard-main {
  padding: 40px;
  overflow-y: auto;
}

.dashboard-header h1 {
  font-size: 2rem;
  margin-top: 6px;
}

.notification-bell {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bell-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.badge-count {
  background: var(--color-accent);
  color: #FFFFFF;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
}

.user-avatar-profile {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Stat widget widgets */
.stat-widget {
  padding: 16px 20px;
  border-color: rgba(255, 255, 255, 0.05);
}

.widget-icon {
  flex-shrink: 0;
}

.bg-navy-accent {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Chart Widget */
.chart-canvas-container {
  height: 240px;
  position: relative;
}

/* Inquiries dashboard list */
.border-bottom-dark {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pb-xs { padding-bottom: 8px; }
.pb-sm { padding-bottom: 16px; }
.pb-md { padding-bottom: 24px; }

.select-sm {
  width: auto;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
}

/* Table layout */
.table-container {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dashboard-table th {
  padding: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.dashboard-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.badge-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.status-in-transit {
  background: rgba(6, 182, 212, 0.12);
  color: var(--color-teal);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.status-loaded, .status-accepted {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-in-customs, .status-under-review, .status-received {
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.status-delivered {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* System Logs elements */
.log-item {
  padding-bottom: 10px;
}

.log-icon-wrapper {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-xxs { font-size: 0.65rem; }

/* ==========================================================================
   Modals (Custom alert & Video tour styling)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 29, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.hidden {
  display: none !important;
}

.modal-content {
  width: 90%;
  max-width: 600px;
  padding: 28px;
  position: relative;
}

.alert-modal {
  max-width: 440px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 1.25rem;
}
.btn-close-modal:hover {
  color: var(--color-accent);
}

.alert-icon-large {
  font-size: 3rem;
}

.video-container-placeholder {
  position: relative;
  border-radius: var(--radius-input);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.video-container-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.video-sub-text {
  background: var(--color-bg-primary);
  padding: 12px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLogos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes floatVessel {
  0% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-4px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0); }
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.4; }
}

@keyframes pulseCoordinates {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.spin-anim {
  animation: spin 8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.bounce-anim {
  animation: bounce 6s ease-in-out infinite;
}

.bounce-anim-delayed {
  animation: bounce 6s ease-in-out infinite;
  animation-delay: 3s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-text-block p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-widget-block {
    margin-top: 40px;
    height: 280px;
  }
  
  .floating-widget {
    position: static;
    margin: 8px;
    width: 240px;
  }
  
  .timeline-container .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-layout {
    grid-template-columns: 80px 1fr;
  }

  .dashboard-sidebar {
    width: 80px;
    padding: 24px 10px;
  }
  
  .sidebar-brand span, .sidebar-link span, .sidebar-footer .user-name {
    display: none;
  }
  
  .sidebar-link {
    justify-content: center;
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  #main-navbar {
    padding: 12px 0;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 68px);
    background: var(--color-bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 20px;
    transition: var(--transition-smooth);
    z-index: 999;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-auth-desktop {
    display: none;
  }
  
  .nav-auth-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
  }
  
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-col-span-2, .grid-col-span-3, .grid-col-span-4 {
    grid-template-columns: 1fr !important;
    grid-column: span 1 !important;
  }
  
  .hero-text-block h1 {
    font-size: 2.2rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .timeline-container .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .filter-inputs {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-inputs select {
    width: 100%;
  }
  
  .industry-detail-row {
    padding: 20px;
    flex-direction: column !important;
  }
  
  .industry-row-img {
    max-width: 100%;
  }
  
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none; /* Hide sidebar entirely on small mobile dashboards */
  }
  
  .dashboard-main {
    padding: 24px 16px;
  }
  
  .consultation-box {
    padding: 20px;
  }
}
