/* txconcepts.com /support/ — Support the show. Uses brand tokens from /assets/css/styles.css. */
.sp-hero { padding-bottom: clamp(28px, 4vw, 44px); }
.sp-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-layout, .sp-foot, .sp-hero .container { max-width: calc(1320px + 2 * var(--gutter)); }
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding-top: 32px; padding-bottom: 24px; align-items: start; }
.sp-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.sp-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .85fr); gap: 16px; align-items: stretch; }
.sp-card { background: var(--dark); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sp-card h2, .sp-side h2, .sp-affs h2 { font-size: 22px; font-weight: 500; }
.sp-card > p { color: var(--sage); font-size: 15px; }
.sp-fine { font-size: 13px; line-height: 1.5; color: var(--sage); }
.sp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; flex: 1 1 0;
  border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent; color: var(--white); font: 600 15px/1.2 var(--body); cursor: pointer;
}
.sp-pill img { width: 18px; height: 18px; }
.sp-pill:hover { border-color: var(--sage); }
.sp-pill[aria-pressed="true"] { background: var(--lime); color: var(--dark); border-color: var(--lime); }
.sp-field, .sp-input-wrap {
  width: 100%; font: 400 15px/1.4 var(--body); color: var(--white); background: var(--near-black);
  border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); padding: 10px 12px;
}
.sp-field::placeholder, .sp-input-wrap input::placeholder { color: rgba(190, 204, 179, .7); }
.sp-custom label, .sp-paste label { display: block; font-size: 13px; color: var(--sage); margin-bottom: 4px; }
.sp-input-wrap { display: flex; align-items: center; gap: 6px; }
.sp-input-wrap input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--white); font: inherit; outline: none; }
.sp-input-wrap:focus-within { outline: 3px solid var(--lime); outline-offset: 2px; }
textarea.sp-field { resize: vertical; min-height: 76px; }
.sp-send, .sp-super { width: 100%; }
button.btn { cursor: pointer; }
button.btn-ghost, a.btn-ghost { background: transparent; }
button.btn-ghost:hover { background: rgba(190, 204, 179, .08); }
.sp-send[disabled] { opacity: .6; cursor: progress; }
.sp-status { font-size: 14px; color: var(--mint); min-height: 0; }
.sp-status:empty { display: none; }
.sp-status.err { color: #ffb4a8; }

/* QR card */
.sp-qr { align-items: center; text-align: center; }
.sp-tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--near-black); border: 1px solid var(--rule); border-radius: 18px; padding: 4px; width: 100%; }
.sp-tabs button { flex: 1 1 calc(33.333% - 4px); min-height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--sage); font: 600 14px/1 var(--body); cursor: pointer; }
.sp-tabs button[aria-selected="true"] { background: var(--lime); color: var(--dark); }
.sp-panel { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.sp-panel[hidden] { display: none; }
.sp-qr-title { font-weight: 600; color: var(--white); }
.sp-qr-img { width: min(100%, 230px); height: auto; aspect-ratio: 1; background: #fff; border-radius: 12px; padding: 8px; }
.sp-qr-sub { font-size: 13px; color: var(--sage); }
.sp-qr.flash .sp-qr-img { outline: 3px solid var(--lime); outline-offset: 4px; }

/* chips with copy buttons */
.sp-chip { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; background: var(--near-black); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 6px 6px 6px 12px; }
.sp-chip code, .sp-chip > a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--mint); text-align: left; }
.sp-chip > a { font-family: var(--body); color: var(--lime); }
.sp-copy { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent; color: var(--white); font: 600 13px/1 var(--body); cursor: pointer; }
.sp-copy:hover { border-color: var(--lime); color: var(--lime); }
.sp-copy.ok { background: var(--lime); color: var(--dark); border-color: var(--lime); }
.sp-addr-long { align-items: flex-start; }
.sp-addr-long code { white-space: normal; overflow-wrap: anywhere; word-break: break-word; text-overflow: clip; overflow: visible; font-size: 12px; line-height: 1.4; }
.sp-party-head { white-space: nowrap; }
.sp-addr-long .sp-copy { margin-top: 2px; }
.sp-paste { width: 100%; text-align: left; font-size: 14px; color: var(--sage); }
.sp-paste summary { cursor: pointer; color: var(--mint); }
.sp-paste[open] summary { margin-bottom: 8px; }
.sp-paste-row { display: flex; gap: 8px; }
.sp-paste-row .btn { min-height: 42px; padding: 8px 16px; }

/* Swap */
.sp-swap .btn { width: 100%; }

/* Goal pill */
.sp-goal { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "label bar tippers" "note note note" "src src src"; align-items: center; gap: 8px 18px; background: var(--dark); border: 1px solid var(--rule-strong); border-radius: 28px; padding: 14px 26px; }
.sp-goal-label { grid-area: label; font: 600 18px/1.2 var(--body); letter-spacing: 0; white-space: nowrap; }
.sp-gift { margin-right: 8px; }
.sp-bar { grid-area: bar; position: relative; height: 34px; border-radius: 999px; background: rgba(190, 204, 179, .16); overflow: hidden; }
.sp-bar-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--lime); border-radius: 999px; transition: width .8s ease; }
.sp-bar-text { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; font-weight: 700; font-size: 15px; color: var(--white); mix-blend-mode: difference; }
.sp-tippers { grid-area: tippers; font-size: 15px; color: var(--sage); white-space: nowrap; }
.sp-goal-note { grid-area: note; text-align: center; font-size: 15px; color: var(--mint); }
.sp-goal-src { grid-area: src; text-align: center; }

