/* XSNews affiliate theme, standalone (no framework)
 * CSP: style-src 'self', no scripts, no font-src => everything lives here, system fonts only */
:root {
  --x-red: #df081e;
  --x-red-dark: #b8061a;
  --x-red-soft: #fdecee;
  --x-ink: #0e0f12;
  --x-ink-2: #1a1c21;
  --x-text: #1d2129;
  --x-muted: #6b7280;
  --x-line: #e7e8ec;
  --x-bg: #f4f5f8;
  --x-card: #ffffff;
  --x-radius: 14px;
  --x-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
  --x-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --x-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--x-font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--x-text);
  background: var(--x-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { letter-spacing: -.02em; font-weight: 700; line-height: 1.2; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; }
a { color: var(--x-red); }
a:hover { color: var(--x-red-dark); }
img, svg { vertical-align: middle; }
pre, code { font-family: var(--x-mono); font-size: 1em; }
table { border-collapse: collapse; caption-side: bottom; }
th { text-align: inherit; }
button, input { font: inherit; margin: 0; }

.x-container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 1rem; }

/* ---------- Top bar ---------- */
.x-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--x-ink);
  border-bottom: 3px solid var(--x-red);
}
.x-topbar .x-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 64px;
}
.x-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.x-brand img { height: 26px; width: auto; }
.x-brand span {
  color: rgba(255, 255, 255, .55);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-left: 1px solid rgba(255, 255, 255, .2);
  padding-left: .75rem;
}
.x-nav { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.x-nav a {
  display: block;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  font-weight: 500;
  font-size: .925rem;
  padding: .45rem .9rem;
  border-radius: 8px;
  transition: background-color .15s, color .15s;
}
.x-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.x-nav a.active { color: #fff; background: rgba(255, 255, 255, .12); }
.x-account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.x-account:hover { color: #fff; }
.x-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--x-red);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
}
.x-logout { margin: 0; padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, .15); }
.x-logout button {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: none;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, .55);
  font-size: .85rem;
  padding: .4rem;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.x-logout button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.x-logout .x-icon { width: 1.15rem; height: 1.15rem; }
.x-topbar .x-logout { margin-left: -1rem; }

@media (max-width: 640px) {
  .x-topbar .x-container { flex-wrap: wrap; gap: .5rem 1rem; padding-block: .6rem; }
  .x-brand span, .x-account .x-account-name { display: none; }
  .x-nav { order: 3; width: 100%; }
}

/* ---------- Page ---------- */
.x-main { flex: 1; padding-block: 2.25rem 3rem; }
.x-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.x-page-head h1 { font-size: 1.9rem; margin: 0; }
.x-eyebrow {
  color: var(--x-red);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.x-sub { color: var(--x-muted); margin: .35rem 0 0; max-width: 60ch; }
.x-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--x-muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: .75rem;
}
.x-back:hover { color: var(--x-text); }

.x-footer {
  color: var(--x-muted);
  font-size: .8rem;
  padding: 1.5rem 0 2rem;
}

/* ---------- Cards ---------- */
.x-card {
  background: var(--x-card);
  border: 1px solid var(--x-line);
  border-radius: var(--x-radius);
  box-shadow: var(--x-shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.x-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--x-line);
}
.x-card-head h2 { font-size: 1.05rem; margin: 0; letter-spacing: -.01em; }
.x-card-head p { color: var(--x-muted); font-size: .85rem; margin: .15rem 0 0; }
.x-card-body { padding: 1.4rem; }

/* ---------- Stat tiles ---------- */
.x-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.x-stat {
  background: var(--x-card);
  border: 1px solid var(--x-line);
  border-radius: var(--x-radius);
  box-shadow: var(--x-shadow);
  padding: 1.15rem 1.3rem;
  position: relative;
  overflow: hidden;
}
.x-stat-label { color: var(--x-muted); font-size: .8rem; font-weight: 600; }
.x-stat-value {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  margin-top: .2rem;
  line-height: 1.15;
}
.x-stat-hint { color: var(--x-muted); font-size: .8rem; margin-top: .2rem; }
.x-stat-accent { background: var(--x-ink); border-color: var(--x-ink); color: #fff; }
.x-stat-accent::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 8, 30, .55), rgba(223, 8, 30, 0) 70%);
}
.x-stat-accent .x-stat-label, .x-stat-accent .x-stat-hint { color: rgba(255, 255, 255, .6); }

