body {
  background:
    radial-gradient(1200px 700px at 60% 10%, rgba(203, 179, 122, .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: 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: #d4af37;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUpFade .6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn .8s ease-out forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scaleIn .6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hover Card */
#hover-card {
  position: fixed;
  display: none;
  z-index: 9999;
  background: rgba(17, 17, 17, .95);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 28px 85px rgba(0, 0, 0, .78);
  pointer-events: auto;
  right: 40px;
  top: 80px;
  max-height: calc(100vh - 160px);
  max-width: 420px;
  width: 420px;
  overflow-y: auto;
  transition: border-color 0.3s ease;
}

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

#hover-card.pinned {
  border: 1px solid rgba(203, 179, 122, .55);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .78),
    0 0 0 1px rgba(203, 179, 122, .12);
}

.pin-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #d4af37;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#hover-card.pinned .pin-indicator {
  opacity: 1;
}

.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);
}

.rr-link {
  position: relative;
}

.rr-link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: rgba(212, 175, 55, .9);
  transition: width .35s ease;
}

.rr-link:hover:after {
  width: 100%;
}

#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 Menu */
#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: 100;
  overflow-y: auto;
  transition: left .4s 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: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

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

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

.country-item:hover {
  background: rgba(212, 175, 55, .08);
  border-left: 3px solid #d4af37;
}

.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(212, 175, 55, .3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.alpha-letter-char {
  color: #d4af37;
  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(212, 175, 55, .10);
  border: 1px solid rgba(212, 175, 55, .22);
  color: #d4af37;
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1),
    background .35s ease, border-color .35s ease,
    opacity .35s ease;
}

.alpha-toggle:hover {
  background: rgba(212, 175, 55, .16);
  border-color: rgba(212, 175, 55, .35);
}

.alpha-toggle {
  transform: rotate(0deg);
}

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

.alpha-body {
  overflow: hidden;
  max-height: 2000px;
  transition: max-height .45s 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;
}

/* ===== 모드 선택 랜딩 페이지 ===== */
#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(203, 179, 122, .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(203, 179, 122, .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;
}

/* ===== User Briefing Panel ===== */
.user-briefing {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%) translateX(-20px);
  z-index: 60;
  width: 340px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 28px 24px 20px;
  background: rgba(12, 12, 14, .82);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, .65),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  opacity: 0;
  animation: briefingSlideIn .6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: .3s;
  transition: left .4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.sidebar-open .user-briefing {
  left: 408px;
  z-index: 101;
}

@keyframes briefingSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.user-briefing::-webkit-scrollbar {
  width: 4px;
}

.user-briefing::-webkit-scrollbar-track {
  background: transparent;
}

.user-briefing::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .1);
  border-radius: 2px;
}

/* Close button */
.briefing-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: all .25s ease;
}

.briefing-close:hover {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  border-color: rgba(255, 255, 255, .2);
}

/* Header / Greeting */
.briefing-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.briefing-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(123, 163, 203, .2), rgba(123, 163, 203, .05));
  border: 1px solid rgba(123, 163, 203, .25);
  color: #7ba3cb;
  flex-shrink: 0;
}

.briefing-greeting {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .5);
}

.briefing-name {
  font-family: "Cinzel", serif;
  font-size: 18px;
  letter-spacing: .08em;
  color: #fff;
  margin-top: 2px;
}

/* Time */
.briefing-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 18px;
}

/* Divider */
.briefing-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 163, 203, .2), transparent);
  margin-bottom: 18px;
}

/* Section Title */
.briefing-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 14px;
}

.briefing-country-badge {
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #7ba3cb;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(123, 163, 203, .2);
  background: rgba(123, 163, 203, .08);
  margin-left: auto;
}

/* Loading */
.briefing-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
}

.briefing-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(123, 163, 203, .15);
  border-top-color: #7ba3cb;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

/* News List */
.briefing-news-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.briefing-news-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.briefing-news-item:hover {
  background: rgba(123, 163, 203, .06);
  border-color: rgba(123, 163, 203, .12);
}

.briefing-news-number {
  font-family: "Cinzel", serif;
  font-size: 14px;
  color: rgba(123, 163, 203, .4);
  font-weight: 600;
  min-width: 18px;
  line-height: 1.5;
  flex-shrink: 0;
}

