/**
 * Move the Money Across Africa
 * Interactive SVG Map Styling
 */

.map-container-root {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.africa-svg-root {
  width: 100%;
  height: 100%;
  max-width: 900px;
  max-height: 900px;
  overflow: visible;
}

/* Continent realistic landmass & atmospheric glow */
.map-countries-glow {
  fill: #DD5A20;
  opacity: 0.14;
  filter: blur(14px);
  pointer-events: none !important;
}

.map-country-glow {
  fill: #DD5A20;
  stroke: #DD5A20;
  stroke-width: 4;
}

.map-countries {
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.75));
}

.map-country {
  fill: #161225;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.75;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: fill 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  cursor: pointer;
}

.map-country:hover {
  fill: #221a36;
  stroke: rgba(232, 89, 51, 0.45);
}

.map-country.highlighted {
  fill: rgba(232, 89, 51, 0.28) !important;
  stroke: var(--starks-orange) !important;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 10px rgba(232, 89, 51, 0.5));
}

.map-continent-glow {
  fill: none;
  stroke: rgba(232, 89, 51, 0.16);
  stroke-width: 8;
  filter: blur(8px);
  pointer-events: none !important;
}

.map-continent {
  fill: url(#africa-gradient);
  stroke: #3c3354;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 14px 35px rgba(0, 0, 0, 0.7));
  transition: all 0.3s ease;
}

.map-grid-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1.2;
  stroke-dasharray: 4, 8;
  pointer-events: none !important;
}

