/* ==========================================================================
   TRẠM HH&DV LQN v3.0 — DESIGN SYSTEM (AXION + RONAS IT + AGRICAI)
   ========================================================================== */

:root {
  /* Axion Architectural Palette */
  --ax-bg: #ebece9;
  --ax-sheet: #ffffff;
  --ax-surface: #f4f4f2;
  --ax-ink: #1c1b1b;
  --ax-slate: #474545;
  --ax-muted: #767471;
  --ax-sage: #4a5d46;
  --ax-sage-soft: #9fa699;
  --ax-line: rgba(28, 27, 27, 0.09);
  --ax-line-strong: rgba(28, 27, 27, 0.18);

  /* Ronas IT Obsidian Cockpit Palette */
  --rn-bg: #111114;
  --rn-panel: #18181d;
  --rn-card: #202027;
  --rn-line: #2b2b35;
  --rn-violet: #d896ff;
  --rn-violet-soft: rgba(216, 150, 255, 0.16);
  --rn-amber: #fbbf24;
  --rn-emerald: #4ade80;

  /* AgricAI Spatial HUD Palette */
  --ag-lime: #84cc16;
  --ag-lime-deep: #4d7c0f;
  --ag-frost: rgba(250, 252, 248, 0.78);
  --ag-frost-strong: rgba(255, 255, 255, 0.9);
  --ag-border: rgba(255, 255, 255, 0.72);

  /* Accent Tokens */
  --ax-emerald: #10b981;
  --ax-violet: #8b5cf6;

  /* Typography & Radii */
  --font-display: 'Plus Jakarta Sans', 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global Sleek Scrollbars */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.32);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.55);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ax-bg);
  color: var(--ax-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

.lqn-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lqn-ic svg {
  width: 100%;
  height: 100%;
}

.w-full { width: 100%; }
.mt-8 { margin-top: 8px; }

/* ==========================================================================
   TOP NAVIGATION BAR (WIDE 1720PX, ZERO OVERFLOW/CLIPPING)
   ========================================================================== */
.top-shell {
  position: sticky;
  top: 0;
  z-index: 950;
  padding: 8px 14px 0;
}

.top-shell-deck,
.top-shell-inner {
  max-width: 1720px;
  width: min(1720px, calc(100vw - 28px));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 7px 16px 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.25s var(--ease-out);
}

/* TIER 1: BRAND IDENTITY & ACTIONS */
.top-deck-upper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.top-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-slash {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--ax-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-v-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 3px;
  letter-spacing: 0.02em;
}

.brand-live-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.slash-accent {
  color: var(--ax-sage);
  font-weight: 800;
  margin-right: 1px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  margin-left: 4px;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  flex-shrink: 0;
}

/* TIER 2: EXPANDED WORKSPACE NAVIGATION DOCK */
.top-deck-lower {
  display: flex;
  justify-content: center;
  width: 100%;
  border-top: 1px solid rgba(241, 245, 249, 0.95);
  padding-top: 6px;
}

.workspace-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(241, 245, 249, 0.85);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.workspace-nav::-webkit-scrollbar {
  display: none;
}

.ws-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 18px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.ws-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.ws-tab:active {
  transform: scale(0.96);
}

.ws-tab.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ws-tab.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2.5px;
  background: linear-gradient(90deg, #10b981, #0284c7);
  border-radius: 999px;
}

.ws-tab-ic {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.22s var(--ease-out);
}

.ws-tab:hover .ws-tab-ic {
  transform: scale(1.12);
}

.ws-tab-lbl {
  line-height: 1;
  letter-spacing: -0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.gps-header-cluster {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0f172a;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
}

.btn-gps-instant {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #0284c7 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-gps-instant:hover {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.pill-gps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #f8fafc;
  padding: 5px 11px 5px 7px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 245px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.pill-gps #lblHeaderGps {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}

.pill-gps .gps-caret {
  font-size: 0.72rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.pill-gps:hover {
  color: #38bdf8;
}

/* Buttons */
.btn-pill-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--ax-ink);
  color: #ffffff;
  border: 1px solid var(--ax-ink);
  padding: 8.5px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out), background 0.2s ease, box-shadow 0.2s ease;
}

.btn-pill-dark:hover {
  background: #2f2e2e;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(28, 27, 27, 0.18);
}

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #ffffff;
  color: var(--ax-ink);
  border: 1.25px solid var(--ax-ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-out);
}

.btn-pill-outline:hover {
  background: var(--ax-ink);
  color: #ffffff;
}

.btn-pill-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--ax-surface);
  color: var(--ax-slate);
  border: 1px solid var(--ax-line);
  padding: 8.5px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-pill-ghost:hover {
  background: #e5e6e2;
  color: var(--ax-ink);
}

.btn-lg {
  padding: 12px 22px;
  font-size: 0.9rem;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.cart-count-pill {
  background: var(--ag-lime);
  color: #142200;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

/* ==========================================================================
   STAGE & VIEW TRANSITIONS (WIDE 1720PX)
   ========================================================================== */
.app-stage {
  max-width: 1720px;
  width: min(1720px, calc(100vw - 28px));
  margin: 14px auto 40px;
  padding: 0;
}

.ws-view {
  display: none;
}

.ws-view.active {
  display: block;
  animation: viewReveal 0.42s var(--ease-out);
}

@keyframes viewReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   WORKSPACE 1: EDITORIAL COMMERCE SHOWCASE & 34-PROVINCE NETWORK RADAR
   ========================================================================== */
.axion-sheet {
  background: var(--ax-sheet);
  border-radius: 28px;
  border: 1px solid rgba(28, 27, 27, 0.07);
  padding: 40px 44px 50px;
  box-shadow: 0 20px 60px rgba(24, 24, 21, 0.05);
}

.hero-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-eyebrow-row .eyebrow-tag {
  margin-bottom: 0;
}

.eyebrow-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
}

.eyebrow-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ax-sage);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.axion-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}

.axion-display-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.65rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: var(--ax-ink);
}

.axion-lead {
  margin: 0 0 20px;
  color: var(--ax-slate);
  font-size: 0.98rem;
  line-height: 1.65;
}

.axion-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* Graphical 2-Column Hero Showcase */
.hero-graphical-showcase {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 20px;
  align-items: stretch;
}

.axion-visual-banner {
  position: relative;
  min-height: 468px;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #1a2118;
  box-shadow: 0 18px 42px rgba(16, 24, 16, 0.14);
}

.axion-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.01);
  transition: transform 0.9s var(--ease-out);
}

.axion-visual-banner:hover .axion-banner-img {
  transform: scale(1.045);
}

.axion-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 12, 0.25) 0%, rgba(10, 16, 12, 0.12) 45%, rgba(10, 16, 12, 0.78) 100%);
}

.hero-top-glass-bar {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}

.htg-chip {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
}

.htg-chip b {
  color: #34d399;
  font-family: var(--font-mono);
  margin-right: 3px;
}

.axion-floating-metrics {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 36px;
  width: 100%;
  z-index: 2;
}

.hero-metric-chip {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 20px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}

.hero-metric-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  border-color: rgba(203, 213, 225, 0.9);
}

.hm-label {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hm-val {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.hm-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .axion-floating-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 580px) {
  .axion-floating-metrics {
    grid-template-columns: 1fr;
  }
}

/* Interactive 34-Province Network Radar Card */
.hero-vn-network-card {
  background:
    radial-gradient(circle at 80% 18%, rgba(52, 211, 153, 0.16), transparent 48%),
    radial-gradient(circle at 20% 82%, rgba(56, 189, 248, 0.14), transparent 50%),
    linear-gradient(155deg, #0b1120 0%, #111827 55%, #0f172a 100%);
  border-radius: 24px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 20px 22px;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.22);
}

.hvn-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hvn-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #34d399;
  margin-bottom: 3px;
}

.hvn-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
}

.hvn-gps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hvn-gps-btn:hover {
  background: #10b981;
  color: #052e16;
}

.hvn-svg-stage {
  position: relative;
  flex: 1;
  min-height: 270px;
  background: rgba(9, 13, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  overflow: hidden;
}

.vn-corridor-svg {
  width: 100%;
  max-height: 295px;
  height: auto;
}

@keyframes vnDashFlow {
  from { stroke-dashoffset: 40; }
  to { stroke-dashoffset: 0; }
}

.vn-animated-backbone {
  animation: vnDashFlow 2.2s linear infinite;
}

.vn-hub-node {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.vn-hub-node text {
  fill: #e2e8f0;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-body);
  paint-order: stroke;
  stroke: rgba(9, 13, 22, 0.9);
  stroke-width: 3px;
  transition: fill 0.18s ease;
}

.vn-hub-node:hover text {
  fill: #34d399;
}

.vn-node-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: radarPulse 2.4s ease-in-out infinite;
}

.hvn-region-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hvn-pill {
  flex: 1;
  min-width: fit-content;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.hvn-pill:hover, .hvn-pill.active {
  background: #10b981;
  border-color: #10b981;
  color: #052e16;
  font-weight: 700;
}

.hvn-live-feed {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.76rem;
  color: #cbd5e1;
}

.pulse-green-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  flex-shrink: 0;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

/* Regional Quick Filter Strip above Marketplace Catalog */
.region-quick-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.region-quick-bar::-webkit-scrollbar {
  display: none;
}

.rqb-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ax-slate);
  white-space: nowrap;
  margin-right: 2px;
}

.rqb-pill {
  background: var(--ax-surface);
  border: 1px solid var(--ax-line-strong);
  color: var(--ax-slate);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.rqb-pill:hover {
  border-color: var(--ax-ink);
  color: var(--ax-ink);
}

.rqb-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

/* Sections */
.axion-section {
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--ax-line);
}

.sector-strip-section {
  margin-top: 36px;
  padding-top: 0;
  border-top: none;
}

.axion-sec-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 30px;
}

.axion-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.axion-sec-side p {
  margin: 0 0 14px;
  color: var(--ax-slate);
  font-size: 0.94rem;
}

/* Bento Ecosystem Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.bento-card {
  grid-column: span 2;
  position: relative;
  height: 255px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: #1c1b1b;
}

.bento-card.bento-wide {
  grid-column: span 3;
  height: 285px;
}

.bento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out);
}

.bento-card:hover img {
  transform: scale(1.07);
}

.bento-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.08) 15%, rgba(12, 12, 12, 0.84) 100%);
}

.bento-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  color: #ffffff;
}

.bento-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.bento-content h3 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.bento-content p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

/* Sector Cards Row (/AXION Charcoal Active + Alabaster Inactive) */
.sector-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
}

