/* Onramper / MoonPay deposit channel tabs — prototype overlay (REQ P0) */

.proto-deposit-channel-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid #323137;
  border-radius: 10px;
  background: #161518;
}

.proto-deposit-channel-tabs button {
  flex: 1;
  border: none;
  background: transparent;
  color: #878491;
  font-size: 13px;
  line-height: 20px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.proto-deposit-channel-tabs button:hover {
  color: #fdfdfc;
}

.proto-deposit-channel-tabs button.is-active {
  background: #ffd905;
  color: #161518;
  font-weight: 600;
}

.proto-deposit-fiat-panel {
  display: none;
}

.proto-deposit-fiat-panel.is-visible {
  display: block;
}

.proto-deposit-fiat-panel .proto-fiat-field {
  margin-bottom: 12px;
}

.proto-deposit-fiat-panel label {
  display: block;
  font-size: 12px;
  color: #878491;
  margin-bottom: 6px;
}

.proto-deposit-fiat-panel input,
.proto-deposit-fiat-panel select {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #323137;
  border-radius: 8px;
  background: #201f24;
  color: #fdfdfc;
  font-size: 14px;
}

.proto-deposit-fiat-panel input[readonly] {
  color: #878491;
}

.proto-deposit-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.proto-deposit-quick-amounts button {
  border: 1px solid #323137;
  background: #201f24;
  color: #c8c6d0;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}

.proto-deposit-quick-amounts button:hover,
.proto-deposit-quick-amounts button.is-selected {
  border-color: #ffd905;
  color: #ffd905;
}

.proto-deposit-fiat-pay-btn {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  background: #ffd905;
  color: #161518;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.proto-deposit-fiat-pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.proto-deposit-fiat-headline {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fdfdfc;
}

.proto-deposit-amount-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.proto-deposit-amount-row .proto-fiat-amount {
  flex: 1;
  min-width: 0;
}

.proto-deposit-amount-row .proto-fiat-currency {
  width: 88px;
  flex-shrink: 0;
}

.proto-deposit-fiat-summary {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #201f24;
  border: 1px solid #323137;
}

.proto-deposit-fiat-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 22px;
}

.proto-deposit-fiat-summary-row + .proto-deposit-fiat-summary-row {
  margin-top: 8px;
}

.proto-deposit-fiat-summary-row .label {
  color: #878491;
}

.proto-deposit-fiat-summary-row .value {
  color: #fdfdfc;
  font-weight: 600;
  text-align: right;
}

.proto-deposit-fiat-summary-row .proto-fiat-estimate {
  color: #ffd905;
}

.proto-deposit-kyc-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 217, 5, 0.06);
  border: 1px solid rgba(255, 217, 5, 0.15);
  font-size: 12px;
  line-height: 18px;
  color: #c8c6d0;
}

.proto-deposit-kyc-hint strong {
  display: block;
  margin-bottom: 4px;
  color: #fdfdfc;
  font-size: 13px;
}

.proto-deposit-kyc-hint.is-verified {
  border-color: rgba(82, 196, 128, 0.35);
  background: rgba(82, 196, 128, 0.08);
}

.proto-deposit-kyc-hint p {
  margin: 0;
}

.proto-deposit-onramp-tip {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 18px;
  color: #878491;
}

.proto-deposit-channel-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
}

.proto-deposit-channel-note.is-info {
  background: rgba(255, 217, 5, 0.08);
  border: 1px solid rgba(255, 217, 5, 0.35);
  color: #c8c6d0;
}

.proto-deposit-channel-note.is-success {
  background: rgba(82, 196, 26, 0.12);
  border: 1px solid rgba(82, 196, 26, 0.35);
  color: #95de64;
}

.proto-deposit-channel-note.is-error {
  background: rgba(255, 77, 79, 0.12);
  border: 1px solid rgba(255, 77, 79, 0.35);
  color: #ff7875;
}

.proto-deposit-channel-note.is-processing {
  background: rgba(135, 132, 145, 0.12);
  border: 1px solid #323137;
  color: #c8c6d0;
}

.proto-deposit-chain-hidden {
  display: none !important;
}

/* FiatOnRampDialog iframe overlay */
.proto-fiat-onramp-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.65);
}

.proto-fiat-onramp-dialog {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid #323137;
  background: #201f24;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.proto-fiat-onramp-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #323137;
  color: #fdfdfc;
  font-size: 15px;
  font-weight: 600;
}

.proto-fiat-onramp-dialog__close {
  border: none;
  background: transparent;
  color: #878491;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.proto-fiat-onramp-dialog__close:hover {
  color: #fdfdfc;
}

.proto-fiat-onramp-dialog__iframe-wrap {
  flex: 1;
  min-height: 420px;
  background: #fff;
}

.proto-fiat-onramp-dialog__iframe-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: none;
}

.proto-fiat-onramp-dialog__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #878491;
  font-size: 14px;
}