/* City Nodes */
.city-node {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.node-dot {
  fill: #8b829c;
  transition: all 0.3s ease;
}

.city-hub .hub-dot {
  fill: var(--starks-orange);
}

.pulse-ring {
  fill: none;
  stroke: var(--starks-orange);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulseBeacon 2.2s infinite ease-out;
}

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

.city-label {
  fill: #736b85;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.city-node.highlighted .node-dot {
  fill: #00d2ff;
  r: 8;
  filter: drop-shadow(0 0 6px #00d2ff);
}

.city-node.highlighted .city-label {
  fill: #ffffff;
  font-weight: 700;
}

.city-node.pulsing-red .node-dot {
  fill: #ef4444;
  r: 9;
  animation: alertPulse 0.9s infinite alternate;
}

@keyframes alertPulse {
  from { r: 6; filter: drop-shadow(0 0 4px #ef4444); }
  to { r: 11; filter: drop-shadow(0 0 14px #ef4444); }
}

/* Attract Screen Looping Arcs */
.attract-track {
  fill: none;
  stroke: rgba(232, 89, 51, 0.12);
  stroke-width: 1.5;
  stroke-dasharray: 4, 4;
}

/* World Map Styling (The Old Way Detour Mode) */
.map-world-countries {
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.7));
}

.world-country {
  fill: #151122;
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 0.55;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.world-country:hover {
  fill: #221a36;
  stroke: rgba(232, 89, 51, 0.3);
}

.world-city-pill {
  fill: rgba(14, 11, 23, 0.92);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 0.8;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

.world-city-label {
  font-size: 6.2px !important;
  font-weight: 700 !important;
  fill: #e6e2f0 !important;
  pointer-events: none;
}

/* In World Mode: Only show city labels for cities active in the simulation to keep the map clean */
.mode-world .city-label-group {
  display: none;
}

.mode-world .city-node.highlighted .city-label-group,
.mode-world .city-node.destination .city-label-group,
.mode-world .city-node.selected .city-label-group,
.mode-world .city-node.pulsing-red .city-label-group {
  display: block;
}

.mode-world .city-node.highlighted .world-city-pill {
  stroke: rgba(0, 210, 255, 0.75);
  fill: rgba(8, 22, 34, 0.94);
}

.mode-world .city-node.destination .world-city-pill,
.mode-world .city-node.selected .world-city-pill {
  stroke: rgba(232, 89, 51, 0.75);
  fill: rgba(28, 14, 12, 0.94);
}

.mode-world .city-node.pulsing-red .world-city-pill {
  stroke: rgba(239, 68, 68, 0.85);
  fill: rgba(30, 10, 12, 0.94);
}

.mode-world .city-node.highlighted .node-dot {
  fill: #00d2ff;
  r: 3.5;
  filter: drop-shadow(0 0 4px #00d2ff);
}

.mode-world .city-node.destination .node-dot,
.mode-world .city-node.selected .node-dot {
  fill: #DD5A20;
  r: 3.5;
  filter: drop-shadow(0 0 4px #DD5A20);
}

.mode-world .city-node.pulsing-red .node-dot {
  fill: #ef4444;
  r: 4.2;
}

/* World Mode Proportional Detour Typography & Badges */
.mode-world .detour-label {
  font-size: 6.2px !important;
  font-weight: 700 !important;
}

.mode-world .detour-callout-text {
  font-size: 6.2px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

.mode-world .detour-callout-bg {
  stroke-width: 0.85px;
}

/* External Neighboring Continents */
.map-external-country {
  fill: #100d1a;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.65;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.continent-tag {
  fill: #544b6c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  pointer-events: none;
}

/* Detour Arcs (The Old Way) */
.detour-bank-node {
  cursor: default;
}

.bank-pill-bg {
  fill: rgba(20, 15, 30, 0.92);
  stroke: rgba(239, 68, 68, 0.6);
  stroke-width: 1.2;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.detour-label {
  fill: #ef4444;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pulse-detour {
  stroke: #ef4444;
}

.detour-arc-track {
  fill: none;
  stroke: rgba(239, 68, 68, 0.2);
  stroke-width: 2.5;
  stroke-dasharray: 4, 4;
}

.detour-arc-dash {
  fill: none;
  stroke: #ef4444;
  stroke-width: 2.5;
  stroke-dasharray: 10, 8;
  animation: detourFlow 1.2s linear infinite;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.6));
}

.detour-arc-comet {
  filter: drop-shadow(0 0 8px #ef4444);
}

@keyframes detourFlow {
  from { stroke-dashoffset: 36; }
  to { stroke-dashoffset: 0; }
}

/* Detour Callout Badges (Smooth, Generous, Never Truncated) */
.detour-callout {
  pointer-events: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.8));
}

.detour-callout-bg {
  fill: rgba(22, 17, 34, 0.96);
  stroke: rgba(239, 68, 68, 0.65);
  stroke-width: 1.4;
  backdrop-filter: blur(8px);
}

.detour-callout-bg.alert {
  fill: rgba(36, 14, 22, 0.96);
  stroke: #ef4444;
}

.detour-callout-text {
  fill: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  dominant-baseline: central;
}

.detour-callout-text.alert {
  fill: #ff6b6b;
  font-weight: 800;
}

/* Mini-Game Target Bubbles */
.game-target-wrapper {
  pointer-events: auto !important;
  cursor: pointer;
}

.game-target-bubble {
  cursor: pointer;
  pointer-events: auto !important;
  transform-box: fill-box;
  transform-origin: center;
}

.target-rect {
  fill: #191524;
  stroke: #3b3250;
  stroke-width: 1.5;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5));
}

.target-rect.drop-hover {
  stroke: #00d2ff;
  fill: #1e1b30;
  filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.6));
}

.target-cur-pill {
  fill: #2c253d;
}

.target-cur-code {
  fill: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.target-amt-text {
  fill: #00d2ff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.game-target-wrapper.target-settled-anim .game-target-bubble,
.game-target-bubble.target-settled-anim {
  animation: settlePulse 0.4s ease-out forwards;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes settlePulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 10px #10b981); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 20px #10b981); }
  100% { transform: scale(0.9); opacity: 0; }
}

/* Target Countdown Progress Ring (8-Second Lifetime) */
.target-ring-track {
  fill: rgba(19, 16, 27, 0.85);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2.5px;
}

.target-ring-fill {
  fill: none;
  stroke: #10b981;
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-dasharray: 101;
  stroke-dashoffset: 0;
  animation: targetRingCountdown 8s linear forwards;
}

@keyframes targetRingCountdown {
  0% {
    stroke-dashoffset: 0;
    stroke: #10b981;
  }
  60% {
    stroke-dashoffset: 60;
    stroke: #f59e0b;
  }
  85% {
    stroke-dashoffset: 85;
    stroke: #ef4444;
  }
  100% {
    stroke-dashoffset: 101;
    stroke: #ef4444;
  }
}

.target-ring-icon {
  font-size: 11px;
  font-weight: 800;
  fill: #ffffff;
  pointer-events: none;
}

.game-target-wrapper.target-expired-anim .game-target-bubble,
.game-target-bubble.target-expired-anim {
  animation: targetExpiredFade 0.3s ease-out forwards;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
}

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

.target-selected .target-rect,
.target-rect.target-selected-rect {
  stroke: #00d2ff !important;
  stroke-width: 3.5px !important;
  fill: #1f1a30 !important;
  filter: drop-shadow(0 0 14px #00d2ff) !important;
  animation: targetSelectedPulse 0.9s infinite alternate ease-in-out !important;
}

@keyframes targetSelectedPulse {
  0% {
    stroke: #00d2ff;
    stroke-width: 3px;
    filter: drop-shadow(0 0 6px #00d2ff);
  }
  100% {
    stroke: #38bdf8;
    stroke-width: 4.5px;
    filter: drop-shadow(0 0 16px #00d2ff);
  }
}

.game-target-wrapper.target-error-anim .game-target-bubble,
.game-target-bubble.target-error-anim {
  animation: errorShake 0.4s ease-in-out;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* Floating Points Feedback */
.floating-score-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  animation: floatUpFade 0.8s ease-out forwards;
  pointer-events: none;
}

@keyframes floatUpFade {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-35px); }
}

/* Ensure interactive SVG layer receives clicks and overlays pass through */
.layer-interactive,
.rail-break-badge,
.rail-hit-area,
.game-target-wrapper,
.game-target-bubble,
.route-map-badge {
  pointer-events: auto !important;
}

.layer-overlay,
.streaming-packet,
.layer-routes,
.layer-arcs,
.layer-grid,
.layer-continent {
  pointer-events: none !important;
}

/* =========================================================================
   MOBILE RESPONSIVE MAP & CORRIDOR POSITIONING
   ========================================================================= */

@media screen and (max-width: 768px) {
  .map-container-root {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 38vh !important;
    min-height: 180px !important;
    max-height: 40vh !important;
    z-index: 15 !important;
    overflow: hidden !important;
  }

  #app-viewport.state-attract .map-container-root {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 38vh !important;
    min-height: 220px !important;
    max-height: 40vh !important;
    opacity: 1 !important;
    display: flex !important;
  }

  #app-viewport.state-watch_old_way .map-container-root {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 32vh !important;
    min-height: 180px !important;
    max-height: 230px !important;
  }

  #app-viewport.state-mini_game .map-container-root {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 38vh !important;
  }

  /* Stage 1 (Nana): Taller prominent map view filling space between top headers and bottom coins dock */
  #app-viewport.screen-stage_1 .map-container-root {
    position: absolute !important;
    top: 122px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(100dvh - 122px - 142px) !important;
    min-height: clamp(180px, 36vh, 360px) !important;
    max-height: calc(100dvh - 250px) !important;
    z-index: 15 !important;
    display: flex !important;
    overflow: visible !important;
  }

  #app-viewport.state-select_payment .map-container-root,
  #app-viewport.state-meet_player .map-container-root,
  #app-viewport.state-results .map-container-root,
  #app-viewport.state-executive_results .map-container-root,
  #app-viewport.state-final_stand .map-container-root {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0.08 !important;
    pointer-events: none !important;
  }

  .africa-svg-root {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    touch-action: manipulation !important;
  }

  .city-label {
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  .target-rect {
    touch-action: manipulation;
  }

  .target-pulse-hit-area {
    fill: rgba(221, 90, 32, 0.25);
    stroke: var(--starks-orange);
    stroke-width: 2px;
    cursor: pointer;
    pointer-events: auto !important;
    transform-origin: center;
    transform-box: fill-box;
    animation: targetPulseRing 1.3s infinite ease-out;
  }

  @keyframes targetPulseRing {
    0% { r: 18; opacity: 1; stroke-width: 3px; }
    100% { r: 42; opacity: 0; stroke-width: 1px; }
  }
}

/* =========================================================================
   TABLET RESPONSIVE MAP (768px - 1023px)
   ========================================================================= */

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .map-container-root {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 40vh !important;
    min-height: 260px !important;
    max-height: 44vh !important;
    z-index: 15 !important;
    overflow: hidden !important;
  }

  #app-viewport.state-attract .map-container-root {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 40vh !important;
    min-height: 260px !important;
    max-height: 44vh !important;
    opacity: 1 !important;
    display: flex !important;
  }

  #app-viewport.state-watch_old_way .map-container-root,
  #app-viewport.state-mini_game .map-container-root,
  #app-viewport.screen-stage_2 .map-container-root,
  #app-viewport[class*="screen-stage_2"] .map-container-root,
  #app-viewport.screen-stage_3 .map-container-root,
  #app-viewport[class*="screen-stage_3"] .map-container-root {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 44vh !important;
    min-height: 280px !important;
  }

  /* Stage 1 (Nana): Prominent interactive map view on tablet */
  #app-viewport.screen-stage_1 .map-container-root,
  #app-viewport[class*="screen-stage_1"] .map-container-root {
    position: absolute !important;
    top: 140px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(100dvh - 140px - 170px) !important;
    min-height: 400px !important;
    z-index: 25 !important;
    display: flex !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  #app-viewport.state-select_payment .map-container-root,
  #app-viewport.state-meet_player .map-container-root,
  #app-viewport.state-results .map-container-root,
  #app-viewport.state-executive_results .map-container-root,
  #app-viewport.state-final_stand .map-container-root {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0.08 !important;
    pointer-events: none !important;
  }

  .africa-svg-root {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    touch-action: manipulation !important;
  }

  .city-label {
    font-size: 14px !important;
    font-weight: 700 !important;
  }
}

