/* ==========================================================================
   ROUTERIZON ENTERPRISE UI & DESIGN SYSTEM
   High-Contrast, Modern, Polished Logistics & AI Route Experience
   ========================================================================== */

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

:root {
  /* Brand Primary & Accents */
  --rz-primary: #6366f1;
  --rz-primary-dark: #4f46e5;
  --rz-primary-light: #a5b4fc;
  --rz-primary-glow: rgba(99, 102, 241, 0.4);
  
  --rz-cyan: #06b6d4;
  --rz-cyan-light: #67e8f9;
  --rz-cyan-glow: rgba(6, 182, 212, 0.4);

  --rz-emerald: #10b981;
  --rz-emerald-light: #6ee7b7;
  --rz-emerald-glow: rgba(16, 185, 129, 0.4);

  --rz-amber: #f59e0b;
  --rz-amber-light: #fde68a;

  /* Surfaces & Backgrounds */
  --rz-bg-main: #080d1a;
  --rz-bg-surface: #0f172a;
  --rz-bg-card: #15203b;
  --rz-bg-card-hover: #1c2b4e;
  --rz-bg-card-subtle: rgba(21, 32, 59, 0.85);
  
  /* Borders */
  --rz-border: rgba(255, 255, 255, 0.14);
  --rz-border-strong: rgba(255, 255, 255, 0.22);
  --rz-border-focus: rgba(99, 102, 241, 0.6);

  /* High-Contrast Typography (Crisp & Extremely Legible) */
  --rz-text-main: #ffffff;
  --rz-text-body: #e2e8f0;       /* Bright legible body text */
  --rz-text-muted: #cbd5e1;      /* Secondary highly visible text */
  --rz-text-subtle: #94a3b8;     /* Metadata / labels */

  /* Radius & Shadows */
  --rz-radius-sm: 8px;
  --rz-radius-md: 14px;
  --rz-radius-lg: 20px;
  --rz-radius-xl: 28px;

  --rz-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --rz-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --rz-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --rz-shadow-glow: 0 0 35px var(--rz-primary-glow);

  /* Glassmorphism Layer */
  --rz-glass-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  --rz-glass-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.045) 100%);
  --rz-glass-border: rgba(255, 255, 255, 0.14);
  --rz-glass-border-strong: rgba(255, 255, 255, 0.22);
  --rz-glass-highlight: rgba(255, 255, 255, 0.4);
  --rz-glass-blur: 20px;
  --rz-glass-blur-strong: 28px;
  --rz-gradient-flow: linear-gradient(115deg, var(--rz-primary), var(--rz-cyan), var(--rz-emerald), var(--rz-primary-light), var(--rz-primary));
}

/* Global Reset & Base */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  /* Base colour lives here, not on body: the aurora layer sits at z-index -1
     and a background on body would paint over it. */
  background-color: var(--rz-bg-main);
}

body.rz-body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: transparent;
  color: var(--rz-text-body);
  line-height: 1.7;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

p, .rz-desc, .text-muted {
  color: var(--rz-text-body) !important;
  font-size: 1.05rem;
  line-height: 1.75;
}

.rz-text-secondary {
  color: var(--rz-text-muted) !important;
}

.rz-text-subtle {
  color: var(--rz-text-subtle) !important;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Section Spacing Utilities */
.rz-section {
  padding-top: 90px;
  padding-bottom: 90px;
  position: relative;
}

.rz-section-sm {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Ambient Background Light Mesh (legacy, kept for pages not yet migrated) */
.rz-ambient-mesh {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 900px;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.22) 0%, rgba(6, 182, 212, 0.15) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   AURORA MESH BACKGROUND (site-wide, animated, dynamic colour drift)
   ========================================================================== */
.rz-aurora-bg {
  position: fixed;
  inset: 0;
  /* MUST stay negative so page content paints above it without needing a
     z-index on the content wrapper. A stacking context on that wrapper would
     trap Bootstrap modals (the demo modal) below .modal-backdrop, which is
     appended to <body> — the backdrop would then veil the modal itself. */
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.rz-aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  will-change: transform, opacity;
}

.rz-aurora-blob.b1 {
  top: -22%;
  left: -12%;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, rgba(99, 102, 241, 0) 68%);
  animation: rzAuroraDrift1 26s ease-in-out infinite, rzAuroraHue 34s ease-in-out infinite;
}

.rz-aurora-blob.b2 {
  top: -8%;
  right: -16%;
  width: 56vw;
  height: 56vw;
  max-width: 820px;
  max-height: 820px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.42) 0%, rgba(6, 182, 212, 0) 68%);
  animation: rzAuroraDrift2 32s ease-in-out infinite, rzAuroraHue 40s ease-in-out infinite reverse;
}