/* Affiliates: fixed-width equal-height cards, last row centred */
.sp-affs h2 { margin-bottom: 2px; }
.sp-aff-grid { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 16px 0 12px; }
.sp-aff { flex: 0 0 calc(25% - 10.5px); min-width: 0; min-height: 252px; background: var(--dark); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sp-aff-top { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.sp-logo { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--near-black); border: 1px solid var(--rule); }
.sp-logo img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
.sp-aff-name { min-width: 0; }
.sp-aff h3 { font-size: 17px; line-height: 1.2; }
.sp-cat { font-size: 13px; color: var(--sage); line-height: 1.3; }
.sp-badge { align-self: flex-start; height: 24px; display: inline-flex; align-items: center; background: var(--lime); color: var(--dark); font-size: 12.5px; font-weight: 700; padding: 0 10px; border-radius: 999px; white-space: nowrap; }
.sp-badge-neutral { background: transparent; color: var(--sage); border: 1px solid var(--rule-strong); font-weight: 600; }
.sp-blurb { font-size: 14px; line-height: 1.45; color: var(--sage); min-height: calc(2 * 1.45em); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-code { padding: 5px 5px 5px 10px; min-height: 42px; }
.sp-code code { font-size: 13.5px; }
.sp-code.sp-code-sm code { font-size: 11.5px; line-height: 1.3; letter-spacing: -.01em; white-space: normal; overflow-wrap: anywhere; overflow: visible; }
.sp-code.sp-code-label code { font-family: var(--body); font-weight: 600; color: var(--mint); }
.sp-code code { text-overflow: clip; }
.sp-code .sp-copy { margin-left: auto; }
.sp-open { margin-top: auto; width: 100%; min-height: 40px; padding: 8px 16px; font-size: 15px; }
.sp-open-off { background: transparent; color: var(--sage); border: 1px solid var(--rule-strong); cursor: default; }

/* Side */
.sp-side { display: flex; flex-direction: column; gap: 18px; }
.sp-tiers { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 12px 0 10px; }
.sp-tier { background: var(--dark); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.sp-tier h3 { grid-column: 1 / -1; font-size: 18px; }
.sp-price { grid-column: 1 / -1; font: 600 34px/1.1 var(--display); color: var(--lime); }
.sp-price span { font-size: 18px; color: var(--sage); font-weight: 400; }
.sp-tier ul { list-style: disc; padding-left: 18px; font-size: 14px; color: var(--sage); }
.sp-join { align-self: end; min-height: 40px; padding: 8px 20px; }
.sp-sponsor .sp-chip > a { font-size: 13px; }

.sp-foot { padding-top: 8px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 8px; }
.sp-foot > p:first-child { font-weight: 600; color: var(--mint); }

/* Thank-you modal */
.sp-modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--rule-strong); border-radius: 20px; background: var(--near-black); color: var(--white); }
.sp-modal::backdrop { background: rgba(0, 0, 0, .72); }
.sp-modal-in { position: relative; padding: 26px 26px 20px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.sp-modal-logo { margin: 0 auto; width: 96px; height: auto; }
.sp-modal h2 { font-size: 26px; }
.sp-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--sage); font-size: 28px; cursor: pointer; border-radius: 999px; }
.sp-hash { word-break: break-all; }
.sp-nft { border: 1px solid var(--lime); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.sp-nft-head { color: var(--lime); font-weight: 600; text-align: center; }
.sp-nft-row { display: flex; gap: 14px; align-items: center; }
.sp-nft-row img { background: var(--black); border: 1px solid var(--rule); border-radius: 12px; padding: 10px; flex: none; }
.sp-nft-name { font-weight: 600; }
.sp-tier-note { color: var(--mint); }
#ty-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.sp-check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; margin-right: 16px; cursor: pointer; }
.sp-check input { width: 18px; height: 18px; accent-color: var(--lime); }
.sp-modal-actions { display: flex; gap: 10px; }
.sp-modal-actions .btn:first-child { flex: 1; }
.sp-share { font-size: 15px; }

@media (max-width: 1100px) {
  .sp-aff { flex-basis: calc(33.333% - 9.34px); }
  .sp-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sp-swap { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .sp-aff { flex: 0 0 calc(50% - 7px); width: auto; }
  .sp-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sp-top { grid-template-columns: minmax(0, 1fr); }
  .sp-goal { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "bar" "tippers" "note" "src"; border-radius: var(--radius); padding: 16px; text-align: center; }
  .sp-tippers { white-space: normal; }
  .sp-aff { flex: 1 1 100%; width: auto; }
  .sp-pill { padding: 8px 10px; }
  .sp-tabs button { font-size: 13px; }
}
