/* ================================================================
   GLOBE / WORLD MAP — animated visa flows
   ================================================================ */

.globe-section {
  padding: 56px 0 32px;
  position: relative;
  overflow: hidden;
}

.globe-section .container {
  position: relative;
}

.globe-frame {
  position: relative;
  margin-top: 32px;
  background:
    linear-gradient(180deg, rgba(212, 165, 116, 0.04), transparent 30%),
    var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 0;
}
@media (max-width: 1024px) {
  .globe-frame { grid-template-columns: 1fr; min-height: 0; }
}

.globe-map {
  position: relative;
  padding: 20px;
  overflow: hidden;
}
.globe-map svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
}

/* Continent dots — soft and constellation-like */
.globe-dot {
  fill: rgba(148, 163, 184, 0.32);
}

/* Origin city dot */
.globe-origin {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px rgba(212, 165, 116, 0.5));
}
.globe-origin-pulse {
  fill: var(--accent);
  opacity: 0.5;
  transform-origin: center;
  animation: origin-pulse 2.4s ease-out infinite;
}
@keyframes origin-pulse {
  0% { r: 4; opacity: 0.6; }
  100% { r: 18; opacity: 0; }
}

/* Destination city ring */
.globe-dest {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.2;
}
.globe-dest-center {
  fill: var(--text-primary);
}
.globe-dest.active {
  stroke: var(--accent);
  stroke-width: 2;
}

/* City label */
.globe-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--text-muted);
}
.globe-label.origin { fill: var(--accent); }

/* Arc — drawn animation */
.globe-arc {
  fill: none;
  stroke: url(#arc-gradient);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 4px rgba(212, 165, 116, 0.4));
}
.globe-arc.drawing {
  animation: arc-draw 2.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes arc-draw {
  0% { stroke-dashoffset: 1000; opacity: 1; }
  60% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -200; opacity: 0; }
}

/* Map overlay — gradient mask to fade edges */
.globe-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, transparent 60%, rgba(15, 31, 53, 0.5));
  pointer-events: none;
}

/* Map top-left HUD */
.globe-hud {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
}
.globe-hud__live {
  display: inline-flex;
  align-items: center;
  color: var(--text-primary);
}
.globe-hud__live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 8px;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  animation: pulse-soft 2s ease-in-out infinite;
}

/* Bottom-right small stats */
.globe-stats {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
}
.globe-stats strong {
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  margin-right: 6px;
}

/* RIGHT panel — live ticker */
.globe-ticker {
  border-left: 1px solid var(--border);
  background: rgba(10, 22, 40, 0.4);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 1024px) {
  .globe-ticker { border-left: none; border-top: 1px solid var(--border); }
}
.globe-ticker__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.globe-ticker__head .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 9px;
  background: var(--bg-elevated);
  border-radius: 999px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.globe-ticker__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 360px;
}
.globe-ticker__list::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(10, 22, 40, 0.7));
  pointer-events: none;
}

.ticker-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.ticker-row.entering {
  animation: ticker-in 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ticker-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
.ticker-row__flag {
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1;
}
.ticker-row__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ticker-row__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker-row__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.ticker-row__score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.globe-caption {
  text-align: center;
  margin-top: 40px;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
}

/* ================================================================
   ACTIVITY TOAST — site-wide floating widget bottom-right
   ================================================================ */
.activity-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  background: rgba(15, 31, 53, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 280px;
  max-width: 360px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 165, 116, 0.08);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1), transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
}
.activity-toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.activity-toast__flag {
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1;
}
.activity-toast__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.activity-toast__title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.activity-toast__title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}
.activity-toast__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-toast__sub .score { color: var(--accent); }

@media (max-width: 768px) {
  .activity-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    min-width: 0;
    max-width: none;
  }
}
