/* ==========================================================================
   MERIDIAN — Authentic Liquid Glass UI System (iOS 26 / visionOS Inspired)
   Refractive Translucent Glass · Specular Rim Bevels · Interactive Sheen
   Floating Glass Docks · Pill Controls · High-Contrast Cosmic Readability
   ========================================================================== */

:root {
  /* Liquid Glass Core Tokens */
  --lg-surface: linear-gradient(
    152deg,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.045) 38%,
    rgba(56, 189, 248, 0.035) 72%,
    rgba(255, 255, 255, 0.085) 100%
  );
  --lg-surface-base: rgba(10, 22, 46, 0.34);
  --lg-surface-elevated: rgba(11, 24, 50, 0.48);
  --lg-surface-modal: rgba(9, 20, 44, 0.58);
  --lg-surface-hover: rgba(255, 255, 255, 0.10);

  --lg-blur: blur(30px) saturate(195%) brightness(1.06);
  --lg-blur-heavy: blur(42px) saturate(210%) brightness(1.08);
  --lg-blur-pill: blur(22px) saturate(185%) brightness(1.08);

  --lg-border: rgba(255, 255, 255, 0.20);
  --lg-border-bright: rgba(255, 255, 255, 0.34);
  --lg-border-accent: rgba(125, 211, 252, 0.52);

  /* Dual-axis Fresnel Specular Rim Bevel */
  --lg-rim:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.36),
    inset 1px 0 0 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 0 rgba(125, 211, 252, 0.18),
    inset -1px 0 0 0 rgba(147, 197, 253, 0.09);

  --lg-rim-subtle:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 0 rgba(125, 211, 252, 0.12);

  --lg-rim-pill:
    inset 0 1.2px 0 0 rgba(255, 255, 255, 0.44),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.18);

  --lg-shadow:
    0 20px 54px rgba(0, 5, 18, 0.48),
    0 4px 16px rgba(0, 5, 18, 0.28);

  --lg-shadow-hover:
    0 26px 64px rgba(0, 8, 26, 0.58),
    0 0 28px rgba(56, 189, 248, 0.14);

  --lg-spring: cubic-bezier(0.22, 1, 0.36, 1);

  /* Override base semantic tokens for luminous clarity on Liquid Glass */
  --surface: rgba(10, 22, 46, 0.36);
  --bg-subtle: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.18);
  --border-strong: rgba(255, 255, 255, 0.28);
  --ink-1: #ffffff;
  --ink-2: #e2e8f0;
  --ink-3: #a8bdd8;
}

/* Rich deep-cosmos ambient aurora tint behind the starfield so glass refracts vibrant color */
html,
body {
  background:
    radial-gradient(ellipse 80% 55% at 22% 18%, rgba(14, 116, 190, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 65% 50% at 82% 76%, rgba(56, 189, 248, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 50% 45%, #0c244b 0%, #050e20 54%, #020611 100%) !important;
  background-attachment: fixed !important;
}

#cosmic-starfield {
  background:
    radial-gradient(ellipse 75% 50% at 20% 20%, rgba(14, 165, 233, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 65% 48% at 80% 78%, rgba(99, 102, 241, 0.13) 0%, transparent 58%),
    radial-gradient(circle at 50% 48%, #0b2247 0%, #040c1b 56%, #02050e 100%) !important;
}

/* ==========================================================================
   LIQUID GLASS CORE CARDS, PANELS & INTERACTIVE SPECULAR SHEEN
   ========================================================================== */
.surface-card,
.kpi-card,
.ws-globe-side-panel,
#page-home .glass-surface,
#page-auth .auth-glass-shell {
  position: relative;
  background-color: var(--lg-surface-base) !important;
  background-image: var(--lg-surface) !important;
  backdrop-filter: var(--lg-blur) !important;
  -webkit-backdrop-filter: var(--lg-blur) !important;
  border: 1px solid var(--lg-border) !important;
  box-shadow: var(--lg-rim), var(--lg-shadow) !important;
  transition:
    transform 0.28s var(--lg-spring),
    border-color 0.24s ease,
    box-shadow 0.28s var(--lg-spring),
    background-color 0.24s ease !important;
}

.surface-card {
  border-radius: 20px !important;
}

.kpi-card {
  border-radius: 18px !important;
  overflow: hidden;
}

.ws-globe-side-panel {
  background-color: var(--lg-surface-elevated) !important;
  border-radius: 22px !important;
  overflow: hidden;
}

/* Interactive liquid specular light reflection gliding with pointer (--lg-x, --lg-y) */
.surface-card::after,
.kpi-card::after,
#page-home .role-showcase-card::after,
#page-home .trust-card::after,
#page-home .feature-card::after,
#page-home .hero-track-card::after,
#page-home .home-cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--lg-x, 50%) var(--lg-y, 20%),
    rgba(255, 255, 255, 0.14) 0%,
    rgba(125, 211, 252, 0.06) 34%,
    transparent 68%
  );
  transition: opacity 0.3s ease;
  z-index: 0;
}

.surface-card > *,
.kpi-card > *,
#page-home .glass-surface > * {
  position: relative;
  z-index: 1;
}

