/* ==============================================================================
   FERRITAAS GLOBAL POLICY VIEWER (GPV) — STYLESHEET
   100% Client-Side In-RAM Firewall Policy & Global Traffic Flow Visualizer
   ============================================================================== */

/* Main Showcase Grid Viewport */
/* Main Showcase HUD Stage Viewport */
.showcase-view-policy {
  display: block;
  position: relative;
  min-height: 840px;
  width: 100%;
  box-sizing: border-box;
  animation: gpvFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: radial-gradient(circle at 50% 50%, rgba(14, 69, 92, 0.16), transparent 50%), #020d14;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  scroll-margin-top: 84px;
}

@media (max-width: 1120px) {
  .showcase-view-policy {
    min-height: 1080px;
  }
  .gpv-center-header {
    width: min(680px, 94%);
  }
  .gpv-mode-selector-bar {
    max-width: 100%;
    justify-content: center;
  }
  .gpv-sidebar, .gpv-right-panel {
    top: auto;
    bottom: 120px;
    width: calc(50% - 24px);
    max-height: 380px;
  }
  .gpv-sidebar {
    left: 16px;
  }
  .gpv-right-panel {
    right: 16px;
  }
  .gpv-center-bottom {
    width: calc(100% - 32px);
    bottom: 12px;
  }
  .gpv-map-legend {
    bottom: 148px;
  }
  .gpv-globe-controls {
    right: 16px;
    top: 16px;
    bottom: auto;
  }
}

@media (max-width: 720px) {
  .showcase-view-policy {
    min-height: 1460px;
  }
  .gpv-center-header {
    top: 12px;
    width: 94%;
  }
  .gpv-mode-selector-bar {
    width: 100%;
    overflow-x: auto;
  }
  .gpv-sidebar, .gpv-right-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    width: auto;
  }
  .gpv-sidebar {
    bottom: 540px;
    max-height: 320px;
  }
  .gpv-right-panel {
    bottom: 120px;
    max-height: 400px;
  }
  .gpv-center-bottom {
    width: calc(100% - 24px);
    bottom: 10px;
  }
  .gpv-timeline {
    padding: 6px 10px;
  }
  .gpv-kpi-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .gpv-map-legend {
    display: none;
  }
}

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

/* -----------------------------------------------------------------------------
   LEFT SIDEBAR: POLICY SOURCE, PRIVACY PROFILE, QUICK FILTERS, POLICY OBJECTS
   ----------------------------------------------------------------------------- */
.gpv-sidebar {
  position: absolute;
  left: 18px;
  top: 86px;
  width: 300px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.gpv-card, .gpv-hud-card {
  background: rgba(4, 15, 25, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), inset 0 0 12px rgba(56, 189, 248, 0.04);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gpv-card:hover, .gpv-hud-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.65), 0 0 16px rgba(56, 189, 248, 0.15);
}

.gpv-card-title {
  font: 700 11px ui-monospace, monospace;
  color: #fff;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gpv-card-title > span, .gpv-card-title > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.gpv-card-title i.fa-solid:not(.gpv-card-chevron) {
  color: var(--accent);
  font-size: 12px;
}

.gpv-card-chevron {
  color: rgba(56, 189, 248, 0.6);
  font-size: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.gpv-card-chevron:hover {
  color: var(--accent);
}

.gpv-card.collapsed > :not(.gpv-card-title) {
  display: none !important;
}

.gpv-card.collapsed {
  padding-bottom: 8px;
}

.gpv-card.collapsed .gpv-card-chevron {
  transform: rotate(-90deg);
}

.gpv-card-desc, .gpv-card-subhead {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0 0 10px;
}

/* Drop Box */
.gpv-dropzone-box {
  border: 1px dashed rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.03);
  border-radius: 8px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.gpv-dropzone-box:hover,
.gpv-dropzone-box.gpv-drag-active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.gpv-empty-hud-card.gpv-drag-active,
.gpv-map-wrapper.gpv-drag-active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.45) !important;
}

.gpv-dropzone-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 2px;
}

.gpv-dropzone-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
}

.gpv-dropzone-sub {
  font-size: 10px;
  color: var(--muted2);
}

/* ==============================================================================
   GPV SIDEBAR: LOADED CONFIGURATIONS QUEUE (SYNCHRONIZED WITH SCRUBBER)
   ============================================================================== */
.gpv-loaded-configs-box {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 9px;
  background: rgba(6, 18, 30, 0.75);
  transition: all 0.2s ease;
}

.gpv-loaded-configs-box:hover {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(8, 24, 40, 0.85);
}

.gpv-loaded-configs-box.drag-active {
  border-color: var(--accent) !important;
  background: rgba(56, 189, 248, 0.14) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3) !important;
}

.gpv-loaded-configs-box .scrubber-files-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.gpv-loaded-configs-box .scrubber-file-group {
  margin-top: 5px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 7px;
  background: rgba(4, 14, 24, 0.85);
  overflow: hidden;
}

.gpv-loaded-configs-box .scrubber-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 7px;
  background: rgba(10, 26, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.gpv-loaded-configs-box .scrubber-group-head:hover {
  background: rgba(18, 40, 62, 0.9);
}

.gpv-loaded-configs-box .scrubber-group-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  max-width: 140px;
}