.sector-card {
  background: var(--ax-surface);
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 18px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.sector-card:hover {
  border-color: var(--ax-line-strong);
  transform: translateY(-2px);
}

.sector-card.active {
  background: #2b2a2a;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(28, 27, 27, 0.16);
}

.sc-ic-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ax-ink);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sector-card.active .sc-ic-circle {
  background: #ffffff;
  color: var(--ax-ink);
}

.sector-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.96rem;
  margin-bottom: 3px;
}

.sector-card span.sc-sub {
  font-size: 0.78rem;
  color: var(--ax-muted);
}

.sector-card.active span.sc-sub {
  color: rgba(255, 255, 255, 0.72);
}

/* Catalog Filter Toolbar */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--ax-surface);
  padding: 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.search-box-axion {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--ax-line);
  border-radius: 999px;
  padding: 9px 16px;
}

.search-box-axion input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--ax-ink);
  background: transparent;
}

.mode-seg {
  display: flex;
  background: #ffffff;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--ax-line);
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ax-slate);
  cursor: pointer;
  transition: all 0.2s ease;
}

.seg-btn.active {
  background: var(--ax-ink);
  color: #ffffff;
}

.catalog-selects {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.axion-select {
  background: #ffffff;
  border: 1px solid var(--ax-line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ax-ink);
  outline: none;
  cursor: pointer;
}

.active-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f4ec;
  border: 1px solid rgba(74, 93, 70, 0.22);
  padding: 9px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 0.86rem;
}

.link-clear-filter {
  background: none;
  border: none;
  color: var(--ax-sage);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Product Cards Grid */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 20px;
}

.prod-card {
  background: #ffffff;
  border: 1px solid var(--ax-line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.2s ease;
}

.prod-card:hover {
  transform: translateY(-4px);
  border-color: rgba(28, 27, 27, 0.22);
  box-shadow: 0 18px 38px rgba(24, 24, 20, 0.09);
}

.pc-media {
  position: relative;
  aspect-ratio: 16 / 10.6;
  overflow: hidden;
  background: #e8eae6;
  cursor: pointer;
}

.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.prod-card:hover .pc-media img {
  transform: scale(1.06);
}

.pc-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.badge-code {
  background: rgba(24, 24, 27, 0.82);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
}

.badge-mode-b2b {
  background: #4a5d46;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

.badge-mode-swap {
  background: #6d28d9;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

.badge-ai-score {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: #1c1b1b;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(132, 204, 22, 0.55);
}

.pc-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pc-cat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--ax-muted);
  margin-bottom: 6px;
}

.pc-dist {
  font-family: var(--font-mono);
  color: var(--ax-sage);
  font-weight: 600;
}

.pc-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ax-ink);
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-shop-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.81rem;
  color: var(--ax-slate);
  margin-bottom: 12px;
}

.ver-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
}

.ver-tick svg { width: 10px; height: 10px; }

.pc-price-box {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ax-line);
  margin-bottom: 13px;
}

.pc-price {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--ax-ink);
}

.pc-unit {
  display: block;
  font-size: 0.77rem;
  color: var(--ax-muted);
}

.pc-want-note {
  font-size: 0.78rem;
  color: #5b21b6;
  background: #f5f3ff;
  padding: 5px 9px;
  border-radius: 8px;
  margin-top: 5px;
}

.pc-actions {
  display: flex;
  gap: 7px;
}

.pc-btn-main {
  flex: 1;
  background: var(--ax-ink);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pc-btn-main:hover {
  background: #333232;
}

.pc-btn-icon {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: 1px solid var(--ax-line-strong);
  background: var(--ax-surface);
  color: var(--ax-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pc-btn-icon:hover {
  background: var(--ax-ink);
  color: #ffffff;
  border-color: var(--ax-ink);
}

/* 4-Column Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.why-col {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}

.why-col:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  border-color: rgba(203, 213, 225, 0.95);
}

.why-col:last-child {
  border-right: 1px solid rgba(226, 232, 240, 0.9);
}

.why-ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.25rem;
  transition: transform 0.22s var(--ease-out);
}

.why-col:hover .why-ic {
  transform: scale(1.08);
}

.why-col:nth-child(1) .why-ic { background: #eff6ff; color: #2563eb; }
.why-col:nth-child(2) .why-ic { background: #f5f3ff; color: #7c3aed; }
.why-col:nth-child(3) .why-ic { background: #f0fdf4; color: #16a34a; }
.why-col:nth-child(4) .why-ic { background: #fff7ed; color: #ea580c; }

.why-col h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.why-col p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
}

/* ==========================================================================
   WORKSPACE 2: RONAS IT 3-PANE DARK LOGISTICS & ROUTING MAP COCKPIT
   ========================================================================== */
.ronas-cockpit {
  background: var(--rn-bg);
  color: #f4f4f6;
  border-radius: 28px;
  border: 1px solid #26262f;
  display: grid;
  grid-template-columns: 62px 1fr;
  min-height: 760px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.ronas-rail {
  background: #141418;
  border-right: 1px solid var(--rn-line);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.ronas-logo-tile {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--rn-violet);
  color: #140b1c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ronas-rail-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #8e8ea0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rail-btn:hover, .rail-btn.active {
  background: #23232c;
  color: var(--rn-violet);
  border-color: rgba(216, 150, 255, 0.3);
}

.ronas-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ronas-topbar {
  padding: 18px 24px;
  border-bottom: 1px solid var(--rn-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ronas-title-block h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ronas-meta-sub {
  font-size: 0.8rem;
  color: #9494a6;
}

.ronas-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.order-track-inline {
  display: flex;
  align-items: center;
  background: rgba(18, 20, 29, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  gap: 8px;
}

.order-track-inline:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}

.order-track-inline .oti-icon svg {
  width: 15px;
  height: 15px;
  color: #64748b;
  display: block;
}

.order-track-inline input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  width: 190px;
}

.order-track-inline input::placeholder {
  color: #64748b;
}

.btn-track-submit {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-track-submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
}

.btn-track-submit:active {
  transform: translateY(0);
}

.btn-track-submit svg {
  width: 13px;
  height: 13px;
}

.ronas-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #22222a;
  color: #e4e4ec;
  border: 1px solid #32323e;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ronas-btn-dark:hover {
  border-color: var(--rn-violet);
}

.ronas-btn-violet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rn-violet);
  color: #160d1f;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.83rem;
  font-weight: 700;
  transition: filter 0.2s ease;
}

.ronas-btn-violet:hover {
  filter: brightness(1.08);
}

/* 3-Pane Split */
.ronas-panes {
  display: grid;
  grid-template-columns: 295px 355px 1fr;
  flex: 1;
  min-height: 670px;
}

.ronas-list-pane {
  border-right: 1px solid var(--rn-line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #15151a;
}

.ronas-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1f1f27;
  border: 1px solid #2d2d38;
  border-radius: 12px;
  padding: 8px 12px;
  color: #8f8fa3;
}

.ronas-search-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.83rem;
}

.ronas-cards-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 600px;
  padding-right: 4px;
}

.rn-dispatch-card {
  background: var(--rn-card);
  border: 1.5px solid #2b2b35;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
}

.rn-dispatch-card:hover {
  border-color: #464656;
}

.rn-dispatch-card.active {
  border-color: var(--rn-violet);
  background: linear-gradient(180deg, rgba(216, 150, 255, 0.09) 0%, #202028 100%);
  box-shadow: 0 8px 24px rgba(216, 150, 255, 0.12);
}

.rnd-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.rnd-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
}

.rnd-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.rnd-pill.ready {
  background: rgba(251, 191, 36, 0.15);
  color: var(--rn-amber);
}

.rnd-pill.transit {
  background: var(--rn-violet-soft);
  color: var(--rn-violet);
}

.rnd-pill.delivered {
  background: rgba(74, 222, 128, 0.15);
  color: var(--rn-emerald);
}

.rnd-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #e6e6ef;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rnd-loc {
  font-size: 0.76rem;
  color: #8f8fa3;
  margin-bottom: 10px;
}

.rnd-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #c5c5d4;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Middle Inspector Pane */
.ronas-inspector-pane {
  border-right: 1px solid var(--rn-line);
  padding: 20px;
  background: var(--rn-panel);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: 670px;
}

.ins-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.ins-head h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.ins-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  background: #202028;
  border-radius: 14px;
  border: 1px solid #2c2c37;
}

.ins-kv span {
  display: block;
  font-size: 0.73rem;
  color: #8c8ca1;
  margin-bottom: 3px;
}

.ins-kv strong {
  font-size: 0.85rem;
  color: #f4f4f8;
}

.ins-route-card {
  background: #202028;
  border: 1px solid #2d2d39;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 12px;
  align-items: center;
}

.ins-route-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: #2c2c38;
  color: var(--rn-violet);
  padding: 3px 9px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.ins-route-stats {
  font-size: 0.8rem;
  color: #c8c8d8;
  line-height: 1.55;
}

.ins-route-thumb {
  width: 86px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ins-timeline {
  background: #1d1d24;
  border: 1px solid #2b2b36;
  border-radius: 16px;
  padding: 14px;
}

.ins-tl-item {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}

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

.ins-tl-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--rn-violet);
  background: #141418;
}

.ins-tl-item.dest .ins-tl-dot {
  background: var(--rn-emerald);
  border-color: var(--rn-emerald);
}

.ins-tl-item small {
  display: block;
  font-size: 0.72rem;
  color: #8f8fa3;
}

.ins-tl-item strong {
  font-size: 0.83rem;
  color: #f3f3f7;
}

.ins-dest-select {
  width: 100%;
  margin-top: 6px;
  background: #262631;
  color: #ffffff;
  border: 1px solid #383847;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.8rem;
}

.dual-maps-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-nav-gmap, .btn-nav-amap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn-nav-gmap {
  background: #2563eb;
  color: #ffffff;
}

.btn-nav-amap {
  background: #f4f4f6;
  color: #111114;
}

