/* ==========================================================================
   HotSignals — Support page: running costs as a printed slip, the Buy Me a
   Coffee button, and the wall of appreciation.
   ========================================================================== */

.dn-main { max-width: 1180px; margin: 0 auto; padding: 28px 16px 0; display: grid; gap: 44px; }

.dn-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 40px; align-items: start; }
.dn-copy h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 5vw, 3.4rem); font-stretch: 72%; line-height: 1; letter-spacing: -.01em; }
.dn-copy p { margin: 0 0 12px; max-width: 62ch; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.dn-copy .dn-lede { font-size: 1.12rem; color: var(--text); }

.dn-cta { margin: 22px 0 6px; display: grid; gap: 10px; justify-items: start; }
.bmc-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 12px;
  background: #FFDD00; color: #1A1A1A; font-weight: 800; font-size: 1.08rem; text-decoration: none;
  box-shadow: 0 2px 0 #C9AE00, 0 8px 20px rgba(255, 200, 0, .25); transition: transform .15s ease, box-shadow .15s ease;
}
.bmc-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 #C9AE00, 0 12px 24px rgba(255, 200, 0, .3); }
.bmc-btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.bmc-btn.is-off { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: default; transform: none; }
.bmc-cup { font-size: 1.25rem; }
.dn-cta-note { font-size: .88rem !important; margin: 0 !important; }
.dn-cta-note a { color: var(--text); font-weight: 600; }
.dn-cta-note.owner { color: var(--flare) !important; }
.dn-perk { display: flex; gap: 10px; align-items: flex-start; max-width: 520px; padding: 10px 14px; border-radius: 10px; text-decoration: none;
  color: var(--muted); font-size: .9rem; line-height: 1.5; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--flare); }
.dn-perk b { color: var(--text); }
.dn-perk:hover { border-color: var(--flare); }

.dn-goal { margin-top: 18px; max-width: 460px; }
.dn-goal-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.dn-goal-top b { font-size: 1.4rem; color: var(--text); font-stretch: 80%; }
.dn-bar { margin-top: 6px; height: 10px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.dn-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FFDD00, var(--flare)); border-radius: 6px; }

/* The receipt reuses the ticket slip (paper, perforated edges) from app.css */
.receipt { margin: 0; filter: var(--shadow-ticket); rotate: 1.2deg; }
.rc-slip { padding: 22px 22px 16px; }
.rc-head { margin: 0; font-size: 1.35rem; font-weight: 800; font-stretch: 78%; color: var(--ink); }
.rc-sub { margin: 2px 0 12px; font-family: var(--mono); font-size: .76rem; color: var(--ink-soft); }
.rc-lines { list-style: none; margin: 0; padding: 0; border-top: 1.5px dashed var(--ink-line); }
.rc-lines li { display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; border-bottom: 1px dotted var(--ink-line); }
.rc-item { display: grid; gap: 2px; min-width: 0; }
.rc-item b { font-size: .95rem; color: var(--ink); }
.rc-item span { font-size: .8rem; line-height: 1.4; color: var(--ink-soft); }
.rc-amt { flex: none; font-family: var(--mono); font-weight: 600; color: var(--ink); }
.rc-total { display: flex; justify-content: space-between; margin: 10px 0 0; padding-top: 8px; border-top: 1.5px solid var(--ink); font-weight: 800; color: var(--ink); }
.rc-total b { font-family: var(--mono); }
.rc-thanks { margin: 14px 0 0; font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); text-align: center; }
.rc-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-family: var(--mono); font-size: .66rem; color: var(--ink-soft); }
.rc-code { flex: 1; height: 26px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px); opacity: .85; }