.gpv-loaded-configs-box .scrubber-group-badge {
  font: 700 8px ui-monospace, monospace;
  padding: 1px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.gpv-loaded-configs-box .scrubber-group-body {
  padding: 3px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gpv-loaded-configs-box .scrubber-file-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto auto auto;
  gap: 3px;
  align-items: center;
  padding: 3px 6px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 5px;
  background: rgba(3, 10, 18, 0.7);
  font-size: 10px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.gpv-loaded-configs-box .scrubber-file-row:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.35);
}

.gpv-loaded-configs-box .scrubber-file-row.active {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.22);
}

.gpv-loaded-configs-box .file-name-btn {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  border: none;
  background: transparent;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  max-width: 110px;
}

.gpv-loaded-configs-box .file-size {
  font-size: 8.5px;
  color: var(--muted);
  white-space: nowrap;
}

.gpv-loaded-configs-box .file-state {
  padding: 1px 4px;
  border-radius: 3px;
  font: 700 7.5px ui-monospace, monospace;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.gpv-loaded-configs-box .file-state.sanitized {
  background: rgba(88, 226, 173, 0.2);
  color: var(--good);
}

.gpv-loaded-configs-box .scrubber-file-remove {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.gpv-loaded-configs-box .scrubber-file-remove:hover {
  color: var(--bad);
  border-color: var(--bad);
  background: rgba(255, 80, 80, 0.15);
}

.gpv-loaded-configs-box .scrubber-list-add-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 5px 8px;
  border: 1px dashed rgba(56, 189, 248, 0.3);
  border-radius: 5px;
  font-size: 9.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.gpv-loaded-configs-box .scrubber-list-add-zone:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(56, 189, 248, 0.08);
}

.gpv-parsed-status-link {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.gpv-parsed-status-link:hover {
  text-decoration: underline;
}

/* Privacy Profile Card */
.gpv-privacy-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.gpv-profile-badge {
  font: 700 9.5px ui-monospace, monospace;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
}

.gpv-profile-badge.unmasked {
  background: rgba(255, 94, 116, 0.15);
  color: var(--bad);
  border-color: rgba(255, 94, 116, 0.35);
}

.gpv-change-profile-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.gpv-change-profile-btn:hover {
  text-decoration: underline;
}

/* Quick Filters */
.gpv-filter-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: var(--text);
  font-size: 11.5px;
  cursor: pointer;
  margin-bottom: 5px;
  transition: all 0.15s ease;
}

.gpv-filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.gpv-filter-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.gpv-filter-tag {
  display: flex;
  align-items: center;
  gap: 7px;
}

.gpv-filter-count {
  font: 700 10.5px ui-monospace, monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 7px;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Policy Objects Breakdown */
.gpv-obj-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gpv-obj-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.gpv-obj-val {
  font: 700 11px ui-monospace, monospace;
  color: var(--text);
}

/* Quick Hints */
.gpv-hint-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.gpv-hint-num {
  font: 700 9.5px ui-monospace, monospace;
  width: 16px;
  height: 16px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* -----------------------------------------------------------------------------
   FLOATING HUD OVERLAYS: HEADER, FULL-BLEED MAP, TIMELINE, KPI TICKER
   ----------------------------------------------------------------------------- */
.gpv-center {
  display: contents;
}

/* Floating Center Top HUD: Title, View Controls & Operational Modes */
.gpv-center-header {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: min(530px, calc(100% - 680px));
  max-width: calc(100% - 680px);
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.gpv-center-header > * {
  pointer-events: auto;
}

.gpv-title-area h3 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.gpv-title-area p {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
}

/* Dual-State Privacy Investigation Bar (Pre-Scrub RAW vs Post-Scrub SANITIZED) */
.gpv-privacy-state-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  max-width: 100%;
  padding: 6px 12px;
  background: rgba(5, 14, 24, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55), 0 0 16px rgba(56, 189, 248, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.gpv-privacy-state-bar.sanitized {
  border-color: rgba(16, 185, 129, 0.38);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55), 0 0 16px rgba(16, 185, 129, 0.12);
}

.gpv-privacy-bar-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.gpv-privacy-badge-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.gpv-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  font: 800 10px/1.2 ui-monospace, monospace;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.gpv-privacy-badge.raw {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.gpv-privacy-badge.sanitized {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.gpv-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: gpvBadgePulse 2s infinite ease-in-out;
}

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

.gpv-privacy-state-desc {
  font-size: 10.5px;
  color: #94a3b8;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  letter-spacing: 0.01em;
}

/* Location Privacy 3-Step Slider / Segmented Control */
.gpv-location-privacy-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gpv-privacy-slider-label {
  font: 700 9px ui-monospace, monospace;
  letter-spacing: 0.05em;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.gpv-privacy-slider {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(2, 6, 12, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px;
}

.gpv-privacy-step {
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  user-select: none;
}

.gpv-privacy-step:hover:not(.is-locked) {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.gpv-privacy-step.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.gpv-privacy-step.active.sanitized {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.gpv-privacy-step.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
  color: #64748b;
  position: relative;
}

/* Action CTA Buttons */
.gpv-privacy-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gpv-privacy-action-btn {
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gpv-privacy-action-btn.sanitize {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.gpv-privacy-action-btn.sanitize:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.gpv-privacy-action-btn.view-raw {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.gpv-privacy-action-btn.view-raw:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.gpv-privacy-action-btn.diff {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.38);
}

.gpv-privacy-action-btn.diff:hover {
  background: rgba(56, 189, 248, 0.24);
  border-color: var(--accent);
  color: #fff;
}

.gpv-map-header-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gpv-select-policy-btn {
  background: rgba(6, 16, 27, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  color: #fff;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.gpv-select-policy-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  color: #fff;
}

.gpv-view-all-pill-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  color: var(--accent);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gpv-view-all-pill-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Full-Bleed Interactive World Globe & Map Viewport — Aerospace HUD Stage */
.gpv-map-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  display: block;
  z-index: 1;
  pointer-events: auto;
  touch-action: none !important;
  overscroll-behavior: none;
}

.gpv-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Animated Flight Arc */
.gpv-flow-arc {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 8 6;
  animation: gpvFlowPulse 1.8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8));
}

.gpv-flow-arc.denied {
  stroke: var(--bad);
  stroke-dasharray: 4 4;
  filter: drop-shadow(0 0 6px rgba(255, 94, 116, 0.8));
}

@keyframes gpvFlowPulse {
  to {
    stroke-dashoffset: -28;
  }
}

/* Dynamic Flow Midpoint Tag */
.gpv-map-flow-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(4, 12, 18, 0.92);
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 750 10.5px ui-monospace, monospace;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 10px rgba(56, 189, 248, 0.35);
  pointer-events: none;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gpv-map-flow-tag.denied {
  border-color: var(--bad);
  color: var(--bad);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 94, 116, 0.35);
}

/* Map Location Tooltip Badges */
.gpv-map-node-card {
  position: absolute;
  background: rgba(5, 15, 23, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75), 0 0 14px rgba(56, 189, 248, 0.2);
  z-index: 9;
  pointer-events: auto;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 140px;
}

.gpv-map-node-card.source {
  border-color: rgba(56, 189, 248, 0.6);
}

.gpv-map-node-card.destination {
  border-color: rgba(88, 226, 173, 0.6);
}

.gpv-node-title {
  font-weight: 750;
  font-size: 11.5px;
  color: var(--text);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gpv-node-sub {
  font: 700 10px ui-monospace, monospace;
  color: var(--muted);
  margin-bottom: 1px;
}

.gpv-node-extra {
  font-size: 9.5px;
  color: var(--muted2);
}

/* Map Legend */
.gpv-map-legend {
  position: absolute;
  bottom: 154px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(4, 15, 25, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 20px;
  padding: 5px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font: 600 10.5px ui-monospace, monospace;
  color: #e2f2fa;
  z-index: 22;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 10px rgba(56, 189, 248, 0.15);
  pointer-events: none;
}

.gpv-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gpv-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Floating Center Bottom HUD: Scrubber & KPI Bar */
.gpv-center-bottom {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  width: min(680px, calc(100% - 640px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.gpv-center-bottom > * {
  pointer-events: auto;
  width: 100%;
}

/* Map Replay Timeline Scrubber */
.gpv-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(3, 17, 25, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.gpv-timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 9px 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.gpv-timeline-badge i {
  color: #38bdf8;
  font-size: 9.5px;
}

.gpv-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  font-size: 11px;
}

.gpv-play-btn:hover {
  background: var(--accent);
  color: #01111a;
}

.gpv-time-slider-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gpv-time-code {
  font: 700 10.5px ui-monospace, monospace;
  color: var(--muted);
  flex-shrink: 0;
}

.gpv-slider {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  accent-color: var(--accent);
}

.gpv-replay-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.gpv-replay-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* Bottom KPI Bar */
.gpv-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  box-sizing: border-box;
}

.gpv-kpi-card {
  background: rgba(3, 17, 25, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.gpv-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.gpv-kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gpv-kpi-title {
  font: 700 9.5px ui-monospace, monospace;
  color: var(--muted2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gpv-kpi-val {
  font: 800 15px ui-monospace, monospace;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.gpv-kpi-sub {
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -----------------------------------------------------------------------------
   RIGHT PANEL: 3 DEDICATED FLOATING HUD CARDS
   ----------------------------------------------------------------------------- */
.gpv-right-panel {
  position: absolute;
  right: 18px;
  top: 86px;
  width: 315px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.gpv-summary-card {
  background: rgba(4, 15, 25, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.gpv-summary-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gpv-summary-header h4 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gpv-summary-header p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

/* Summary Fields List */
.gpv-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.gpv-detail-row {
  display: grid;
  grid-template-columns: 20px 105px 1fr;
  gap: 8px;
  align-items: flex-start;
  font-size: 11px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.gpv-detail-icon {
  color: var(--accent);
  font-size: 12px;
  margin-top: 2px;
}

.gpv-detail-label {
  color: var(--muted);
  font-weight: 500;
}

.gpv-detail-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.gpv-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  font: 750 10px ui-monospace, monospace;
}

.gpv-action-pill.allow {
  background: rgba(88, 226, 173, 0.15);
  color: var(--good);
  border: 1px solid rgba(88, 226, 173, 0.35);
}

.gpv-action-pill.deny {
  background: rgba(255, 94, 116, 0.15);
  color: var(--bad);
  border: 1px solid rgba(255, 94, 116, 0.35);
}

/* Notable Observations Box */
.gpv-obs-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
}

.gpv-obs-title {
  font: 700 10.5px ui-monospace, monospace;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gpv-obs-item {
  font-size: 10.5px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.gpv-obs-item i {
  color: var(--good);
  font-size: 11px;
  margin-top: 2px;
}

.gpv-obs-item.warning i {
  color: var(--bad);
}

/* Action Buttons at bottom of right panel */
.gpv-summary-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gpv-btn-primary {
  flex: 1;
  background: var(--accent);
  color: #01111a;
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  font-weight: 750;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.gpv-btn-primary:hover {
  background: #56cbff;
}

.gpv-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 10px;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s;
}

.gpv-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* -----------------------------------------------------------------------------
   POPUP / MODAL: SELECT FIREWALL POLICY (MOCKUP 4)
   ----------------------------------------------------------------------------- */
.gpv-selector-dropdown {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 94vw);
  background: rgba(6, 18, 28, 0.98);
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(56, 189, 248, 0.25);
  z-index: 100;
  padding: 14px;
  box-sizing: border-box;
  animation: gpvDropdownOpen 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
}

@keyframes gpvDropdownOpen {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.gpv-search-input-wrap {
  position: relative;
  margin-bottom: 10px;
}

.gpv-search-input-wrap i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
}

.gpv-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  padding: 7px 10px 7px 32px;
  font-size: 11.5px;
  outline: none;
  box-sizing: border-box;
}

.gpv-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.gpv-policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.gpv-policy-table th {
  text-align: left;
  padding: 6px 8px;
  font: 700 9.5px ui-monospace, monospace;
  color: var(--muted2);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}

.gpv-policy-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text);
  vertical-align: middle;
}

.gpv-policy-table tr.gpv-row-item {
  cursor: pointer;
  transition: background 0.12s;
}

.gpv-policy-table tr.gpv-row-item:hover {
  background: rgba(56, 189, 248, 0.08);
}

.gpv-policy-table tr.gpv-row-item.active {
  background: rgba(56, 189, 248, 0.16);
}

.gpv-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted2);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* -----------------------------------------------------------------------------
   DUAL-STATE SANITIZATION SAFE VIEW STYLES
   ----------------------------------------------------------------------------- */
.gpv-sanitized-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  font: 700 9px ui-monospace, monospace;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.gpv-sanitized-safe-card {
  border-color: rgba(16, 185, 129, 0.4) !important;
  background: rgba(4, 18, 24, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(16, 185, 129, 0.15) !important;
}

/* ==============================================================================
   PHASE 2: MULTI-SOURCE EVIDENCE, MODE SWITCHER & HIGH-DETAIL MAP STYLES
   ============================================================================== */

/* Mode Selector Bar (Policy Intent | Log Evidence | Live Telemetry | Combined) */
.gpv-mode-selector-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(3, 16, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  padding: 2px 4px;
  margin: 0;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.gpv-mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #94a3b8;
  font: 700 10.5px ui-monospace, monospace;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.gpv-mode-tab:hover {
  background: rgba(56, 189, 248, 0.08);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.25);
}

.gpv-mode-tab.active {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.gpv-tab-pill {
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.gpv-tab-pill.gold {
  background: rgba(255, 189, 89, 0.25);
  color: var(--warn);
  border-color: rgba(255, 189, 89, 0.35);
}

.gpv-mode-tab:disabled,
.gpv-mode-tab.disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: auto;
  background: transparent;
  color: #64748b;
  border-color: transparent;
  box-shadow: none;
}

.gpv-mode-tab:disabled:hover,
.gpv-mode-tab.disabled:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #64748b;
  border-color: rgba(255, 255, 255, 0.08);
}

.gpv-policy-intent-hud {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(3, 17, 25, 0.88);
}

.gpv-policy-intent-summary {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .gpv-policy-intent-summary span:nth-child(2) {
    display: none;
  }
}

.gpv-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
  animation: gpvLivePulse 1.4s infinite;
}

@keyframes gpvLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

/* Map Mode Switcher (Vector vs Google Maps) */
.gpv-map-header-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gpv-map-mode-toggle {
  display: flex;
  background: rgba(6, 16, 27, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.gpv-map-mode-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font: 600 11px ui-monospace, monospace;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.gpv-map-mode-btn.active {
  background: rgba(56, 189, 248, 0.22);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* 3D Spherical Globe Canvas — Full Viewport Background */
.gpv-globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  z-index: 1;
  cursor: grab;
  display: block;
}

.gpv-globe-canvas:active {
  cursor: grabbing;
}

/* Floating 3D Globe Navigation Controls (+ / - / Reset) */
.gpv-globe-controls {
  position: absolute;
  right: 340px;
  bottom: 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 24;
}

.gpv-globe-ctrl-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(6, 16, 27, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.gpv-globe-ctrl-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--accent);
  transform: scale(1.06);
}

/* -----------------------------------------------------------------------------
   LIGHT MODE STYLING (Mockup 3: Daytime Executive Presentation)
   ----------------------------------------------------------------------------- */
.gpv-map-wrapper.light-mode {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

.gpv-map-wrapper.light-mode .gpv-map-graticule line {
  stroke: rgba(148, 163, 184, 0.25) !important;
}

.gpv-map-wrapper.light-mode .gpv-map-land path {
  fill: #e2e8f0 !important;
  stroke: #94a3b8 !important;
  stroke-width: 0.9 !important;
  filter: none !important;
}

.gpv-map-wrapper.light-mode .gpv-map-boundary path {
  stroke: rgba(100, 116, 139, 0.35) !important;
}

.gpv-map-wrapper.light-mode .gpv-map-node-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

.gpv-map-wrapper.light-mode .gpv-node-title {
  color: #0f172a !important;
}

.gpv-map-wrapper.light-mode .gpv-node-sub {
  color: #0284c7 !important;
}

.gpv-map-wrapper.light-mode .gpv-node-extra {
  color: #64748b !important;
}

.gpv-map-wrapper.light-mode .gpv-map-flow-tag {
  background: #ffffff !important;
  border: 1px solid #0284c7 !important;
  color: #0369a1 !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.18) !important;
}

.gpv-map-wrapper.light-mode .gpv-map-legend {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

.gpv-map-wrapper.light-mode .gpv-empty-hud-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15) !important;
}

.gpv-map-wrapper.light-mode .gpv-empty-hud-card h4 {
  color: #0f172a !important;
}

.gpv-map-wrapper.light-mode .gpv-empty-hud-card p {
  color: #64748b !important;
}

/* High-Detail Vector Map Aesthetics */
.gpv-map-land {
  fill: #0c1626;
  stroke: rgba(56, 189, 248, 0.4);
  stroke-width: 0.85;
  filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.15));
}

.gpv-map-boundary {
  fill: none;
  stroke: rgba(56, 189, 248, 0.15);
  stroke-width: 0.55;
  stroke-dasharray: 2 3;
}

.gpv-map-graticule {
  fill: none;
  stroke: rgba(56, 189, 248, 0.05);
  stroke-width: 0.6;
}

.gpv-map-radar-sweep {
  transform-origin: 500px 240px;
  animation: gpvRadarSpin 24s linear infinite;
}

@keyframes gpvRadarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Dynamic Volumetric Flow Beam & Particles */
.gpv-volumetric-beam {
  fill: none;
  stroke-linecap: round;
  transition: stroke-width 0.4s ease, stroke 0.4s ease;
}

.gpv-volumetric-particle {
  fill: #fff;
  filter: drop-shadow(0 0 4px var(--accent));
}

.gpv-volumetric-particle.fast {
  filter: drop-shadow(0 0 6px var(--good));
}

/* Causal Packet Decision Pipeline in Right Panel */
.gpv-causal-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
}

.gpv-causal-title {
  font: 700 10.5px ui-monospace, monospace;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gpv-causal-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}

.gpv-causal-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.35;
  position: relative;
}

.gpv-causal-num {
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent);
  font: 700 9px ui-monospace, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.gpv-causal-text strong {
  color: var(--text);
  display: block;
  font-size: 10.5px;
  font-family: ui-monospace, monospace;
}

.gpv-causal-text span {
  color: var(--muted2);
  font-size: 9.5px;
}

/* -----------------------------------------------------------------------------
   AWAITING INGESTION / EMPTY STATE HUD OVERLAY
   ----------------------------------------------------------------------------- */
.gpv-empty-hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 15;
  pointer-events: none;
}

.gpv-empty-hud-card {
  max-width: 460px;
  background: rgba(6, 16, 27, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 24px 22px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 30px rgba(56, 189, 248, 0.1);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  animation: gpvFadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gpv-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.gpv-empty-hud-card h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.gpv-empty-hud-card p {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}

.gpv-empty-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

/* -----------------------------------------------------------------------------
   3D WEBGL NIGHT GLOBE CANVAS & HUD STATUS PILL
   ----------------------------------------------------------------------------- */
#gpvThreeGlobeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  touch-action: none !important;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
#gpvThreeGlobeCanvas:active {
  cursor: grabbing;
}
.showcase-view-policy.gpv-night-off #gpvThreeGlobeCanvas {
  filter: saturate(0.65) brightness(0.70);
}
.showcase-view-policy.gpv-flat-view #gpvThreeGlobeCanvas {
  display: none !important;
}

.gpv-three-status {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 10;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(2, 12, 19, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent);
  font: 700 10px ui-monospace, monospace;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gpv-three-status.ready {
  opacity: 0;
  visibility: hidden;
}

.gpv-night-live-pill {
  font-size: 8.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* -----------------------------------------------------------------------------
   FULLSCREEN NOC HUD MODE
   ----------------------------------------------------------------------------- */
.showcase-view-policy.gpv-fullscreen {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border: none !important;
  background: #010811 !important;
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
  -webkit-overflow-scrolling: touch;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.showcase-view-policy.gpv-fullscreen .gpv-map-wrapper {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: 100vh !important;
  height: 100dvh !important;
  border-radius: 0 !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}
.showcase-view-policy.gpv-fullscreen .gpv-exposure-bar {
  padding-right: 160px !important;
}
.showcase-view-policy.gpv-fullscreen .gpv-sidebar,
.showcase-view-policy.gpv-fullscreen .gpv-right-panel {
  top: 64px !important;
  max-height: calc(100vh - 82px) !important;
  max-height: calc(100dvh - 82px) !important;
  bottom: 18px !important;
}
.showcase-view-policy.gpv-fullscreen .gpv-center-bottom {
  bottom: 12px !important;
  width: min(840px, 62%) !important;
}
.showcase-view-policy.gpv-fullscreen .gpv-map-legend {
  bottom: 132px !important;
}
.showcase-view-policy.gpv-fullscreen .gpv-globe-controls {
  bottom: 130px !important;
  right: 348px !important;
  z-index: 35 !important;
}
@media (max-width: 1080px) {
  .showcase-view-policy.gpv-fullscreen .gpv-globe-controls {
    right: 18px !important;
    top: 74px !important;
    bottom: auto !important;
  }
}
body.gpv-overlay-open {
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

.gpv-fullscreen-close-pill {
  display: none;
}

.showcase-view-policy.gpv-fullscreen .gpv-fullscreen-close-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 8px;
  right: 18px;
  z-index: 50;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(6, 16, 27, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent);
  font: 600 11px/1 ui-monospace, monospace;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: all 0.15s ease;
}

.showcase-view-policy.gpv-fullscreen .gpv-fullscreen-close-pill:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.gpv-timeline-expand-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  flex-shrink: 0;
  transition: all 0.15s ease;
  padding: 0;
  margin-left: 2px;
}

.gpv-timeline-expand-btn:hover,
.gpv-timeline-expand-btn.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--accent);
  color: #fff;
}

#gpvFullscreenBtn.active {
  color: var(--accent) !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  background: rgba(56, 189, 248, 0.15) !important;
}

.showcase-view-policy.gpv-fullscreen .gpv-center-header {
  top: 64px !important;
  width: min(780px, calc(100% - 680px)) !important;
}

/* -----------------------------------------------------------------------------
   2D TACTICAL NATURAL EARTH SVG STYLES
   ----------------------------------------------------------------------------- */
#gpvMapSvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: none;
}
#gpvMapSvg.gpv-map-active {
  display: block !important;
}
#gpvMapSvg.gpv-map-hybrid {
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}
#gpvMapSvg.gpv-map-flat {
  opacity: 1 !important;
}
#gpvMapSvg .gpv2d-sphere {
  fill: rgba(2, 18, 27, 0.68);
  stroke: rgba(46, 203, 255, 0.18);
  stroke-width: 1.1;
}
#gpvMapSvg .gpv2d-land {
  fill: rgba(11, 34, 45, 0.80);
  stroke: rgba(58, 177, 212, 0.60);
  stroke-width: 0.55;
}
#gpvMapSvg .gpv2d-grid {
  fill: none;
  stroke: rgba(46, 203, 255, 0.14);
  stroke-width: 0.5;
  stroke-dasharray: 2 4;
}
#gpvMapSvg .gpv2d-route-glow {
  fill: none;
  stroke: rgba(56, 189, 248, 0.16);
  stroke-width: 3.2px;
  stroke-linecap: round;
}
#gpvMapSvg .gpv2d-route-glow.denied {
  stroke: rgba(244, 63, 94, 0.18);
}
#gpvMapSvg .gpv2d-route-main {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 1.35px;
  stroke-linecap: round;
}
#gpvMapSvg .gpv2d-route-main.denied {
  stroke: #f43f5e;
}
#gpvMapSvg .gpv2d-route-core {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.1px;
  stroke-linecap: round;
  stroke-dasharray: 4 10;
  animation: gpvDash 14s linear infinite;
}
#gpvMapSvg .gpv2d-route-core.denied {
  stroke: #fda4af;
}
#gpvMapSvg .gpv2d-pulse {
  fill: none;
  stroke-width: 1px;
  opacity: 0.7;
  transform-box: fill-box;
  transform-origin: center;
  animation: gpvPulse 2.6s ease-out infinite;
}
#gpvMapSvg .gpv2d-ring {
  fill: rgba(3, 14, 23, 0.9);
  stroke-width: 1.4px;
}
#gpvMapSvg .gpv2d-core {
  stroke: #ffffff;
  stroke-width: 0.8px;
}
#gpvMapSvg .gpv2d-center {
  fill: #ffffff;
}
#gpvMapSvg .gpv2d-beacon {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 0.75px;
  stroke-dasharray: 1.5 3;
}
#gpvMapSvg .gpv2d-label-bg {
  fill: rgba(3, 15, 24, 0.9);
  stroke-width: 0.75px;
  opacity: 0.92;
}
#gpvMapSvg .gpv2d-label {
  fill: #e0f2fe;
  font: 600 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.02em;
}
#gpvMapSvg .gpv2d-label-sub {
  fill: rgba(148, 163, 184, 0.9);
  font: 500 7.5px ui-monospace, SFMono-Regular, Menlo, monospace;
}
#gpvMapSvg .gpv2d-chevron {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 1.3px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#gpvMapSvg .gpv2d-chevron.denied {
  stroke: #f43f5e;
}
#gpvMapSvg .gpv2d-sanitized-badge text {
  fill: #38bdf8;
  font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
}
#gpvMapSvg .gpv2d-sanitized-badge rect {
  fill: rgba(3, 16, 26, 0.92);
  stroke: rgba(56, 189, 248, 0.4);
  rx: 5;
}