/* =========================================================================
   DESKTOP PROGRESSIVE ENHANCEMENT MAP (min-width: 1024px)
   ========================================================================= */

@media screen and (min-width: 1024px) {
  #app-viewport.state-watch_old_way .map-container-root,
  #app-viewport.screen-stage_1 .map-container-root,
  #app-viewport[class*="screen-stage_1"] .map-container-root,
  #app-viewport.screen-stage_2 .map-container-root,
  #app-viewport[class*="screen-stage_2"] .map-container-root,
  #app-viewport.screen-stage_3 .map-container-root,
  #app-viewport[class*="screen-stage_3"] .map-container-root {
    left: 0 !important;
    right: auto !important;
    width: 52% !important;
    height: 100% !important;
    top: 0 !important;
    bottom: 0 !important;
    opacity: 1 !important;
    z-index: 15 !important;
    pointer-events: auto !important;
    display: flex !important;
  }

  /* Attract Mode Desktop Map: Positioned on the Right Side */
  #app-viewport.state-attract .map-container-root,
  #app-viewport.screen-attract .map-container-root {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 45% !important;
    right: 20px !important;
    width: 55% !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 15 !important;
    pointer-events: auto !important;
    overflow: hidden !important;
  }

  #app-viewport.state-attract .africa-svg-root,
  #app-viewport.screen-attract .africa-svg-root {
    width: 100% !important;
    height: 100% !important;
    max-width: 840px !important;
    max-height: 88vh !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: drop-shadow(0 0 35px rgba(232, 93, 34, 0.25)) !important;
    transform: translateZ(0);
  }

  .africa-svg-root {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }

  .city-label {
    font-size: 15px !important;
    font-weight: 700 !important;
  }
}

