/* Currency Selection Modal */
.currency-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in;
  padding: 20px;
}

.currency-modal.active {
  display: flex;
}

.currency-modal-content {
  background: var(--card);
  border-radius: var(--radius);
  max-width: 400px;
  width: 100%;
  padding: 24px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  animation: slideUpModal 0.4s ease-out;
}

.currency-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.currency-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.currency-modal-header p {
  font-size: 0.9rem;
  color: var(--muted);
}

.currency-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.currency-close:hover {
  background: var(--surface);
  color: var(--text);
}

.currency-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 350px;
  overflow-y: auto;
}

.currency-loading {
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

.currency-option {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.currency-option:hover {
  border-color: var(--toxic-green);
  background: rgba(0, 255, 136, 0.05);
}

.currency-option:active {
  transform: scale(0.98);
}

.currency-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.currency-info {
  flex: 1;
  margin-left: 12px;
}

.currency-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.currency-code {
  font-size: 0.8rem;
  color: var(--muted);
}

.currency-price {
  font-weight: 700;
  color: var(--toxic-green);
  font-size: 1rem;
}

@keyframes slideUpModal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