.surface-card:hover::after,
.kpi-card:hover::after,
#page-home .role-showcase-card:hover::after,
#page-home .trust-card:hover::after,
#page-home .feature-card:hover::after,
#page-home .hero-track-card:hover::after,
#page-home .home-cta-banner:hover::after {
  opacity: 1;
}

.kpi-card:hover,
.card-hover:hover,
#page-home .role-showcase-card:hover,
#page-home .trust-card:hover,
#page-home .feature-card:hover {
  border-color: var(--lg-border-bright) !important;
  box-shadow: var(--lg-rim), var(--lg-shadow-hover) !important;
  transform: translateY(-2px);
}

/* Keep hero globe completely crystal-clear without a frosted box around Earth */
#page-home .hero-globe-stage {
  background: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}
#page-home .hero-globe-stage::after {
  display: none !important;
}

/* ==========================================================================
   FLOATING LIQUID GLASS WORKSPACE SHELL (SIDEBAR DOCK & TOP TOOLBAR)
   ========================================================================== */
.console-sidebar {
  width: 254px;
  margin: 12px 0 12px 12px;
  height: calc(100vh - 24px);
  top: 12px;
  border-radius: 24px !important;
  background-color: rgba(9, 20, 42, 0.38) !important;
  background-image: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 36%,
    rgba(56, 189, 248, 0.03) 76%,
    rgba(255, 255, 255, 0.07) 100%
  ) !important;
  backdrop-filter: var(--lg-blur) !important;
  -webkit-backdrop-filter: var(--lg-blur) !important;
  border: 1px solid var(--lg-border) !important;
  box-shadow: var(--lg-rim), var(--lg-shadow) !important;
  overflow: hidden;
}

.sidebar-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.nav-item {
  border-radius: 14px !important;
  padding: 10px 13px !important;
  color: rgba(226, 232, 240, 0.86) !important;
  transition: all 0.22s var(--lg-spring) !important;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.nav-item.active {
  background: linear-gradient(
    145deg,
    rgba(56, 189, 248, 0.30) 0%,
    rgba(14, 165, 233, 0.16) 55%,
    rgba(255, 255, 255, 0.12) 100%
  ) !important;
  border-color: rgba(186, 230, 253, 0.46) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(56, 189, 248, 0.24),
    0 8px 22px rgba(2, 132, 199, 0.28) !important;
}
.nav-count {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9 !important;
  backdrop-filter: blur(10px);
}
.nav-item.active .nav-count {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%) !important;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
}

