/* Opt-in main-page currency picker; all selectors are scoped to its own classes. */
.currency-picker { position: relative; display: flex; flex: 0 0 auto; z-index: 4; }
.currency-trigger {
  min-width: 78px; min-height: 42px; display: inline-flex; align-items: center;
  justify-content: center; gap: 9px; padding: 8px 13px;
  border: 1px solid var(--glass-border, rgba(255,255,255,.09)); border-radius: 999px;
  background: rgba(255,255,255,.035); color: var(--text, #e7efff);
  font: inherit; font-size: .78rem; font-weight: 800; line-height: 1;
  letter-spacing: .04em; white-space: nowrap; cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.currency-trigger:hover, .currency-picker[data-open="true"] .currency-trigger {
  color: #fff; border-color: rgba(103,232,249,.5);
  background: linear-gradient(135deg, rgba(41,182,255,.13), rgba(183,124,255,.13));
  box-shadow: 0 0 0 3px rgba(41,182,255,.075), 0 10px 24px rgba(0,0,0,.28);
}
.currency-chevron {
  width: 7px; height: 7px; flex: 0 0 7px;
  border-inline-end: 2px solid #67e8f9; border-bottom: 2px solid #67e8f9;
  transform: translateY(-2px) rotate(45deg);
}
.currency-picker[data-open="true"] .currency-chevron { transform: translateY(2px) rotate(225deg); }
.currency-picker[data-open="true"] .language-chevron { transform: translateY(2px) rotate(225deg); }
.currency-menu {
  position: absolute; z-index: 120; top: calc(100% + 8px); inset-inline-end: 0;
  min-width: 96px; width: 100%; max-width: calc(100vw - 16px);
  max-height: min(380px, 65vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 4px; border: 1px solid rgba(103,232,249,.3); border-radius: 14px;
  background: linear-gradient(165deg, rgba(10,16,27,.99), rgba(17,13,31,.99));
  box-shadow: 0 20px 48px rgba(0,0,0,.58); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.currency-menu[hidden] { display: none; }
.currency-option {
  width: 100%; min-height: 36px; display: flex; align-items: center; justify-content: center;
  padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; color: #b9c7df;
  font: inherit; font-size: .75rem; font-weight: 800; line-height: 1; letter-spacing: .06em;
  white-space: nowrap; cursor: pointer;
}
.currency-option:hover, .currency-option:focus-visible { color: #fff; background: rgba(41,182,255,.1); }
.currency-option[aria-selected="true"] {
  color: #fff; background: linear-gradient(90deg, rgba(41,182,255,.18), rgba(183,124,255,.18));
  box-shadow: 0 0 0 1px rgba(103,232,249,.12) inset;
}
.currency-trigger:focus-visible, .currency-option:focus-visible { outline: 3px solid #67e8f9; outline-offset: 2px; }
.currency-status {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) { .currency-trigger { transition: none; } }
/* Added by init only to the header containing this opt-in picker. */
@media (max-width: 1100px) {
  .header.currency-enabled-header .nav { display: none; }
  .header.currency-enabled-header .mobile-menu-toggle {
    display: inline-flex; flex: 0 0 42px; width: 42px; height: 42px;
    align-items: center; justify-content: center;
  }
}
@media (max-width: 480px) {
  .header.currency-enabled-header { gap: 6px; padding-inline: 10px; }
  .header.currency-enabled-header .header-actions { gap: 6px; margin-inline-start: auto; margin-inline-end: 0; }
  .header.currency-enabled-header .language-trigger,
  .header.currency-enabled-header .currency-trigger {
    min-width: 62px; width: 62px; padding-inline: 7px; gap: 6px; font-size: .72rem;
  }
  .header.currency-enabled-header .brand { gap: 6px; }
  .header.currency-enabled-header .brand .name { font-size: .68rem; letter-spacing: .06em; }
}
@media (max-width: 360px) {
  .header.currency-enabled-header .brand .name { display: none; }
}