/* Wall of appreciation */
.dn-wall-head h2 { margin: 0; font-size: 1.8rem; font-stretch: 75%; }
.dn-wall-head p { margin: 4px 0 0; }
.dn-empty { padding: 22px; border-radius: 14px; border: 1px dashed var(--line); background: var(--surface); color: var(--muted); }
.dn-empty a { color: var(--text); font-weight: 600; }
.notes { list-style: none; margin: 16px 0 0; padding: 0; column-width: 260px; column-gap: 16px; }
.note {
  break-inside: avoid; display: grid; gap: 8px; margin: 0 0 16px; padding: 16px 18px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid #FFDD00;
}
.note:nth-child(3n + 2) { border-top-color: var(--flare); }
.note:nth-child(3n + 3) { border-top-color: var(--mark-won); }
.note.is-hidden { opacity: .55; border-style: dashed; }
.note-cups { margin: 0; font-size: 1.05rem; letter-spacing: .1em; }
.note-msg { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
blockquote.note-msg { quotes: "“" "”"; }
blockquote.note-msg::before { content: open-quote; }
blockquote.note-msg::after { content: close-quote; }
.note-msg.muted { font-size: .9rem; color: var(--muted); font-style: italic; }
.note-by { margin: 0; display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--muted); }
.note-by b { color: var(--text); }
.note-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .78rem; }
.note-tools .muted { flex: 1 1 100%; }
.btn-sm { padding: 3px 10px; font-size: .78rem; }

