body {
  background:
    radial-gradient(1200px 700px at 60% 10%, rgba(123, 203, 138, .10), transparent 55%),
    radial-gradient(900px 600px at 20% 85%, rgba(255, 255, 255, .06), transparent 55%),
    linear-gradient(180deg, #070707 0%, #050505 55%, #040404 100%);
  color: #e6e6e8;
  overflow-x: hidden;
  animation: pageLoadFadeIn 0.6s ease-out;
}

@keyframes pageLoadFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity: .08;
  mix-blend-mode: overlay;
}

#globeViz {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7bcb8a;
}

.rr-glass {
  background: rgba(18, 18, 19, .52);
  border: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .75);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  color: #ddd;
  backdrop-filter: blur(10px);
}

/* Sidebar */
#sidebar-menu {
  position: fixed;
  top: 0;
  left: -380px;
  width: 380px;
  height: 100vh;
  background: rgba(10, 10, 10, .98);
  border-right: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px);
  z-index: 120;
  overflow-y: auto;
  transition: left .38s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px 0 40px 0;
}

#sidebar-menu.open {
  left: 0;
}

#sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 119;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

#sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Raise nav z-index so toggle buttons remain clickable when sidebar is open */
body.sidebar-open #main-nav {
  z-index: 121;
}

.country-item {
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: all .25s ease;
}

.country-item:hover {
  background: rgba(123, 203, 138, .10);
  border-left: 3px solid #7bcb8a;
}

.alpha-section {
  margin-bottom: 4px;
}

.alpha-letter {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 18px 12px 24px;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(123, 203, 138, .30);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.alpha-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.alpha-letter-char {
  color: #7bcb8a;
  font-family: "Cinzel", serif;
  font-size: 18px;
  letter-spacing: .35em;
}

.alpha-count {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #666;
}

.alpha-toggle {
  width: 34px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(123, 203, 138, .10);
  border: 1px solid rgba(123, 203, 138, .22);
  color: #7bcb8a;
  transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1),
    background .32s ease, border-color .32s ease;
}

.alpha-section[data-collapsed="true"] .alpha-toggle {
  transform: rotate(180deg);
}

.alpha-body {
  overflow: hidden;
  max-height: 2400px;
  transition: max-height .42s cubic-bezier(0.16, 1, 0.3, 1);
}

.alpha-section[data-collapsed="true"] .alpha-body {
  max-height: 0;
}

.alpha-divider {
  height: 1px;
  background: rgba(255, 255, 255, .04);
  margin: 6px 0;
}

/* Hover Card (desktop) */
#hover-card {
  position: fixed;
  display: none;
  z-index: 9999;
  pointer-events: auto;
  right: 36px;
  top: 84px;
  max-height: calc(100vh - 160px);
  max-width: 400px;
  width: 400px;
  overflow-y: auto;
}

#hover-card.hover-left {
  right: auto;
  left: 36px;
}

#hover-card.pinned .hc-inner {
  border-color: rgba(123, 203, 138, .35);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, .5),
    0 0 40px rgba(123, 203, 138, .08),
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 1px 0 rgba(255, 255, 255, .06) inset;
}

.hc-inner {
  background: rgba(14, 15, 18, .82);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 1px 0 rgba(255, 255, 255, .06) inset;
  transition: border-color .4s, box-shadow .4s, transform .4s;
}

.hc-inner:hover {
  border-color: rgba(123, 203, 138, .2);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, .5),
    0 0 40px rgba(123, 203, 138, .06),
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 1px 0 rgba(255, 255, 255, .06) inset;
  transform: translateY(-4px);
}

/* Header */
.hc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 0;
}

.hc-flag {
  width: 50px;
  height: 37px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .1);
  flex-shrink: 0;
}

.hc-name {
  font-family: "DM Serif Display", "Playfair Display", serif;
  font-size: 26px;
  color: #fff;
  line-height: 1.1;
}

.hc-native {
  font-size: 12px;
  color: rgba(255, 255, 255, .3);
  font-weight: 300;
  margin-top: 3px;
  letter-spacing: .03em;
}

/* Greeting */
.hc-greeting {
  margin: 16px 24px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .3s;
}

.hc-greeting:hover {
  background: rgba(255, 255, 255, .06)
}

.hc-greeting-icon {
  font-size: 18px;
  flex-shrink: 0
}

.hc-greeting-text {
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.4
}

.hc-greeting-text .local {
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em
}

.hc-greeting-text .trans {
  color: rgba(255, 255, 255, .35);
  font-size: 12px
}

/* Rotating Flavor */
.hc-flavor {
  margin: 12px 24px 0;
  height: 44px;
  position: relative;
  overflow: hidden;
}

.hc-flavor-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .04);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s cubic-bezier(.16, 1, .3, 1), transform .45s cubic-bezier(.16, 1, .3, 1);
}

.hc-flavor-item.active {
  opacity: 1;
  transform: translateY(0);
}

.hc-flavor-emoji {
  font-size: 17px;
  flex-shrink: 0
}

