/* Mergecast Pay – eine Spalte, Karte in der Mitte; Akzent kommt pro Streamer aus /theme/<slug>.css */
:root {
  --accent: #7c5cff;
  --bg: #f4f3f8; --surface: #ffffff; --surface-2: #f0eef7; --line: #e1dfea; --fg: #17151f; --muted: #605c70;
  --ok: #15803d; --warn: #b45309; --bad: #b91c1c;
  --radius: 16px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f0e14; --surface: #18161f; --surface-2: #211e2b; --line: #2d2a39; --fg: #ecebf2; --muted: #a29fb3; --ok: #4ade80; --warn: #fbbf24; --bad: #f87171; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.testbar { background: #fef3c7; color: #78350f; text-align: center; font-size: 14px; padding: 8px max(16px, env(safe-area-inset-left)); }
.tip { width: 100%; max-width: 480px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-left)) 24px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.who { display: flex; align-items: center; gap: 14px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.avatar-l { display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 28px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
h1 { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
h2 { margin: 0 0 6px; font-size: 20px; text-wrap: balance; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 30px rgba(20, 10, 60, .06); }
.desc { color: var(--muted); margin: 0 0 16px; }
form { display: flex; flex-direction: column; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend, .field > span { font-size: 14px; font-weight: 700; margin-bottom: 6px; display: block; }
.field em, .field > span em { font-style: normal; font-weight: 500; color: var(--muted); }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.chip { font: inherit; font-weight: 700; padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--fg); cursor: pointer; }
.chip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--fg); }
.custom { position: relative; display: block; }
.custom input { padding-right: 36px; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.custom .cur { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); font-size: 20px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
input, textarea, select { width: 100%; font: inherit; color: var(--fg); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; }
textarea { resize: vertical; min-height: 80px; }
.cover { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.cover input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.cover small { color: var(--muted); }
.pay { display: block; width: 100%; text-align: center; text-decoration: none; font: inherit; font-weight: 800; font-size: 18px; padding: 14px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.pay:disabled { opacity: .6; cursor: progress; }
.pay.ghost { background: var(--surface-2); color: var(--fg); box-shadow: none; margin-top: 10px; }
.err { color: var(--bad); font-weight: 600; font-size: 14px; }
.trust { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.trust.small { font-size: 12px; }
.thanks { text-align: center; }
.thanks .big { font-size: 48px; }
.socials { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.soc { text-decoration: none; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--fg); background: var(--surface); }
.foot { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 16px max(16px, env(safe-area-inset-left)) calc(20px + env(safe-area-inset-bottom)); }
.foot a { color: var(--muted); }
.back { font-weight: 600; text-decoration: none; }
.legal p { white-space: normal; }
.login { justify-content: center; }

/* ---------- Dashboard ---------- */
.adm .tip { max-width: 420px; }
.adm-shell { width: 100%; max-width: 1080px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-left)) 40px; display: flex; flex-direction: column; gap: 16px; }
.adm-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { font-size: 20px; letter-spacing: -.01em; }
.brand b { color: var(--accent); }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.pill.test { background: #fef3c7; color: #78350f; border-color: #fcd34d; }
.pill.live { background: color-mix(in srgb, var(--ok) 15%, var(--surface)); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.toplink { margin-left: auto; font-weight: 600; }
.ghostbtn, .btn { font: inherit; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.danger { color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.stat span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.stat b { font-size: 22px; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs button { font: inherit; font-weight: 600; font-size: 14px; background: none; border: 0; padding: 10px 12px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--fg); border-bottom-color: var(--accent); }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--warn); color: #fff; font-size: 12px; text-align: center; }
.panel { display: flex; flex-direction: column; gap: 12px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-btns select { width: auto; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.dt { width: 100%; border-collapse: collapse; font-size: 14px; }
.dt th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dt td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dt tr:last-child td { border-bottom: 0; }
.dt .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dt .msg { max-width: 360px; overflow-wrap: anywhere; }
.dt .acts { white-space: nowrap; text-align: right; }
.st { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; border: 1px solid var(--line); }
.st.paid { color: var(--ok); } .st.held { color: var(--warn); border-color: var(--warn); } .st.rejected, .st.refunded, .st.disputed { color: var(--bad); }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); margin-left: 4px; }
.muted { color: var(--muted); }
.settings { max-width: 640px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field.inline { display: flex; align-items: center; gap: 12px; }
.field.inline input { width: 60px; height: 38px; padding: 2px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.check input, .radios input { width: auto; accent-color: var(--accent); }
.radios label { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: 15px; }
.saved { color: var(--ok); font-weight: 600; font-size: 14px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.box h3 { margin: 0; }
.tokenbox { display: flex; flex-direction: column; gap: 8px; }
.tokenbox input { font-family: var(--mono); font-size: 13px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two { grid-template-columns: 1fr; } .chips { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.me { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-left: auto; }
.me img { width: 26px; height: 26px; border-radius: 50%; }
.toplink2 { font-weight: 600; font-size: 14px; }
.adm-top .toplink ~ .me { margin-left: 0; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.links li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.links .who { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.links .btn { margin-left: auto; }
.links .muted { margin-right: auto; }
.prov { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; color: #fff; flex: none; }
.pv-twitch { background: #9146ff; } .pv-discord { background: #5865f2; } .pv-google { background: #4b5563; }
.icon-grid { display: grid; gap: 8px; }
.icon-cell { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.icon-cell b { min-width: 80px; }
.icon-cell .file-btn { margin-left: auto; }
.icon-prev { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; overflow: hidden; }
.icon-prev img { width: 32px; height: 32px; object-fit: contain; }
.file-btn { cursor: pointer; display: inline-flex; align-items: center; }
.shot-add { display: grid; grid-template-columns: 160px 1fr auto; gap: 10px; align-items: end; }
.shot-list { display: grid; gap: 8px; }
.shot-row { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.shot-row img { width: 120px; height: 75px; object-fit: cover; border-radius: 8px; flex: none; }
.shot-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.shot-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
@media (max-width: 640px) { .shot-add { grid-template-columns: 1fr; } .shot-row { flex-wrap: wrap; } }