/* =========================================================================
   THEME SUPPORT: LIGHT MODE & DARK MODE SPECIFIC STYLING
   ========================================================================= */

/* --- Light Mode Map Styles --- */
[data-theme="light"] .map-country,
[data-theme="light"].map-country {
  fill: #ECE9F3;
  stroke: rgba(60, 60, 60, 0.16);
}

[data-theme="light"] .map-country:hover,
[data-theme="light"].map-country:hover {
  fill: #E2DCED;
  stroke: rgba(221, 90, 32, 0.45);
}

[data-theme="light"] .map-country.highlighted,
[data-theme="light"].map-country.highlighted {
  fill: rgba(221, 90, 32, 0.18) !important;
  stroke: var(--starks-orange) !important;
  filter: drop-shadow(0 0 10px rgba(221, 90, 32, 0.35));
}

[data-theme="light"] .map-countries-glow,
[data-theme="light"] .map-continent-glow {
  opacity: 0.06 !important;
}

[data-theme="light"] .map-continent {
  fill: #EAE6F2 !important;
  stroke: rgba(60, 60, 60, 0.18) !important;
  stroke-width: 1.8 !important;
  filter: drop-shadow(0 12px 30px rgba(4, 4, 4, 0.07)) !important;
}

[data-theme="light"] .node-dot {
  fill: #5E586C;
}

[data-theme="light"] .city-hub .hub-dot {
  fill: var(--starks-orange);
}

[data-theme="light"] .city-label {
  fill: #040404 !important;
  font-weight: 700;
}

[data-theme="light"] .attract-track {
  stroke: rgba(221, 90, 32, 0.22);
}

[data-theme="light"] .map-grid-line {
  stroke: rgba(60, 60, 60, 0.08);
}

[data-theme="light"] .map-countries {
  filter: drop-shadow(0 12px 28px rgba(4, 4, 4, 0.09));
}

[data-theme="light"] .map-world-countries {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.1));
}

/* World country (The Old Way Detour) */
[data-theme="light"] .world-country,
[data-theme="light"].world-country {
  fill: #E5E1EE;
  stroke: rgba(60, 60, 60, 0.15);
}

[data-theme="light"] .world-country:hover,
[data-theme="light"].world-country:hover {
  fill: #DCD7E7;
  stroke: rgba(221, 90, 32, 0.45);
}

