/* Multi-channel withdrawal request modal */

.withdrawal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem;
  padding-top: max(1.25rem, env(safe-area-inset-top, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(2, 6, 12, 0.78);
  backdrop-filter: blur(6px);
}

.withdrawal-modal-backdrop.hidden {
  display: none;
}

.withdrawal-modal {
  width: min(100%, 32rem);
  max-height: none;
  margin: 0 auto 1.25rem;
  flex-shrink: 0;
  overflow: visible;
  border-radius: 14px;
  border: 1px solid rgba(0, 210, 255, 0.22);
  background: linear-gradient(180deg, rgba(13, 17, 24, 0.98), rgba(5, 7, 11, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.withdrawal-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.withdrawal-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b8c5d9;
}

.withdrawal-modal__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #7d8da6;
}

.withdrawal-modal__close {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.85);
  color: #94a3b8;
  border-radius: 8px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.withdrawal-modal__close:hover {
  color: #e2e8f0;
  border-color: rgba(0, 210, 255, 0.35);
}

.withdrawal-modal__body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.withdrawal-modal__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.withdrawal-modal__summary-card {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 7, 11, 0.65);
  padding: 0.65rem 0.75rem;
}

.withdrawal-modal__summary-label {
  margin: 0;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.withdrawal-modal__summary-value {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.withdrawal-modal__summary-value--amount {
  color: #34d399;
}

.withdrawal-channel-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.withdrawal-channel-tab {
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.withdrawal-channel-tab:hover {
  border-color: rgba(0, 210, 255, 0.35);
}

.withdrawal-channel-tab.is-active {
  border-color: rgba(0, 210, 255, 0.55);
  background: rgba(0, 210, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.15);
}

.withdrawal-channel-tab__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
}

.withdrawal-channel-tab__hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  color: #94a3b8;
}

.withdrawal-modal__fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.withdrawal-modal__fields.hidden {
  display: none;
}

.withdrawal-modal__field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.withdrawal-modal__field input,
.withdrawal-modal__field select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(0, 210, 255, 0.12);
  background: rgba(5, 7, 11, 0.85);
  color: #e2e8f0;
  padding: 0.55rem 0.7rem;
  font-size: 0.875rem;
}

.withdrawal-modal__field input:focus,
.withdrawal-modal__field select:focus {
  outline: none;
  border-color: rgba(0, 210, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}

.withdrawal-modal__purpose-note {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px dashed rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.08);
  font-size: 0.6875rem;
  color: #ddd6fe;
}

.withdrawal-modal__message {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
}

.withdrawal-modal__message.hidden {
  display: none;
}

.withdrawal-modal__message.is-error {
  color: #f87171;
}

.withdrawal-modal__message.is-success {
  color: #6ee7b7;
}

.withdrawal-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.withdrawal-modal__btn {
  flex: 1 1 auto;
  min-height: 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 24, 0.75);
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.withdrawal-modal__btn:hover:not(:disabled) {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

.withdrawal-modal__btn--primary {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(0, 210, 255, 0.12));
  color: #ecfdf5;
}

.withdrawal-modal__btn--primary:hover:not(:disabled) {
  border-color: rgba(52, 211, 153, 0.65);
  color: #fff;
}

.withdrawal-modal__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.withdrawal-open-btn {
  width: 100%;
}

.withdrawal-admin-detail-btn {
  border-radius: 6px;
  border: 1px solid rgba(0, 210, 255, 0.28);
  background: rgba(0, 210, 255, 0.08);
  color: #67e8f9;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.withdrawal-admin-detail-btn:hover {
  background: rgba(0, 210, 255, 0.14);
}

.withdrawal-detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.withdrawal-detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.35rem;
}

.withdrawal-detail-list li span:first-child {
  color: #94a3b8;
}

.withdrawal-detail-list li span:last-child {
  color: #f8fafc;
  text-align: right;
  font-weight: 600;
  word-break: break-word;
}

.withdraw-unit-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.withdraw-unit-option {
  min-width: 3.25rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.withdraw-unit-option:hover {
  border-color: rgba(0, 210, 255, 0.35);
  color: #fff;
}

.withdraw-unit-option.is-active {
  border-color: rgba(52, 211, 153, 0.55);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(0, 210, 255, 0.1));
  color: #ecfdf5;
}

.withdrawal-modal__invoice-list {
  margin-bottom: 0.75rem;
}

.withdrawal-invoice-list {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.withdrawal-invoice-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.withdrawal-invoice-list li:last-child {
  border-bottom: none;
}

.withdrawal-invoice-list li span:first-child {
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.withdrawal-invoice-list li span:last-child {
  color: #6ee7b7;
  font-weight: 700;
}