.hc-flavor-text {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  font-weight: 400
}

.hc-flavor-text b {
  color: rgba(255, 255, 255, .9);
  font-weight: 600
}

/* Divider */
.hc-div {
  height: 1px;
  margin: 14px 24px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
}

/* Bottom Stats */
.hc-bottom {
  display: flex;
  align-items: stretch;
  padding: 14px 24px 18px;
  gap: 10px;
}

.hc-stat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .04);
  transition: background .3s;
}

.hc-stat:hover {
  background: rgba(255, 255, 255, .05)
}

.hc-stat-icon {
  font-size: 14px;
  flex-shrink: 0
}

.hc-stat-text {
  min-width: 0
}

.hc-stat-label {
  color: rgba(255, 255, 255, .3);
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 9px;
}

.hc-stat-value {
  color: rgba(255, 255, 255, .75);
  font-weight: 600;
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-stat-value.hot {
  color: #f0965a
}

.hc-stat-value.fest {
  color: #7bcb8a
}

/* Hint */
.hc-hint {
  padding: 0 24px 16px;
  text-align: center;
}

.hc-hint span {
  font-size: 10px;
  color: rgba(255, 255, 255, .15);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Dots indicator */
.hc-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 10px 24px 0;
}

.hc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  transition: all .35s;
}

.hc-dot.active {
  background: rgba(123, 203, 138, .6);
  width: 14px;
  border-radius: 3px;
}

/* Loading/Fail overlay */
#loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(900px 600px at 50% 30%, rgba(123, 203, 138, .10), transparent 55%),
    rgba(0, 0, 0, .70);
  backdrop-filter: blur(10px);
}

/* Empty state */
#empty-state {
  position: fixed;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  z-index: 60;
  display: none;
  width: min(520px, calc(100vw - 32px));
}

/* Settings panel */
#settings-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  z-index: 160;
  background: rgba(10, 10, 10, .97);
  border-left: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(18px);
  transition: right .38s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 76px 22px 22px 22px;
}

#settings-panel.open {
  right: 0;
}

#settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 159;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

#settings-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile bottom sheet */
#mobile-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -420px;
  z-index: 170;
  transition: bottom .35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 12px 12px 18px 12px;
}

#mobile-sheet.open {
  bottom: 0;
}

#mobile-sheet .sheet {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 85px rgba(0, 0, 0, .72);
}

/* Footer removed — Leaflet attribution shown natively */

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(8px);
  padding: 18px;
}

.modal {
  width: min(720px, 100%);
  border-radius: 18px;
  background: rgba(12, 12, 12, .96);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .78);
  overflow: hidden;
}

/* Reduce motion */
.reduce-motion * {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}

@media (max-width: 880px) {
  #hover-card {
    display: none !important;
  }

  #sidebar-menu {
    width: 92vw;
    left: -92vw;
  }
}

/* ===== 모드 선택 랜딩 페이지 ===== */
#landing-page {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(123, 203, 138, .08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(123, 163, 203, .06), transparent),
    radial-gradient(ellipse 50% 30% at 20% 70%, rgba(123, 203, 138, .05), transparent),
    linear-gradient(180deg, #050505 0%, #070707 50%, #0a0a0a 100%);
}

#landing-page.hidden {
  display: none;
}

.landing-title {
  font-family: "Cinzel", serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.35em;
  color: #fff;
  text-shadow: 0 0 60px rgba(123, 203, 138, .3);
  margin-bottom: 0.5rem;
}

.landing-subtitle {
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 4rem;
}

.mode-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 1rem;
}

.mode-card {
  position: relative;
  width: 280px;
  padding: 2.5rem 2rem;
  background: rgba(15, 15, 16, .6);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1.5rem;
  backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all .5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--accent) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s ease;
}

.mode-card:hover::before {
  opacity: 1;
}

.mode-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .6),
    0 0 40px color-mix(in srgb, var(--accent) 20%, transparent);
}

.mode-card.investor {
  --accent: #cbb37a;
}

.mode-card.scholar {
  --accent: #7ba3cb;
}

.mode-card.traveler {
  --accent: #7bcb8a;
}

.mode-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  opacity: 0.8;
  transition: all .5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mode-card:hover .mode-icon {
  opacity: 1;
  transform: scale(1.05);
}

.mode-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .3));
}

.mode-title {
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.mode-desc {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 1.5rem;
}

.mode-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
}

.mode-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.landing-footer {
  position: absolute;
  bottom: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .2);
}

/* 선택된 모드 표시 */
#current-mode-badge {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  background: rgba(10, 10, 10, .85);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  backdrop-filter: blur(15px);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: all .3s ease;
}

#current-mode-badge:hover {
  border-color: rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .9);
}

#current-mode-badge .mode-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

#current-mode-badge.investor .mode-dot {
  background: #cbb37a;
}

#current-mode-badge.scholar .mode-dot {
  background: #7ba3cb;
}