.btn-nav-gmap:hover, .btn-nav-amap:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.ins-bottom-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.btn-ins-primary {
  flex: 1;
  background: var(--rn-violet);
  color: #150b1f;
  border: none;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.btn-ins-sec {
  background: #262631;
  color: #ffffff;
  border: 1px solid #393949;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

/* Right Interactive Dark Map Pane */
.ronas-map-pane {
  position: relative;
  background: #0d0d10;
  min-height: 560px;
}

.leaflet-dark-canvas {
  width: 100%;
  height: 100%;
  min-height: 670px;
  background: #0e0e12;
  z-index: 1;
}

/* Hide default Leaflet zoom & style attribution subtly */
.leaflet-control-zoom {
  display: none !important;
}

.leaflet-control-attribution {
  background: rgba(17, 17, 20, 0.7) !important;
  color: #777 !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: #aaa !important;
}

/* Custom Floating Map Controls (Ronas IT exact style) */
.map-float-top {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 500;
  display: flex;
  gap: 8px;
}

.map-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #151518;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.map-circle-btn:hover {
  transform: scale(1.06);
}

.map-zoom-pill {
  position: absolute;
  right: 20px;
  bottom: 28px;
  z-index: 500;
  background: rgba(18, 20, 29, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.map-zoom-pill .btn-map-zoom {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-zoom-pill .btn-map-zoom:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #38bdf8;
}

.map-zoom-pill .btn-map-zoom:active {
  transform: scale(0.92);
}

.map-zoom-pill .btn-map-zoom svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.zoom-pill-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
}

.map-route-hud {
  position: absolute;
  left: 18px;
  bottom: 24px;
  z-index: 500;
  background: rgba(20, 20, 26, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(216, 150, 255, 0.35);
  color: #f3f3f8;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rn-violet);
  box-shadow: 0 0 10px var(--rn-violet);
}

/* Custom Leaflet Markers & White Floating Callout Pill */
.rn-pin-cube {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #23232c;
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease;
}

.rn-pin-cube.selected {
  background: var(--rn-violet);
  color: #160c20;
  transform: scale(1.18);
  box-shadow: 0 0 0 6px rgba(216, 150, 255, 0.28);
}

.rn-pin-user {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.28);
}

.rn-white-callout {
  background: #ffffff;
  color: #141418;
  border-radius: 999px;
  padding: 7px 15px 7px 9px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  transform: translate(-50%, -125%);
  pointer-events: none;
}

.rn-wc-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(216, 150, 255, 0.24);
  color: #9333ea;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rn-wc-text strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.2;
}

.rn-wc-text span {
  font-size: 0.72rem;
  color: #6b7280;
}

/* ==========================================================================
   WORKSPACE 3: AGRICAI FROSTED PEARL-SAGE SPATIAL AI SCANNER & RAG
   ========================================================================== */
.agric-studio {
  position: relative;
  border-radius: 30px;
  padding: 28px 32px 36px;
  background: linear-gradient(135deg, #cfd7cc 0%, #e5eae2 46%, #cbd5c7 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(31, 45, 28, 0.1);
}

.agric-ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(163, 230, 53, 0.2) 0%, transparent 46%),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.65) 0%, transparent 38%);
  pointer-events: none;
}

.agric-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.agric-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.agric-emblem {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #3f6212;
  color: #ecfccb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agric-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.agric-brand span {
  font-size: 0.77rem;
  color: #4b5548;
}

.agric-capsule-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.agric-tab {
  border: none;
  background: transparent;
  color: #2f362d;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.agric-tab.active {
  background: #ffffff;
  color: #141a12;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.agric-upload-trigger {
  color: #365314;
}

.agric-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pulse-lime {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ag-lime);
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.28);
}

.agric-hud-wrap, .agric-rag-wrap {
  position: relative;
  z-index: 2;
}

.agric-specimen-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 20px;
}

.agric-specimen-header h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  letter-spacing: -0.025em;
  color: #182016;
}

.agric-specimen-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: #465043;
}

.agric-header-btns {
  display: flex;
  gap: 8px;
}

.btn-agric-rescan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #ffffff;
  color: #1c2419;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-agric-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1c221a;
  color: #ffffff;
  border: none;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}

/* 3-Column Spatial HUD */
.agric-3col {
  display: grid;
  grid-template-columns: 340px 1fr 340px;
  gap: 20px;
  align-items: stretch;
}

.agric-col-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.frost-card {
  background: var(--ag-frost);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--ag-border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(32, 44, 28, 0.06);
}

.frost-tall {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.frost-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.frost-card-head strong {
  font-family: var(--font-display);
  font-size: 0.94rem;
}

.frost-dots {
  color: #6b7280;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

/* Time Pills (12h lime active) */
.time-pills {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
}

.tp-btn {
  flex: 1;
  border: none;
  background: rgba(255, 255, 255, 0.72);
  color: #3f473c;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tp-btn.active {
  background: var(--ag-lime);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(132, 204, 22, 0.35);
}

.block-code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.block-code-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #161d2e;
}

.delta-lime-pill {
  background: rgba(132, 204, 22, 0.18);
  color: #3f6212;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

/* 44-Bar Vertical Gradient Barcode Chart */
.barcode-bars {
  height: 52px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-bottom: 10px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
}

.bc-bar {
  flex: 1;
  border-radius: 2px;
  transition: height 0.4s var(--ease-out), transform 0.2s ease, filter 0.2s ease;
}

.bc-bar:hover {
  transform: scaleY(1.12);
  filter: brightness(1.25);
}

/* AI Scan Focus Modes Strip */
.scan-focus-strip {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.focus-mode-btn {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  color: #273024;
  font-size: 0.77rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s var(--ease-out);
}

.focus-mode-btn:hover {
  background: #ffffff;
  border-color: var(--ag-lime);
}

.focus-mode-btn.active {
  background: #1e261c;
  color: #ffffff;
  border-color: #1e261c;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

/* Ronas IT Live Vehicle Simulation Panel */
.sim-control-panel {
  background: #17171d;
  border: 1px solid rgba(216, 150, 255, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.btn-sim-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rn-violet);
  color: #140a1d;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.btn-sim-toggle:hover {
  filter: brightness(1.1);
}

.btn-sim-toggle.playing {
  background: #ef4444;
  color: #ffffff;
}

.sim-speed-pills {
  display: flex;
  gap: 4px;
}

.btn-speed {
  background: #23232c;
  border: 1px solid #333342;
  color: #9d9db2;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
}

.btn-speed.active {
  background: var(--rn-violet);
  color: #150a1e;
  border-color: var(--rn-violet);
}

.sim-prog-track {
  height: 5px;
  background: #282834;
  border-radius: 999px;
  overflow: hidden;
}

.sim-prog-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d896ff 0%, #4ade80 100%);
  border-radius: 999px;
  transition: width 0.12s linear;
}

.sim-telemetry-text {
  font-size: 0.74rem;
  color: #b5b5c9;
  display: flex;
  justify-content: space-between;
}

/* Smart Barter Interactive Range Slider */
.swap-slider-wrap {
  margin: 8px 0 14px;
  background: #ffffff;
  border: 1px solid var(--ax-line);
  border-radius: 14px;
  padding: 12px 14px;
}

.swap-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: #7c3aed;
  cursor: pointer;
  margin: 6px 0;
}

.preset-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.preset-chip {
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  color: var(--ax-ink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.preset-chip:hover {
  background: #1c1b1b;
  color: #ffffff;
}

/* Spotlight Ripple on Product Disc */
.spotlight-halo {
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--ag-lime);
  box-shadow: 0 0 24px var(--ag-lime);
  pointer-events: none;
  animation: spotlightExpand 1.6s ease-out infinite;
  z-index: 5;
}

@keyframes spotlightExpand {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.barcode-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #4b5548;
}

.barcode-foot strong {
  color: #141a12;
  font-size: 0.9rem;
}

/* Ronas IT Animated Delivery Truck Marker */
.rn-courier-truck-pin {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rn-truck-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(216, 150, 255, 0.45);
  animation: truckPulseAnim 1.4s ease-out infinite;
}

.rn-truck-body {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #e5b8ff 0%, #a855f7 100%);
  color: #12091c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.65), inset 0 0 4px #ffffff;
  border: 1.5px solid #ffffff;
}

.rn-truck-body svg {
  width: 14px;
  height: 14px;
  stroke: #12091c;
}

@keyframes truckPulseAnim {
  0% { transform: scale(0.65); opacity: 0.95; }
  100% { transform: scale(1.7); opacity: 0; }
}


/* AI Insights Strip & LED Matrix */
.ai-insight-strip {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 8px 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  margin-bottom: 14px;
}

.ai-badge-green {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
}

.ai-badge-green b {
  background: #4d7c0f;
  color: #ffffff;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 5px;
}

.telemetry-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tele-label {
  font-size: 0.76rem;
  color: #525c4f;
}

.tele-big-num strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: #111827;
}

.tele-big-num span {
  font-size: 0.78rem;
  color: #5b6458;
  margin-left: 4px;
}

.led-matrix {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.led-cluster {
  display: grid;
  grid-template-columns: repeat(4, 5px);
  gap: 3px;
}

.led-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.tele-cutout-thumb {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.scan-ai-summary {
  margin: 0 0 12px;
  font-size: 0.79rem;
  color: #3f483c;
  line-height: 1.5;
}

.specimen-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 6px;
}

.sw-arrow {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: #ffffff;
  color: #182016;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.specimen-switcher span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

/* CENTER SPATIAL STAGE (RADAR + LASER + SVG CALLOUTS + HEALTH RING) */
.agric-col-center {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.spatial-stage {
  position: relative;
  flex: 1;
  min-height: 465px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.radar-ring.r1 {
  width: 265px;
  height: 265px;
  animation: radarPulse 4s ease-in-out infinite;
}

.radar-ring.r2 {
  width: 345px;
  height: 345px;
  border-color: rgba(255, 255, 255, 0.42);
  animation: radarPulse 4s ease-in-out 0.8s infinite;
}

.radar-ring.r3 {
  width: 425px;
  height: 425px;
  border-color: rgba(255, 255, 255, 0.24);
}

@keyframes radarPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.035); opacity: 0.45; }
}

.specimen-disc-wrap {
  position: relative;
  width: 252px;
  height: 252px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(132, 204, 22, 0.35),
    0 24px 55px rgba(34, 52, 26, 0.28);
  z-index: 3;
  background: #ffffff;
}

.specimen-disc-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(132, 204, 22, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 204, 22, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
  z-index: 2;
  pointer-events: none;
  opacity: 0.65;
}

.specimen-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s ease;
}

.specimen-disc-wrap.spotlight-active .specimen-main-img {
  transform: scale(1.08);
  filter: contrast(1.06) brightness(1.02);
}

.laser-beam {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 44px;
  background: linear-gradient(180deg, rgba(163, 230, 53, 0) 0%, rgba(163, 230, 53, 0.5) 80%, #84cc16 100%);
  border-bottom: 2.5px solid #d9f99d;
  box-shadow:
    0 0 18px #84cc16,
    0 8px 30px rgba(132, 204, 22, 0.7);
  animation: laserSweep 3.2s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 4;
}

@keyframes laserSweep {
  0% { top: 3%; opacity: 0.85; }
  50% { opacity: 1; }
  100% { top: 84%; opacity: 0.85; }
}

/* SVG Technical Leader Lines */
.callout-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.svg-leader-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1.85;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.svg-leader-line.highlight {
  stroke: #84cc16;
  stroke-width: 2.5;
}

.svg-anchor-dot {
  fill: #ffffff;
  stroke: #84cc16;
  stroke-width: 1.5;
}

.svg-anchor-halo {
  fill: rgba(163, 230, 53, 0.42);
  transform-origin: center;
  animation: anchorPulse 2.8s ease-in-out infinite;
}

@keyframes anchorPulse {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.45); opacity: 0.9; }
}

/* Floating Frosted Callout Pills with Organic Hover Float */
.spatial-callout {
  position: absolute;
  z-index: 5;
  background: var(--ag-frost-strong);
  backdrop-filter: blur(18px);
  border: 1px solid #ffffff;
  border-radius: 999px;
  padding: 7px 16px 7px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(28, 42, 24, 0.12);
  max-width: 245px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.2s ease;
}

.spatial-callout:hover, .spatial-callout.spotlight-active {
  border-color: var(--ag-lime);
  box-shadow: 0 16px 36px rgba(132, 204, 22, 0.28);
}

.callout-tr {
  top: 26px;
  right: 8px;
  animation: floatingPillA 4.8s ease-in-out infinite;
}

.callout-bl {
  bottom: 94px;
  left: 6px;
  animation: floatingPillB 5.4s ease-in-out infinite;
}

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

@keyframes floatingPillB {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(7px); }
}

