/* ===================================================================
   Country / Currency Switcher — CRYPSQUAD
   Self-contained styles for the header currency selector.
   =================================================================== */

.currency-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.currency-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.currency-switcher-btn:hover,
.currency-switcher-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.cs-flag {
  font-size: 15px;
  line-height: 1;
}

.cs-code {
  letter-spacing: 0.02em;
}

.cs-caret {
  margin-left: 2px;
  transition: transform 0.18s ease;
  opacity: 0.75;
}

.currency-switcher-btn[aria-expanded="true"] .cs-caret {
  transform: rotate(180deg);
}

.currency-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #ffffff;
  color: #1a1a2e;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 15, 30, 0.18), 0 2px 8px rgba(15, 15, 30, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 200;
}

.currency-switcher-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.currency-switcher-menu li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.14s ease;
  white-space: nowrap;
}

.currency-switcher-menu li:hover,
.currency-switcher-menu li.selected {
  background: #f1f3fb;
}

.currency-switcher-menu li.selected {
  font-weight: 700;
}

.cs-sub {
  color: #7a7f95;
  font-weight: 500;
  font-size: 12.5px;
}

/* ---- mobile menu variant ---- */
.currency-switcher-mobile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
}

.cs-mobile-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
  font-weight: 600;
}

.cs-mobile-options {
  display: flex;
  gap: 8px;
}

.cs-mobile-opt {
  flex: 1;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.cs-mobile-opt.selected {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
  .nav-right > .currency-switcher {
    display: none;
  }
}