.briefing-news-content {
  flex: 1;
  min-width: 0;
}

.briefing-news-title {
  font-family: "Manrope", sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, .8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .25s ease;
}

.briefing-news-item:hover .briefing-news-title {
  color: #fff;
}

.briefing-news-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, .3);
}

.briefing-news-source {
  color: rgba(123, 163, 203, .6);
}

.briefing-news-time {
  color: rgba(255, 255, 255, .25);
}

.briefing-news-reason {
  font-size: 10px;
  line-height: 1.4;
  color: rgba(203, 179, 122, .55);
  margin-top: 3px;
  font-style: italic;
}

.briefing-news-flag {
  font-size: 11px;
  margin-left: 2px;
}

/* Empty */
.briefing-empty {
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .3);
  text-align: center;
}

/* Footer */
.briefing-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .04);
  text-align: center;
  font-family: "Cinzel", serif;
  font-size: 8px;
  letter-spacing: .4em;
  color: rgba(255, 255, 255, .15);
}

/* ===== Global Hot Issues ===== */
.hot-issues-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hot-issue-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hot-issue-card:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  transform: translateX(3px);
}

.hot-issue-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hot-issue-rank {
  font-family: "Cinzel", serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, .4);
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .04);
  border-radius: 6px;
}

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

.hot-issue-title {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-issue-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, .35);
}

.hot-issue-badge {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

.hot-issue-badge.rising {
  color: #ff6b35;
  background: rgba(255, 107, 53, .15);
  border: 1px solid rgba(255, 107, 53, .3);
}

.hot-issue-badge.active {
  color: #fbbf24;
  background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .25);
}

.hot-issue-badge.cooling {
  color: #60a5fa;
  background: rgba(96, 165, 250, .1);
  border: 1px solid rgba(96, 165, 250, .2);
}

.hot-issue-heat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}

.hot-issue-heat-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .3);
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: 22px;
}

.hot-issue-heat-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, .06);
  border-radius: 3px;
  overflow: hidden;
}

.hot-issue-heat-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.hot-issue-heat-bar-fill.high {
  background: linear-gradient(90deg, #ff6b35, #ff4500);
  box-shadow: 0 0 8px rgba(255, 107, 53, .4);
}

.hot-issue-heat-bar-fill.medium {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 6px rgba(251, 191, 36, .3);
}

.hot-issue-heat-bar-fill.low {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  box-shadow: 0 0 4px rgba(96, 165, 250, .2);
}

.hot-issue-heat-score {
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
  min-width: 24px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hot-issue-trend {
  font-size: 10px;
  flex-shrink: 0;
}

.hot-issue-trend.up { color: #ff6b35; }
.hot-issue-trend.stable { color: #fbbf24; }
.hot-issue-trend.down { color: #60a5fa; }

/* Pulse animation for rising issues */
@keyframes hotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.hot-issue-card[data-status="rising"] .hot-issue-trend {
  animation: hotPulse 1.5s ease-in-out infinite;
}

.hot-issue-card:hover .hot-issue-title {
  color: #fff;
}

.hot-issue-card:hover .hot-issue-heat-score {
  color: rgba(255, 255, 255, .9);
}

/* Buttons row */
.hot-issue-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.hot-issue-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s ease;
}

.hot-issue-btn:hover {
  color: #cbb37a;
  background: rgba(203, 179, 122, .08);
  border-color: rgba(203, 179, 122, .25);
}

/* Hot Issues Panel Header */
.hot-issues-icon {
  background: linear-gradient(135deg, rgba(255,120,50,.2), rgba(255,80,30,.06)) !important;
  border-color: rgba(255,120,50,.3) !important;
  color: #ff6b35;
}

.hot-issues-panel-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: .12em;
  color: #fff;
  font-weight: 600;
}

.hot-issues-panel-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  margin-top: 2px;
  letter-spacing: .06em;
}

@media (max-width: 1100px) {
  .user-briefing {
    display: none !important;
  }
}

/* ═══════════════════════════════════════
   Economic Calendar Panel
   ═══════════════════════════════════════ */
#econ-calendar-panel {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 55;
  width: 320px;
  padding: 20px 18px 16px;
  background: rgba(12, 12, 14, .85);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, .6),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
  font-family: "Manrope", sans-serif;
}

