/* ============================================================
   DONATE — streamer donate page, alert preview, donor list
   ============================================================ */

/* ---- Donate cover banner ---- */
.donate-cover {
  height: 160px;
  border-radius: 20px 20px 0 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(400px 180px at 70% -20%, rgba(67,232,216,.5), transparent),
    linear-gradient(120deg, #2A1B52, #6B2A57);
}

.donate-cover__grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000, transparent);
  pointer-events: none;
}

/* ---- Donate head ---- */
.donate-head {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  padding: 0 24px;
  margin-top: -44px;
  position: relative;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.donate-av {
  width: 96px; height: 96px;
  border-radius: 24px;
  border: 4px solid var(--bg);
  display: grid; place-items: center;
  font-size: 44px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #7A5BFF, #43E8D8);
  box-shadow: 0 12px 30px -10px rgba(122,91,255,.6);
}

.donate-meta { flex: 1; min-width: 200px; padding-bottom: 4px; }

.donate-name {
  font-size: 21px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

/* ---- Platform badges ---- */
.platform-list { display: flex; gap: 7px; margin-top: 8px; flex-wrap: wrap; }

.platform {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.platform--yt { background: rgba(255,0,0,.14); color: #FF8A8A; }
.platform--tt { background: rgba(255,255,255,.08); color: #E8E8E8; }
.platform--fb { background: rgba(59,89,152,.22); color: #9BB4F0; }

/* ---- Donate content grid ---- */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  padding: 0 24px 24px;
}

/* ---- Amount selection ---- */
.amt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 6px 0 16px;
}

.amt-btn {
  padding: 14px;
  border-radius: 13px;
  border: 1.5px solid var(--line-soft);
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.amt-btn:hover { border-color: var(--violet); }
.amt-btn.is-selected {
  border-color: var(--pink);
  background: linear-gradient(135deg, rgba(255,92,138,.16), transparent);
  color: var(--pink);
}

/* ---- Alert preview ---- */
.donate-alert-preview {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(120deg, #1A1438, #241640);
  border: 1px solid var(--line);
}
.donate-alert-preview__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.donate-alert-preview__icon {
  font-size: 34px;
  animation: wobble 1.6s ease-in-out infinite;
}
.donate-alert-preview__msg { color: var(--muted); font-size: 13px; margin-top: 2px; }

.donate-footnote {
  color: var(--faint);
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
}

/* ---- Donor list ---- */
.donor {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}
.donor:first-of-type { border-top: 0; }

.donor__rank  { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

.donor__av {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #06121A;
  flex-shrink: 0;
}

.donor__name  { font-weight: 700; font-size: 13.5px; }

.donor__amount {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold);
  font-size: 13.5px;
  white-space: nowrap;
}

/* ---- Share link ---- */
.share-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  margin-top: 6px;
}
.share-link code {
  flex: 1;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 880px) {
  .donate-grid { grid-template-columns: 1fr; padding: 0 16px 20px; }
}