.rz-aurora-blob.b3 {
  bottom: -18%;
  left: 30%;
  width: 52vw;
  height: 52vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.32) 0%, rgba(16, 185, 129, 0) 70%);
  animation: rzAuroraDrift3 38s ease-in-out infinite, rzAuroraHue 44s ease-in-out infinite;
}

.rz-aurora-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 0%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, black 0%, transparent 65%);
}

@keyframes rzAuroraDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 4vw) scale(1.12); }
}

@keyframes rzAuroraDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vw, 5vw) scale(1.08); }
}

@keyframes rzAuroraDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, -4vw) scale(1.1); }
}

@keyframes rzAuroraHue {
  0%, 100% { filter: blur(10px) hue-rotate(0deg); }
  50% { filter: blur(10px) hue-rotate(28deg); }
}

/* ==========================================================================
   REUSABLE GLASS PRIMITIVES
   ========================================================================== */

/* Animated flowing-gradient border (mask technique) — reveals on hover */
.rz-glass-border {
  position: relative;
}

.rz-glass-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--rz-gradient-flow);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: rzGradientFlow 8s ease infinite;
  pointer-events: none;
  z-index: 1;
}

.rz-glass-border:hover::before {
  opacity: 1;
}

@keyframes rzGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Cursor-tracked spotlight glow: .rz-card layers a var(--spot-o)-controlled radial
   gradient over its glass fill; JS sets --mx/--my/--spot-o via mousemove (see .rz-card below) */

@media (prefers-reduced-motion: reduce) {
  .rz-aurora-blob,
  .rz-glass-border::before,
  .rz-route-svg-path,
  .rz-pulse-dot,
  .rz-gradient-text,
  .rz-card-glow::before,
  .rz-btn-primary,
  .rz-sim-tab-btn.active,
  .rz-faq-tab-btn.active {
    animation: none !important;
  }

  .rz-card,
  .rz-btn-primary,
  .rz-btn-outline,
  .rz-glass-tilt {
    transition: none !important;
  }
}

