/* DeFlock Galveston County · donate page. Builds on styles.css tokens and components. */

/* ---------- Intro: what donations pay for + 100% pledge ---------- */
.dn-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.dn-uses { margin-top: 30px; }
.dn-uses li { font-size: 16px; }
.dn-note { margin: 26px 0 0; color: var(--fg-2); font-size: 15.5px; max-width: 52ch; }
.dn-note a { color: var(--fg); }

.dn-pledge .core {
  padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px;
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(255, 59, 47, 0.2) 0%, rgba(255, 59, 47, 0) 58%),
    radial-gradient(80% 70% at 0% 100%, rgba(255, 59, 47, 0.08) 0%, rgba(255, 59, 47, 0) 60%),
    var(--core);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(255, 59, 47, 0.22);
}
.dn-pledge .label { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-2); }
.dn-pledge-num {
  margin: 8px 0 0; font-size: clamp(5rem, 12vw, 9.5rem); line-height: 0.85; letter-spacing: -0.07em;
  font-weight: 620; font-variant-numeric: tabular-nums; color: var(--fg);
}
.dn-pledge-num span { color: var(--rec); font-size: 0.55em; letter-spacing: -0.03em; margin-left: 0.04em; }
.dn-pledge-text { margin: 0; font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.4; letter-spacing: -0.02em; font-weight: 500; max-width: 30ch; text-wrap: pretty; }

/* ---------- Crypto section ---------- */
.dn-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; }
.dn-head .title { max-width: 14ch; }
.dn-head-copy { max-width: 44ch; margin: 0; }

.dn-warn {
  margin-top: clamp(36px, 4.5vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 20px 24px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255, 59, 47, 0.14), rgba(255, 59, 47, 0.04) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 59, 47, 0.38);
}
.dn-warn svg { width: 24px; height: 24px; color: var(--rec); margin-top: 1px; }
.dn-warn p { margin: 0; color: var(--fg-2); font-size: 15.5px; line-height: 1.55; }
.dn-warn strong { color: var(--fg); font-weight: 600; display: block; margin-bottom: 4px; }

.dn-wallets { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); margin-top: 18px; }
.dn-card .core { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.dn-card-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dn-card-head > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.dn-card-head h3 { margin: 0; font-size: 1.6rem; letter-spacing: -0.04em; line-height: 1; font-weight: 600; }
.dn-logo { width: 52px; height: 52px; flex: none; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04); }
.dn-pending {
  display: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap;
}
.dn-card.is-pending .dn-pending { display: inline-block; }

.dn-qr {
  width: min(100%, 240px); aspect-ratio: 1; margin-inline: auto; border-radius: var(--r-md);
  display: grid; place-items: center; background: var(--core-2); box-shadow: inset 0 0 0 1px var(--line-2);
  overflow: hidden;
}
.dn-qr > img, .dn-qr > svg { width: 100%; height: 100%; background: #fff; padding: 12px; }
.dn-qr-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px; text-align: center; }
.dn-qr-empty svg { width: 64px; height: 64px; color: var(--fg-4); }
.dn-qr-empty span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); line-height: 1.6; max-width: 20ch; }

.dn-addr { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dn-addr-val {
  display: block; font-family: var(--mono); font-size: 14px; line-height: 1.55; color: var(--fg);
  padding: 14px 16px; border-radius: var(--r-md); background: var(--core-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  overflow-wrap: anywhere; word-break: break-all; user-select: all; -webkit-user-select: all;
}

.dn-card .btn { margin-top: 2px; }
.dn-card .btn.is-copied { background: var(--ok); color: #000; }
.dn-card .btn.is-copied .ico { background: #000; color: var(--ok); }
.dn-copied {
  margin: -8px 0 0; min-height: 1.5em; display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ok);
  opacity: 0; transform: translateY(-4px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.dn-copied.is-shown { opacity: 1; transform: none; }
.dn-copied.is-error { color: var(--rec); }
.dn-copied::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.dn-chips { list-style: none; padding: 0; margin: clamp(28px, 3.5vw, 40px) 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .dn-intro { grid-template-columns: 1fr; }
  .dn-pledge-text { max-width: 36ch; }
}
@media (max-width: 767px) {
  .dn-wallets { grid-template-columns: 1fr; }
  .dn-warn { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .dn-addr-val { font-size: 13px; }
  .dn-chips .chip { font-size: 13px; }
}