.dn-owner { margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.dn-owner summary { cursor: pointer; font-weight: 700; }
.dn-owner p { font-size: .86rem; }
.dn-owner code { overflow-wrap: anywhere; }
.dn-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.dn-add .grow { flex: 1 1 260px; }
.dn-add textarea { width: 100%; font: inherit; }

@media (max-width: 860px) {
  .dn-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .receipt { rotate: 0deg; max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .bmc-btn, .bmc-btn:hover { transition: none; transform: none; }
}

/* ==========================================================================
   Bank transfer (SEPA QR / QR Platba)
   ========================================================================== */
.dn-ways { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bank-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px; text-decoration: none;
  background: var(--text); color: var(--bg); font-weight: 800; font-size: 1.08rem;
  box-shadow: 0 8px 20px rgba(14, 21, 32, .18); transition: transform .15s ease;
}
.bank-btn small { font-weight: 600; font-size: .78rem; opacity: .75; }
.bank-btn:hover { transform: translateY(-2px); }

.dn-bank { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); gap: 34px; align-items: start;
  padding: 26px 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 80px; }
.dn-bank h2 { margin: 0 0 6px; font-size: 1.7rem; font-stretch: 75%; }
.bk-form-wrap > p { margin: 0 0 14px; line-height: 1.55; max-width: 60ch; }
.bk-form { display: grid; gap: 12px; }
.bk-form .field textarea { width: 100%; resize: vertical; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; }
.bk-form .field input { width: 100%; }
.bk-form small { font-weight: 400; }
.bk-form small a, .bk-perk a { color: var(--text); }
.bk-cur { justify-self: start; }
.bk-cur button { padding: 0 14px; }
.bk-amounts { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.bk-amounts legend { padding: 0; margin-bottom: 6px; font-size: .78rem; color: var(--muted); }
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bk-chip span { display: inline-flex; align-items: center; min-width: 64px; justify-content: center; padding: 10px 16px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 1rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.bk-chip input:checked + span { border-color: var(--flare); background: color-mix(in srgb, var(--flare) 12%, var(--surface)); color: var(--text); }
.bk-chip input:focus-visible + span { outline: 2px solid var(--flare); outline-offset: 2px; }
.bk-custom { max-width: 200px; }
.bk-perk { margin: 0; min-height: 1.4em; font-size: .9rem; color: var(--muted); }
.bk-perk b { color: var(--text); }
.bk-acct { margin: 0; font-size: .86rem; }
.bk-form .btn-lg { justify-self: start; padding: 12px 20px; font-size: 1rem; font-weight: 800; }

.bk-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bk-why li { padding: 12px 14px 12px 16px; border-left: 3px solid var(--line); line-height: 1.5; font-size: .93rem; color: var(--muted); }
.bk-why li:first-child { border-left-color: var(--won, #2FA866); }
.bk-why b { color: var(--text); }

/* The payment slip: ticket paper, like the running-costs receipt */
.bk-slip { padding: 20px 22px 18px; border-radius: 10px; background: var(--paper); color: var(--ink); filter: var(--shadow-ticket); display: grid; gap: 12px; }
.bk-slip-head { margin: 0; font-family: var(--mono); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.bk-pay { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 18px; align-items: start; }
.bk-qr-wrap { margin: 0; display: grid; gap: 6px; justify-items: center; }
.bk-qr { width: 176px; height: 176px; border-radius: 8px; box-shadow: 0 0 0 1px var(--ink-line); }
.bk-qr-wrap figcaption { font-size: .74rem; color: var(--ink-soft); }
.bk-rows { margin: 0; display: grid; gap: 0; }
.bk-row { display: grid; gap: 1px; padding: 6px 0; border-bottom: 1px dotted var(--ink-line); }
.bk-row dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 600; }
.bk-row dd { margin: 0; display: flex; align-items: center; gap: 8px; justify-content: space-between; font-family: var(--mono); font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.bk-copy { flex: none; padding: 2px 8px; border-radius: 5px; border: 1px solid var(--ink-line); background: transparent; color: var(--ink); font-size: .72rem; cursor: pointer; font-family: inherit; }
.bk-copy:hover { border-color: var(--ink); }
.bk-important { margin: 0; padding: 8px 10px; border-radius: 6px; background: color-mix(in srgb, #FFDD00 30%, var(--paper)); font-size: .88rem; line-height: 1.45; }
.bk-tip { margin: 0; font-size: .86rem; line-height: 1.5; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.bk-status { margin: 0; padding-top: 10px; border-top: 1.5px dashed var(--ink-line); display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.45; }
.bk-status.is-paid { color: var(--ink); font-size: .95rem; }
.bk-status a { color: var(--ink); font-weight: 700; }
.bk-spin { flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--ink-line); border-top-color: var(--flare); }
@media (prefers-reduced-motion: no-preference) { .bk-spin { animation: bk-rot 1s linear infinite; } @keyframes bk-rot { to { rotate: 360deg; } } }
.bk-again { justify-self: start; color: var(--ink); border-color: var(--ink-line); }

.dn-bank-owner { margin-bottom: 16px; }
.dn-bank-owner h3 { margin: 0 0 6px; font-size: 1rem; color: var(--text); }
.dn-bank-owner ul { margin: 0 0 8px; padding-left: 18px; font-size: .88rem; }
.dn-bank-owner .owner { color: var(--flare); }
.dn-unmatched { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.dn-unmatched li { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.dn-unmatched form { display: flex; flex-wrap: wrap; gap: 6px; }
.dn-unmatched input { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); min-width: 140px; }

@media (max-width: 900px) {
  .dn-bank { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; gap: 22px; }
}
@media (max-width: 480px) {
  .bk-pay { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .bk-rows { width: 100%; }
  .bk-qr { width: 200px; height: 200px; }
}

/* The slip before the donor asks for their QR code: same layout, a ghost QR and a masked reference */
.bk-side { display: grid; gap: 18px; align-content: start; }
.bk-preview .bk-qr-ghost {
  position: relative; width: 176px; height: 176px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1.5px dashed var(--ink-line); border-radius: 8px; background: #fff; color: color-mix(in srgb, var(--ink) 12%, #fff);
}
.bk-preview .bk-qr-ghost svg { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
.bk-preview .bk-qr-ghost span {
  position: relative; padding: 6px 10px; border-radius: 6px; background: var(--paper); color: var(--ink);
  font-size: .78rem; font-weight: 700; line-height: 1.35; text-align: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.bk-preview .bk-qr-ghost:hover { border-color: var(--flare); }
.bk-masked { letter-spacing: .04em; color: var(--ink-soft); }
.bk-pv-btn { justify-self: start; }
.bk-side .bk-why { gap: 8px; }
.bk-side .bk-why li { padding: 6px 10px 6px 12px; font-size: .84rem; }
@media (max-width: 480px) { .bk-preview .bk-qr-ghost { width: 200px; height: 200px; } }
