/* Withdraw Modal Styles - same as deposit */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-content {
  background: #0a0e27;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ffffff;
}

.field-hint {
  color: #64748b;
  font-size: 12px;
  margin-top: 6px;
  margin-bottom: 0;
}

/* Policy copy: readable statement, not a “card” panel */
.withdraw-policy-statement {
  margin: 0 0 20px 0;
  padding: 0 0 0 14px;
  border-left: 3px solid rgba(37, 99, 235, 0.65);
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

.withdraw-policy-lead {
  margin: 0 0 8px 0;
  font-weight: 600;
  color: #e2e8f0;
  font-size: 15px;
}

.withdraw-policy-text {
  margin: 0;
}

.withdraw-deposit-gate {
  margin: 0 0 18px 0;
  padding: 12px 0 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.withdraw-deposit-gate__text {
  margin: 0 0 12px 0;
  color: #fbbf24;
  font-size: 13px;
  line-height: 1.45;
}

.withdraw-deposit-gate__btn {
  width: 100%;
  justify-content: center;
}

#withdrawForm.withdraw-form--disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Post-submit success (matches withdrawal confirmation UI) */
.withdraw-modal-content {
  position: relative;
}

#withdrawModalMain.is-hidden {
  display: none !important;
}

.withdraw-success-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 24px;
}

.withdraw-success-panel.is-open {
  display: flex;
}

.withdraw-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.withdraw-success-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.withdraw-success-text {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.5;
  color: #94a3b8;
  max-width: 340px;
}

.withdraw-success-done {
  width: 100%;
  max-width: 320px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.withdraw-success-done:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.withdraw-success-done:active {
  transform: scale(0.98);
}