/* Animated SVG Circular Ring Gauge */
.health-ring-widget {
  position: absolute;
  right: 16px;
  bottom: 72px;
  z-index: 5;
  width: 112px;
  height: 112px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(32, 48, 24, 0.12);
}

.ring-svg {
  width: 102px;
  height: 102px;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(132, 204, 22, 0.18);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: var(--ag-lime);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 301.6;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.85s var(--ease-out);
}

.ring-center-text {
  position: absolute;
  text-align: center;
}

.ring-center-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  color: #4d7c0f;
  line-height: 1.05;
}

.ring-center-text span {
  font-size: 0.68rem;
  font-weight: 600;
  color: #374151;
}

/* Checking / Status Pill */
.scan-status-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
  font-size: 0.78rem;
}

.scan-status-pill span {
  color: #525c4f;
}

.radial-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.2px dashed var(--ag-lime);
  display: inline-block;
  animation: spinSlow 4s linear infinite;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* 3 Bottom Frosted Inspection Capsules */
.inspection-capsules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ins-capsule {
  background: var(--ag-frost);
  backdrop-filter: blur(18px);
  border: 1px solid var(--ag-border);
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.ic-dot-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(132, 204, 22, 0.2);
  color: #3f6212;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ins-capsule strong {
  display: block;
  font-size: 0.79rem;
  line-height: 1.2;
}

.ins-capsule span {
  font-size: 0.71rem;
  color: #4f594c;
}

/* RIGHT COLUMN: Topographic & 14-Segment Bar Meters */
.topo-grid {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.topo-visual-wrap {
  position: relative;
  height: 168px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #ffffff;
}

.topo-visual-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topo-coord-tag {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background: rgba(20, 26, 18, 0.78);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-align: center;
  padding: 3px 4px;
  border-radius: 999px;
}

.topo-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topo-stat-item span {
  display: block;
  font-size: 0.73rem;
  color: #545e51;
}

.topo-stat-item strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #141a12;
}

.merchant-mini-card {
  background: rgba(255, 255, 255, 0.84);
  border-radius: 16px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.mm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #365314;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mm-info {
  flex: 1;
  min-width: 0;
}

.mm-info strong {
  display: block;
  font-size: 0.83rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-info span {
  font-size: 0.72rem;
  color: #4d7c0f;
}

.mm-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #eab308;
  font-size: 0.82rem;
}

.mm-rating b {
  color: #141a12;
}

.nutrition-block h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.seg-meter-row {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sm-ic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  color: #3f6212;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-meta {
  flex: 1;
}

.sm-meta strong {
  display: block;
  font-size: 0.78rem;
}

.sm-meta span {
  font-size: 0.7rem;
  color: #5b6458;
}

.sm-bars {
  display: flex;
  gap: 3px;
}

.sm-seg {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.09);
}

.agric-right-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* RAG AI CONCIERGE PANEL */
.rag-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  min-height: 540px;
}

.rag-sidebar h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.rag-sidebar p {
  font-size: 0.84rem;
  color: #4b5548;
  margin: 0 0 16px;
}

.rag-prompt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rag-chip {
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #ffffff;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e261c;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rag-chip:hover {
  background: #1c1b1b;
  color: #ffffff;
}

.rag-chat-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rag-messages {
  flex: 1;
  max-height: 440px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 6px;
  margin-bottom: 16px;
}

.msg-bubble {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.msg-bubble.ai {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #1c1b1b;
}

.msg-bubble.user {
  align-self: flex-end;
  background: #1c1b1b;
  color: #ffffff;
}

.rag-rec-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.rag-mini-prod {
  background: #f6f7f4;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 9px;
  display: flex;
  gap: 9px;
  align-items: center;
  cursor: pointer;
}

.rag-mini-prod img {
  width: 50px;
  height: 50px;
  border-radius: 9px;
  object-fit: cover;
}

.rag-mini-prod strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.25;
}

.rag-mini-prod span {
  font-size: 0.74rem;
  color: var(--ax-sage);
  font-weight: 700;
}

.rag-input-bar {
  display: flex;
  gap: 10px;
  background: #ffffff;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.rag-input-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
}

/* ==========================================================================
   WORKSPACE 4 & 5: SMART BARTER & MERCHANT STUDIO
   ========================================================================== */
.swap-studio-grid, .studio-2col {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: start;
}

.swap-builder-card, .studio-card, .auth-forms-card {
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: 22px;
  padding: 26px;
}

.swap-builder-card h3, .studio-card h3, .swap-feed-block h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ax-slate);
  margin: 12px 0 6px;
}

.axion-input, .axion-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--ax-line-strong);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--ax-ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.axion-input:focus, .axion-textarea:focus {
  border-color: var(--ax-ink);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.swap-target-preview {
  margin-top: 10px;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--ax-line);
}

.swap-target-preview img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.swap-fairness-box {
  margin: 18px 0;
  background: #ffffff;
  border: 1px solid rgba(74, 93, 70, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
}

.sf-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.sf-bar-bg {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.sf-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #84cc16 100%);
  border-radius: 999px;
  transition: width 0.35s var(--ease-out);
}

.swap-fairness-box p {
  margin: 0;
  font-size: 0.79rem;
  color: var(--ax-slate);
}

.swap-feed-col, .studio-side-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.swap-items-list, .swap-offers-feed, .compact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compact-item {
  background: #ffffff;
  border: 1px solid var(--ax-line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ci-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.ci-left img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.ci-left strong {
  display: block;
  font-size: 0.86rem;
}

.ci-left span {
  font-size: 0.76rem;
  color: var(--ax-muted);
}

/* Auth & Merchant Studio */
.auth-portal-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  align-items: center;
}

.auth-intro-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 14px;
}

.auth-perks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  background: #ffffff;
  padding: 5px;
  border-radius: 999px;
  margin-bottom: 18px;
  border: 1px solid var(--ax-line);
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--ax-ink);
  color: #ffffff;
}

.auth-form button[type="submit"] {
  margin-top: 18px;
}

.demo-merchant-hint {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ax-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ax-muted);
}

.link-btn {
  background: none;
  border: none;
  color: var(--ax-sage);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.merchant-banner {
  background: #1c1b1b;
  color: #ffffff;
  border-radius: 22px;
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

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

.mb-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ag-lime);
  color: #142200;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mb-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.pill-role, .pill-vip, .pill-ver {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.pill-role { background: rgba(255, 255, 255, 0.16); }
.pill-vip { background: #fbbf24; color: #1c1917; }
.pill-ver { background: #22c55e; color: #052e16; }

.merchant-banner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.merchant-banner p {
  margin: 2px 0 0;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.74);
}

.mb-actions {
  display: flex;
  gap: 8px;
}

.merchant-banner .btn-pill-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.studio-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.studio-card-head h3 {
  margin: 0;
}

.btn-ai-magic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #3f6212 0%, #65a30d 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(101, 163, 13, 0.28);
}

.upload-dropzone {
  background: #ffffff;
  border: 1.5px dashed rgba(28, 27, 27, 0.25);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.upload-dropzone:hover {
  border-color: var(--ax-sage);
}

.upload-dropzone img {
  max-height: 190px;
  border-radius: 12px;
  object-fit: cover;
}

.dz-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--ax-slate);
}

.dz-placeholder span:last-child {
  font-size: 0.76rem;
  color: var(--ax-muted);
}

#formCreateListing button[type="submit"] {
  margin-top: 18px;
}

/* ==========================================================================
   MODALS, CART DRAWER, FLOATING AI & FOOTER
   ========================================================================== */
.axion-footer {
  max-width: 1720px;
  width: min(1720px, calc(100vw - 28px));
  margin: 0 auto 36px;
  padding: 0;
}