.role-pill,
.branch-pill {
  border-radius: 999px !important;
  backdrop-filter: blur(12px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Floating Liquid Glass Top Header Bar */
.console-header {
  top: 12px;
  margin: 12px 24px 0;
  border-radius: 20px !important;
  padding: 11px 18px !important;
  background-color: rgba(9, 20, 42, 0.40) !important;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 55%,
    rgba(56, 189, 248, 0.04) 100%
  ) !important;
  backdrop-filter: var(--lg-blur) !important;
  -webkit-backdrop-filter: var(--lg-blur) !important;
  border: 1px solid var(--lg-border) !important;
  box-shadow: var(--lg-rim), 0 14px 36px rgba(0, 6, 20, 0.42) !important;
}

/* Align globe stage right next to floating sidebar dock */
.ws-inline-globe-stage {
  left: 266px;
}

.ws-inline-globe-kicker {
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(6, 15, 34, 0.64);
  backdrop-filter: blur(18px) saturate(185%);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 6px 18px rgba(0, 5, 18, 0.42);
  color: #e0f2fe !important;
}

.user-chip {
  background: rgba(255, 255, 255, 0.09) !important;
  backdrop-filter: var(--lg-blur-pill);
  -webkit-backdrop-filter: var(--lg-blur-pill);
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: var(--lg-rim-subtle);
  transition: all 0.2s var(--lg-spring);
}
.user-chip:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(186, 230, 253, 0.50) !important;
  transform: translateY(-1px);
}
.user-avatar {
  background: linear-gradient(145deg, #38bdf8 0%, #0284c7 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 3px 10px rgba(2, 132, 199, 0.35);
}

/* ==========================================================================
   LIQUID GLASS BUTTONS, CHIPS & PILLS
   ========================================================================== */
.btn {
  border-radius: 999px !important;
  backdrop-filter: var(--lg-blur-pill);
  -webkit-backdrop-filter: var(--lg-blur-pill);
  letter-spacing: -0.005em;
  transition:
    transform 0.22s var(--lg-spring),
    box-shadow 0.22s var(--lg-spring),
    background 0.2s ease,
    border-color 0.2s ease !important;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-primary,
.btn-accent,
.btn-dark-accent,
#page-auth #btn-login-submit,
#page-auth #btn-register-submit,
#page-auth #btn-forgot-submit,
#page-auth #btn-reset-submit,
#page-auth .auth-submit-btn {
  background: linear-gradient(
    180deg,
    rgba(56, 189, 248, 0.90) 0%,
    rgba(2, 132, 199, 0.86) 52%,
    rgba(3, 105, 161, 0.92) 100%
  ) !important;
  color: #ffffff !important;
  border: 1px solid rgba(186, 230, 253, 0.56) !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.58),
    inset 0 -1px 0 rgba(2, 6, 23, 0.25),
    0 8px 24px rgba(2, 132, 199, 0.38) !important;
}
.btn-primary:hover:not(:disabled),
.btn-accent:hover:not(:disabled),
.btn-dark-accent:hover:not(:disabled),
#page-auth #btn-login-submit:hover:not(:disabled),
#page-auth #btn-register-submit:hover:not(:disabled),
#page-auth #btn-forgot-submit:hover:not(:disabled),
#page-auth #btn-reset-submit:hover:not(:disabled) {
  background: linear-gradient(
    180deg,
    rgba(125, 211, 252, 0.94) 0%,
    rgba(14, 165, 233, 0.90) 50%,
    rgba(2, 132, 199, 0.95) 100%
  ) !important;
  border-color: rgba(224, 242, 254, 0.72) !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.68),
    0 12px 30px rgba(14, 165, 233, 0.46) !important;
}

.btn-outline,
.btn-glass,
.btn-dark-glass,
#page-home .btn-glass,
#page-auth .btn-glass {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 100%
  ) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow: var(--lg-rim-subtle), 0 4px 14px rgba(0, 6, 20, 0.26) !important;
}
.btn-outline:hover:not(:disabled),
.btn-glass:hover:not(:disabled),
.btn-dark-glass:hover:not(:disabled),
#page-home .btn-glass:hover:not(:disabled),
#page-auth .btn-glass:hover:not(:disabled) {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.10) 100%
  ) !important;
  border-color: rgba(186, 230, 253, 0.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 8px 22px rgba(56, 189, 248, 0.18) !important;
}

.btn-soft-primary {
  background: linear-gradient(
    180deg,
    rgba(56, 189, 248, 0.24) 0%,
    rgba(14, 165, 233, 0.12) 100%
  ) !important;
  color: #e0f2fe !important;
  border: 1px solid rgba(125, 211, 252, 0.40) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 14px rgba(2, 132, 199, 0.18) !important;
}
.btn-soft-primary:hover:not(:disabled) {
  background: linear-gradient(
    180deg,
    rgba(56, 189, 248, 0.36) 0%,
    rgba(14, 165, 233, 0.20) 100%
  ) !important;
  border-color: rgba(186, 230, 253, 0.62) !important;
}

.btn-ok {
  background: linear-gradient(
    180deg,
    rgba(52, 211, 153, 0.90) 0%,
    rgba(5, 150, 105, 0.90) 100%
  ) !important;
  border: 1px solid rgba(167, 243, 208, 0.55) !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.52),
    0 8px 22px rgba(5, 150, 105, 0.34) !important;
}