/* Header */
.ecal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ecal-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

.ecal-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: all .25s ease;
}

.ecal-close:hover {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  border-color: rgba(255, 255, 255, .2);
}

/* Country tabs */
.ecal-country-tabs {
  margin-bottom: 14px;
}

.ecal-country-dropdown {
  position: relative;
}

.ecal-country-selected {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #d4af37;
  background: rgba(212, 175, 55, .10);
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 10px;
  cursor: pointer;
  transition: all .25s ease;
}

.ecal-country-selected:hover {
  background: rgba(212, 175, 55, .15);
  border-color: rgba(212, 175, 55, .5);
}

.ecal-country-code {
  font-weight: 700;
  letter-spacing: .5px;
}

.ecal-country-chevron {
  margin-left: auto;
  transition: transform .25s ease;
  opacity: 0.6;
}

.ecal-country-dropdown.open .ecal-country-chevron {
  transform: rotate(180deg);
}

.ecal-country-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(15, 15, 17, 0.98);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  overflow: hidden;
  z-index: 10;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1), transform .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecal-country-options.closing {
  opacity: 0;
  transform: translateY(-6px);
}

.ecal-country-options.opening {
  animation: dropdownSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecal-tab {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .5);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  text-align: left;
}

.ecal-tab:hover {
  background: rgba(212, 175, 55, .08);
  color: #d4af37;
}

/* Month navigation */
.ecal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ecal-nav-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecal-nav-btn:hover {
  background: rgba(212, 175, 55, .1);
  color: #d4af37;
  border-color: rgba(212, 175, 55, .3);
  transform: scale(1.08);
}

.ecal-nav-btn:active {
  transform: scale(0.92);
}

.ecal-month-label {
  font-family: "Cinzel", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #e8e6e3;
  transition: opacity .25s ease, transform .25s ease;
}

.ecal-month-label.ecal-fade-out {
  opacity: 0;
  transform: translateY(-4px);
}

.ecal-month-label.ecal-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Weekday headers */
.ecal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 6px;
}

.ecal-weekdays span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .25);
  padding: 4px 0;
}

.ecal-weekdays span:first-child {
  color: rgba(255, 80, 80, .45);
}

.ecal-weekdays span:last-child {
  color: rgba(74, 158, 255, .45);
}

/* Calendar grid */
.ecal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 10px;
}

/* Staggered cell entrance animation */
@keyframes ecalCellIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ecal-grid .ecal-cell {
  animation: ecalCellIn .35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ecal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  cursor: default;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecal-cell.ecal-empty {
  min-height: 36px;
}

.ecal-day-num {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, .5);
  line-height: 1;
}

.ecal-cell.ecal-has-event {
  cursor: pointer;
}

.ecal-cell.ecal-has-event:hover {
  background: rgba(212, 175, 55, .08);
  transform: translateY(-2px) scale(1.08);
}

.ecal-cell.ecal-has-event .ecal-day-num {
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
}

.ecal-cell.ecal-today {
  background: rgba(212, 175, 55, .06);
  border: 1px solid rgba(212, 175, 55, .25);
}

.ecal-cell.ecal-today .ecal-day-num {
  color: #d4af37;
  font-weight: 700;
}

.ecal-cell.ecal-selected {
  background: rgba(212, 175, 55, .15);
  border: 1px solid rgba(212, 175, 55, .4);
  box-shadow: 0 0 12px rgba(212, 175, 55, .2);
  transform: scale(1.05);
}

.ecal-cell.ecal-selected .ecal-day-num {
  color: #fff;
  font-weight: 700;
}

/* Event dots */
.ecal-dots {
  display: flex;
  gap: 3px;
  margin-top: 3px;
}

.ecal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: ecalDotPulse 2.5s ease-in-out infinite;
}

.ecal-dot:nth-child(2) {
  animation-delay: .4s;
}

.ecal-dot:nth-child(3) {
  animation-delay: .8s;
}

@keyframes ecalDotPulse {

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

  50% {
    opacity: 1;
    transform: scale(1.5);
    box-shadow: 0 0 6px currentColor;
  }
}

