.currency-selector {
  position: relative;
}
.currency-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 30;
  display: none;
}
.currency-selector.open .currency-menu {
  display: block;
}
.currency-menu-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  max-height: 24rem;
  overflow: hidden;
}
.currency-search {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.currency-search input {
  width: 100%;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}
.currency-search input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
  background: #f8fafc;
}
.currency-list {
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.75rem 0;
}
.currency-list::-webkit-scrollbar {
  width: 8px;
}
.currency-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.currency-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: #0f172a;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-align: left;
}
.currency-option:hover,
.currency-option:focus-visible {
  background: #e2e8f0;
}
.currency-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
.currency-option.is-active {
  background: #cbd5e1;
  font-weight: 600;
}
.currency-option .code {
  font-weight: 600;
  font-size: 0.95rem;
}
.currency-option .name {
  font-size: 0.75rem;
  color: #64748b;
}
.currency-empty {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: #64748b;
}

.swap-button--spinning {
  animation: swap-spin 0.45s ease forwards;
}
@keyframes swap-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

.toggle-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.toggle-track {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background-color 0.25s ease;
  align-items: center;
}
.toggle-thumb {
  position: absolute;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
  transition: transform 0.25s ease;
}
input[type="checkbox"]:focus-visible + .toggle-track {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
  outline: none;
}
input[type="checkbox"]:checked + .toggle-track {
  background: linear-gradient(135deg, #f97316, #ea580c);
}
input[type="checkbox"]:checked + .toggle-track .toggle-thumb {
  transform: translateX(20px);
}

.faq-item {
  border-radius: 0.75rem;
  border: 1px solid var(--border, #e2e8f0);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.faq-item + .faq-item {
  margin-top: 1rem;
}
.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-trigger:hover {
  color: #ea580c;
}
.faq-icon {
  transition: transform 0.2s ease;
}
.faq-content {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}
.faq-item[data-open="true"] .faq-content {
  display: block;
}
.faq-item[data-open="true"] .faq-icon {
  transform: rotate(180deg);
}
.faq-item[data-open="true"] {
  background: rgba(255, 247, 237, 0.6);
  border-color: rgba(249, 115, 22, 0.35);
}

.status-pill {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #e2e8f0;
  color: #475569;
  font-weight: 600;
}
.status-pill.is-on {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
}

.privacy-content h2 {
  margin-top: 1rem;
}

@keyframes fade-in-soft {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scale-in-soft {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#download-now {
  transform: scale(1);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#download-now:hover,
#download-now:focus-visible {
  transform: scale(1.04);
}
#download-now:active {
  transform: scale(0.99);
  transition-duration: 0.15s;
}