.btn-danger,
.btn-danger-soft {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

/* Home primary white liquid pill */
#page-home .btn-primary {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(226, 232, 240, 0.90) 100%
  ) !important;
  color: #061328 !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow:
    inset 0 1.5px 0 #ffffff,
    0 8px 24px rgba(255, 255, 255, 0.22) !important;
}

.chip-btn,
.badge,
.verified-badge {
  backdrop-filter: blur(14px) saturate(175%);
  -webkit-backdrop-filter: blur(14px) saturate(175%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.chip-btn.active {
  background: linear-gradient(
    160deg,
    rgba(56, 189, 248, 0.34) 0%,
    rgba(2, 132, 199, 0.24) 100%
  ) !important;
  border-color: rgba(186, 230, 253, 0.58) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 16px rgba(2, 132, 199, 0.28) !important;
}

/* ==========================================================================
   LIQUID GLASS INPUTS, TABLES, ALERTS, STEPPERS & CHAT
   ========================================================================== */
.input,
.select,
.textarea,
#page-auth .input,
#page-auth .select,
#page-home .hero-track-input {
  background: rgba(4, 12, 28, 0.42) !important;
  backdrop-filter: blur(18px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(165%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 13px !important;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.26),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.input:focus,
.select:focus,
.textarea:focus,
#page-auth .input:focus,
#page-auth .select:focus,
#page-home .hero-track-input:focus {
  background: rgba(6, 18, 40, 0.56) !important;
  border-color: rgba(125, 211, 252, 0.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 0 3px rgba(56, 189, 248, 0.24),
    0 6px 20px rgba(2, 132, 199, 0.20) !important;
}

.select option,
.select optgroup {
  background-color: #08162e;
  color: #f8fafc;
}

/* Sub-cards, Directory Strips, Checklists, Empty Boxes, Chat & Release Docs */
.coffee-shipper-strip,
.checklist-grid,
.empty-box,
.release-doc-sheet {
  background: rgba(255, 255, 255, 0.055) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.chat-compose {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
}
.chat-messages {
  background: rgba(4, 10, 24, 0.22) !important;
}
.chat-peer-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: background 0.18s ease;
}
.chat-peer-row:hover {
  background: rgba(255, 255, 255, 0.07) !important;
}
.chat-peer-row.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.24), rgba(56, 189, 248, 0.08)) !important;
  box-shadow: inset 2px 0 0 #38bdf8;
}

.data-table thead th,
#page-home .ch-table thead th {
  background: rgba(255, 255, 255, 0.055) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #cbd5e1 !important;
}
.data-table tbody td,
#page-home .ch-table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.065) !important;
}
.shipment-row-active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.08)) !important;
}

.alert-box {
  border-radius: 14px !important;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ws-timetravel-box {
  border-radius: 16px !important;
  background: linear-gradient(
    145deg,
    rgba(56, 189, 248, 0.16) 0%,
    rgba(10, 24, 52, 0.42) 100%
  ) !important;
  backdrop-filter: blur(20px) saturate(185%);
  border: 1px solid rgba(186, 230, 253, 0.30) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.ws-day-pill {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.09) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.ws-arrow-btn {
  border-radius: 999px !important;
}

.ws-route-step.step-current {
  background: linear-gradient(
    145deg,
    rgba(56, 189, 248, 0.22) 0%,
    rgba(255, 255, 255, 0.07) 100%
  ) !important;
  border: 1px solid rgba(186, 230, 253, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  border-radius: 12px !important;
}

.progress-track {
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.progress-fill {
  background: linear-gradient(90deg, #38bdf8, #7dd3fc) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55);
}

/* ==========================================================================
   LIQUID GLASS MODALS, UTILITY DRAWER, TOASTS & POPUPS
   ========================================================================== */
.modal-overlay {
  background: rgba(2, 6, 18, 0.52) !important;
  backdrop-filter: blur(14px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
}

.dialog-card,
.map-modal-shell {
  background-color: var(--lg-surface-modal) !important;
  background-image: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.04) 36%,
    rgba(56, 189, 248, 0.04) 76%,
    rgba(255, 255, 255, 0.08) 100%
  ) !important;
  backdrop-filter: var(--lg-blur-heavy) !important;
  -webkit-backdrop-filter: var(--lg-blur-heavy) !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  border-radius: 26px !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.42),
    inset 1px 0 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(125, 211, 252, 0.22),
    0 32px 84px rgba(0, 4, 16, 0.72) !important;
}

.dialog-head,
.map-modal-head,
.drawer-head {
  background: rgba(255, 255, 255, 0.045) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}

/* Floating Liquid Glass Utility Drawer */
.utility-drawer {
  top: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  width: min(442px, calc(100vw - 24px)) !important;
  border-radius: 24px !important;
  background-color: rgba(9, 20, 44, 0.56) !important;
  background-image: var(--lg-surface) !important;
  backdrop-filter: var(--lg-blur-heavy) !important;
  -webkit-backdrop-filter: var(--lg-blur-heavy) !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  box-shadow: var(--lg-rim), 0 28px 72px rgba(0, 4, 16, 0.68) !important;
  overflow: hidden;
}

/* Wallet Segmented Tabs, Bank Account Cards, Summary Breakdown & QRIS Sheet */
.wallet-seg-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.wallet-seg-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 4px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.18s ease;
}
.wallet-seg-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.wallet-seg-tab.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.36), rgba(2, 132, 199, 0.24));
  border-color: rgba(186, 230, 253, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40);
}