/* Legend */
.ecal-legend {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .04);
}

.ecal-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: rgba(255, 255, 255, .35);
  letter-spacing: .03em;
}

.ecal-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Events detail panel */
.ecal-events {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  transition: opacity .3s ease, transform .3s ease;
}

.ecal-events-header {
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.ecal-events-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.ecal-events-list::-webkit-scrollbar {
  width: 3px;
}

.ecal-events-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .08);
  border-radius: 4px;
}

@keyframes ecalEventIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ecal-event-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .04);
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: ecalEventIn .4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ecal-event-item:nth-child(2) {
  animation-delay: .06s;
}

.ecal-event-item:nth-child(3) {
  animation-delay: .12s;
}

.ecal-event-item:nth-child(4) {
  animation-delay: .18s;
}

.ecal-event-item:nth-child(5) {
  animation-delay: .24s;
}

.ecal-event-item:hover {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .1);
  transform: translateX(4px);
}

.ecal-event-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ecal-event-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(212, 175, 55, .7);
}

.ecal-event-icon svg {
  width: 14px;
  height: 14px;
}

.ecal-event-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  line-height: 1.3;
  flex: 1;
}

.ecal-priority {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ecal-priority-high {
  background: rgba(255, 80, 80, .15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 80, 80, .25);
}

.ecal-priority-mid {
  background: rgba(255, 200, 80, .12);
  color: #e8b84c;
  border: 1px solid rgba(255, 200, 80, .2);
}

.ecal-event-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, .3);
  margin-top: 3px;
  padding-left: 20px;
  letter-spacing: .02em;
}

.ecal-event-cat {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
  padding-left: 20px;
}

/* Floating toggle button (appears when panel is closed) */
#ecal-toggle-btn {
  display: none;
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 55;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(12, 12, 14, .85);
  border: 1px solid rgba(212, 175, 55, .25);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(255, 255, 255, .05),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  color: rgba(212, 175, 55, .7);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.5);
  transition: all .35s cubic-bezier(0.16, 1, 0.3, 1);
}

#ecal-toggle-btn:hover {
  background: rgba(18, 18, 20, .92);
  border-color: rgba(212, 175, 55, .5);
  color: #d4af37;
  transform: scale(1.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, .5),
    0 0 20px rgba(212, 175, 55, .15),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

#ecal-toggle-btn:active {
  transform: scale(0.95);
}

/* Subtle pulse ring around toggle button */
@keyframes ecalTogglePulse {

  0%,
  100% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5), 0 0 0 0 rgba(212, 175, 55, .15);
  }

  50% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5), 0 0 0 6px rgba(212, 175, 55, .06);
  }
}

#ecal-toggle-btn[style*="opacity: 1"] {
  animation: ecalTogglePulse 3s ease-in-out infinite;
}

/* Hide on small screens */
@media (max-width: 1100px) {

  #econ-calendar-panel,
  #ecal-toggle-btn {
    display: none !important;
  }
}

/* ═══ Country Dropdown Selector ═══ */
.sb-country-dropdown {
  position: relative;
  margin: 4px 0;
}

.sb-country-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #e6e6e8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sb-country-selected:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(203, 179, 122, 0.3);
}

.sb-country-dropdown.open .sb-country-selected {
  border-color: rgba(203, 179, 122, 0.5);
  background: rgba(203, 179, 122, 0.08);
}

.sb-country-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 20px;
  padding: 0 5px;
  background: rgba(203, 179, 122, 0.2);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #cbb37a;
}

.sb-country-name-text {
  flex: 1;
}

.sb-country-chevron-icon {
  transition: transform 0.25s ease;
  opacity: 0.5;
}

.sb-country-dropdown.open .sb-country-chevron-icon {
  transform: rotate(180deg);
  opacity: 1;
}

.sb-country-options {
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
  margin-top: 4px;
  background: rgba(20, 20, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1), transform .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sb-country-options.closing {
  opacity: 0;
  transform: translateY(-6px);
}

.sb-country-options.opening {
  animation: dropdownSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sb-country-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sb-country-option:hover {
  background: rgba(203, 179, 122, 0.12);
  color: #e6e6e8;
}