/* ---------- Tables ---------- */
.x-table-wrap { overflow-x: auto; }
.x-table {
  width: 100%;
  margin: 0;
  font-size: .9rem;
  white-space: nowrap;
}
.x-table > thead th {
  background: #fafbfc;
  color: var(--x-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .7rem 1.4rem;
  border-bottom: 1px solid var(--x-line);
}
.x-table > tbody td {
  padding: .8rem 1.4rem;
  border-bottom: 1px solid var(--x-line);
  vertical-align: middle;
}
.x-table > tbody tr:last-child td { border-bottom: 0; }
.x-table > tbody tr:hover > td { background: #f8f9fb; }
.x-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.x-table .strong { font-weight: 600; }
.x-table .strong a { text-decoration: none; }
.x-table .muted { color: var(--x-muted); }
/* Long free-text values (names, e-mails) may wrap instead of widening the table */
.x-table .wrap { white-space: normal; overflow-wrap: anywhere; min-width: 8rem; }
@media (max-width: 640px) {
  .x-table .hide-sm { display: none; }
  .x-table > thead th, .x-table > tbody td { padding-inline: 1rem; }
}
.x-empty { color: var(--x-muted); text-align: center; padding: 2.5rem 1rem !important; }

.x-link-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  padding: .3rem .7rem;
  border-radius: 7px;
  color: var(--x-red);
  background: var(--x-red-soft);
  transition: background-color .15s, color .15s;
}
.x-link-btn:hover { background: var(--x-red); color: #fff; }

/* ---------- Status pills ---------- */
.x-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: #eef0f3;
  color: #4b5563;
  text-transform: capitalize;
}
.x-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.x-pill-paid, .x-pill-completed, .x-pill-done { background: #e7f6ec; color: #18794e; }
.x-pill-pending, .x-pill-outstanding { background: #fff4e0; color: #a35a00; }
.x-pill-cancel, .x-pill-expired { background: var(--x-red-soft); color: var(--x-red-dark); }

/* ---------- Buttons ---------- */
.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .55rem 1rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.x-btn:focus-visible { outline: 0; box-shadow: 0 0 0 .25rem rgba(223, 8, 30, .3); }
.x-btn-primary { background: var(--x-red); border-color: var(--x-red); color: #fff; }
.x-btn-primary:hover, .x-btn-primary:active { background: var(--x-red-dark); border-color: var(--x-red-dark); color: #fff; }
.x-btn-ghost { background: transparent; border-color: var(--x-line); color: var(--x-text); }
.x-btn-ghost:hover { background: var(--x-bg); color: var(--x-text); }
.x-btn-block { width: 100%; padding: .75rem 1rem; font-size: 1.1rem; border-radius: 10px; }

.x-field { margin-bottom: 1rem; }
.x-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.x-input {
  display: block;
  width: 100%;
  padding: .7rem .9rem;
  color: var(--x-text);
  background: #fff;
  border: 1px solid #d5d8de;
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.x-input::placeholder { color: #9ca3af; }
.x-input:focus { outline: 0; border-color: var(--x-red); box-shadow: 0 0 0 .25rem rgba(223, 8, 30, .15); }
.x-icon { width: 1em; height: 1em; flex: none; }

/* ---------- Banners ---------- */
.x-notice {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: var(--x-red-soft);
  color: #7a0613;
  border: 1px solid #f7c9cf;
  border-radius: var(--x-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: .925rem;
}
.x-notice .x-icon { width: 1.25rem; height: 1.25rem; margin-top: .1rem; color: var(--x-red); }
.x-banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 1.5rem; }
.x-banners .x-card { margin: 0; display: flex; flex-direction: column; }
.x-banner-preview {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 1.5rem;
  background-color: #f7f8fa;
  background-image: radial-gradient(#dfe2e8 1px, transparent 1px);
  background-size: 14px 14px;
  border-bottom: 1px solid var(--x-line);
}
.x-banner-preview img { max-width: 100%; height: auto; box-shadow: 0 6px 24px rgba(16, 24, 40, .12); }
.x-snippet { padding: 1rem 1.2rem 1.2rem; flex: 1; }
.x-snippet-label {
  color: var(--x-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.x-snippet pre {
  margin: 0;
  background: var(--x-ink-2);
  color: #e6e8ee;
  border-radius: 10px;
  padding: .9rem 1rem;
  font-size: .78rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  /* No JS allowed (CSP), so one click selects the whole snippet */
  user-select: all;
  -webkit-user-select: all;
  cursor: copy;
}
.x-snippet pre code { color: inherit; }
.x-textlink { margin-bottom: 1.5rem; }

/* ---------- Auth / brand picker ---------- */
.x-auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(223, 8, 30, .35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(223, 8, 30, .18), transparent 60%),
    var(--x-ink);
}
.x-auth > div { width: 100%; max-width: 860px; min-width: 0; }
.x-auth-card {
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
  background: var(--x-card);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  padding: 2.25rem 2rem 1.75rem;
}
.x-auth-logo { width: 170px; height: auto; margin-bottom: 1.75rem; }
.x-auth-card h1 { font-size: 1.5rem; margin-bottom: .35rem; }
.x-auth-card .x-sub { margin-bottom: 1.5rem; }

/* Brand picker */
.x-auth > .x-pick { width: 100%; max-width: 620px; display: grid; gap: 1.25rem; }
.x-pick .x-auth-foot { margin: 0; }
.x-pick-card { background: var(--x-card); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.x-pick-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1.75rem 1.75rem 1.25rem; }
.x-pick-head h1 { font-size: 1.5rem; margin: 0; }
.x-pick-head .x-sub { font-size: .925rem; margin-top: .3rem; }
.x-pick-total { text-align: right; }
.x-pick-total span { display: block; color: var(--x-muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.x-pick-total strong { font-size: 1.35rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.x-pick-list { list-style: none; margin: 0; padding: .5rem; border-top: 1px solid var(--x-line); display: grid; gap: .25rem; }
.x-pick-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color .15s; }
.x-pick-row:hover { background: var(--x-bg); color: inherit; }
.x-pick-row:focus-visible { outline: 3px solid rgba(223, 8, 30, .3); outline-offset: -1px; }
.x-pick-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--x-ink); color: #fff; font-weight: 700; text-transform: uppercase; transition: background-color .15s; }
.x-pick-row:hover .x-pick-avatar { background: var(--x-red); }
.x-pick-who { display: grid; min-width: 0; }
.x-pick-name { font-weight: 700; overflow-wrap: anywhere; }
.x-pick-meta { display: flex; flex-wrap: wrap; gap: .1rem .5rem; color: var(--x-muted); font-size: .8rem; }
.x-pick-meta span + span::before { content: "\00b7"; margin-right: .5rem; color: #b4b9c3; }
.x-pick-mail { overflow-wrap: anywhere; }
.x-pick-amount { display: grid; justify-items: end; text-align: right; }
.x-pick-amount strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.x-pick-amount small { color: var(--x-muted); font-size: .72rem; font-weight: 600; }
.x-pick-amount.x-has small { color: #a35a00; }
.x-pick-chev { color: #b4b9c3; transition: transform .15s, color .15s; }
.x-pick-row:hover .x-pick-chev { color: var(--x-red); transform: translateX(3px); }
.x-pick-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .9rem 1.75rem; background: #fafbfc; border-top: 1px solid var(--x-line); color: var(--x-muted); font-size: .82rem; }
.x-pick-foot b { color: var(--x-text); font-weight: 600; overflow-wrap: anywhere; }
.x-pick-foot form { margin: 0; }
.x-pick-logout { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; padding: .35rem .5rem; margin-right: -.5rem; border-radius: 8px; color: var(--x-muted); font-size: .82rem; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
.x-pick-logout:hover { color: var(--x-red); background: var(--x-red-soft); }
@media (max-width: 520px) {
  .x-pick-head { padding: 1.4rem 1.25rem 1rem; }
  .x-pick-total { text-align: left; }
  .x-pick-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; padding: .8rem .75rem; }
  .x-pick-chev, .x-pick-mail { display: none; }
  .x-pick-foot { padding-inline: 1.25rem; }
}
.x-auth-foot { color: rgba(255, 255, 255, .45); font-size: .8rem; text-align: center; margin-top: 1.5rem; }
.x-sent {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: #e7f6ec;
  color: #14532d;
  border-radius: 10px;
  padding: 1rem;
  font-size: .925rem;
  margin-bottom: 1rem;
}
.x-sent .x-icon { width: 1.25rem; height: 1.25rem; margin-top: .1rem; color: #18794e; }

/* ---------- Payout details ---------- */
.x-mono { font-family: var(--x-mono); letter-spacing: .04em; }
.x-payout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; align-items: start; }
.x-payout .x-card { margin: 0; }

/* Left: where the money goes now */
.x-dest-card { background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); box-shadow: var(--x-shadow); overflow: hidden; }
.x-dest { display: grid; gap: 1.25rem; padding: 1.4rem 1.5rem 1.5rem; }
.x-dest-top { display: flex; align-items: center; gap: .9rem; }
.x-dest-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--x-ink); color: #fff; flex: none; }
.x-dest-ico .x-icon { width: 1.3rem; height: 1.3rem; }
.x-dest-ico.x-off { background: var(--x-bg); color: var(--x-muted); }
.x-dest-name { display: grid; min-width: 0; flex: 1; }
.x-dest-kicker, .x-dest-value span, .x-dest-meta dt { color: var(--x-muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.x-dest-title { font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.x-status { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: #e7f6ec; color: #18794e; white-space: nowrap; }
.x-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.x-status.x-warn { background: #fff4e0; color: #a35a00; }
.x-dest-value { display: grid; gap: .3rem; padding: .9rem 1rem; border-radius: 12px; background: #f7f8fa; border: 1px solid var(--x-line); }
.x-dest-value strong { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.x-dest-value strong.x-mono { letter-spacing: .06em; }
.x-dest-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.x-dest-meta div { display: grid; gap: .1rem; min-width: 0; }
.x-dest-meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.x-dest-empty { color: var(--x-muted); font-size: .9rem; margin: 0; }
.x-facts { margin: 0; padding: .3rem 1.5rem; background: #fafbfc; border-top: 1px solid var(--x-line); }
.x-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--x-line); font-size: .875rem; }
.x-facts div:last-child { border-bottom: 0; }
.x-facts dt { color: var(--x-muted); flex: none; }
.x-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.x-facts .x-num { font-variant-numeric: tabular-nums; }
.x-facts .muted { color: var(--x-muted); }

/* Right: change form */
.x-payout-form { display: grid; gap: 1.4rem; }
.x-methods { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.x-methods legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.x-method { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem; padding: .9rem 1rem; border: 1px solid #d5d8de; border-radius: 12px; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.x-method:hover { border-color: #b4b9c3; }
.x-method input { position: absolute; opacity: 0; pointer-events: none; }
.x-method-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--x-bg); color: var(--x-text); transition: background-color .15s, color .15s; }
.x-method-ico .x-icon { width: 1.25rem; height: 1.25rem; }
.x-method-txt { display: grid; min-width: 0; }
.x-method-title { font-weight: 700; font-size: .95rem; }
.x-method-sub { color: var(--x-muted); font-size: .8rem; }
.x-radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #b4b9c3; display: grid; place-items: center; transition: border-color .15s; }
.x-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--x-red); transform: scale(0); transition: transform .15s; }
.x-method:has(input:checked) { border-color: var(--x-red); background: linear-gradient(180deg, #fff, var(--x-red-soft)); box-shadow: 0 0 0 1px var(--x-red) inset, 0 6px 18px -10px rgba(223, 8, 30, .45); }
.x-method:has(input:checked) .x-method-ico { background: var(--x-red); color: #fff; }
.x-method:has(input:checked) .x-radio { border-color: var(--x-red); }
.x-method:has(input:checked) .x-radio::after { transform: scale(1); }
.x-method:has(input:focus-visible) { outline: 3px solid rgba(223, 8, 30, .3); outline-offset: 2px; }
.x-fields { display: grid; gap: 1rem; }
.x-payout-form .x-field { display: grid; gap: .4rem; margin: 0; min-width: 0; align-content: start; }
.x-payout-form .x-field label { margin: 0; }
.x-input.x-mono { text-transform: uppercase; }
.x-hint { color: var(--x-muted); font-size: .78rem; }
.x-field-err { display: flex; align-items: center; gap: .35rem; color: var(--x-red-dark); font-size: .8rem; font-weight: 600; }
.x-field-err .x-icon { width: .95rem; height: .95rem; }
.x-invalid .x-input { border-color: var(--x-red); background: #fffafa; }
.x-invalid .x-hint { display: none; }
.x-form-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1rem; }
.x-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.4rem; background: #fafbfc; border-top: 1px solid var(--x-line); }
.x-form-note { display: flex; align-items: center; gap: .5rem; color: var(--x-muted); font-size: .82rem; min-width: 0; }
.x-form-note b { color: var(--x-text); font-weight: 600; overflow-wrap: anywhere; }
/* No JS (CSP): show only the fields of the chosen method */
form:has(#m-paypal:checked) .x-method-sdd,
form:has(#m-sdd:checked) .x-method-paypal { display: none; }
@media (max-width: 900px) { .x-payout { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .x-methods, .x-form-grid { grid-template-columns: 1fr; }
  .x-form-foot .x-btn { width: 100%; }
}