.wallet-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.wallet-chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.wallet-chip:hover {
  background: rgba(56, 189, 248, 0.26);
  border-color: rgba(125, 211, 252, 0.55);
  color: #ffffff;
}

.wallet-summary-box {
  background: rgba(6, 15, 34, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.wsb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}
.wsb-row > span:first-child {
  color: var(--ink-3);
}
.wsb-row.wsb-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: 13px;
  color: #ffffff;
}

.wallet-empty-bank {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(125, 211, 252, 0.42);
  background: rgba(12, 28, 58, 0.44);
  text-align: center;
}

.bank-account-card {
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.bank-account-card.is-primary {
  border-color: rgba(52, 211, 153, 0.52);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14), rgba(10, 24, 48, 0.46));
}

.wallet-mut-card {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 8px;
}

.wallet-pending-qris {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(14, 42, 82, 0.52);
  border: 1px solid rgba(56, 189, 248, 0.45);
  margin-bottom: 12px;
}
.wpq-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
}

/* Official Indonesian QRIS Payment Card Inside Modal */
.qris-payment-sheet {
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 20px !important;
  border: 2px solid #e2e8f0 !important;
  padding: 18px 20px !important;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 5, 18, 0.45);
}
.qris-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #dc2626;
}
.qris-brand-logo {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #b91c1c;
  line-height: 1;
}
.qris-brand-sub {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  margin-top: 2px;
}
.qris-gpn-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.qris-merchant-block {
  text-align: center;
  margin: 12px 0 10px;
}
.qris-merchant-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}
.qris-merchant-nmid,
.qris-merchant-inv {
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
}
.qris-svg-frame {
  width: 228px;
  height: 228px;
  margin: 10px auto;
  padding: 10px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qris-svg-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}
.qris-amount-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  margin-top: 8px;
}
.qris-amount-idr {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.qris-timer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
  font-size: 12px;
  color: #334155;
}
.qris-timer-bar strong {
  color: #0284c7;
  font-size: 13.5px;
}

.notif-item,
.map-hud-card,
.chat-bubble.theirs {
  background: rgba(255, 255, 255, 0.075) !important;
  backdrop-filter: blur(20px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.chat-bubble.mine {
  background: linear-gradient(150deg, rgba(56, 189, 248, 0.82), rgba(2, 132, 199, 0.88)) !important;
  border: 1px solid rgba(186, 230, 253, 0.50);
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 18px rgba(2, 132, 199, 0.28);
}

.toast-item {
  background: rgba(12, 26, 54, 0.58) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.30) !important;
  box-shadow: var(--lg-rim-subtle), 0 16px 40px rgba(0, 5, 18, 0.52) !important;
}

.maplibregl-popup-content {
  background: rgba(10, 22, 46, 0.62) !important;
  background-image: linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)) !important;
  backdrop-filter: blur(26px) saturate(195%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(195%) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 16px !important;
  box-shadow: var(--lg-rim-subtle), 0 14px 36px rgba(0, 5, 18, 0.55) !important;
}

