/* The supporter badge (js/supporter-badge.js): header, public pages, the supporters wall */
.supporter-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.5; letter-spacing: .02em; color: #fff; text-decoration: none; vertical-align: middle; white-space: nowrap; background: linear-gradient(135deg, #1aa3cf, #006c90); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.supporter-badge svg { width: 13px; height: 13px; fill: #fff; stroke: none; flex: none; }
.supporter-badge.compact { padding: 3px; }
.supporter-badge.compact svg { width: 12px; height: 12px; }
/* White text always: pages color their links (.legal a, the public page), and the badge is often a link */
.supporter-badge, .supporter-badge:link, .supporter-badge:visited, .supporter-badge:hover { color: #fff !important; text-decoration: none !important; }
.supporter-badge.tier-2 { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
/* Gold dark enough for white text */
.supporter-badge.tier-3 { background: linear-gradient(135deg, #c98d1c, #8f5606); }
a.supporter-badge:hover { filter: brightness(1.12); }
/* How long they've supported (supporter-badge.js TENURE): silver ring from 3 months, gold from 6, shining gold from 12 */
.supporter-badge.tenure-3 { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 0 0 2px #c9d3df; }
.supporter-badge.tenure-6 { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 0 0 2px #f2c14e; }
.supporter-badge.tenure-12 { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 0 0 2px #f2c14e, 0 0 8px 1px rgba(242, 193, 78, .55); animation: sb-shine 3s ease-in-out infinite; }
@keyframes sb-shine { 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 0 0 2px #ffe08a, 0 0 12px 2px rgba(255, 214, 102, .8); } }
@media (prefers-reduced-motion: reduce) { .supporter-badge.tenure-12 { animation: none; } }
h1 .supporter-badge { margin-left: 8px; font-size: 12.5px; }

/* /supporters: two columns (the wall on the left, from 960px), tier cards, Your support */
.legal main.sp-main { max-width: 1160px; }
.sp-layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 960px) {
  .sp-layout { grid-template-columns: 280px minmax(0, 1fr); grid-template-areas: "side content"; align-items: start; }
  .sp-content { grid-area: content; }
  .sp-side { grid-area: side; position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow-y: auto; }
}
.sp-side { border: 1px solid var(--line, #2f2f35); border-radius: 14px; padding: 4px 14px 14px; background: var(--panel, #18181b); }
.sp-side h2 { margin-top: 12px; }
.sp-lead { font-size: 16px; color: var(--text, #efeff1); }
.legal .sp-content h2 { margin-top: 28px; }

/* this month's server costs */
.sp-goal-card { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 4px; padding: 12px 16px; border-radius: 12px; background: #10202a; border: 1px solid #1d4456; }
.sp-goal-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; color: #d8f1fa; }
.sp-goal-card .goal-bar { width: 100%; height: 10px; }

/* tier cards */
.sp-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 14px 0; }
.sp-tier { --c1: #1aa3cf; --c2: #006c90; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; border: 1px solid var(--line, #2f2f35);
  background: linear-gradient(180deg, rgba(26, 163, 207, .10), transparent 60%), var(--panel, #18181b); }
.sp-tier.tier-2 { --c1: #8b5cf6; --c2: #5b21b6; background: linear-gradient(180deg, rgba(139, 92, 246, .12), transparent 60%), var(--panel, #18181b); }
.sp-tier.tier-3 { --c1: #c98d1c; --c2: #8f5606; background: linear-gradient(180deg, rgba(224, 165, 38, .12), transparent 60%), var(--panel, #18181b); }
.sp-tier-head { display: flex; align-items: center; gap: 10px; }
.sp-tier-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 6px 18px -6px var(--c1); }
.sp-tier-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legal .sp-tier h3 { margin: 0; color: #fff; font-size: 19px; font-weight: 800; }
.legal .sp-tier p { margin: 0; }
.sp-tier-tag { color: var(--muted, #a0a0ab); font-size: 13.5px; }
.sp-tier-from { margin-top: 6px !important; color: var(--text, #efeff1); font-weight: 700; }
.sp-tier-plans { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.sp-tier .sp-paypal { border-color: var(--c1); color: #fff !important; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.sp-tier .sp-paypal:hover { filter: brightness(1.1); background: linear-gradient(135deg, var(--c1), var(--c2)); }
/* Your own PayPal plan: marked, not a button */
.sp-paypal.current, .sp-tier .sp-paypal.current, .sp-tier .sp-paypal.current:hover { cursor: default; filter: none; background: transparent; color: var(--c1, #5ec3e6) !important; }
.sp-tier.yours { border-color: var(--c1); box-shadow: 0 0 0 1px var(--c1), 0 10px 30px -14px var(--c1); }
.sp-tier-yours { color: var(--c1); font-weight: 800; }
.sp-other-plans { margin: 0 0 12px; padding: 0; }

/* buttons, notes */
.sp-paypal { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 10px; border: 1px solid #1aa3cf; background: transparent; color: #5ec3e6 !important; font: 800 15px Inter, 'Segoe UI', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.sp-paypal:hover { background: rgba(26, 163, 207, .12); }
.sp-paypal.primary { border-color: transparent; color: #fff !important; background: linear-gradient(135deg, #1aa3cf, #006c90); }
.sp-paypal:disabled { opacity: .6; cursor: default; }
.sp-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #10202a; border: 1px solid #1d4456; }
.sp-note.muted { background: transparent; border-color: var(--line, #2f2f35); color: var(--muted, #a0a0ab); }

/* Your support (js/support-card.js): here and on the Account tab */
.sp-box { border: 1px solid var(--line, #2f2f35); border-radius: 14px; padding: 4px 16px 14px; margin: 20px 0; background: var(--panel, #18181b); }
.legal .sp-box h2 { margin-top: 14px; }
.sp-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.sp-prefs { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; }
.sp-prefs label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.sp-prefs input { margin-top: 3px; accent-color: #006c90; }
.sp-history { margin: 12px 0 0; }
.sp-history summary { cursor: pointer; font-weight: 700; color: var(--text, #efeff1); }
.sp-payments { margin: 8px 0 0; padding-left: 18px; color: var(--muted, #a0a0ab); font-size: 13.5px; }
.sp-card-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0 !important; font-size: 14px; }
.sp-discord { margin: 10px 0 0 !important; font-size: 14px; }
/* Invite a friend (referrals) */
.sp-invite { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line, #2f2f35); }
.sp-invite h3 { margin: 0 0 4px; font-size: 15px; }
.sp-invite .hint { margin: 4px 0 0; }
.sp-invite-row { display: flex; gap: 8px; margin: 10px 0 0; }
.sp-invite-row input { flex: 1; min-width: 0; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line, #2f2f35); background: var(--bg, #0e0e10); color: var(--text, #efeff1); font: inherit; font-size: 14px; }
.sp-invite-stats { margin: 8px 0 0 !important; font-size: 13.5px; color: var(--muted, #a0a0ab); }

/* the supporters wall */
.sp-wall { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.sp-wall li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg, #0e0e10); border: 1px solid var(--line, #2f2f35); border-left: 3px solid #1aa3cf; min-width: 0; }
.sp-wall li.tier-2 { border-left-color: #8b5cf6; }
.sp-wall li.tier-3 { border-left-color: #e0a526; }
.sp-wall img, .sp-wall .sp-noavatar { width: 36px; height: 36px; border-radius: 50%; flex: none; background: #2f2f35; }
.sp-wall .sp-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.sp-wall .sp-who b, .sp-wall .sp-who a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-wall small { color: var(--muted, #a0a0ab); }
.legal .sp-wall .sp-who a { color: var(--text, #efeff1); font-weight: 700; text-decoration: none; }
.legal .sp-wall .sp-who a:hover { text-decoration: underline; }
@media (min-width: 560px) and (max-width: 959px) { .sp-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }

/* the roadmap vote */
.sp-ideas { list-style: none; padding: 0; margin: 10px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.sp-ideas li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, #2f2f35); border-radius: 10px; background: var(--bg, #0e0e10); }
.sp-ideas li.closed { opacity: .7; }
.sp-ideas .sp-idea-text { flex: 1; min-width: 0; }
.sp-ideas .sp-idea-text p { margin: 2px 0 0; color: var(--muted, #a0a0ab); font-size: 13.5px; }
.sp-ideas .sp-votes { flex: none; min-width: 64px; text-align: center; font-weight: 800; font-size: 13px; color: #5ec3e6; }
.sp-ideas button { flex: none; padding: 6px 14px; border-radius: 8px; border: 1px solid #1aa3cf; background: transparent; color: #5ec3e6; font: 700 13px Inter, 'Segoe UI', system-ui, sans-serif; cursor: pointer; }
.sp-ideas button[aria-pressed="true"] { background: linear-gradient(135deg, #1aa3cf, #006c90); border-color: transparent; color: #fff; }
.sp-ideas button:disabled { opacity: .6; cursor: default; }
@media (max-width: 560px) { .sp-ideas li { flex-wrap: wrap; } .sp-ideas .sp-votes { min-width: 0; } }
/* a supporter's own ideas (renderSuggest) */
.sp-suggest { margin: 0 0 18px; }
.sp-suggest h3 { margin: 0 0 4px; font-size: 15px; }
/* the same on Account → Your support (settings.js), below the support card */
.sp-account-vote { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line, #2f2f35); }
.sp-account-vote > h3 { margin: 0 0 4px; font-size: 15px; }
.sp-account-vote .sp-suggest { margin-bottom: 0; }
.sp-suggest-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sp-suggest-form input { flex: 1 1 200px; min-width: 0; padding: 7px 10px; font: inherit; color: var(--text, #efeff1); background: var(--bg, #0e0e10); border: 1px solid var(--line, #2f2f35); border-radius: 8px; }
.sp-suggest-form button { flex: none; padding: 7px 14px; border-radius: 8px; border: 0; background: linear-gradient(135deg, #1aa3cf, #006c90); color: #fff; font: 700 13px Inter, 'Segoe UI', system-ui, sans-serif; cursor: pointer; }
.sp-suggest-form button:disabled { opacity: .6; cursor: default; }
.sp-waiting-head { margin: 12px 0 4px; font-weight: 700; font-size: 13.5px; }
.sp-waiting { margin: 0; padding-left: 20px; color: var(--muted, #a0a0ab); font-size: 13.5px; }
.sp-steps li { margin: 6px 0; line-height: 1.55; }

/* Compare plans (supporters-page.js renderCompare): scrolls sideways on phones, the streamer's own plan outlined */
.sp-compare-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line, #2f2f35); border-radius: 14px; background: var(--panel, #18181b); }
.sp-compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13.5px; }
.sp-compare th, .sp-compare td { padding: 9px 10px; text-align: center; vertical-align: top; border-bottom: 1px solid var(--line, #2f2f35); }
.sp-compare tbody tr:last-child th, .sp-compare tbody tr:last-child td { border-bottom: 0; }
.sp-compare tbody th { text-align: left; font-weight: 500; color: var(--text, #efeff1); }
.sp-compare thead th { vertical-align: bottom; }
.sp-compare thead b { display: block; color: #fff; font-size: 15px; }
.sp-compare thead small { display: block; color: var(--muted, #a0a0ab); font-weight: 500; }
.sp-compare thead th.tier-1 b { color: #5ec3e6; }
.sp-compare thead th.tier-2 b { color: #b79cff; }
.sp-compare thead th.tier-3 b { color: #f0b84a; }
.sp-compare .yours { background: rgba(26, 163, 207, .10); }
.sp-compare-yours { color: #5ec3e6 !important; font-weight: 800 !important; }