[data-theme="light"] .world-city-pill {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(60, 60, 60, 0.25);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

[data-theme="light"] .world-city-label {
  fill: #040404 !important;
}

[data-theme="light"] .map-external-country {
  fill: #E5E1EE;
  stroke: rgba(60, 60, 60, 0.12);
}

[data-theme="light"] .continent-tag {
  fill: #736b85;
}

[data-theme="light"] .target-rect {
  fill: #FFFFFF !important;
  stroke: rgba(221, 90, 32, 0.25) !important;
  stroke-width: 1.5 !important;
  filter: drop-shadow(0 6px 18px rgba(221, 90, 32, 0.12)) !important;
}

[data-theme="light"] .target-rect.drop-hover {
  stroke: #DD5A20 !important;
  stroke-width: 2 !important;
  fill: #FFF7F2 !important;
  filter: drop-shadow(0 0 16px rgba(221, 90, 32, 0.45)) !important;
}

[data-theme="light"] .target-selected .target-rect,
[data-theme="light"] .target-rect.target-selected-rect {
  stroke: #DD5A20 !important;
  stroke-width: 2.5 !important;
  fill: #FFF7F2 !important;
  filter: drop-shadow(0 0 20px rgba(221, 90, 32, 0.5)) !important;
}

[data-theme="light"] .target-ring-track {
  fill: #FFF2EA !important;
  stroke: rgba(221, 90, 32, 0.3) !important;
  stroke-width: 2.5px !important;
}

[data-theme="light"] .target-ring-icon {
  fill: #DD5A20 !important;
  color: #DD5A20 !important;
  stroke: #DD5A20 !important;
}

[data-theme="light"] .target-amt-text {
  fill: #040404 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .target-cur-pill {
  fill: #FFF2EA !important;
  stroke: #DD5A20 !important;
  stroke-width: 1.5 !important;
}

[data-theme="light"] .target-cur-code {
  fill: #DD5A20 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .bank-pill-bg {
  fill: rgba(255, 255, 255, 0.95);
  stroke: rgba(239, 68, 68, 0.6);
}

[data-theme="light"] .detour-callout-bg {
  fill: rgba(255, 255, 255, 0.96);
  stroke: rgba(239, 68, 68, 0.65);
}

[data-theme="light"] .detour-callout-text {
  fill: #040404;
}

/* --- Dark Mode Explicit Rules (100% Retaining Existing Dark Values) --- */
[data-theme="dark"] .map-country,
[data-theme="dark"].map-country {
  fill: #161225;
  stroke: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .map-country:hover,
[data-theme="dark"].map-country:hover {
  fill: #221a36;
  stroke: rgba(232, 89, 51, 0.45);
}

[data-theme="dark"] .map-country.highlighted,
[data-theme="dark"].map-country.highlighted {
  fill: rgba(232, 89, 51, 0.28) !important;
  stroke: var(--starks-orange) !important;
}

[data-theme="dark"] .map-countries-glow {
  opacity: 0.14;
}

[data-theme="dark"] .map-continent-glow {
  opacity: 0.16;
}

[data-theme="dark"] .map-continent {
  fill: url(#africa-gradient) !important;
  stroke: #3c3354 !important;
  stroke-width: 2.2 !important;
  filter: drop-shadow(0 14px 35px rgba(0, 0, 0, 0.7)) !important;
}

[data-theme="dark"] .node-dot {
  fill: #8b829c;
}

[data-theme="dark"] .city-label {
  fill: #736b85;
}

[data-theme="dark"] .attract-track {
  stroke: rgba(232, 89, 51, 0.12);
}

[data-theme="dark"] .map-grid-line {
  stroke: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .world-country,
[data-theme="dark"].world-country {
  fill: #151122;
  stroke: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .world-country:hover,
[data-theme="dark"].world-country:hover {
  fill: #221a36;
  stroke: rgba(232, 89, 51, 0.3);
}

[data-theme="dark"] .world-city-pill {
  fill: rgba(14, 11, 23, 0.92);
  stroke: rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .world-city-label {
  fill: #e6e2f0 !important;
}

[data-theme="dark"] .target-rect {
  fill: #191524 !important;
  stroke: #3b3250 !important;
}

[data-theme="dark"] .target-ring-track {
  fill: rgba(19, 16, 27, 0.85) !important;
  stroke: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .target-ring-icon {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

[data-theme="dark"] .target-amt-text {
  fill: #00d2ff !important;
}

[data-theme="dark"] .target-cur-pill {
  fill: #2c253d !important;
  stroke: none !important;
}

[data-theme="dark"] .target-cur-code {
  fill: #ffffff !important;
}