/* ==========================================================================
   LIQUID GLASS 3D ROUTE TELEMETRY, VEHICLE RADAR ORB & CORRIDOR BANNER
   ========================================================================== */
@keyframes vehicleRadarPulse {
  0% {
    transform: scale(0.88);
    opacity: 0.75;
  }
  75% {
    transform: scale(1.65);
    opacity: 0;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

.vehicle-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 8px 20px rgba(0, 6, 20, 0.65));
}

.vehicle-orb-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-pulse-ring {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  animation: vehicleRadarPulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}
.vehicle-pulse-ring.mode-land { border-color: #fb923c; }
.vehicle-pulse-ring.mode-sea  { border-color: #38bdf8; }
.vehicle-pulse-ring.mode-air  { border-color: #a78bfa; }
.vehicle-pulse-ring.mode-done { border-color: #34d399; }
.vehicle-pulse-ring.mode-delayed { border-color: #fb7185; }

.vehicle-badge {
  position: relative;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 32% 26%, rgba(30, 58, 108, 0.88) 0%, rgba(6, 15, 34, 0.92) 72%) !important;
  backdrop-filter: blur(16px) saturate(190%);
  -webkit-backdrop-filter: blur(16px) saturate(190%);
  border: 1.8px solid rgba(56, 189, 248, 0.85) !important;
  box-shadow:
    inset 0 1.5px 2px rgba(255, 255, 255, 0.42),
    0 0 18px rgba(56, 189, 248, 0.52),
    0 6px 18px rgba(0, 5, 18, 0.65) !important;
  transition: transform 0.22s var(--lg-spring), box-shadow 0.22s ease !important;
}
.vehicle-marker:hover .vehicle-badge {
  transform: scale(1.10);
}
.vehicle-badge.mode-land {
  border-color: rgba(251, 146, 60, 0.92) !important;
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.42), 0 0 18px rgba(251, 146, 60, 0.52), 0 6px 18px rgba(0, 5, 18, 0.65) !important;
}
.vehicle-badge.mode-air {
  border-color: rgba(167, 139, 250, 0.92) !important;
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.42), 0 0 18px rgba(167, 139, 250, 0.55), 0 6px 18px rgba(0, 5, 18, 0.65) !important;
}
.vehicle-badge.mode-done {
  border-color: rgba(52, 211, 153, 0.92) !important;
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.42), 0 0 18px rgba(52, 211, 153, 0.50), 0 6px 18px rgba(0, 5, 18, 0.65) !important;
}
.vehicle-badge.mode-delayed {
  border-color: rgba(251, 113, 133, 0.95) !important;
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.42), 0 0 20px rgba(244, 63, 94, 0.60), 0 6px 18px rgba(0, 5, 18, 0.65) !important;
}

.vehicle-icon-rot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.16s linear;
}