.axion-footer-inner {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 30px 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.af-brand {
  max-width: 620px;
}

.af-brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.af-brand p {
  margin: 8px 0 10px;
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.55;
}

.af-coverage-meta {
  font-size: 0.78rem;
  color: #64748b;
  font-family: var(--font-mono);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.af-coverage-meta span {
  color: #cbd5e1;
}

.af-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.af-pill-link {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.af-pill-link:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.af-pill-link:active {
  transform: scale(0.96);
}

.af-link-ic {
  font-size: 0.95rem;
  line-height: 1;
}

.fab-ai-concierge {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 850;
  background: #1c1b1b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s var(--ease-out);
}

.fab-ai-concierge:hover {
  transform: translateY(-3px);
}

/* Product Modal & Slide-over Cart Drawer */
.modal-backdrop, .drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17, 17, 20, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.drawer-backdrop {
  justify-content: flex-end;
  padding: 0;
}

.modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ax-line);
  background: var(--ax-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#productModalCard > .modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.pm-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
}

.pm-img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 18px;
}

.cart-drawer {
  width: min(460px, 100vw);
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.2);
}

.drawer-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--ax-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-head h3 {
  margin: 0;
  font-family: var(--font-display);
}

.drawer-head span {
  font-size: 0.8rem;
  color: var(--ax-muted);
}

.drawer-body {
  padding: 20px 24px 30px;
  overflow-y: auto;
  flex: 1;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.cart-row {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--ax-surface);
  padding: 10px 12px;
  border-radius: 14px;
}

.cart-row img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.cr-info {
  flex: 1;
  min-width: 0;
}

.cr-info strong {
  display: block;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cr-qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--ax-line-strong);
  background: #ffffff;
  cursor: pointer;
}

.gps-input-group {
  display: flex;
  gap: 8px;
}

.btn-gps-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line-strong);
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

.checkout-totals {
  background: var(--ax-surface);
  border-radius: 14px;
  padding: 14px;
  margin: 16px 0;
  font-size: 0.86rem;
}

.tot-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tot-line.grand {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ax-line-strong);
  font-size: 1.02rem;
  font-weight: 800;
}

.order-success-box {
  text-align: center;
  background: var(--ax-surface);
  padding: 20px;
  border-radius: 18px;
}

.vietqr-img {
  max-width: 240px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--ax-line);
  margin: 12px auto;
  display: block;
}

/* Toasts */
.toast-stack {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  background: #18181b;
  color: #ffffff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  animation: viewReveal 0.25s ease;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1220px) {
  .ronas-panes {
    grid-template-columns: 270px 320px 1fr;
  }
  .agric-3col {
    grid-template-columns: 1fr;
  }
  .spatial-stage {
    min-height: 430px;
  }
}

@media (max-width: 980px) {
  .axion-sheet {
    padding: 26px 22px;
  }
  .axion-hero-grid, .axion-sec-head, .swap-studio-grid, .studio-2col, .auth-portal-grid, .rag-layout, .pm-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card, .bento-card.bento-wide {
    grid-column: span 6;
  }
  .ronas-cockpit {
    grid-template-columns: 1fr;
  }
  .ronas-rail {
    flex-direction: row;
    padding: 10px 16px;
    justify-content: space-between;
  }
  .ronas-rail-group {
    flex-direction: row;
  }
  .ronas-panes {
    grid-template-columns: 1fr;
  }
  .leaflet-dark-canvas {
    min-height: 440px;
  }
}

@media (max-width: 640px) {
  .top-shell-deck,
.top-shell-inner {
    border-radius: 18px;
    padding: 10px 12px;
  }
  .top-deck-upper {
    flex-wrap: wrap;
    gap: 8px;
  }
  .top-brand-group .brand-live-badge {
    display: none;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .pill-gps-modern {
    flex: 1;
    min-width: 0;
  }
  .header-gps-text {
    max-width: 110px;
  }
  .top-deck-lower {
    justify-content: flex-start;
  }
  .workspace-nav {
    width: 100%;
    justify-content: flex-start;
    padding: 3px;
    gap: 3px;
  }
  .ws-tab {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .why-grid, .form-row-2, .form-row-3, .inspection-capsules {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   QUẢN LÝ ĐỊA CHỈ 2 CẤP (34 TỈNH THÀNH) & BẢN ĐỒ GOOGLE / APPLE
   ========================================================================== */
.addr-modal-card {
  max-width: 980px !important;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  background: #ffffff;
  padding: 24px;
}

.addr-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ax-line);
  padding-bottom: 12px;
}

.addr-modal-head h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.addr-modal-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

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

/* Map Provider Toggle */
.map-provider-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  padding: 6px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.map-toggle-group {
  display: inline-flex;
  gap: 4px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 8px;
}

.btn-map-toggle {
  background: transparent;
  border: none;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  color: #475569;
  transition: all 0.16s ease;
}

.btn-map-toggle.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Interactive Map Box */
.addr-map-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ax-line);
  height: 280px;
  background: #f1f5f9;
}

.addr-map-canvas {
  width: 100%;
  height: 100%;
}

.addr-map-floating-bar {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  z-index: 500;
}

.btn-addr-locate {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

/* Autocomplete Container */
.autocomplete-wrap {
  position: relative;
}

.addr-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--ax-line);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
}

.ac-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.82rem;
  transition: background 0.15s ease;
}

.ac-item:hover {
  background: #f8fafc;
}

.ac-main {
  font-weight: 600;
  color: #0f172a;
}

.ac-sub {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

/* Legacy & Sáp nhập notification alert */
.addr-legacy-alert {
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.addr-preview-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 10px 0;
  font-size: 0.82rem;
  color: #334155;
}

.addr-preview-box strong {
  color: #0f172a;
  display: block;
  margin-bottom: 2px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Saved Addresses List */
.saved-addresses-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.addr-card-item {
  border: 1px solid var(--ax-line);
  border-radius: 12px;
  padding: 10px 14px;
  background: #ffffff;
  transition: border-color 0.18s ease;
}

.addr-card-item.is-default {
  border-color: #3b82f6;
  background: #f0f7ff;
}

.addr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.86rem;
}

.addr-provider-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  color: #475569;
}

.addr-full-text {
  font-size: 0.82rem;
  color: #1e293b;
  font-weight: 500;
  margin-bottom: 6px;
}

.addr-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.chip-2tier {
  font-size: 0.72rem;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.chip-legacy {
  font-size: 0.72rem;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.chip-coords {
  font-size: 0.72rem;
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.addr-card-actions {
  display: flex;
  gap: 8px;
}

.btn-addr-apply {
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-addr-apply:hover {
  background: #1e293b;
}

.btn-addr-del {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  cursor: pointer;
}

/* ==========================================================================
   SAAS SPLIT-SCREEN LAYOUT & AI MAGIC PASTE & SEARCHABLE COMBOBOX & LIVE JSON
   CYBER-LUXURY DESIGN WITH FULL WORKSPACE INTEGRATION
   ========================================================================== */

/* Enhanced Header GPS Delivery Capsule (Harmonized inside .gps-header-cluster) */
.gps-header-cluster:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.22);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
  flex-shrink: 0;
}

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

/* Integrated Checkout Delivery Card */
.checkout-delivery-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.checkout-delivery-card:hover {
  border-color: #94a3b8;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.checkout-delivery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.btn-change-delivery {
  background: #0f172a;
  color: #ffffff;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-change-delivery:hover {
  background: #334155;
}

.active-delivery-summary {
  margin-bottom: 8px;
}

.ads-address {
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 4px;
}

.ads-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.chip-eta {
  font-size: 0.72rem;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.checkout-saved-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}

.checkout-saved-pill {
  font-size: 0.72rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.checkout-saved-pill:hover, .checkout-saved-pill.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* ==========================================================================
   CYBER-LUXURY ADDRESS & ROUTING COMMAND CENTER MODAL
   ========================================================================== */
.addr-modal-card {
  max-width: 1260px !important;
  width: 96vw !important;
  height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 22px 26px !important;
  background: #090d16 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65) !important;
}

.addr-modal-head {
  flex-shrink: 0;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.addr-modal-head h3 {
  color: #ffffff !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.01em;
}

.addr-modal-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 22px;
  flex: 1;
  min-height: 0;
}

.addr-modal-left-col {
  overflow-y: auto;
  padding-right: 14px;
  height: 100%;
}

.addr-modal-left-col::-webkit-scrollbar {
  width: 6px;
}
.addr-modal-left-col::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 3px;
}

.addr-modal-right-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.addr-modal-right-col .addr-map-wrap {
  flex: 1;
  height: 100% !important;
  min-height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 960px) {
  .addr-modal-card {
    height: auto !important;
    max-height: 94vh !important;
    overflow-y: auto !important;
  }
  .addr-modal-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
  .addr-modal-left-col {
    overflow-y: visible;
    height: auto;
  }
  .addr-modal-right-col .addr-map-wrap {
    min-height: 320px;
    height: 320px !important;
  }
}

/* Map Header Controls */
.map-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(17, 24, 39, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 6px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.map-control-subgroup, .map-toggle-group {
  display: inline-flex;
  gap: 4px;
  background: #090d16 !important;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-map-toggle, .btn-layer-toggle {
  background: transparent;
  border: none;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  color: #94a3b8 !important;
  transition: all 0.16s ease;
}

.btn-map-toggle.active, .btn-layer-toggle.active {
  background: #1e293b !important;
  color: #38bdf8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.btn-addr-locate {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: none;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35) !important;
  transition: all 0.16s;
}

.btn-addr-locate:hover {
  background: #0369a1 !important;
  transform: translateY(-1px);
}

/* AI MAGIC PASTE BOX (OBSIDIAN GRADIENT) */
.ai-magic-card {
  background: linear-gradient(135deg, rgba(20, 26, 45, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.ai-magic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ai-magic-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #a5b4fc !important;
}

.ai-magic-sparkle {
  font-size: 1.05rem;
}

.ai-magic-textarea {
  width: 100%;
  border: 1px solid #334155 !important;
  background: #090d16 !important;
  color: #f8fafc !important;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-family: inherit;
  resize: vertical;
  min-height: 52px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}

.ai-magic-textarea:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25) !important;
}

/* Sample chips */
.sample-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}

.sample-chip-label {
  font-size: 0.72rem;
  color: #818cf8 !important;
  font-weight: 700;
  margin-right: 2px;
}

.sample-chip {
  background: rgba(99, 102, 241, 0.12) !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  color: #c7d2fe !important;
  font-size: 0.73rem;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sample-chip:hover {
  background: rgba(99, 102, 241, 0.28) !important;
  border-color: #818cf8 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.ai-magic-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.btn-magic-parse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.3) !important;
}

.btn-magic-parse:hover {
  background: linear-gradient(135deg, #4338ca 0%, #0891b2 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(6, 182, 212, 0.45) !important;
}

.btn-magic-parse:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ai-parse-feedback {
  font-size: 0.74rem;
  color: #94a3b8 !important;
}

/* DARK INPUTS & SEARCHABLE COMBOBOX */
.addr-modal-card .axion-input {
  background: #111827 !important;
  border: 1px solid #1f2937 !important;
  color: #f8fafc !important;
}

.addr-modal-card .axion-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18) !important;
}

.addr-modal-card .field-label {
  color: #cbd5e1 !important;
}

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

.combobox-control {
  display: flex;
  align-items: center;
  background: #111827 !important;
  border: 1px solid #1f2937 !important;
  border-radius: 10px;
  padding: 0 10px;
  transition: border-color 0.18s, box-shadow 0.18s;
  cursor: pointer;
}

.combobox-control:focus-within {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18) !important;
}

.combobox-control.is-disabled {
  background: #0b1120 !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.combobox-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 0;
  font-size: 0.84rem;
  color: #f8fafc !important;
  font-family: inherit;
  width: 100%;
}

.combobox-input::placeholder {
  color: #64748b !important;
}

.combobox-clear-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 14px;
  line-height: 1;
  border-radius: 50%;
  display: none;
}