/* KYC intercept modal */
.proto-onramper-kyc-overlay {
  position: fixed;
  inset: 0;
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
}

.proto-onramper-kyc-modal {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #323137;
  background: #201f24;
  color: #fdfdfc;
  text-align: center;
}

.proto-onramper-kyc-modal h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.proto-onramper-kyc-modal p {
  margin: 0 0 20px;
  color: #878491;
  font-size: 14px;
  line-height: 22px;
}

.proto-onramper-kyc-modal__actions {
  display: flex;
  gap: 12px;
}

.proto-onramper-kyc-modal__actions button {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.proto-onramper-kyc-btn-secondary {
  border: 1px solid #585660;
  background: transparent;
  color: #fdfdfc;
}

.proto-onramper-kyc-btn-primary {
  border: 1px solid #ffd905;
  background: #ffd905;
  color: #161518;
  font-weight: 600;
}

.proto-onramper-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: proto-onramper-toast-in 0.25s ease;
}

.proto-onramper-toast.is-success {
  background: #52c41a;
  color: #fff;
}

.proto-onramper-toast.is-error {
  background: #ff4d4f;
  color: #fff;
}

@keyframes proto-onramper-toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Withdraw / Off-ramp channel tabs — mirrors deposit overlay */

.proto-withdraw-channel-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid #323137;
  border-radius: 10px;
  background: #161518;
}

.proto-withdraw-channel-tabs button {
  flex: 1;
  border: none;
  background: transparent;
  color: #878491;
  font-size: 13px;
  line-height: 20px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.proto-withdraw-channel-tabs button:hover {
  color: #fdfdfc;
}

.proto-withdraw-channel-tabs button.is-active {
  background: #ffd905;
  color: #161518;
  font-weight: 600;
}

.proto-withdraw-fiat-panel {
  display: none;
}

.proto-withdraw-fiat-panel.is-visible {
  display: block;
}

.proto-withdraw-fiat-panel .proto-fiat-field {
  margin-bottom: 12px;
}

.proto-withdraw-fiat-panel label {
  display: block;
  font-size: 12px;
  color: #878491;
  margin-bottom: 6px;
}

.proto-withdraw-fiat-panel input,
.proto-withdraw-fiat-panel select {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #323137;
  border-radius: 8px;
  background: #201f24;
  color: #fdfdfc;
  font-size: 14px;
}

.proto-withdraw-fiat-panel input[readonly] {
  color: #878491;
}

.proto-withdraw-balance-hint {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 217, 5, 0.06);
  border: 1px solid rgba(255, 217, 5, 0.2);
  font-size: 13px;
  color: #c8c6d0;
}

.proto-withdraw-balance-hint strong {
  color: #ffd905;
}

.proto-withdraw-fiat-headline {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fdfdfc;
}

.proto-withdraw-amount-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.proto-withdraw-amount-row .proto-fiat-crypto-amount {
  flex: 1;
  min-width: 0;
}

.proto-withdraw-amount-row .proto-fiat-asset--inline {
  width: 96px;
  flex-shrink: 0;
}

.proto-withdraw-quick-amounts {
  margin-bottom: 16px;
}

.proto-withdraw-fiat-summary {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #201f24;
  border: 1px solid #323137;
}

.proto-withdraw-fiat-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 22px;
}

.proto-withdraw-fiat-summary-row + .proto-withdraw-fiat-summary-row {
  margin-top: 8px;
}

.proto-withdraw-fiat-summary-row .label {
  color: #878491;
}

.proto-withdraw-fiat-summary-row .value {
  color: #fdfdfc;
  font-weight: 600;
  text-align: right;
}

.proto-withdraw-fiat-summary-row .proto-fiat-estimate {
  color: #ffd905;
}

.proto-withdraw-offramp-tip {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 18px;
  color: #878491;
}

.proto-withdraw-freeze-banner {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 18px;
  background: rgba(91, 108, 255, 0.12);
  border: 1px solid rgba(91, 108, 255, 0.35);
  color: #a6b1ff;
}

.proto-withdraw-fiat-pay-btn {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  background: #ffd905;
  color: #161518;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.proto-withdraw-fiat-pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.proto-withdraw-channel-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
}

.proto-withdraw-channel-note.is-info {
  background: rgba(255, 217, 5, 0.08);
  border: 1px solid rgba(255, 217, 5, 0.35);
  color: #c8c6d0;
}

.proto-withdraw-channel-note.is-success {
  background: rgba(82, 196, 26, 0.12);
  border: 1px solid rgba(82, 196, 26, 0.35);
  color: #95de64;
}

.proto-withdraw-channel-note.is-error {
  background: rgba(255, 77, 79, 0.12);
  border: 1px solid rgba(255, 77, 79, 0.35);
  color: #ff7875;
}

.proto-withdraw-channel-note.is-processing {
  background: rgba(135, 132, 145, 0.12);
  border: 1px solid #323137;
  color: #c8c6d0;
}

.proto-withdraw-chain-hidden {
  display: none !important;
}