.vehicle-label {
  margin-top: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 10px !important;
  border-radius: 999px !important;
  background: rgba(6, 15, 34, 0.76) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)) !important;
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 6px 16px rgba(0, 5, 18, 0.55) !important;
  font-size: 10.5px !important;
  letter-spacing: 0.02em;
}
.veh-status-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}
.veh-status-dot.mode-land { background: #fb923c; box-shadow: 0 0 8px #fb923c; }
.veh-status-dot.mode-air  { background: #a78bfa; box-shadow: 0 0 8px #a78bfa; }
.veh-status-dot.mode-done { background: #34d399; box-shadow: 0 0 8px #34d399; }
.veh-status-dot.mode-delayed { background: #fb7185; box-shadow: 0 0 8px #fb7185; }
.veh-sep { opacity: 0.45; }
.veh-pct {
  padding-left: 5px;
  margin-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.20);
  color: #7dd3fc;
}

/* Boarding-Pass / FlightRadar Route Corridor Header inside Side Panel */
.ws-route-corridor-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.10) 0%, rgba(14, 34, 68, 0.42) 100%);
  border: 1px solid rgba(186, 230, 253, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.ws-corridor-end {
  display: flex;
  flex-direction: column;
}
.ws-corridor-end.is-right {
  text-align: right;
  align-items: flex-end;
}
.ws-corridor-code {
  font-size: 17px;
  font-weight: 800;
  color: #7dd3fc;
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.ws-corridor-sub {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 2px;
  max-width: 92px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-corridor-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ws-corridor-line {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ws-corridor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ws-corridor-dot.dot-start { background: #fb923c; box-shadow: 0 0 8px #fb923c; }
.ws-corridor-dot.dot-end   { background: #34d399; box-shadow: 0 0 8px #34d399; }
.ws-corridor-beam {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb923c, #38bdf8);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
}
.ws-corridor-beam.is-dim {
  background: linear-gradient(90deg, #38bdf8, #34d399);
}
.ws-corridor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 16, 36, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 0 12px rgba(56, 189, 248, 0.28);
}
.ws-corridor-meta {
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.03em;
}

/* Enhanced Timeline Rail & Nodes */
.ws-route-stepper {
  border-left: 2px solid rgba(56, 189, 248, 0.34) !important;
  gap: 7px !important;
}
.ws-route-step {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px !important;
  padding: 7px 10px !important;
}
.ws-route-step.is-clickable:hover {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: rgba(125, 211, 252, 0.38) !important;
}
.ws-route-step::before {
  width: 11px !important;
  height: 11px !important;
  left: -22.5px !important;
  top: 12px !important;
}

/* Sleek Visual Legend Chips at Bottom of Route Panel */
.ws-route-legend-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.ws-leg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10.5px;
  font-weight: 600;
  color: #cbd5e1;
}
.leg-line {
  display: inline-block;
  width: 16px;
  height: 3px;
  border-radius: 999px;
}
.leg-line.leg-sea  { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.leg-line.leg-air  { background: #a78bfa; box-shadow: 0 0 8px #a78bfa; }
.leg-line.leg-land { background: repeating-linear-gradient(90deg, #fb923c 0 4px, transparent 4px 7px); }
.leg-beacon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #061328;
  border: 2px solid #fbbf24;
}
.leg-beacon.leg-dest { border-color: #34d399; box-shadow: 0 0 6px #34d399; }
.leg-beacon.leg-transit { border-color: #fbbf24; box-shadow: 0 0 6px #fbbf24; }

/* ==========================================================================
   LIQUID GLASS HOME & AUTH PAGES
   ========================================================================== */
#page-home .pub-nav {
  background: rgba(8, 18, 38, 0.38) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)) !important;
  backdrop-filter: blur(30px) saturate(195%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(195%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 5, 18, 0.35);
}

#page-home .hero-track-card,
#page-home .role-showcase-card,
#page-home .trust-card,
#page-home .feature-card,
#page-home .ch-table-card,
#page-home .home-cta-banner {
  border-radius: 22px !important;
}

#page-home .island-chip {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: var(--lg-rim-subtle) !important;
}

#page-auth .auth-glass-shell {
  border-radius: 28px !important;
  overflow: hidden;
}
#page-auth .auth-left {
  background: rgba(7, 16, 36, 0.42) !important;
}
#page-auth .auth-right {
  background: radial-gradient(circle at 75% 22%, rgba(56, 189, 248, 0.18) 0%, rgba(7, 16, 36, 0.56) 80%) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
}
#page-auth .seg-tabs,
#page-auth .auth-tabs {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  padding: 4px !important;
}
#page-auth .seg-tab,
#page-auth .auth-tab {
  border-radius: 999px !important;
}
#page-auth .seg-tab.active,
#page-auth .auth-tab.active {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.34), rgba(2, 132, 199, 0.22)) !important;
  border-color: rgba(186, 230, 253, 0.52) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44), 0 4px 14px rgba(2, 132, 199, 0.30) !important;
}
#page-home .pub-nav-link {
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
#page-home .pub-nav-link:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

#page-home .pub-footer {
  background: rgba(6, 14, 30, 0.34);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

#page-auth .role-choice-card,
#page-auth .auth-feature-item {
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(175%);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--lg-rim-subtle);
}
#page-auth .role-choice-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(186, 230, 253, 0.42);
}
#page-auth .role-choice-card.selected-shipper {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.24), rgba(245, 158, 11, 0.08)) !important;
  border-color: rgba(251, 191, 36, 0.85) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40), 0 0 0 3px rgba(245, 158, 11, 0.22), 0 10px 26px rgba(245, 158, 11, 0.18) !important;
}
#page-auth .role-choice-card.selected-buyer {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.24), rgba(16, 185, 129, 0.08)) !important;
  border-color: rgba(52, 211, 153, 0.85) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40), 0 0 0 3px rgba(52, 211, 153, 0.22), 0 10px 26px rgba(16, 185, 129, 0.18) !important;
}
#page-auth .role-choice-hint,
#page-auth .auth-alert,
#page-auth .forgot-dev-preview {
  border-radius: 14px !important;
  backdrop-filter: blur(18px) saturate(175%);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