.combobox-clear-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
}

.combobox-arrow {
  color: #64748b;
  font-size: 0.68rem;
  margin-left: 6px;
  transition: transform 0.18s ease;
  user-select: none;
}

.combobox-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111827 !important;
  border: 1px solid #374151 !important;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55) !important;
  z-index: 1200;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 4px;
  padding: 4px;
}

.combobox-item {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #e2e8f0 !important;
  transition: background 0.12s ease;
}

.combobox-item:hover, .combobox-item.is-focused {
  background: #1e293b !important;
}

.combobox-item.is-selected {
  background: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 600;
}

.combobox-item mark {
  background: rgba(56, 189, 248, 0.25) !important;
  color: #38bdf8 !important;
  border-radius: 2px;
  padding: 0 2px;
}

.combobox-badge {
  font-size: 0.7rem;
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #94a3b8 !important;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  white-space: nowrap;
}

.combobox-no-results {
  padding: 12px;
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
}

/* ALERTS & PREVIEWS IN MODAL */
.addr-legacy-alert {
  background: rgba(14, 165, 233, 0.1) !important;
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
  color: #38bdf8 !important;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.addr-preview-box {
  background: #111827 !important;
  border: 1px dashed #334155 !important;
  color: #cbd5e1 !important;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 10px 0;
  font-size: 0.82rem;
}

.addr-preview-box strong {
  color: #38bdf8 !important;
  display: block;
  margin-bottom: 2px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* SAVED ADDRESSES LIST */
.addr-modal-card .addr-card-item {
  background: #111827 !important;
  border: 1px solid #1f2937 !important;
  color: #f8fafc !important;
  border-radius: 12px;
  padding: 10px 14px;
  transition: border-color 0.18s ease;
}

.addr-modal-card .addr-card-item.is-default {
  border-color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.1) !important;
}

.addr-modal-card .addr-provider-pill {
  background: #1e293b !important;
  color: #94a3b8 !important;
}

.addr-modal-card .addr-full-text {
  color: #f1f5f9 !important;
}

/* LIVE JSON PAYLOAD CARD */
.live-json-card {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
}

.live-json-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 0.73rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

.btn-copy-json {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #334155;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-copy-json:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.live-json-code {
  background: transparent;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  max-height: 130px;
  overflow-y: auto;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}


/* CONFIG HUB MODAL STYLES */
.cfg-modal-card {
  max-width: 620px !important;
  width: 94vw;
  border-radius: 20px;
  background: #ffffff;
  padding: 24px;
}

.cfg-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.cfg-sec-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-pill.status-connected {
  background: #dcfce7;
  color: #166534;
}

.status-pill.status-demo {
  background: #fef3c7;
  color: #b45309;
}

.status-pill.status-local {
  background: #e0e7ff;
  color: #3730a3;
}

.cfg-info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

/* ==========================================================================
   CYBER-LUXURY UPGRADES (3D TILT, SPECULAR SHEEN, AUDIO HUD, VIETQR LIVE)
   ========================================================================== */

/* 1. Dynamic Cursor Light & 3D Specular Sheen on Product & Bento Cards */
.sector-card, .bento-card, .ins-route-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}

.sector-card::before, .bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(52, 211, 153, 0.09), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
}

.sector-card:hover::before, .bento-card:hover::before {
  opacity: 1;
}

.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.4);
}

/* 2. Interactive Ant-Path Pulse for Delivery Route */
@keyframes antPathPulse {
  0% { stroke-dashoffset: 40; }
  100% { stroke-dashoffset: 0; }
}

.leaflet-overlay-pane path.rn-route-animated {
  stroke-dasharray: 8, 12;
  animation: antPathPulse 1.2s linear infinite;
}

/* 3. Audio & Haptic Toggle Pill in Light Topbar */
.btn-sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line-strong);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ax-ink);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-sound-toggle:hover {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.btn-sound-toggle.is-muted {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

@media (max-width: 1420px) {
  .sr-only-compact {
    display: none;
  }
  .btn-sound-toggle {
    padding: 8px 11px;
  }
}

/* 4. VietQR Live Reconciler & Copy Buttons */
.vietqr-box {
  background: #0b0f19;
  border: 1.5px solid rgba(52, 211, 153, 0.25);
  border-radius: 18px;
  padding: 18px;
  margin: 14px 0;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.vietqr-img {
  max-width: 260px;
  width: 100%;
  border-radius: 12px;
  border: 3px solid #ffffff;
  margin: 12px auto;
  display: block;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.qr-copy-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-qr-copy {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}

.btn-qr-copy:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.qr-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--ax-emerald);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 12px;
}

.qr-live-status-pill.is-paid {
  background: #10b981;
  color: #062b1b;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ax-emerald);
  box-shadow: 0 0 10px var(--ax-emerald);
  animation: pulseDot 1.4s infinite ease-in-out;
}

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

/* 5. Spotlight Search Modal */
.spotlight-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 8, 14, 0.85);
  backdrop-filter: blur(14px);
  z-index: 2500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

.spotlight-card {
  width: 90vw;
  max-width: 640px;
  background: #11141e;
  border: 1.5px solid rgba(52, 211, 153, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(16, 185, 129, 0.15);
  overflow: hidden;
}

.spotlight-input-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
}

.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-family: inherit;
}

.spotlight-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  color: #e2e8f0;
  font-size: 0.88rem;
  transition: all 0.15s ease;
}

.spotlight-item:hover, .spotlight-item.active {
  background: rgba(52, 211, 153, 0.12);
  color: #ffffff;
}

.spotlight-foot {
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
}




/* ==========================================================================
   V4.0 ADVANCED MODULE STYLES: MAP COCKPIT, AI CV STUDIO & SWAP ARENA
   ========================================================================== */

/* 1. MAP COCKPIT ENHANCEMENTS */
.map-sync-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
}

.map-region-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #18181f;
  border: 1px solid #2b2b36;
  padding: 3px;
  border-radius: 999px;
}

.mrc-btn {
  background: transparent;
  border: none;
  color: #9494a8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.mrc-btn:hover, .mrc-btn.active {
  background: #282835;
  color: #ffffff;
}

.mrc-btn.active {
  background: var(--rn-violet);
  color: #12091c;
  font-weight: 700;
}

.ronas-panes {
  display: grid;
  grid-template-columns: 285px 365px 1fr;
  flex: 1;
  min-height: 700px;
  transition: all 0.28s var(--ease-out);
}

.ronas-panes.map-wide-mode {
  grid-template-columns: 350px 1fr;
}

.ronas-panes.map-wide-mode .ronas-list-pane {
  display: none;
}

.map-style-switcher {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 520;
  display: inline-flex;
  gap: 4px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.mss-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.mss-btn:hover {
  color: #ffffff;
}

.mss-btn.active {
  background: #38bdf8;
  color: #042f2e;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.45);
}

.map-pill-ctrl {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.map-pill-ctrl:hover {
  background: #ffffff;
  color: #0f172a;
}

/* Scientific Dark Radar CSS Filter applied only on Radar Mode */
.leaflet-radar-dark .leaflet-tile-pane {
  filter: invert(100%) hue-rotate(180deg) brightness(94%) contrast(92%) saturate(115%);
}

.rn-pin-cube.swap-pin {
  border-color: #c084fc;
  background: #2e1065;
  color: #e9d5ff;
}

.rn-pin-cube.swap-pin.selected {
  background: #a855f7;
  color: #ffffff;
  box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.35);
}

/* Turn-by-Turn Real OSRM Directions */
.ins-steps-box {
  background: #1a1a22;
  border: 1px solid #282835;
  border-radius: 14px;
  padding: 12px 14px;
  max-height: 180px;
  overflow-y: auto;
}

.ins-steps-box-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: #9494a8;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.ins-step-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.77rem;
  color: #d1d5db;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.ins-step-row:last-child {
  border-bottom: none;
}

.ins-step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--rn-violet);
  font-weight: 700;
  flex-shrink: 0;
}

/* 2. REAL OPTICAL CV & QUANTITATIVE STUDIO */
.agric-3col {
  display: grid;
  grid-template-columns: 360px 1fr 360px;
  gap: 22px;
  align-items: stretch;
}

.frost-mono-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  color: #1f2937;
}

.cv-palette-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 7px 11px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.cv-swatches {
  display: flex;
  gap: 5px;
  align-items: center;
}

.cv-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cv-entropy-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  color: #365314;
}

.quant-pillars-box {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 10px 0 14px;
}

.qp-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qp-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #374151;
}

.qp-head strong {
  font-family: var(--font-mono);
  color: #111827;
}

.qp-track {
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.qp-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s var(--ease-out);
}

.sobel-overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}

.btn-agric-rescan.active {
  background: #365314;
  color: #ffffff;
  border-color: #365314;
  box-shadow: 0 4px 14px rgba(54, 83, 20, 0.35);
}

.spatial-callout img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  flex-shrink: 0;
}

.spatial-callout strong {
  display: block;
  font-size: 0.82rem;
  color: #111827;
  line-height: 1.2;
}

.spatial-callout span {
  font-size: 0.72rem;
  color: #4b5563;
}

.quant-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.qsg-cell {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 9px 11px;
}

.qsg-cell span {
  display: block;
  font-size: 0.71rem;
  color: #64748b;
  margin-bottom: 2px;
}