.rz-grid-overlay {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */
.rz-top-announcement {
  background: linear-gradient(90deg, #1e1b4b 0%, #0f172a 50%, #1e1b4b 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.35);
  font-size: 0.86rem;
  padding: 8px 16px;
  color: #f1f5f9;
}

.rz-top-announcement strong {
  color: #ffffff;
}

.rz-navbar {
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(var(--rz-glass-blur-strong)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--rz-glass-blur-strong)) saturate(140%);
  border-bottom: 1px solid var(--rz-glass-border);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  z-index: 1050;
  padding-top: 12px;
  padding-bottom: 12px;
}

.rz-navbar.scrolled {
  background: rgba(8, 13, 26, 0.78);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(99, 102, 241, 0.35);
}

.rz-nav-link {
  color: #e2e8f0 !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 12px !important;
  border-radius: var(--rz-radius-sm);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.rz-nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
}

.rz-nav-link.active {
  color: #ffffff !important;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.4);
}

/* Badges & Pills */
.rz-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rz-pill-badge {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rz-pill-badge:hover {
  transform: translateY(-2px);
}

.rz-pill-primary {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
}

.rz-pill-primary:hover {
  border-color: rgba(165, 180, 252, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 18px rgba(99, 102, 241, 0.35);
}

.rz-pill-cyan {
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.5);
  color: #a5f3fc;
}

.rz-pill-cyan:hover {
  border-color: rgba(103, 232, 249, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 18px rgba(6, 182, 212, 0.35);
}

.rz-pill-emerald {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #a7f3d0;
}

.rz-pill-emerald:hover {
  border-color: rgba(110, 231, 183, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 18px rgba(16, 185, 129, 0.35);
}

/* Hero badge & stat chips (glass pills) */
.rz-hero-badge,
.rz-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px 9px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rz-glass-border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rz-hero-badge:hover,
.rz-stat-chip:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.rz-stat-chip {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 22px;
}

.rz-stat-chip .rz-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.rz-stat-chip .rz-stat-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.9);
}

.rz-stat-chip.cyan { background: rgba(6, 182, 212, 0.1); border-color: rgba(103, 232, 249, 0.35); }
.rz-stat-chip.cyan .rz-stat-num { color: #67e8f9; }
.rz-stat-chip.emerald { background: rgba(16, 185, 129, 0.1); border-color: rgba(110, 231, 183, 0.35); }
.rz-stat-chip.emerald .rz-stat-num { color: #6ee7b7; }

/* Pulse Dot */
.rz-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--rz-emerald);
  box-shadow: 0 0 10px var(--rz-emerald);
  animation: rzPulse 2s infinite;
  display: inline-block;
}

@keyframes rzPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.rz-btn-primary {
  background: linear-gradient(115deg, #818cf8 0%, #6366f1 25%, #06b6d4 50%, #6366f1 75%, #818cf8 100%);
  background-size: 300% 300%;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  border-radius: var(--rz-radius-md);
  padding: 12px 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease, transform 0.3s ease, background-position 0.6s ease;
  box-shadow: 0 4px 20px var(--rz-primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.rz-btn-primary:hover {
  background-position: 100% 50%;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 34px var(--rz-primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.rz-btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
  border: 1px solid var(--rz-glass-border-strong);
  font-weight: 600;
  border-radius: var(--rz-radius-md);
  padding: 12px 22px;
  transition: all 0.25s ease;
  backdrop-filter: blur(var(--rz-glass-blur));
  -webkit-backdrop-filter: blur(var(--rz-glass-blur));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.rz-btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(103, 232, 249, 0.5);
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 26px rgba(6, 182, 212, 0.25);
}

/* Compact Button Variant (Header & Toolbars) */
.rz-btn-sm {
  padding: 7px 15px !important;
  font-size: 0.84rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  gap: 6px !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}

.rz-btn-sm i {
  font-size: 1.05rem !important;
}

/* ==========================================================================
   CARDS & CONTAINERS (Lightened & Ultra-Clear)
   ========================================================================== */
.rz-card {
  background-image:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, var(--spot-o, 0)), transparent 55%),
    var(--rz-glass-bg);
  backdrop-filter: blur(var(--rz-glass-blur));
  -webkit-backdrop-filter: blur(var(--rz-glass-blur));
  border: 1px solid var(--rz-glass-border);
  border-radius: var(--rz-radius-lg);
  padding: 32px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--rz-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.rz-card::after {
  /* top edge sheen, sells the glass edge */
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
}

.rz-card:hover {
  background-image:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, var(--spot-o, 0)), transparent 55%),
    var(--rz-glass-bg-strong);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-6px);
  box-shadow: var(--rz-shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.rz-card-glow {
  position: relative;
  border-color: rgba(99, 102, 241, 0.4);
}

.rz-card-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #38bdf8, #10b981, #6366f1);
  background-size: 300% 100%;
  animation: rzGradientFlow 6s ease infinite;
}

.rz-card p {
  color: #cbd5e1 !important;
  font-size: 0.98rem;
  line-height: 1.7;
}

.rz-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--rz-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.rz-card:hover .rz-icon-box {
  transform: scale(1.08) rotate(-4deg);
}

.rz-icon-primary {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.5);
}

.rz-card:hover .rz-icon-primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 22px rgba(99, 102, 241, 0.5);
}

.rz-icon-cyan {
  background: rgba(6, 182, 212, 0.25);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.5);
}