#current-mode-badge.traveler .mode-dot {
  background: #7bcb8a;
}

#current-mode-badge .badge-chevron {
  transition: transform .3s ease;
}

#current-mode-badge.dropdown-open .badge-chevron {
  transform: rotate(180deg);
}

/* ===== Mode Dropdown ===== */
.mode-dropdown {
  position: fixed;
  top: calc(1.5rem + 42px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 50;
  min-width: 160px;
  padding: 6px;
  background: rgba(10, 10, 10, .92);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  opacity: 1;
  visibility: visible;
  transform-origin: top center;
  transition: opacity .3s cubic-bezier(0.16, 1, 0.3, 1),
    transform .3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility .3s;
  pointer-events: auto;
}

.mode-dropdown.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  pointer-events: none;
}

.mode-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}

.mode-dropdown-item:hover {
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .95);
}

.mode-dropdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mode-dropdown-dot.investor {
  background: #cbb37a;
}

.mode-dropdown-dot.scholar {
  background: #7ba3cb;
}

.mode-dropdown-dot.traveler {
  background: #7bcb8a;
}

.mode-dropdown-dot.main {
  background: #7ba3cb;
}

/* Travel Panel (Sidebar Style) */
#travel-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  z-index: 160;
  background: rgba(10, 10, 10, .97);
  border-left: 1px solid rgba(123, 203, 138, .25);
  backdrop-filter: blur(18px);
  transition: right .38s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

#travel-panel.open {
  right: 0;
}

#travel-overlay {
  position: fixed;
  inset: 0;
  z-index: 159;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

#travel-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.travel-type-btn {
  border-color: rgba(255, 255, 255, .15);
  background: rgba(0, 0, 0, .3);
  color: rgba(255, 255, 255, .6);
}

.travel-type-btn:hover {
  border-color: rgba(123, 203, 138, .4);
  color: rgba(255, 255, 255, .85);
}

.travel-type-btn.active {
  border-color: rgba(123, 203, 138, .6);
  background: rgba(123, 203, 138, .15);
  color: #7bcb8a;
}

@media (max-width: 880px) {
  #travel-panel {
    width: 92vw;
    right: -92vw;
  }
}

/* =========================================
   Sidebar Enhancements (Glassmorphism & Sci-fi)
   ========================================= */

/* 1. Favorites & Recent Blocks - Glassmorphism */
#sidebar-tab-fav,
#sidebar-tab-recent {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(120, 255, 180, 0.15) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 0 12px rgba(120, 255, 180, 0.05);
  /* Subtle inner shadow */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

#sidebar-tab-fav:hover,
#sidebar-tab-recent:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow:
    0 0 0 1px rgba(120, 255, 180, 0.4),
    0 8px 30px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(120, 255, 180, 0.1) !important;
  transform: translateY(-2px);
}

/* 2. Section Headers (FAVORITES / RECENT) */
#sidebar-tab-fav>div:first-child,
#sidebar-tab-recent>div:first-child {
  position: relative;
  padding-left: 12px;
  border-left: 2px solid #7affb2;
  letter-spacing: 0.35em !important;
  color: #fff !important;
  text-shadow: 0 0 8px rgba(122, 255, 178, 0.4);
  display: flex !important;
  align-items: center;
}

/* Glowing dot before title */
#sidebar-tab-fav>div:first-child::before,
#sidebar-tab-recent>div:first-child::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #7affb2;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 6px #7affb2;
  opacity: 0.8;
}

/* Counts */
#fav-count,
#recent-count {
  font-family: "Cinzel", serif;
  font-size: 1.25rem !important;
  color: #fff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  margin-top: 8px !important;
  padding-left: 12px;
}

/* 3. List Items (Countries) */
.country-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
  transition: all 0.25s ease !important;
  position: relative;
  opacity: 0.7;
}

/* Override existing hover styles */
.country-item:hover {
  background: transparent !important;
  opacity: 1;
  transform: translateX(6px);
  padding-left: 1.5rem !important;
  /* disable default pl-8 padding shift to use transform instead */
  border-left: none !important;
  /* replace default border with micro bar */
}

/* Micro highlight bar on hover */
.country-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 60%;
  background: #7affb2;
  box-shadow: 0 0 8px #7affb2;
  transition: transform 0.25s ease;
}

.country-item:hover::before {
  transform: translateY(-50%) scaleY(1);
}

/* 4. Favorite Star */
.country-item span:last-child {
  font-size: 14px;
  color: #7affb2 !important;
  text-shadow: 0 0 5px rgba(122, 255, 178, 0.6);
}

.country-item span:last-child:not(:empty) {
  animation: starPulse 3s infinite ease-in-out;
}

@keyframes starPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
    text-shadow: 0 0 5px rgba(122, 255, 178, 0.6);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
    text-shadow: 0 0 12px rgba(122, 255, 178, 0.9);
  }
}

/* Traveler overlay glow (merged from traveler_overlay.css) */
#type-overlay {
  --overlay-glow: rgba(123, 203, 138, 0.4);
}