/* Donate modal — paired with /js/donate-modal.js. Disposable-address
   donation flow: opens on "Donate <coin>", shows the deposit address with
   a click-to-copy chip, polls for status, closes itself on confirmation. */

.donate-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 28, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 16px;
}
.donate-modal-overlay.hidden { display: none; }

.donate-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(160deg,
    rgba(18, 24, 52, 0.97) 0%,
    rgba(12, 18, 38, 0.93) 50%,
    rgba(20, 30, 60, 0.95) 100%);
  border: 1px solid rgba(94, 203, 255, 0.18);
  border-radius: 18px;
  padding: 28px 26px 22px;
  color: #e2e8f0;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.donate-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border: none; background: transparent;
  color: #94a3b8;
  font-size: 22px; line-height: 1;
  cursor: pointer; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.donate-modal-close:hover { background: rgba(255, 255, 255, 0.06); color: #e2e8f0; }

.donate-modal-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #e2e8f0;
}

.donate-modal-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #94a3b8;
}

.donate-modal-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(125, 211, 252, 0.18);
  border-top-color: #7dd3fc;
  border-radius: 50%;
  animation: donate-modal-spin 0.9s linear infinite;
  flex-shrink: 0;
}
@keyframes donate-modal-spin { to { transform: rotate(360deg); } }

.donate-modal-address-block {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(94, 203, 255, 0.12);
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin-bottom: 14px;
}

.donate-modal-address-label {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}

.donate-modal-address {
  font-family: var(--cr-font-mono, 'JetBrains Mono', 'Fira Code', monospace);
  font-size: 13px;
  word-break: break-all;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(94, 203, 255, 0.18);
  border-radius: 8px;
  padding: 12px 12px;
  color: #e2e8f0;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.donate-modal-address:hover {
  border-color: rgba(94, 203, 255, 0.42);
  background: rgba(15, 23, 42, 1);
}
.donate-modal-address:focus {
  outline: none;
  border-color: rgba(94, 203, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(94, 203, 255, 0.18);
}

.donate-modal-hint {
  margin-top: 8px;
  font-size: 11px;
  color: #6d7696;
  text-align: center;
}

.donate-modal-meta {
  font-size: 12px;
  color: #6d7696;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.donate-modal-meta-sep { opacity: 0.5; }

.wallet-donate-btn {
  width: 100%;
  margin-top: 4px;
}
