.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.currency-menu { position: relative; }
.currency-menu [hidden] { display: none !important; }
.currency-menu-trigger,
.currency-select-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--foreground);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}
.currency-menu-trigger {
  min-width: 2.8rem;
  height: 2.8rem;
  padding: 0 0.78rem;
  font: inherit;
  font-weight: 700;
}
.currency-menu-trigger svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--primary);
}
.currency-header-code {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.currency-select-trigger {
  min-width: 8.4rem;
  padding: 0.78rem 1rem;
  font: inherit;
}
.currency-select-trigger > svg:last-child { width: 1rem; }
.currency-symbol {
  display: grid;
  min-width: 2rem;
  min-height: 2rem;
  place-items: center;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border-radius: 0.65rem;
  font-size: 0.76rem;
  font-weight: 800;
}
.currency-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.7rem);
  right: 0;
  width: min(19rem, calc(100vw - 2rem));
  max-height: min(30rem, 72vh);
  overflow-y: auto;
  padding: 0.5rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 1.4rem 4rem rgb(0 0 0 / 28%);
  backdrop-filter: blur(18px);
}
.currency-option {
  width: 100%;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 1.2rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  color: var(--foreground);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0.8rem;
  cursor: pointer;
}
.currency-option:hover,
.currency-option:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.currency-option > span:nth-child(2) {
  display: grid;
  gap: 0.1rem;
}
.currency-option small { color: var(--muted); }
.currency-check { opacity: 0; color: var(--primary); }
.currency-option[aria-selected="true"] .currency-check { opacity: 1; }
.currency-option[aria-selected="true"] { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.currency-menu-inline .currency-popover { left: auto; right: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 760px) {
  .header-actions { gap: 0.35rem; }
  .currency-menu-trigger { min-width: 2.55rem; height: 2.55rem; padding: 0 0.68rem; }
  .currency-select-trigger { min-width: 7.7rem; padding: 0.7rem 0.85rem; }
}