@keyframes gpvPulse {
  0% { transform: scale(0.72); opacity: 0.75; }
  70% { transform: scale(1.65); opacity: 0.08; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes gpvDash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -320; }
}

/* ==============================================================================
   INTERACTIVE SIDE-BY-SIDE PRIVACY DIFF MODAL (STEP 2)
   ============================================================================== */
.gpv-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(2, 8, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: gpvModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes gpvModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gpv-modal-card {
  width: min(1080px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #03111b;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.88), 0 0 32px rgba(56, 189, 248, 0.14);
  overflow: hidden;
  animation: gpvCardScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gpvCardScaleUp {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.gpv-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 24px 14px;
  background: rgba(5, 20, 32, 0.96);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  gap: 16px;
}

.gpv-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 800 10px/1 ui-monospace, monospace;
  color: #38bdf8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gpv-modal-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.gpv-modal-subtitle {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
  max-width: 820px;
}

.gpv-modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gpv-modal-close-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.45);
  color: #f43f5e;
}

.gpv-diff-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px 24px;
  background: rgba(2, 10, 18, 0.75);
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
}

.gpv-diff-kpi {
  background: rgba(6, 24, 38, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}

.gpv-diff-kpi-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gpv-diff-kpi-val {
  font: 800 16px/1.3 ui-monospace, monospace;
  margin: 2px 0;
}

.gpv-diff-kpi-val.amber { color: #fbbf24; }
.gpv-diff-kpi-val.emerald { color: #34d399; }
.gpv-diff-kpi-val.cyan { color: #38bdf8; }
.gpv-diff-kpi-val.green { color: #4ade80; }

.gpv-diff-kpi-sub {
  font-size: 9.5px;
  color: #94a3b8;
}

.gpv-diff-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(3, 14, 23, 0.92);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  gap: 12px;
  flex-wrap: wrap;
}

.gpv-diff-selector-label {
  font: 700 11px ui-monospace, monospace;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gpv-diff-select {
  background: #061926;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #f1f5f9;
  font: 600 11px Inter, system-ui, sans-serif;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

.gpv-diff-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.gpv-diff-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10.5px;
  color: #94a3b8;
}

.gpv-diff-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gpv-diff-legend .legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.gpv-diff-legend .legend-dot.raw { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.gpv-diff-legend .legend-dot.safe { background: #10b981; box-shadow: 0 0 6px #10b981; }

.gpv-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px 24px;
  overflow-y: auto;
  max-height: 48vh;
  box-sizing: border-box;
}

.gpv-diff-col {
  background: rgba(4, 18, 28, 0.75);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gpv-diff-col.raw-col {
  border-color: rgba(245, 158, 11, 0.32);
}

.gpv-diff-col.safe-col {
  border-color: rgba(16, 185, 129, 0.32);
}

.gpv-diff-col-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gpv-diff-col.raw-col .gpv-diff-col-header {
  background: rgba(245, 158, 11, 0.08);
}

.gpv-diff-col.safe-col .gpv-diff-col-header {
  background: rgba(16, 185, 129, 0.08);
}

.gpv-diff-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 800 10.5px ui-monospace, monospace;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
}

.gpv-diff-badge.raw {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.gpv-diff-badge.safe {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.gpv-diff-col-sub {
  font-size: 10px;
  color: #64748b;
  margin-left: 8px;
}

.gpv-diff-status-pill {
  font: 700 9.5px ui-monospace, monospace;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.gpv-diff-status-pill.raw {
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #f43f5e;
}

.gpv-diff-status-pill.safe {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.gpv-diff-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gpv-diff-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gpv-diff-section-title {
  font: 700 10px ui-monospace, monospace;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gpv-diff-entry {
  background: rgba(2, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
}

.gpv-diff-token {
  font: 700 11px ui-monospace, monospace;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}

.gpv-diff-token.raw-ip {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde047;
}

.gpv-diff-token.safe-token {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.gpv-diff-meta {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gpv-diff-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gpv-diff-meta-key {
  color: #64748b;
  font-size: 10px;
}

.gpv-diff-meta-val {
  color: #cbd5e1;
  font-weight: 500;
}

.gpv-diff-causal-chain {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gpv-diff-causal-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10.5px;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.gpv-diff-causal-idx {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 800 9px ui-monospace, monospace;
  flex-shrink: 0;
}

.raw-col .gpv-diff-causal-idx {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.safe-col .gpv-diff-causal-idx {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.gpv-diff-verdict-box {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 10.5px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gpv-diff-verdict-box.raw {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fde047;
}

.gpv-diff-verdict-box.safe {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.gpv-diff-attestation {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 24px;
  background: rgba(8, 28, 44, 0.85);
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.gpv-attestation-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.gpv-attestation-title {
  font: 700 11px ui-monospace, monospace;
  color: #e2e8f0;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.gpv-attestation-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.45;
}

.gpv-attestation-desc code {
  font-family: ui-monospace, monospace;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
}

.gpv-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(3, 14, 23, 0.96);
  gap: 12px;
}

.gpv-diff-btn {
  font: 700 11px ui-monospace, monospace;
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: none;
}

.gpv-diff-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
}

.gpv-diff-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.gpv-diff-btn.primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #fff;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.35);
}

.gpv-diff-btn.primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
}

.gpv-diff-btn.primary.sanitized {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.35);
}

@media (max-width: 768px) {
  .gpv-diff-summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .gpv-diff-grid {
    grid-template-columns: 1fr;
    max-height: 40vh;
  }
}

/* ==============================================================================
   INTERACTIVE HOVER IDENTIFICATION BUBBLE (ENDPOINTS & PATH INDICATORS)
   ============================================================================== */
.gpv-hover-bubble {
  position: absolute;
  z-index: 35;
  background: rgba(4, 15, 26, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
  width: 270px;
  max-width: 90vw;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #e2f2fa;
  pointer-events: auto;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate(-50%, -115%);
  animation: gpvBubblePop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gpvBubblePop {
  from { opacity: 0; transform: translate(-50%, -105%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -115%) scale(1); }
}

.gpv-hover-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(4, 15, 26, 0.95);
  border-right: 1px solid rgba(56, 189, 248, 0.45);
  border-bottom: 1px solid rgba(56, 189, 248, 0.45);
}

.gpv-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.gpv-bubble-badge {
  font: 800 9px ui-monospace, monospace;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gpv-bubble-badge.src {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.gpv-bubble-badge.dst {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.gpv-bubble-badge.drop {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.45);
  color: #f43f5e;
}

.gpv-bubble-badge.flow {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.gpv-bubble-state {
  font: 700 9px ui-monospace, monospace;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.gpv-bubble-state.allowed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.gpv-bubble-state.denied {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
}

.gpv-bubble-freeze {
  font: 700 8.5px ui-monospace, monospace;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.gpv-bubble-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.gpv-bubble-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 11px;
}

.gpv-bubble-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.gpv-bubble-key {
  color: #94a3b8;
  font: 500 10px ui-monospace, monospace;
}

.gpv-bubble-val {
  color: #f1f5f9;
  font: 600 10.5px ui-monospace, monospace;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}

.gpv-bubble-footer {
  margin-top: 6px;
  display: flex;
}

.gpv-bubble-btn {
  width: 100%;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(6, 182, 212, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 6px;
  color: #38bdf8;
  font: 700 11px ui-monospace, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gpv-bubble-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.38), rgba(6, 182, 212, 0.24));
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

/* ==============================================================================
   INTERACTIVE ELEMENT & POLICY DETAILS POPUP MODAL
   ============================================================================== */
.gpv-details-card {
  width: min(920px, 94vw);
}

.gpv-details-body {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: 65vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gpv-details-section {
  background: rgba(2, 10, 18, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
}

.gpv-details-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gpv-details-sec-title {
  font: 700 11px ui-monospace, monospace;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gpv-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.gpv-details-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gpv-details-field-label {
  font: 500 10px ui-monospace, monospace;
  color: #64748b;
  text-transform: uppercase;
}

.gpv-details-field-value {
  font: 600 12px ui-monospace, monospace;
  color: #f1f5f9;
  word-break: break-all;
}

.gpv-details-code {
  background: #02080d;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  padding: 12px 14px;
  font: 500 11.5px/1.5 ui-monospace, monospace;
  color: #38bdf8;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 0;
}

.gpv-details-footer-left {
  font: 500 11px ui-monospace, monospace;
  color: #94a3b8;
  display: flex;
  align-items: center;
}

/* ==============================================================================
   GPV EXPOSURE ASSESSMENT HEADER & ACTION SUITE
   ============================================================================== */
.gpv-exposure-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 16px;
  background: rgba(3, 14, 24, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.28);
  position: relative;
  z-index: 35;
  box-sizing: border-box;
  flex-wrap: wrap;
  min-height: 48px;
}

.gpv-exposure-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gpv-exposure-pill {
  font: 800 10px ui-monospace, monospace;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.gpv-exposure-pill.critical {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.28);
}

.gpv-exposure-pill.warn {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.28);
}

.gpv-exposure-pill.secure {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.28);
}

.gpv-exposure-subtitle {
  font: 500 11px ui-monospace, monospace;
  color: #94a3b8;
}

.gpv-exposure-stats {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gpv-exp-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gpv-exp-label {
  font: 700 8.5px ui-monospace, monospace;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gpv-exp-stat strong {
  font: 700 11px ui-monospace, monospace;
  color: #f8fafc;
}

.gpv-exposure-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gpv-exposure-actions .btn {
  padding: 4px 10px;
  font-size: 10.5px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

/* Adjust stage overlays when top exposure bar is present */
.showcase-view-policy {
  min-height: 920px;
}

.showcase-view-policy .gpv-center-header {
  top: 104px;
}

.showcase-view-policy .gpv-sidebar,
.showcase-view-policy .gpv-right-panel {
  top: 104px;
}

@media (max-width: 1120px) {
  .gpv-exposure-bar {
    padding: 8px 12px;
  }
  .gpv-exposure-stats {
    gap: 8px;
  }
  .showcase-view-policy .gpv-center-header {
    top: 120px;
  }
  .showcase-view-policy .gpv-sidebar,
  .showcase-view-policy .gpv-right-panel {
    top: 120px;
  }
}

@media (max-width: 768px) {
  .gpv-exposure-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }
  .showcase-view-policy .gpv-center-header {
    top: 150px;
  }
  .showcase-view-policy .gpv-sidebar,
  .showcase-view-policy .gpv-right-panel {
    top: 360px;
  }
}