.qsg-cell strong {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
}

.scan-origin-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.76rem;
  margin-bottom: 14px;
}

.scan-origin-strip code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0284c7;
}

/* 3. SYMMETRIC BARTER & SMART SWAP ARENA */
.swap-catalog-showcase {
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: 22px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.scs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.scs-header strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.scs-header span {
  font-size: 0.8rem;
  color: var(--ax-muted);
}

.scs-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scs-pill {
  background: #ffffff;
  border: 1px solid var(--ax-line);
  color: var(--ax-slate);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.scs-pill:hover, .scs-pill.active {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #ffffff;
}

.swap-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.swap-cat-card {
  background: #ffffff;
  border: 1.5px solid var(--ax-line);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
}

.swap-cat-card:hover {
  transform: translateY(-2px);
  border-color: #7c3aed;
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.12);
}

.swap-cat-card.active {
  border-color: #7c3aed;
  background: linear-gradient(145deg, #f5f3ff 0%, #ffffff 100%);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

.swap-cat-card img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.scc-body {
  flex: 1;
  min-width: 0;
}

.scc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.scc-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #6d28d9;
}

.scc-cond {
  font-size: 0.68rem;
  font-weight: 700;
  background: #f3e8ff;
  color: #7c3aed;
  padding: 2px 7px;
  border-radius: 999px;
}

.scc-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ax-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.scc-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.scc-want {
  font-size: 0.72rem;
  color: #581c87;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

/* 3-Column Symmetric VS Arena */
.swap-vs-arena {
  display: grid;
  grid-template-columns: 1fr 380px 1fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 34px;
}

.swap-side-card {
  background: #ffffff;
  border: 1.5px solid var(--ax-line-strong);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.swap-side-card.your-asset-card {
  border-color: rgba(14, 165, 233, 0.35);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 18%);
}

.swap-side-card.target-asset-card {
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 18%);
}

.ssc-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ssc-step-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #0284c7;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
}

.ssc-step-pill.target {
  background: #7c3aed;
}

.ssc-deprec-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  background: #fef3c7;
  color: #b45309;
  padding: 3px 8px;
  border-radius: 6px;
}

.swap-upload-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.swap-photo-box {
  width: 104px;
  height: 104px;
  border-radius: 16px;
  border: 2px dashed #94a3b8;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.swap-photo-box:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.swap-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sop-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #64748b;
  text-align: center;
  padding: 6px;
}

.sop-placeholder small {
  font-size: 0.68rem;
  font-weight: 600;
}

.swap-quick-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 6px;
}

.swap-quick-templates span {
  font-size: 0.7rem;
  color: var(--ax-muted);
}

.sqt-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.71rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sqt-chip:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.effective-val-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 9px 13px;
  margin: 10px 0 12px;
  font-size: 0.8rem;
  color: #166534;
}

.effective-val-banner strong {
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: #14532d;
}

/* Center Parity Console */
.swap-center-scale {
  background: linear-gradient(165deg, #18181f 0%, #111115 100%);
  border: 1.5px solid rgba(216, 150, 255, 0.35);
  border-radius: 24px;
  padding: 24px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.scs-emblem-badge {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--rn-violet);
  background: rgba(216, 150, 255, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  align-self: center;
}

.parity-scale-card {
  background: #202029;
  border: 1px solid #2f2f3e;
  border-radius: 16px;
  padding: 14px 16px;
}

.psc-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.psc-labels small {
  display: block;
  font-size: 0.7rem;
  color: #9494a8;
}

.psc-labels strong {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #ffffff;
}

.psc-vs-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--rn-violet);
  color: #150a1e;
  padding: 3px 9px;
  border-radius: 999px;
}

.psc-split-bar {
  height: 10px;
  background: #7c3aed;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.psc-left-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #34d399 100%);
  border-radius: 999px;
  transition: width 0.35s var(--ease-out);
}

.psc-delta-note {
  text-align: center;
  font-size: 0.74rem;
  color: #cbd5e1;
  margin-top: 8px;
}

.btn-auto-balance {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.81rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-auto-balance:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.sf-submetrics {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #9ca3af;
  margin: 6px 0 8px;
  padding: 4px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.sf-submetrics b {
  color: #ffffff;
}

.swap-target-preview-large {
  background: #f8fafc;
  border: 1px solid var(--ax-line);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 10px 0 14px;
}

.swap-target-preview-large img {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.swap-automatch-box {
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid var(--ax-line);
  border-radius: 14px;
  padding: 12px;
}

.sab-head {
  font-size: 0.78rem;
  color: var(--ax-ink);
  margin-bottom: 8px;
}

.sab-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sab-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--ax-line);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sab-item:hover {
  border-color: #7c3aed;
  background: #faf5ff;
}

.swap-orderbook-section {
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: 22px;
  padding: 22px 26px;
}

.swap-offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.swap-order-card {
  background: #ffffff;
  border: 1px solid var(--ax-line);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.soc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.soc-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #6d28d9;
}

.soc-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ax-ink);
}

.soc-sub {
  font-size: 0.75rem;
  color: var(--ax-slate);
  display: flex;
  justify-content: space-between;
}

/* 4. RESPONSIVE MEDIA QUERIES FOR WIDE 1720PX LAYOUT */
@media (max-width: 1460px) {
  .top-shell-deck,
.top-shell-inner {
    padding: 7px 12px 6px;
    gap: 6px;
  }
  .pill-gps-modern .header-gps-text {
    max-width: 150px;
  }
  .ronas-panes {
    grid-template-columns: 260px 320px 1fr;
  }
  .swap-vs-arena {
    grid-template-columns: 1fr 340px 1fr;
  }
}

@media (max-width: 1200px) {
  .hero-graphical-showcase {
    grid-template-columns: 1fr;
  }
  .axion-visual-banner {
    min-height: 420px;
  }
  .agric-3col {
    grid-template-columns: 1fr;
  }
  .swap-vs-arena {
    grid-template-columns: 1fr;
  }
  .ronas-panes {
    grid-template-columns: 1fr;
  }
  .ronas-panes.map-wide-mode {
    grid-template-columns: 1fr;
  }
  .ronas-panes.map-wide-mode .ronas-list-pane {
    display: flex;
  }
}

/* ==========================================================================
   5. MODERN UI CONTROLS & PRODUCT DETAIL MODAL UPGRADE
   ========================================================================== */

/* PRODUCT DETAIL EDITORIAL MODAL */
.modal-card {
  max-width: 860px !important;
  width: 92vw;
  background: #ffffff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.pm-hero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 820px) {
  .pm-hero-grid {
    grid-template-columns: 1fr;
  }
}

.pm-visual-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pm-img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.pm-big-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pm-img-frame:hover .pm-big-img {
  transform: scale(1.04);
}

.pm-badge-condition {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pm-badge-condition.cond-high {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}

.pm-badge-condition.cond-mid {
  background: rgba(245, 158, 11, 0.9);
  color: #ffffff;
}

.pm-badge-kind {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pm-badge-kind.kind-swap {
  background: rgba(124, 58, 237, 0.92);
  color: #ffffff;
}

.pm-badge-kind.kind-sell {
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
}

.pm-geo-trace {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ax-slate);
  background: var(--ax-surface);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--ax-line);
}

.pm-geo-trace svg {
  width: 16px;
  height: 16px;
  color: #ef4444;
  flex-shrink: 0;
}

.pm-info-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-category-pill {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ax-slate);
}

.pm-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ax-ink);
  line-height: 1.25;
}

.pm-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pm-price-big {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--ax-ink);
  letter-spacing: -0.02em;
}

.pm-spec-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ax-slate);
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
}

.pm-want-box {
  background: #fbf7ee;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.82rem;
}

.pm-want-box strong {
  display: block;
  color: #c2410c;
  margin-bottom: 2px;
}

.pm-want-box p {
  color: #7c2d12;
  margin: 0;
  font-weight: 600;
}

.pm-ai-dossier-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  padding: 10px 14px;
}

.pm-aid-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pm-aid-icon svg {
  width: 16px;
  height: 16px;
}

.pm-ai-dossier-pill strong {
  display: block;
  font-size: 0.82rem;
  color: #065f46;
}

.pm-ai-dossier-pill span {
  font-size: 0.75rem;
  color: #047857;
}

.pm-desc {
  font-size: 0.85rem;
  color: var(--ax-slate);
  line-height: 1.5;
  margin: 0;
}

.pm-merchant-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--ax-line);
}

.pm-merchant-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ax-ink);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.pm-merchant-row strong {
  display: block;
  font-size: 0.85rem;
  color: var(--ax-ink);
}

.pm-m-verified {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
}

.pm-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pm-actions-row .btn-pill-dark {
  flex: 1;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* CUSTOM RANGE SLIDER */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  outline: none;
  transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.65);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45);
  cursor: pointer;
}

/* CUSTOM CHECKBOX */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ax-line-strong);
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background: #10b981;
  border-color: #10b981;
}

input[type="checkbox"]:checked::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* CUSTOM SELECT */
select.axion-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 40px !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* AI MAGIC BUTTON PULSE */
.btn-ai-magic {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.btn-ai-magic:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.45);
}

.btn-ai-magic.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

/* RAIL BUTTONS */
.ronas-rail-group .rail-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ronas-rail-group .rail-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.ronas-rail-group .rail-btn.active {
  background: #0ea5e9;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.5);
}

/* AI STUDIO FOCUS MODE STRIP */
.scan-focus-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.focus-mode-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.focus-mode-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.focus-mode-btn.active {
  background: #10b981;
  color: #ffffff;
  border-color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   6. COMPREHENSIVE GRAPHICS, UI/UX, TYPOGRAPHY & MAP ENHANCEMENTS
   ========================================================================== */

/* GLOBAL TYPOGRAPHY REFINEMENT & TABULAR NUMBERS */
body, button, input, select, textarea {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  letter-spacing: -0.022em;
}

.pc-price,
.pm-price-big,
.rnd-foot,
.ins-stat-val,
.hvn-stat-val,
#lblSliderCashVal,
.stat-num,
.checkout-totals,
.spotlight-item-price,
.tele-big-num strong,
#ringScoreVal,
#scanCoordTag,
.ins-step-num,
#lblScaleLeftTotal,
#lblScaleRightTotal,
#lblScaleRatioPill,
#lblScaleDeltaNote,
.cart-sub-total,
.vqr-sum-amount {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv02", "cv03", "cv04", "cv11";
}

/* AMBIENT MESH GLOW ON STAGE */
.app-stage {
  position: relative;
  background: radial-gradient(circle at 8% 12%, rgba(124, 58, 237, 0.04) 0%, transparent 40%),
              radial-gradient(circle at 92% 35%, rgba(16, 185, 129, 0.035) 0%, transparent 42%),
              radial-gradient(circle at 50% 88%, rgba(56, 189, 248, 0.03) 0%, transparent 45%);
}

/* SLEEK PRODUCT CARD HOVER ELEVATION */
.product-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px -14px rgba(0, 0, 0, 0.14), 0 0 1px 1px rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.16);
}