/* ==========================================================================
   MOBILE FLOATING LIQUID GLASS DOCK & RESPONSIVE ADJUSTMENTS (<= 960px)
   ========================================================================== */
@media (max-width: 960px) {
  .console-sidebar {
    margin: 0;
    height: auto;
    border-radius: 0 !important;
  }
  .console-header {
    top: 8px;
    margin: 8px 12px 0;
    border-radius: 18px !important;
    padding: 9px 12px !important;
  }
  .ws-inline-globe-stage {
    left: 0;
  }
  .mobile-bottom-nav {
    left: 12px !important;
    right: 12px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    border-radius: 24px !important;
    padding: 6px 8px !important;
    background-color: rgba(10, 22, 46, 0.56) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)) !important;
    backdrop-filter: var(--lg-blur-heavy) !important;
    -webkit-backdrop-filter: var(--lg-blur-heavy) !important;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    box-shadow: var(--lg-rim), 0 16px 40px rgba(0, 5, 18, 0.58) !important;
  }
  .mob-nav-btn {
    border-radius: 16px !important;
  }
  .mob-nav-btn.active {
    background: linear-gradient(160deg, rgba(56, 189, 248, 0.34), rgba(2, 132, 199, 0.20)) !important;
    border: 1px solid rgba(186, 230, 253, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
    color: #ffffff !important;
  }
}

/* ==========================================================================
   UNIQUE BUYER / SHIPPER ID LOOKUP & PORT PICKUP DOCUMENT DOWNLOAD CENTER
   ========================================================================== */
.member-id-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 13px 18px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(15, 23, 42, 0.55) 100%);
  border: 1px solid rgba(125, 211, 252, 0.38);
  backdrop-filter: var(--lg-blur-card);
  -webkit-backdrop-filter: var(--lg-blur-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 28px rgba(2, 8, 23, 0.35);
}

.member-id-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e0f2fe;
  background: rgba(2, 132, 199, 0.28);
  border: 1px solid rgba(125, 211, 252, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.member-lookup-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.member-lookup-row .input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.member-verified-card {
  margin-top: 8px;
  padding: 10px 13px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.18), rgba(6, 78, 59, 0.24));
  border: 1px solid rgba(52, 211, 153, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 12.5px;
}

.member-error-card {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.42);
  color: #fecaca;
  font-size: 12px;
}

.member-hint-card {
  margin-top: 7px;
  padding: 8px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(148, 163, 184, 0.32);
  color: var(--ink-3);
  font-size: 11.8px;
  line-height: 1.45;
}

.member-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
  align-items: center;
}

.member-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.35);
  transition: all 0.16s ease;
}
.member-quick-chip:hover {
  background: rgba(14, 165, 233, 0.32);
  border-color: rgba(186, 230, 253, 0.65);
  color: #ffffff;
}

.port-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
}
@media (max-width: 640px) {
  .port-doc-grid {
    grid-template-columns: 1fr;
  }
}

.port-doc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.port-doc-card.is-ready {
  border-color: rgba(52, 211, 153, 0.42) !important;
}
.port-doc-card.is-locked {
  border-color: rgba(251, 191, 36, 0.35) !important;
}

.port-doc-mini-paper {
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #0c2340;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}
.port-doc-mini-paper .muted-paper {
  color: #475569;
  font-size: 11.5px;
}

/* MapLibre Compact Attribution Glass Pill & Table Filter / Pagination Bar */
.maplibregl-ctrl-attrib.maplibregl-compact {
  background: rgba(8, 18, 38, 0.72) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  color: #cbd5e1 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.maplibregl-ctrl-attrib a {
  color: #7dd3fc !important;
}

.shipment-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 0 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.shipment-filter-bar .select {
  padding: 7px 10px;
  font-size: 12px;
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 12.5px;
  color: var(--ink-3);
}

.chart-canvas-wrap {
  position: relative;
  height: 250px;
  width: 100%;
}