.rz-card:hover .rz-icon-cyan {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 22px rgba(6, 182, 212, 0.5);
}

.rz-icon-emerald {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.rz-card:hover .rz-icon-emerald {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 22px rgba(16, 185, 129, 0.5);
}

/* Headings */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.rz-gradient-text {
  background: linear-gradient(120deg, #a5b4fc 0%, #67e8f9 35%, #6ee7b7 65%, #a5b4fc 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rzGradientFlow 8s ease infinite;
}

/* Stat Box Numbers */
.rz-stat-card {
  background: #15203b;
  border: 1px solid var(--rz-border);
  border-radius: var(--rz-radius-md);
  padding: 24px 16px;
  text-align: center;
}

.rz-stat-card .rz-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.rz-stat-card .rz-stat-lbl {
  color: #cbd5e1 !important;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ==========================================================================
   INTERACTIVE SIMULATOR & MAP STYLES
   ========================================================================== */
.rz-sim-console {
  background: rgba(11, 17, 32, 0.55);
  backdrop-filter: blur(var(--rz-glass-blur-strong)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--rz-glass-blur-strong)) saturate(140%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--rz-radius-xl);
  box-shadow: var(--rz-shadow-lg), 0 0 50px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.rz-sim-header {
  background: rgba(15, 23, 42, 0.55);
  border-bottom: 1px solid var(--rz-border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rz-sim-dots {
  display: flex;
  gap: 6px;
}

.rz-sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.rz-sim-dot.red { background: #ef4444; }
.rz-sim-dot.yellow { background: #f59e0b; }
.rz-sim-dot.green { background: #10b981; }

.rz-sim-map {
  height: 380px;
  background: #0a1122;
  position: relative;
  overflow: hidden;
}

.rz-map-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.rz-truck-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--rz-primary);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 20px var(--rz-primary-glow);
  z-index: 10;
  transition: all 1s ease-in-out;
}

.rz-stop-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  cursor: pointer;
}

.rz-pin-bubble {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.rz-pin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 2px;
}

.rz-route-svg-path {
  stroke-dasharray: 8;
  animation: rzDashFlow 25s linear infinite;
}

@keyframes rzDashFlow {
  to {
    stroke-dashoffset: -1000;
  }
}

/* ==========================================================================
   ROI CALCULATOR STYLES
   ========================================================================== */
.rz-calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  outline: none;
  margin: 14px 0;
}

.rz-calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rz-cyan);
  cursor: pointer;
  box-shadow: 0 0 14px var(--rz-cyan-glow);
  border: 2px solid #ffffff;
  transition: transform 0.1s ease;
}

.rz-calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.rz-calc-result-box {
  background: rgba(13, 21, 39, 0.55);
  backdrop-filter: blur(var(--rz-glass-blur));
  -webkit-backdrop-filter: blur(var(--rz-glass-blur));
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--rz-radius-lg);
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.rz-calc-card-item {
  background: rgba(19, 30, 54, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.25s ease;
}

.rz-calc-card-item:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(23, 36, 66, 0.75);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.rz-calc-stat-val {
  font-size: clamp(1.4rem, 2vw, 1.85rem) !important;
  font-weight: 800 !important;
  color: var(--rz-cyan-light) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   INTERACTIVE TABS & FAQ ACCORDION (POLISHED & HIGH-END UI)
   ========================================================================== */

/* Category Switcher Buttons */
button.rz-sim-tab-btn, button.rz-faq-tab-btn, .rz-sim-tab-btn, .rz-faq-tab-btn {
  background: rgba(21, 32, 59, 0.55) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #e2e8f0 !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  outline: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

button.rz-sim-tab-btn:hover, button.rz-faq-tab-btn:hover, .rz-sim-tab-btn:hover, .rz-faq-tab-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

button.rz-sim-tab-btn.active, button.rz-faq-tab-btn.active, .rz-sim-tab-btn.active, .rz-faq-tab-btn.active {
  background: linear-gradient(115deg, #818cf8, #6366f1, #06b6d4, #6366f1, #818cf8) !important;
  background-size: 300% 300% !important;
  animation: rzGradientFlow 7s ease infinite !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.55) !important;
  transform: translateY(-1px) !important;
}

/* FAQ Accordion Item Container */
.rz-accordion-item {
  background: rgba(20, 30, 56, 0.55) !important;
  backdrop-filter: blur(var(--rz-glass-blur)) !important;
  -webkit-backdrop-filter: blur(var(--rz-glass-blur)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  margin-bottom: 16px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

.rz-accordion-item:hover {
  border-color: rgba(99, 102, 241, 0.45) !important;
  background: rgba(23, 36, 68, 0.65) !important;
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 12px 28px rgba(0, 0, 0, 0.4) !important;
}

.rz-accordion-item.active {
  border-color: rgba(99, 102, 241, 0.65) !important;
  background: rgba(22, 34, 64, 0.7) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 25px rgba(0, 0, 0, 0.5) !important;
}

/* FAQ Header */
.rz-accordion-header {
  padding: 22px 26px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-weight: 700 !important;
  font-size: 1.08rem !important;
  color: #ffffff !important;
  user-select: none !important;
  gap: 16px !important;
}

.rz-accordion-header span {
  color: #ffffff !important;
}

.rz-accordion-header:hover {
  color: #67e8f9 !important;
}

.rz-accordion-header:hover span {
  color: #67e8f9 !important;
}

.rz-accordion-icon {
  font-size: 1.5rem !important;
  color: #a5b4fc !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease !important;
  flex-shrink: 0;
}

.rz-accordion-item.active .rz-accordion-icon {
  transform: rotate(180deg) !important;
  color: #67e8f9 !important;
}

/* FAQ Content Body */
.rz-accordion-content {
  display: none;
  padding: 0 26px 24px 26px !important;
  color: #cbd5e1 !important;
  font-size: 1.02rem !important;
  line-height: 1.8 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 16px !important;
}

.rz-accordion-item.active .rz-accordion-content {
  display: block !important;
}

/* ==========================================================================
   SHIPMENT TRACKING & MULTI-DIMENSIONAL FEEDBACK SYSTEM
   ========================================================================== */

/* Tracking Timeline */
.rz-timeline-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 24px;
}

.rz-timeline-step:last-child {
  padding-bottom: 0;
}

.rz-timeline-step::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

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

.rz-timeline-step.completed::before {
  background: var(--rz-emerald);
}

.rz-timeline-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: #111a2e;
  border: 2px solid var(--rz-border);
  color: var(--rz-text-subtle);
  z-index: 2;
}

.rz-timeline-step.completed .rz-timeline-icon {
  background: var(--rz-emerald);
  border-color: var(--rz-emerald-light);
  color: #ffffff;
  box-shadow: 0 0 14px var(--rz-emerald-glow);
}

.rz-timeline-step.active .rz-timeline-icon {
  background: var(--rz-cyan);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 16px var(--rz-cyan-glow);
  animation: rzPulse 2s infinite;
}

/* Star Rating System */
.rz-star-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.rz-star-group .rz-star {
  font-size: 1.75rem;
  color: #334155;
  transition: all 0.15s ease;
}

.rz-star-group .rz-star:hover,
.rz-star-group .rz-star.hovered,
.rz-star-group .rz-star.selected {
  color: #fbbf24 !important;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  transform: scale(1.15);
}

.rz-star-group-sm .rz-star {
  font-size: 1.25rem !important;
}

/* Feedback Tag Pills */
.rz-feedback-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 600;
  background: #15203b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.rz-feedback-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.rz-feedback-pill.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.25)) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.35);
}

/* ==========================================================================
   FOOTER (High Contrast & Clear)
   ========================================================================== */
.rz-footer {
  background: #060a14;
  border-top: 1px solid var(--rz-border-strong);
  padding-top: 70px;
  padding-bottom: 40px;
}

.rz-footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff !important;
  font-weight: 800;
  margin-bottom: 20px;
}

.rz-footer-link {
  color: #cbd5e1 !important;
  text-decoration: none;
  font-size: 0.94rem;
  display: block;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.rz-footer-link:hover {
  color: #ffffff !important;
  transform: translateX(4px);
}

/* ==========================================================================
   GLASS FORM INPUTS
   ========================================================================== */
.rz-glass-input {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
}

.rz-glass-input:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.rz-glass-input::placeholder {
  color: rgba(148, 163, 184, 0.75) !important;
}

/* ==========================================================================
   HERO GLASS PANEL
   ========================================================================== */
.rz-hero-glass {
  position: relative;
  border-radius: var(--rz-radius-xl);
  background: var(--rz-glass-bg-strong);
  backdrop-filter: blur(var(--rz-glass-blur-strong)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--rz-glass-blur-strong)) saturate(140%);
  border: 1px solid var(--rz-glass-border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.rz-hero-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}

.rz-footer-text {
  color: #cbd5e1 !important;
  font-size: 0.95rem;
  line-height: 1.75;
}


/* ==========================================================================
   LANGUAGE SWITCHER BUTTON
   ========================================================================== */
.rz-lang-switcher {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 6px 14px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  line-height: 1 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.rz-lang-switcher:hover {
  background: rgba(99, 102, 241, 0.28) !important;
  border-color: rgba(99, 102, 241, 0.6) !important;
  color: #67e8f9 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

.rz-lang-switcher i {
  font-size: 1.05rem !important;
  color: #06b6d4 !important;
  line-height: 1 !important;
  display: inline-block !important;
}

.rz-lang-switcher span {
  font-family: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  display: inline-block !important;
}


/* Glassmorphic Dropdown Menu */
.rz-glass-dropdown {
  background: rgba(11, 17, 32, 0.96) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  min-width: 230px !important;
  margin-top: 10px !important;
  padding: 6px !important;
}

.rz-dropdown-link {
  color: #e2e8f0 !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  padding: 9px 16px !important;
  transition: all 0.2s ease !important;
  border-radius: 8px !important;
  margin: 2px 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.rz-dropdown-link:hover,
.rz-dropdown-link:focus {
  background: rgba(99, 102, 241, 0.22) !important;
  color: #67e8f9 !important;
}

.rz-dropdown-link.active {
  background: rgba(99, 102, 241, 0.35) !important;
  color: #ffffff !important;
}

/* Utility color/width helpers referenced across front pages but previously undefined —
   kept as plain classes (not !important) so they compose normally with hover/dark variants. */
.text-emerald { color: var(--rz-emerald) !important; }
.text-cyan { color: var(--rz-cyan) !important; }
.text-primary-light { color: var(--rz-primary-light) !important; }
.text-amber { color: var(--rz-amber) !important; }

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

/* Expandable API endpoint cards (front.api-docs.*) */
.rz-endpoint-chevron { transition: transform 0.2s ease; }
[aria-expanded="true"] .rz-endpoint-chevron { transform: rotate(180deg); }

/* Nav "More" dropdown ships its own <i class="mdi mdi-chevron-down"> icon, so suppress
   Bootstrap's default ::after triangle caret that .dropdown-toggle adds automatically —
   without this, two indicators render side by side. */
.rz-no-caret.dropdown-toggle::after { display: none; }

/* Defensive fallback for any native <select>: browsers render the OPEN option list with
   an OS-default white popup background, but a select styled .text-white for its CLOSED
   state inherits that white text into the options too — invisible on white. Force a
   readable dark-on-light pair for the popup itself regardless of the select's own color. */
select.rz-glass-input option,
select.rz-glass-input optgroup {
    color: #1a1d23;
    background: #ffffff;
}

/* Icon dropdown (x-rz-select) — a Bootstrap dropdown standing in for a native <select>
   so options can show an mdi icon, which a real <option> can't render. */
.rz-select .dropdown-menu { min-width: 100%; }
.rz-select [data-rz-select-trigger].is-invalid {
    border-color: #f93e3e !important;
    box-shadow: 0 0 0 1px rgba(249, 62, 62, 0.4) !important;
}
.rz-dropdown-link.dropdown-item {
    background: transparent;
    border: none;
}