.product-card .pc-media img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .pc-media img {
  transform: scale(1.05);
}

/* SMART SWAP TILTED BALANCE BEAM */
.psc-beam-graphic {
  position: relative;
  width: 100%;
  height: 60px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scale-base-pillar {
  position: absolute;
  bottom: 2px;
  width: 8px;
  height: 32px;
  background: linear-gradient(180deg, #94a3b8, #475569);
  border-radius: 4px;
}

.scale-base-pillar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 6px;
  background: #334155;
  border-radius: 999px;
}

.scale-beam {
  position: relative;
  width: 84%;
  height: 5px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
  z-index: 1;
}

.scale-beam.is-balanced {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.65);
}

.scale-pivot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  background: #ffffff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.scale-pan {
  position: absolute;
  top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scale-pan.pan-left { left: -8px; }
.scale-pan.pan-right { right: -8px; }

.pan-label {
  font-size: 0.62rem;
  font-weight: 700;
  background: #1e293b;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* SOBEL SENSITIVITY SLIDER */
.sobel-slider-control {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
}

.sobel-slider-control .ssc-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #94a3b8;
  margin-bottom: 5px;
}

.sobel-slider-control .ssc-head strong {
  color: #38bdf8;
  font-family: var(--font-mono);
}

/* VEHICLE STEERING & MANEUVER HOVER */
.rn-truck-body {
  transition: transform 0.25s linear;
}

.ins-step-row {
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ins-step-row:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  transform: translateX(4px);
}

/* PROMO VOUCHER WRAP IN CART */
.checkout-voucher-wrap {
  margin: 12px 0 16px;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: 14px;
  padding: 10px 14px;
}

.voucher-input-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.voucher-input-row input {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.promo-feedback {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.promo-feedback.is-valid {
  color: #059669;
}

.promo-feedback.is-invalid {
  color: #dc2626;
}

/* AI CERTIFICATE MODAL */
.ai-cert-card {
  max-width: 680px !important;
  background: #0f172a;
  color: #f8fafc;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 35px rgba(56, 189, 248, 0.15);
  padding: 32px;
}

.ai-cert-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acc-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.acc-title-block h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.acc-title-block p {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 2px 0 0;
}

.acc-seal {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.acc-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
}

.acc-thumb {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.acc-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acc-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.acc-metric-row span {
  color: #cbd5e1;
}

.acc-metric-row strong {
  color: #38bdf8;
  font-family: var(--font-mono);
}

.acc-hash-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.72rem;
  color: #64748b;
  word-break: break-all;
}

.acc-hash-box strong {
  display: block;
  color: #94a3b8;
  margin-bottom: 2px;
}

.acc-foot-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* VIETQR MODAL */
.vietqr-modal-card {
  max-width: 560px !important;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 28px 32px;
}

.vqr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.vqr-img-box {
  width: 260px;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.vqr-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vqr-details-table {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.vqr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

.vqr-row span {
  color: #64748b;
}

.vqr-copy-val {
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vqr-copy-val:hover {
  color: #2563eb;
}

.vqr-amount {
  font-size: 1.35rem;
  font-weight: 900;
  color: #059669;
}

.vqr-actions {
  display: flex;
  width: 100%;
  gap: 10px;
  margin-top: 6px;
}

/* HUB LEAFLET POPUP CUSTOM STYLING */
.leaflet-popup-content-wrapper {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
  padding: 4px 6px !important;
}

.leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.95) !important;
}

.hub-popup-card {
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hub-popup-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.hub-popup-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
}

.hub-popup-stats {
  font-size: 0.78rem;
  color: #94a3b8;
}

.hub-popup-btn {
  margin-top: 6px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hub-popup-btn:hover {
  background: #1d4ed8;
}

/* ==========================================================================
   6. ADMIN PORTAL SHORTCUT, API VAULT & SLOW-MOTION HOME EXPANSION
   ========================================================================== */

/* ==========================================================================
   BỘ CHỌN VỊ TRÍ ĐA DẠNG TRÊN HEADER (GPS, 34 TỈNH, GHIM BẢN ĐỒ)
   ========================================================================== */
.header-location-wrapper {
  position: relative;
}

.pill-gps-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.pill-gps-modern:hover {
  background: #1e293b;
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-1px);
}

.header-gps-text {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

.pill-gps-modern .gps-caret {
  font-size: 0.72rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.pill-gps-modern[aria-expanded="true"] .gps-caret {
  transform: rotate(180deg);
}

.location-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  animation: locPopoverIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.loc-popover-head {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.loc-popover-head strong {
  display: block;
  font-size: 0.92rem;
  color: #0f172a;
}

.loc-popover-head small {
  color: #64748b;
  font-size: 0.76rem;
}

.loc-pop-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  margin-bottom: 10px;
}

.loc-pop-option:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.loc-opt-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.loc-opt-info strong {
  display: block;
  font-size: 0.85rem;
  color: #0f172a;
}

.loc-opt-info p {
  margin: 0;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.3;
}

.loc-opt-arrow {
  margin-left: auto;
  color: #94a3b8;
  font-size: 0.85rem;
}

.loc-pop-section {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
}

.loc-pop-sec-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
}

.loc-quick-provinces-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.loc-prov-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.loc-prov-chip:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* NÚT GIỎ HÀNG HIỆN ĐẠI */
.btn-cart-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #059669;
  color: #ffffff;
  border: 1px solid #059669;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
  white-space: nowrap;
}

.btn-cart-modern:hover {
  background: #047857;
  border-color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
}

.btn-cart-modern .cart-btn-icon {
  font-size: 1rem;
}

.btn-cart-modern .cart-count-pill {
  background: #ffffff;
  color: #059669;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* BANNER BẢO CHỨNG TRONG GIỎ HÀNG */
.cart-escrow-trust-banner {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #047857;
  line-height: 1.45;
  margin-bottom: 16px;
}

.cart-empty-state {
  text-align: center;
  padding: 36px 16px;
}

.cart-empty-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.cart-empty-state h4 {
  font-size: 1.05rem;
  color: var(--ax-ink);
  margin-bottom: 6px;
}

.cart-empty-state p {
  font-size: 0.84rem;
  color: var(--ax-muted);
  max-width: 280px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.cart-quick-recomms {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.cart-recomm-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-recomm-chip:hover {
  background: #f0fdf4;
  border-color: #86efac;
}

/* ==========================================================================
   SLOW MOTION SCROLL-TRIGGERED REVEAL ANIMATIONS
   ========================================================================== */
.scroll-reveal-slow {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.js-scroll-anim .scroll-reveal-slow:not(.is-revealed) {
  opacity: 0;
  transform: translateY(32px);
}

html.js-scroll-anim .scroll-reveal-slow.scale-in:not(.is-revealed) {
  opacity: 0;
  transform: scale(0.96) translateY(24px);
}

.scroll-reveal-slow.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Stagger item delays for children */
.scroll-stagger-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.js-scroll-anim .scroll-reveal-slow:not(.is-revealed) .scroll-stagger-item {
  opacity: 0;
  transform: translateY(22px);
}

.scroll-reveal-slow.is-revealed .scroll-stagger-item {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.scroll-reveal-slow.is-revealed .scroll-stagger-item:nth-child(1) {
  transition-delay: 0.05s;
}

.scroll-reveal-slow.is-revealed .scroll-stagger-item:nth-child(2) {
  transition-delay: 0.12s;
}

.scroll-reveal-slow.is-revealed .scroll-stagger-item:nth-child(3) {
  transition-delay: 0.20s;
}

.scroll-reveal-slow.is-revealed .scroll-stagger-item:nth-child(4) {
  transition-delay: 0.28s;
}

/* ==========================================================================
   BỘ CÔNG CỤ TIỆN ÍCH THƯƠNG MẠI NHANH (TRADING QUICK SUITE)
   ========================================================================== */
.trading-quick-suite {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0 48px;
}

@media (max-width: 1300px) {
  .trading-quick-suite {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .trading-quick-suite {
    grid-template-columns: 1fr;
  }
}

.tqs-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tqs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
}

.tqs-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tqs-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.tqs-head h4 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.tqs-head p {
  margin: 2px 0 0;
  font-size: 0.74rem;
  color: #64748b;
}

.tqs-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tqs-input-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tqs-input-row label {
  font-size: 0.73rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tqs-input-row select,
.tqs-input-row input {
  width: 100%;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.84rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: var(--font-body);
}

.tqs-input-row select:focus,
.tqs-input-row input:focus {
  border-color: #2563eb;
  background: #ffffff;
}

.tqs-action-btn {
  width: 100%;
  padding: 10px 14px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.tqs-action-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.tqs-result-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.45;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.25s ease;
}

.tqs-result-box.has-result {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

/* ==========================================================================
   BẢNG CHỈ SỐ CUNG CẦU & GIÁ THEO 3 MIỀN (REGIONAL PRICE MATRIX)
   ========================================================================== */
.regional-matrix-section {
  margin: 48px 0;
}

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

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

.rm-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.rm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.rm-card-head h4 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: #0f172a;
}

.rm-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rm-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 3px solid #2563eb;
}

.rm-item-row.hot {
  border-left-color: #ef4444;
}

.rm-item-row.green {
  border-left-color: #10b981;
}

/* ==========================================================================
   QUY TRÌNH BẢO HIỂM GIAO THƯƠNG 4 BƯỚC (ESCROW ASSURANCE)
   ========================================================================== */
.escrow-assurance-section {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 32px;
  padding: 44px 36px;
  color: #ffffff;
  margin: 56px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25);
}

.eas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 1024px) {
  .eas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.eas-col {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
}

.eas-col:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
}

.eas-step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.05em;
}

.eas-col h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
}

.eas-col p {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}
