/* =====================================================
   Retrig Network Core — Frontend Styles
   Inherits theme variables: --bg, --fg, --hair, --display, --mono, etc.
   ===================================================== */

/* ── Shared wrapper ── */
.rn-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.rn-wrap--narrow {
  max-width: 480px;
}

/* ── Eyebrow / section label ── */
.rn-eyebrow {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted, #a0a0a0);
  margin-bottom: 16px;
}

/* ── Form header ── */
.rn-form-header {
  margin-bottom: 48px;
}
.rn-form-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  margin: 8px 0 16px;
  color: var(--fg, #fff);
  letter-spacing: -0.02em;
}
.rn-stroke {
  -webkit-text-stroke: 1px rgba(255,255,255,0.85);
  color: transparent;
}
.rn-stroke::selection,
.rn-stroke *::selection {
  background: transparent;
  -webkit-text-fill-color: rgba(255,255,255,0.85);
}
.rn-form-sub {
  color: var(--body, #cfcfcf);
  font-size: 16px;
  line-height: 1.5;
  max-width: 560px;
}

/* ── Form grid ── */
.rn-form {
  width: 100%;
}
.rn-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) {
  .rn-form-grid { grid-template-columns: 1fr; }
}
.rn-field--full { grid-column: 1 / -1; }

/* ── Field ── */
.rn-field { display: flex; flex-direction: column; gap: 8px; }
.rn-field label {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #a0a0a0);
}
.rn-field input,
.rn-field select,
.rn-field textarea {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--fg, #fff);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
}
.rn-field select option { background: #111; }
.rn-field input:focus,
.rn-field select:focus,
.rn-field textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.7);
}
.rn-field textarea { resize: vertical; min-height: 90px; }
.rn-req { color: rgba(255,255,255,0.5); }

/* ── Inline field row (login remember + forgot) ── */
.rn-field--inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.rn-link { color: var(--fg, #fff); font-size: 13px; }

/* ── Honeypot ── */
.rn-honeypot { position: absolute; left: -9999px; visibility: hidden; }

/* ── Form foot ── */
.rn-form-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
}
.rn-form-foot .rn-btn {
  align-self: flex-start;
  margin-top: 8px;
}
.rn-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #a0a0a0);
  cursor: pointer;
  max-width: 520px;
  user-select: none;
}
.rn-agree--optional {
  opacity: 0.7;
  font-size: 12px;
}
.rn-agree a { color: var(--fg, #fff); text-decoration: underline; text-underline-offset: 2px; }
.rn-agree input[type="checkbox"] { margin-top: 2px; }

/* ── Custom checkbox ── */
.rn-agree input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.rn-agree input[type="checkbox"]:hover {
  border-color: #4a90d9;
  background: rgba(74,144,217,0.08);
}
.rn-agree input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.35);
}
.rn-agree input[type="checkbox"]:checked {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 0 0 0 transparent;
}
.rn-agree input[type="checkbox"]:checked:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.rn-agree input[type="checkbox"]::after {
  content: '';
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 9px;
  border: 2px solid transparent;
  border-left: none;
  border-top: none;
  transform: translate(-50%, -58%) rotate(45deg);
  opacity: 0;
  transition: opacity 0.1s;
}
.rn-agree input[type="checkbox"]:checked::after {
  border-color: #fff;
  opacity: 1;
}

/* Login "Remember me" — vertically centered single-line variant */
.rn-field--inline .rn-agree {
  align-items: center;
  max-width: none;
  line-height: 1;
}
.rn-field--inline .rn-agree input[type="checkbox"] {
  margin-top: 0;
}

/* ── Buttons ── */
.rn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--fg, #fff);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.rn-btn--solid {
  background: var(--fg, #fff);
  color: var(--bg, #000);
}
.rn-btn--solid:hover { background: transparent; color: var(--fg, #fff); }
.rn-btn--full { width: 100%; justify-content: center; }
.rn-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Messages ── */
.rn-msg {
  margin-top: 20px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid;
}
.rn-msg--success { border-color: rgba(100,255,150,0.4); color: #6fff96; background: rgba(100,255,150,0.06); }
.rn-msg--error   { border-color: rgba(255,100,100,0.4); color: #ff8080; background: rgba(255,100,100,0.06); }
.rn-alert {
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--body, #cfcfcf);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}
.rn-alert--error { border-color: rgba(255,100,100,0.4); color: #ff8080; }
.rn-form-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted, #a0a0a0);
  text-align: center;
}
.rn-form-note a { color: var(--fg, #fff); }
.rn-info { color: var(--body, #cfcfcf); font-size: 14px; }

/* ══════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════ */

.rn-dashboard { max-width: 900px; }

/* ── Dashboard header ── */
.rn-dashboard__header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rn-dashboard__header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 8px 0 20px;
  line-height: 1.05;
}
.rn-dashboard__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rn-dashboard__code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: var(--muted, #a0a0a0);
  letter-spacing: 0.06em;
}
.rn-dashboard__code code {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3px 10px;
  font-family: var(--mono, monospace);
  font-size: 12px;
  color: var(--fg, #fff);
  letter-spacing: 0.08em;
}
.rn-dashboard__sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.2);
}

/* ── Badge ── */
.rn-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--mono, monospace);
}
.rn-badge::before { content: "●"; font-size: 7px; }
.rn-badge--approved {
  background: rgba(100,255,150,0.1);
  color: #6fff96;
  border: 1px solid rgba(100,255,150,0.3);
}
.rn-badge--pending  {
  background: rgba(255,200,50,0.1);
  color: #ffd050;
  border: 1px solid rgba(255,200,50,0.3);
}
.rn-badge--rejected,
.rn-badge--suspended {
  background: rgba(255,80,80,0.08);
  color: #ff8080;
  border: 1px solid rgba(255,80,80,0.3);
}

/* ── Sections ── */
.rn-section { margin-bottom: 56px; }
.rn-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted, #a0a0a0);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rn-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 9px;
  color: rgba(255,255,255,0.65);
}
.rn-section-period {
  margin-left: auto;
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}
.rn-section-note {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
  font-family: var(--mono, monospace);
  letter-spacing: 0.04em;
}

/* ── Stats grid ── */
.rn-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 680px) {
  .rn-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .rn-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.rn-stat-card {
  background: var(--bg, #000);
  padding: 24px 16px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rn-stat-card:last-child { border-right: 0; }
.rn-stat-card__val {
  font-size: 30px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.rn-stat-card__label {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--mono, monospace);
}
.rn-stat-card__desc {
  display: none; /* replaced by section-note below the grid */
}

/* ── Brands list ── */
/* ── Dashboard tab panels ── */
.rn-tab-panel {
  display: none;
}
.rn-tab-panel--active {
  display: block;
  animation: rnTabFade 0.18s ease;
}
@keyframes rnTabFade {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Tracking links CTA (dashboard → tracking tab shortcut) ── */
.rn-tracking-cta {
  padding: 0;
}
.rn-tracking-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
}
.rn-tracking-cta__label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}
.rn-tracking-cta__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}
.rn-tracking-cta__desc strong {
  color: rgba(255,255,255,0.72);
  font-weight: 600;
}
.rn-tracking-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 7px;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.rn-tracking-cta__btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.32);
  color: #fff;
  text-decoration: none;
}
@media (max-width: 480px) {
  .rn-tracking-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .rn-tracking-cta__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Campaign URLs card — light theme overrides ── */
.rn-theme-light .rn-tracking-cta__inner {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
}
.rn-theme-light .rn-tracking-cta__label { color: #111; }
.rn-theme-light .rn-tracking-cta__desc  { color: #555; }
.rn-theme-light .rn-tracking-cta__desc strong { color: #222; }
.rn-theme-light .rn-tracking-cta__btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.16);
  color: #333;
}
.rn-theme-light .rn-tracking-cta__btn:hover {
  background: rgba(0,0,0,0.09);
  border-color: rgba(0,0,0,0.3);
  color: #111;
}

/* ── Brand search ── */
.rn-brands-search-wrap {
  position: relative;
  margin-bottom: 16px;
}
.rn-brands-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}
.rn-brands-search {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--fg, #fff);
  font-size: 14px;
  font-family: inherit;
  padding: 10px 14px 10px 36px;
  border-radius: 4px;
  outline: none;
  appearance: none;
  transition: border-color 0.15s, background 0.15s;
}
.rn-brands-search:focus {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}
.rn-brands-search::placeholder { color: rgba(255,255,255,0.28); }
/* Hide the native ✕ clear button (Chrome/Safari) */
.rn-brands-search::-webkit-search-cancel-button { display: none; }

.rn-brands-no-results {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  font-family: var(--mono, monospace);
  letter-spacing: 0.03em;
}
.rn-brands-no-results__glyph {
  color: rgba(255,255,255,0.18);
  font-size: 15px;
}

.rn-brands-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}

/* ── Brand card ── */
.rn-brand-card {
  background: #080808;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rn-brand-card:last-child { border-bottom: 0; }

.rn-brand-card__header {
  display: flex;
  align-items: stretch;
  min-height: 80px;
}

/* Logo column */
.rn-brand-card__logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.rn-brand-card__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  padding: 4px;
}
.rn-brand-card__logo-placeholder {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  font-family: var(--display, sans-serif);
  letter-spacing: -0.02em;
}

/* Info column */
.rn-brand-card__info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px;
  flex: 1;
  min-width: 0;
}
.rn-brand-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg, #fff);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rn-brand-card__tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Campaign name — shown below brand name */
.rn-brand-card__campaign {
  margin-top: -2px;
  margin-bottom: 2px;
}
.rn-campaign-name {
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}
.rn-campaign-name--legacy {
  color: rgba(255,255,255,0.28);
  font-style: italic;
}

/* GEO + traffic badge rows */
.rn-brand-card__geo-badges,
.rn-brand-card__traffic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

/* GEO pill */
.rn-geo-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(99,102,241,0.18);
  color: rgba(165,166,255,0.92);
  border: 1px solid rgba(99,102,241,0.28);
  white-space: nowrap;
  line-height: 1.4;
}

/* Traffic pill */
.rn-traffic-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(34,197,94,0.14);
  color: rgba(134,239,172,0.92);
  border: 1px solid rgba(34,197,94,0.22);
  white-space: nowrap;
  line-height: 1.4;
}

/* Payout column */
.rn-brand-card__payout-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 24px;
  border-left: 1px solid rgba(255,255,255,0.08);
  min-width: 130px;
  flex-shrink: 0;
}
.rn-payout-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg, #fff);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.rn-payout-lbl {
  font-size: 10px;
  color: var(--muted, #a0a0a0);
  font-family: var(--mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 5px;
  white-space: nowrap;
}

/* Mobile: collapse header columns */
@media (max-width: 560px) {
  .rn-brand-card__header {
    flex-wrap: wrap;
  }
  .rn-brand-card__logo-col {
    width: 56px;
    min-height: 56px;
    border-right: 1px solid rgba(255,255,255,0.08);
    border-bottom: 0;
  }
  .rn-brand-card__info-col {
    flex: 1;
    padding: 14px 16px;
  }
  .rn-brand-card__payout-col {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 20px;
  }
  .rn-payout-val { font-size: 18px; }
}

/* ── Tracking link section ── */
.rn-brand-card__link-wrap {
  padding: 18px 22px 20px;
  background: rgba(255,255,255,0.015);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.rn-link-label {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.rn-link-row {
  display: flex;
  align-items: stretch;
  border-radius: 4px;
  overflow: hidden;
}
.rn-link-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-right: 0;
  color: rgba(255,255,255,0.78);
  padding: 10px 14px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  min-width: 0;
  outline: none;
  transition: color 0.15s;
}
.rn-link-input:focus { color: var(--fg, #fff); border-color: rgba(255,255,255,0.22); }
.rn-copy-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--fg, #fff);
  padding: 0 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--mono, monospace);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-width: 68px;
  flex-shrink: 0;
}
.rn-copy-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.32); }
.rn-copy-btn.copied {
  background: rgba(100,255,150,0.1);
  border-color: rgba(100,255,150,0.38);
  color: #6fff96;
}
.rn-link-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.48);
  margin-top: 10px;
  font-family: var(--mono, monospace);
  line-height: 1.55;
}
.rn-link-hint code {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
}

/* ── Tags ── */
.rn-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 10px;
  font-family: var(--mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
}
.rn-tag--cpa {
  color: #6fff96;
  border-color: rgba(100,255,150,0.3);
  background: rgba(100,255,150,0.06);
}
.rn-tag--revshare {
  color: #80c8ff;
  border-color: rgba(128,200,255,0.3);
  background: rgba(128,200,255,0.06);
}
.rn-tag--hybrid {
  color: #ffb86c;
  border-color: rgba(255,184,108,0.3);
  background: rgba(255,184,108,0.06);
}
.rn-tag--deal { /* legacy alias */ }

/* ── Payout (inline, legacy reference) ── */
.rn-payout { font-size: 13px; color: var(--fg, #fff); font-weight: 600; }

/* ── Empty state ── */
.rn-empty-state {
  padding: 64px 32px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.01);
}
.rn-empty-state__glyph {
  font-size: 28px;
  opacity: 0.18;
  margin-bottom: 20px;
  font-family: var(--mono, monospace);
  letter-spacing: -0.05em;
  line-height: 1;
}
.rn-empty-state__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg, #fff);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.rn-empty-state__body {
  font-size: 14px;
  color: var(--muted, #a0a0a0);
  max-width: 340px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.rn-empty-state__link {
  font-family: var(--mono, monospace);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted, #a0a0a0);
}
.rn-empty-state__link a { color: var(--fg, #fff); border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 1px; }

/* ── Profile grid ── */
.rn-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255,255,255,0.1);
}
.rn-profile-grid > div {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rn-profile-grid > div:nth-child(2n) { border-right: 0; }
.rn-profile-grid span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted, #a0a0a0);
  font-family: var(--mono, monospace);
}
.rn-profile-grid strong {
  font-size: 14px;
  color: var(--fg, #fff);
  word-break: break-word;
  font-weight: 500;
}
.rn-profile-note {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
}
.rn-profile-note a { color: var(--fg, #fff); }
@media (max-width: 560px) {
  .rn-profile-grid { grid-template-columns: 1fr; }
  .rn-profile-grid > div { border-right: 0; }
}

/* ── Status cards (pending/rejected/suspended) ── */
.rn-status-card {
  padding: 28px 32px;
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 32px;
  background: rgba(255,255,255,0.02);
  position: relative;
  overflow: hidden;
}
.rn-status-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.rn-status-card--pending {
  border-color: rgba(255,200,50,0.28);
}
.rn-status-card--pending::before { background: rgba(255,200,50,0.5); }
.rn-status-card--rejected,
.rn-status-card--suspended {
  border-color: rgba(255,80,80,0.28);
}
.rn-status-card--rejected::before,
.rn-status-card--suspended::before { background: rgba(255,80,80,0.5); }

.rn-status-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono, monospace);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted, #a0a0a0);
  margin-bottom: 14px;
}
.rn-status-card--pending .rn-status-card__label { color: #ffd050; }
.rn-status-card--rejected .rn-status-card__label,
.rn-status-card--suspended .rn-status-card__label { color: #ff8080; }

.rn-status-card p {
  color: var(--body, #cfcfcf);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 10px;
}
.rn-status-card__sub {
  font-size: 13px;
  color: var(--muted, #a0a0a0);
  margin-top: 6px;
}
.rn-status-card__sub code {
  background: rgba(255,255,255,0.07);
  padding: 2px 8px;
  font-family: var(--mono, monospace);
  font-size: 12px;
  color: var(--fg, #fff);
  letter-spacing: 0.06em;
}
.rn-status-contact {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
  line-height: 1.6;
}
.rn-status-contact a { color: var(--fg, #fff); }

.rn-dash-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
.rn-dash-meta > div {
  padding: 16px 18px;
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: var(--bg, #000);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rn-dash-meta span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted, #a0a0a0);
  font-family: var(--mono, monospace);
}
.rn-dash-meta strong {
  font-size: 14px;
  color: var(--fg, #fff);
  font-weight: 500;
}

/* ── Logout ── */
.rn-logout-link {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.rn-logout-link a {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  font-family: var(--mono, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.rn-logout-link a:hover { color: var(--fg, #fff); }

/* ── Responsive: mobile ── */
@media (max-width: 480px) {
  .rn-wrap { padding: 40px 16px 80px; }
  .rn-dashboard__header h2 { font-size: 26px; }
  .rn-brand-card__link-wrap { padding: 12px 16px 14px; }
}

/* ── Application Received / Thank You page ── */
.rn-thankyou {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 120px;
}

.rn-thankyou__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: var(--accent, #4fffb0);
}

.rn-thankyou .rn-eyebrow { margin-bottom: 12px; }

.rn-thankyou .rn-form-title {
  margin-bottom: 20px;
}

.rn-thankyou__body {
  color: var(--body, #cfcfcf);
  font-size: 17px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 56px;
}

.rn-thankyou__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto 56px;
  text-align: left;
}

.rn-thankyou__step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}

.rn-thankyou__step--done {
  border-color: rgba(79,255,176,0.25);
  background: rgba(79,255,176,0.04);
}

.rn-thankyou__step-num {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted, #a0a0a0);
}

.rn-thankyou__step--done .rn-thankyou__step-num {
  color: var(--accent, #4fffb0);
}

.rn-thankyou__step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg, #fff);
  line-height: 1.35;
}

.rn-thankyou__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .rn-thankyou__steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .rn-thankyou__steps {
    grid-template-columns: 1fr;
  }
  .rn-thankyou__ctas {
    flex-direction: column;
    align-items: center;
  }
}

/* ── Admin impersonation banner ── */
.rn-impersonate-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  margin-bottom: 28px;
  background: rgba(255,180,0,0.08);
  border: 1px solid rgba(255,180,0,0.3);
  border-radius: 6px;
  flex-wrap: wrap;
}
.rn-impersonate-banner__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono, monospace);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,180,0,0.85);
}
.rn-impersonate-banner__label strong {
  color: #fff;
  font-weight: 600;
}
.rn-impersonate-banner__as {
  color: rgba(255,255,255,0.35);
  font-size: 11px;
}
.rn-impersonate-banner__return {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  background: rgba(255,180,0,0.1);
  border: 1px solid rgba(255,180,0,0.35);
  color: #ffb400;
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.rn-impersonate-banner__return:hover {
  background: rgba(255,180,0,0.2);
  color: #fff;
}

/* ── Analytics: header + filter bar ── */
.rn-analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.rn-analytics-header .rn-section-head {
  margin-bottom: 0;
}
.rn-filter-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.rn-filter-btn {
  appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.07em;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.rn-filter-btn:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.2);
}
.rn-filter-btn--active {
  background: rgba(79,255,176,0.1);
  border-color: rgba(79,255,176,0.35);
  color: var(--accent, #4fffb0);
}
.rn-filter-btn--active:hover {
  background: rgba(79,255,176,0.16);
  color: var(--accent, #4fffb0);
}

/* ── Stats grid loading state ── */
.rn-stats-grid.rn-loading {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.15s;
}

/* ── Chart ── */
.rn-chart-wrap {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.rn-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.rn-chart-by {
  font-family: var(--mono, monospace);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.38);
}
.rn-metric-tabs {
  display: flex;
  gap: 2px;
}
.rn-metric-tab {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.38);
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.rn-metric-tab:hover {
  color: rgba(255,255,255,0.72);
  border-color: rgba(255,255,255,0.12);
}
.rn-metric-tab--active {
  color: var(--fg, #fff);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
}
.rn-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rn-chart-empty {
  font-family: var(--mono, monospace);
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  padding: 24px 0;
  text-align: center;
}
.rn-bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 72px;
  align-items: center;
  gap: 12px;
}
.rn-bar-label {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rn-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.rn-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
  min-width: 2px;
}
.rn-bar--cpa      { background: rgba(79,255,176,0.7); }
.rn-bar--revshare { background: rgba(100,160,255,0.7); }
.rn-bar--hybrid   { background: rgba(200,130,255,0.7); }
.rn-bar-val {
  font-family: var(--mono, monospace);
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  text-align: right;
  white-space: nowrap;
}

/* ── Chart type selector ── */
.rn-chart-type-selector {
  display: flex;
  gap: 2px;
  align-items: center;
}
.rn-chart-type-btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.35);
  padding: 4px 7px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rn-chart-type-btn:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.12);
}
.rn-chart-type-btn--active {
  color: var(--fg, #fff);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
}

/* ── Donut chart ── */
.rn-donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 0;
  flex-wrap: wrap;
}
.rn-donut-svg-wrap {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
}
.rn-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  flex: 1;
}
.rn-donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  overflow: hidden;
}
.rn-donut-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rn-donut-legend-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.rn-donut-legend-val {
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: rgba(255,255,255,0.48);
  white-space: nowrap;
}
.rn-donut-center-label {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.06em;
  fill: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.rn-donut-center-val {
  font-size: 15px;
  font-weight: 600;
  fill: currentColor;
}

/* ── Radar chart ── */
.rn-radar-wrap {
  display: flex;
  justify-content: center;
  /* Side padding gives room for labels that overflow the SVG viewport */
  padding: 8px 28px;
  box-sizing: border-box;
  overflow: visible;
}
.rn-radar-svg {
  display: block;
  overflow: visible; /* labels extend beyond viewBox — do NOT clip */
  width: 100%;
  max-width: 300px;
  max-height: 300px;
}
/* Subtle cursor affordance on interactive radar elements */
.rn-radar-hit  { cursor: crosshair; }
.rn-radar-dot  { cursor: default; }
.rn-radar-label { pointer-events: none; } /* labels don't block mouse events */

/* Responsive: narrower viewports */
@media (max-width: 520px) {
  .rn-radar-wrap  { padding: 6px 20px; }
  .rn-radar-svg   { max-width: 240px; max-height: 240px; }
}

/* ── Bubble chart ── */
.rn-bubble-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 4px;
  flex-wrap: wrap;
}
.rn-bubble-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 52px;
}
.rn-bubble-svg-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.rn-bubble-label {
  font-size: 10px;
  color: rgba(255,255,255,0.48);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
  font-family: var(--mono, monospace);
  letter-spacing: 0.02em;
}
.rn-bubble-val {
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: rgba(255,255,255,0.62);
}

/* ── Chart animation keyframes ── */
@keyframes rnChartFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes rnBubblePop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.rn-chart--anim {
  animation: rnChartFadeIn 0.22s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* ── Chart type — light theme ── */
.rn-theme-light .rn-chart-type-btn { color: rgba(0,0,0,0.35); border-color: transparent; }
.rn-theme-light .rn-chart-type-btn:hover { color: #444; border-color: rgba(0,0,0,0.12); }
.rn-theme-light .rn-chart-type-btn--active { background: rgba(13,158,96,0.1); border-color: rgba(13,158,96,0.4); color: #0d9e60; }
.rn-theme-light .rn-donut-legend-item { color: #333; }
.rn-theme-light .rn-donut-legend-val  { color: #888; }
.rn-theme-light .rn-bubble-label { color: rgba(0,0,0,0.45); }
.rn-theme-light .rn-bubble-val   { color: rgba(0,0,0,0.6); }

/* ── Performance table ── */
.rn-section-sub-label {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 36px;
  margin-bottom: -8px;
}
.rn-perf-table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rn-perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rn-perf-table thead th {
  font-family: var(--mono, monospace);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  padding: 13px 12px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  white-space: nowrap;
}
.rn-perf-table thead th.rn-num { text-align: right; }
.rn-perf-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.1s;
}
.rn-perf-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.rn-perf-table tbody td {
  padding: 11px 12px;
  color: rgba(255,255,255,0.82);
  vertical-align: middle;
}
.rn-perf-table tbody td.rn-num { text-align: right; }
.rn-perf-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.rn-perf-brand strong { font-weight: 500; }
.rn-perf-empty {
  color: rgba(255,255,255,0.25);
  font-family: var(--mono, monospace);
  font-size: 12px;
  text-align: center;
  padding: 24px !important;
}
.rn-tag--sm {
  font-size: 9px;
  padding: 1px 6px;
  letter-spacing: 0.1em;
}

@media (max-width: 640px) {
  .rn-analytics-header { flex-direction: column; align-items: flex-start; }
  .rn-bar-row { grid-template-columns: 120px 1fr 56px; }
}

/* ══════════════════════════════════════════
   ANALYTICS UX v1.3 — View selector, sort indicators, contrast
   ══════════════════════════════════════════ */

/* ── Contrast: table headers ── */
.rn-perf-table thead th {
  color: rgba(255,255,255,0.62);
}
/* ── Contrast: table body cells ── */
.rn-perf-table tbody td {
  color: rgba(255,255,255,0.92);
}
/* ── Contrast: empty states ── */
.rn-perf-empty {
  color: rgba(255,255,255,0.48);
}
.rn-chart-empty {
  color: rgba(255,255,255,0.48);
}
/* ── Contrast: chart ── */
.rn-bar-label {
  color: rgba(255,255,255,0.88);
}
.rn-bar-val {
  color: rgba(255,255,255,0.82);
}
.rn-chart-by {
  color: rgba(255,255,255,0.62);
}
/* ── Contrast: metric + filter tabs ── */
.rn-metric-tab {
  color: rgba(255,255,255,0.58);
}
.rn-filter-btn {
  color: rgba(255,255,255,0.72);
}
/* ── Contrast: section sub-label ── */
.rn-section-sub-label {
  color: rgba(255,255,255,0.55);
}
/* ── Contrast: link hints ── */
.rn-link-hint {
  color: rgba(255,255,255,0.68);
}
.rn-link-hint code {
  color: rgba(255,255,255,0.85);
}

/* ── View selector controls ── */
.rn-analytics-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.rn-view-label {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
  white-space: nowrap;
}
.rn-view-selector {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.rn-view-btn {
  appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.62);
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.07em;
  padding: 5px 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.rn-view-btn:hover {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.22);
}
.rn-view-btn--active {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.28);
  color: var(--fg, #fff);
  font-weight: 600;
}
.rn-view-btn--active:hover {
  background: rgba(255,255,255,0.14);
  color: var(--fg, #fff);
}

/* ── Sort indicators on table headers ── */
.rn-perf-table th[data-sort] {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.1s;
}
.rn-perf-table th[data-sort]:hover {
  color: rgba(255,255,255,0.9);
}
.rn-perf-table th[data-sort]::after {
  content: '';
  display: inline-block;
  width: 12px;
  text-align: center;
  opacity: 0.3;
  font-size: 9px;
  vertical-align: middle;
  margin-left: 3px;
}
.rn-perf-table th[data-sort]:hover::after {
  content: '↕';
  opacity: 0.5;
}
.rn-perf-table th.sort-desc::after {
  content: '↓' !important;
  opacity: 1;
  color: var(--accent, #4fffb0);
}
.rn-perf-table th.sort-asc::after {
  content: '↑' !important;
  opacity: 1;
  color: var(--accent, #4fffb0);
}
.rn-perf-table th.sort-asc,
.rn-perf-table th.sort-desc {
  color: rgba(255,255,255,0.85);
}

/* ── Combined view hint ── */
.rn-combined-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 16px 0 0;
  font-family: var(--mono, monospace);
  letter-spacing: 0.03em;
}

/* ── Inline code in analytics tables ── */
.rn-code {
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ── Analytics view spacing ── */
.rn-analytics-view {
  margin-top: 24px;
}

/* ── Player summary cards ── */
.rn-player-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.rn-player-cards .rn-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 16px 20px;
}

/* ── Mobile: wrap view controls cleanly ── */
@media (max-width: 640px) {
  .rn-analytics-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .rn-view-selector { gap: 4px; }
  .rn-view-btn { font-size: 12px; padding: 6px 14px; }
  .rn-player-cards { grid-template-columns: repeat(2, 1fr); }
  .rn-perf-table-wrap--scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Custom date range row ── */
.rn-custom-range {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.rn-date-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  color: rgba(255,255,255,0.85);
  font-family: var(--mono, monospace);
  font-size: 12px;
  padding: 6px 10px;
  outline: none;
  transition: border-color 0.15s;
  color-scheme: dark;
}
.rn-date-input:focus {
  border-color: rgba(79,255,176,0.5);
}
.rn-date-input--error {
  border-color: rgba(255,80,80,0.7) !important;
}

.rn-date-sep {
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

.rn-apply-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rn-apply-btn:hover {
  background: rgba(255,255,255,0.11);
  color: rgba(255,255,255,0.9);
}
.rn-apply-btn--active {
  background: rgba(79,255,176,0.12);
  border-color: rgba(79,255,176,0.45);
  color: #4fffb0;
}

/* ── Click-ID toggle switch ── */
.rn-click-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.rn-click-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.rn-click-toggle__track {
  position: relative;
  width: 32px;
  height: 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.rn-click-toggle input:checked ~ .rn-click-toggle__track {
  background: rgba(79,255,176,0.25);
  border-color: rgba(79,255,176,0.55);
}
.rn-click-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.rn-click-toggle input:checked ~ .rn-click-toggle__track .rn-click-toggle__thumb {
  transform: translateX(14px);
  background: #4fffb0;
}
.rn-click-toggle__label {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.rn-click-toggle:hover .rn-click-toggle__label {
  color: rgba(255,255,255,0.8);
}

/* ── Recent clicks section ── */
.rn-recent-clicks-section {
  margin-top: 32px;
}
.rn-recent-clicks-section h3 {
  font-size: 11px;
  font-family: var(--mono, monospace);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0 0 10px;
  font-weight: 400;
}
.rn-clicks-ts {
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

/* ── Mobile: custom range + toggle ── */
@media (max-width: 640px) {
  .rn-custom-range { gap: 6px; }
  .rn-date-input { font-size: 11px; padding: 5px 8px; }
  .rn-apply-btn { font-size: 10px; padding: 5px 10px; }
  .rn-click-toggle { margin-top: 4px; }
}

/* ── Theme toggle button (sits at the end of .rn-dashboard__meta flex row) ── */
.rn-theme-toggle {
  margin-left: auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.rn-theme-toggle:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

/* ── Event type pills (Recent Clicks) ── */
.rn-event-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.rn-event-tag {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
}
.rn-event-tag--signup  { background: rgba(100,160,255,0.12); border-color: rgba(100,160,255,0.3); color: #80b0ff; }
.rn-event-tag--ftd     { background: rgba(79,255,176,0.12);  border-color: rgba(79,255,176,0.3);  color: #4fffb0; }
.rn-event-tag--deposit { background: rgba(255,200,80,0.12);  border-color: rgba(255,200,80,0.3);  color: #ffc850; }
.rn-event-tag--revenue { background: rgba(255,140,80,0.12);  border-color: rgba(255,140,80,0.3);  color: #ff8c50; }

/* ── Clicks table controls (limit selector + count) ── */
.rn-clicks-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.rn-clicks-count {
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}
.rn-limit-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}
.rn-limit-label {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-right: 4px;
}
.rn-limit-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-family: var(--mono, monospace);
  font-size: 11px;
  padding: 3px 8px;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.rn-limit-btn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.rn-limit-btn--active {
  background: rgba(79,255,176,0.1);
  border-color: rgba(79,255,176,0.4);
  color: #4fffb0;
}

/* scrollable tbody inside Recent Clicks */
.rn-clicks-table-wrap {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
}
.rn-clicks-table-wrap .rn-perf-table { border: none; }
.rn-clicks-table-wrap .rn-perf-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0a0a0a;
}

/* ═══════════════════════════════════════════════════════
   Light theme
   · body.rn-light-page   — page-level background
   · .rn-theme-light       — dashboard wrapper overrides
   ═══════════════════════════════════════════════════════ */

/* Page background — covers the area around the dashboard */
body.rn-light-page,
body.rn-light-page .retrig-affiliate-page-wrap {
  background: #f2f4f6;
}

/* ── CSS custom property overrides ── */
.rn-theme-light {
  --bg:     #ffffff;
  --fg:     #111111;
  --body:   #444444;
  --muted:  #888888;
  --accent: #0d9e60;
}

/* Root + dashboard wrapper */
.rn-theme-light,
.rn-theme-light .rn-dashboard {
  background: #f2f4f6;
  color: #111;
}

/* ── Header ── */
.rn-theme-light .rn-dashboard__header {
  border-bottom-color: rgba(0,0,0,0.1);
}
.rn-theme-light .rn-eyebrow { color: #888; }
.rn-theme-light .rn-dashboard__header h2 { color: #111; }
.rn-theme-light .rn-dashboard__meta      { color: #555; }
.rn-theme-light .rn-dashboard__code      { color: #666; }
.rn-theme-light .rn-dashboard__code code {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
  color: #111;
}
.rn-theme-light .rn-dashboard__sep { background: rgba(0,0,0,0.15); }

/* Theme toggle */
.rn-theme-light .rn-theme-toggle {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
  color: #555;
}
.rn-theme-light .rn-theme-toggle:hover { background: rgba(0,0,0,0.09); color: #111; }

/* Section headings + notes */
.rn-theme-light .rn-section-head     { color: #111; }
.rn-theme-light .rn-section-count    { color: #888; }
.rn-theme-light .rn-section-period   { color: #888; }
.rn-theme-light .rn-section-note     { color: #666; }
.rn-theme-light .rn-combined-hint    { color: rgba(0,0,0,0.45); }
.rn-theme-light .rn-section-sub-label { color: #888; }

/* ── Stat grid ── */
.rn-theme-light .rn-stats-grid {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
.rn-theme-light .rn-stat-card {
  background: #fff;
  border-right-color:  rgba(0,0,0,0.08);
  border-bottom-color: rgba(0,0,0,0.08);
}
.rn-theme-light .rn-stat-card__val   { color: #111; }
.rn-theme-light .rn-stat-card__label { color: #666; }
.rn-theme-light .rn-stat-card__desc  { color: #999; }

/* ── Filter / view buttons ── */
.rn-theme-light .rn-filter-btn { background: #fff; border-color: rgba(0,0,0,0.15); color: #555; }
.rn-theme-light .rn-filter-btn:hover { background: #ebebeb; color: #222; }
.rn-theme-light .rn-filter-btn--active { background: rgba(13,158,96,0.1); border-color: rgba(13,158,96,0.45); color: #0d9e60; }
.rn-theme-light .rn-view-selector { border-color: rgba(0,0,0,0.1); }
.rn-theme-light .rn-view-btn { background: #fff; border-color: rgba(0,0,0,0.15); color: #555; }
.rn-theme-light .rn-view-btn--active { background: rgba(13,158,96,0.1); border-color: rgba(13,158,96,0.45); color: #0d9e60; }
.rn-theme-light .rn-view-label { color: #888; }

/* ── Custom date range ── */
.rn-theme-light .rn-date-input { background: #fff; border-color: rgba(0,0,0,0.2); color: #222; color-scheme: light; }
.rn-theme-light .rn-date-input:focus { border-color: rgba(13,158,96,0.5); }
.rn-theme-light .rn-date-sep { color: #bbb; }
.rn-theme-light .rn-apply-btn { background: #fff; border-color: rgba(0,0,0,0.18); color: #555; }
.rn-theme-light .rn-apply-btn:hover { background: #ebebeb; color: #222; }
.rn-theme-light .rn-apply-btn--active { background: rgba(13,158,96,0.1); border-color: rgba(13,158,96,0.45); color: #0d9e60; }

/* ── Click-IDs toggle switch ── */
.rn-theme-light .rn-click-toggle__track { background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.18); }
.rn-theme-light .rn-click-toggle__thumb { background: rgba(0,0,0,0.35); }
.rn-theme-light .rn-click-toggle__label { color: #666; }

/* ── Charts ── */
.rn-theme-light .rn-chart-wrap { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); }
.rn-theme-light .rn-chart-by   { color: #666; }
.rn-theme-light .rn-metric-tab { background: transparent; color: #666; border-color: rgba(0,0,0,0.12); }
.rn-theme-light .rn-metric-tab--active { background: rgba(13,158,96,0.1); border-color: rgba(13,158,96,0.4); color: #0d9e60; }
.rn-theme-light .rn-bar-label  { color: #444; }
.rn-theme-light .rn-bar-val    { color: #333; }
.rn-theme-light .rn-bar-track  { background: rgba(0,0,0,0.07); }

/* ── Performance tables ── */
.rn-theme-light .rn-perf-table-wrap { border-color: rgba(0,0,0,0.1); }
.rn-theme-light .rn-perf-table thead th { color: rgba(0,0,0,0.55); border-bottom-color: rgba(0,0,0,0.14); background: #f5f7fa; }
.rn-theme-light .rn-perf-table th.sort-asc,
.rn-theme-light .rn-perf-table th.sort-desc { color: #222; }
.rn-theme-light .rn-perf-table td { border-bottom-color: rgba(0,0,0,0.05); color: #222; }
.rn-theme-light .rn-perf-table tbody tr:hover { background: rgba(59,130,246,0.07); }
.rn-theme-light .rn-clicks-table-wrap .rn-perf-table thead th { background: #f5f7fa; }
.rn-theme-light .rn-perf-empty { color: #999; }
.rn-theme-light .rn-perf-brand strong { color: #111; }
.rn-theme-light .rn-code { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #333; }

/* ── Player cards ── */
.rn-theme-light .rn-player-cards .rn-stat-card { background: #fff; border-color: rgba(0,0,0,0.1); }

/* ── Recent clicks ── */
.rn-theme-light .rn-recent-clicks-section h3 { color: rgba(0,0,0,0.4); }
.rn-theme-light .rn-clicks-table-wrap { border-color: rgba(0,0,0,0.1); }
.rn-theme-light .rn-clicks-ts { color: rgba(0,0,0,0.45); }
.rn-theme-light .rn-clicks-count { color: rgba(0,0,0,0.4); }
.rn-theme-light .rn-limit-label { color: rgba(0,0,0,0.35); }
.rn-theme-light .rn-limit-btn { background: #fff; border-color: rgba(0,0,0,0.15); color: #555; }
.rn-theme-light .rn-limit-btn:hover { background: #ebebeb; color: #111; }
.rn-theme-light .rn-limit-btn--active { background: rgba(13,158,96,0.1); border-color: rgba(13,158,96,0.4); color: #0d9e60; }

/* ── Event type pills ── */
.rn-theme-light .rn-event-tag { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); color: #555; }
.rn-theme-light .rn-event-tag--signup  { background: rgba(60,120,255,0.08); border-color: rgba(60,120,255,0.25); color: #2a6be0; }
.rn-theme-light .rn-event-tag--ftd     { background: rgba(13,158,96,0.08);  border-color: rgba(13,158,96,0.3);   color: #0d7a4e; }
.rn-theme-light .rn-event-tag--deposit { background: rgba(200,140,0,0.08);  border-color: rgba(200,140,0,0.25);  color: #8a6000; }
.rn-theme-light .rn-event-tag--revenue { background: rgba(210,90,20,0.08);  border-color: rgba(210,90,20,0.25);  color: #a04010; }

/* ── Tags ── */
.rn-theme-light .rn-tag          { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); color: #555; }
.rn-theme-light .rn-tag--cpa     { background: rgba(13,158,96,0.08); border-color: rgba(13,158,96,0.3); color: #0d7a4e; }
.rn-theme-light .rn-tag--revshare { background: rgba(60,120,255,0.08); border-color: rgba(60,120,255,0.25); color: #2a6be0; }
.rn-theme-light .rn-tag--hybrid  { background: rgba(200,120,0,0.08); border-color: rgba(200,120,0,0.25); color: #885000; }

/* ── Brand search ── */
.rn-theme-light .rn-brands-search-icon { color: rgba(0,0,0,0.3); }
.rn-theme-light .rn-brands-search {
  background: #fff;
  border-color: rgba(0,0,0,0.15);
  color: #111;
}
.rn-theme-light .rn-brands-search:focus { border-color: rgba(0,0,0,0.28); background: #fff; }
.rn-theme-light .rn-brands-search::placeholder { color: rgba(0,0,0,0.28); }
.rn-theme-light .rn-brands-no-results { color: rgba(0,0,0,0.4); }
.rn-theme-light .rn-brands-no-results__glyph { color: rgba(0,0,0,0.2); }

/* ── Brand list + cards ── */
.rn-theme-light .rn-brands-list {
  border-color: rgba(0,0,0,0.12);
}
.rn-theme-light .rn-brand-card {
  background: #fff;
  border-bottom-color: rgba(0,0,0,0.08);
}
.rn-theme-light .rn-brand-card__logo-col {
  background: rgba(0,0,0,0.02);
  border-right-color: rgba(0,0,0,0.08);
}
.rn-theme-light .rn-brand-card__logo {
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.02);
}
.rn-theme-light .rn-brand-card__logo-placeholder {
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,0.5);
}
.rn-theme-light .rn-brand-card__name { color: #111; }
.rn-theme-light .rn-campaign-name { color: rgba(0,0,0,0.45); }
.rn-theme-light .rn-campaign-name--legacy { color: rgba(0,0,0,0.25); }
.rn-theme-light .rn-geo-badge {
  background: rgba(99,102,241,0.1);
  color: #4f46e5;
  border-color: rgba(99,102,241,0.22);
}
.rn-theme-light .rn-traffic-badge {
  background: rgba(22,163,74,0.1);
  color: #15803d;
  border-color: rgba(22,163,74,0.2);
}
.rn-theme-light .rn-brand-card__payout-col { border-left-color: rgba(0,0,0,0.08); }
.rn-theme-light .rn-payout-val { color: #111; }
.rn-theme-light .rn-payout-lbl { color: #888; }

/* Mobile brand card borders */
@media (max-width: 560px) {
  .rn-theme-light .rn-brand-card__logo-col { border-right-color: rgba(0,0,0,0.08); }
  .rn-theme-light .rn-brand-card__payout-col { border-top-color: rgba(0,0,0,0.08); }
}

/* ── Tracking link section ── */
.rn-theme-light .rn-brand-card__link-wrap {
  background: rgba(0,0,0,0.02);
  border-top-color: rgba(0,0,0,0.08);
}
.rn-theme-light .rn-link-label { color: rgba(0,0,0,0.5); }
.rn-theme-light .rn-link-input {
  background: #fff;
  border-color: rgba(0,0,0,0.16);
  color: rgba(0,0,0,0.72);
}
.rn-theme-light .rn-link-input:focus { color: #111; border-color: rgba(0,0,0,0.3); }
.rn-theme-light .rn-copy-btn {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.18);
  color: #333;
}
.rn-theme-light .rn-copy-btn:hover { background: rgba(0,0,0,0.11); border-color: rgba(0,0,0,0.3); }
.rn-theme-light .rn-link-hint { color: rgba(0,0,0,0.48); }
.rn-theme-light .rn-link-hint code { background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.62); }

/* ── Empty state ── */
.rn-theme-light .rn-empty-state {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.1);
}
.rn-theme-light .rn-empty-state__title { color: #111; }
.rn-theme-light .rn-empty-state__body  { color: #666; }
.rn-theme-light .rn-empty-state__link  { color: #888; }
.rn-theme-light .rn-empty-state__link a { color: #111; border-bottom-color: rgba(0,0,0,0.3); }

/* ── Profile grid ── */
.rn-theme-light .rn-profile-grid {
  border-color: rgba(0,0,0,0.1);
}
.rn-theme-light .rn-profile-grid > div {
  border-bottom-color: rgba(0,0,0,0.06);
  border-right-color: rgba(0,0,0,0.06);
}
.rn-theme-light .rn-profile-grid strong { color: #111; }
.rn-theme-light .rn-profile-note { color: rgba(0,0,0,0.5); }
.rn-theme-light .rn-profile-note a { color: #111; }

/* ── Status cards ── */
.rn-theme-light .rn-status-card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.1); }

/* ── Logout / misc links ── */
.rn-theme-light .rn-logout-link a { color: #888; }
.rn-theme-light .rn-logout-link a:hover { color: #111; }

/* ── Mobile responsive ── */
@media (max-width: 640px) {
  .rn-clicks-controls { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════
   PAYOUTS TAB — v1.5
   ══════════════════════════════════════════ */

/* ── Internal tab navigation wrapper ── */
.rn-tab-nav-wrap {
  position: relative;
  margin-bottom: 40px;
}

/* ── Tab scroll arrow buttons ── */
.rn-tab-scroll-btn {
  position: absolute;
  top: 0;
  bottom: 1px; /* sit flush with the nav border-bottom line */
  width: 56px;
  border: none;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0;
  font-size: 20px;
  font-weight: 200;
  line-height: 1;
  font-family: var(--mono, monospace);
  transition: color 0.14s;
}
.rn-tab-scroll-btn[hidden] { display: none; }

.rn-tab-scroll-btn--right {
  right: 0;
  justify-content: flex-end;
  padding-right: 12px;
  background: linear-gradient(to right, transparent 0%, var(--bg, #000) 55%);
  color: rgba(255,255,255,0.48);
}
.rn-tab-scroll-btn--right:hover { color: rgba(255,255,255,0.9); }

.rn-tab-scroll-btn--left {
  left: 0;
  justify-content: flex-start;
  padding-left: 12px;
  background: linear-gradient(to left, transparent 0%, var(--bg, #000) 55%);
  color: rgba(255,255,255,0.48);
}
.rn-tab-scroll-btn--left:hover { color: rgba(255,255,255,0.9); }

/* ── Nudge animation — runs once on page load to signal scrollability ── */
@keyframes rn-tab-nudge {
  0%   { transform: translateX(0);   opacity: 0.48; }
  35%  { transform: translateX(5px); opacity: 0.9;  }
  65%  { transform: translateX(3px); opacity: 0.75; }
  100% { transform: translateX(0);   opacity: 0.48; }
}
.rn-tab-scroll-btn--right.rn-is-hinting {
  animation: rn-tab-nudge 0.85s ease-in-out 0.55s 2;
}

/* ── Light mode ── */
.rn-theme-light .rn-tab-scroll-btn--right {
  background: linear-gradient(to right, transparent 0%, #f2f4f6 55%);
  color: rgba(0,0,0,0.35);
}
.rn-theme-light .rn-tab-scroll-btn--right:hover { color: rgba(0,0,0,0.75); }
.rn-theme-light .rn-tab-scroll-btn--left {
  background: linear-gradient(to left, transparent 0%, #f2f4f6 55%);
  color: rgba(0,0,0,0.35);
}
.rn-theme-light .rn-tab-scroll-btn--left:hover { color: rgba(0,0,0,0.75); }
/* ── Internal tab navigation bar ── */
.rn-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rn-tab-nav::-webkit-scrollbar { display: none; }
.rn-tab-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  padding: 12px 22px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.rn-tab-nav__link:hover {
  color: rgba(255,255,255,0.78);
}
.rn-tab-nav__link.active {
  color: var(--fg, #fff);
  border-bottom-color: rgba(255,255,255,0.55);
}
.rn-tab-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 9px;
  color: rgba(255,255,255,0.55);
  line-height: 1;
}
.rn-tab-nav__link.active .rn-tab-nav__badge {
  background: rgba(255,255,255,0.18);
  color: var(--fg, #fff);
}

/* ── Payout summary cards grid ── */
.rn-payout-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 680px) {
  .rn-payout-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
  .rn-payout-summary-grid { grid-template-columns: 1fr; }
}

.rn-payout-summary-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 2px solid rgba(255,255,255,0.14);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rn-payout-summary-card--approved {
  border-color: rgba(79,255,176,0.22);
  border-top-color: rgba(79,255,176,0.55);
  background: rgba(79,255,176,0.03);
}
.rn-payout-summary-card--paid {
  border-color: rgba(100,160,255,0.22);
  border-top-color: rgba(100,160,255,0.55);
  background: rgba(100,160,255,0.03);
}
.rn-payout-summary-card--next {
  border-color: rgba(255,200,50,0.22);
  border-top-color: rgba(255,200,50,0.5);
  background: rgba(255,200,50,0.03);
}
.rn-payout-summary-card__val {
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.94);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 2px;
}
.rn-payout-summary-card__val--sm {
  font-size: 20px;
  letter-spacing: -0.01em;
}
.rn-payout-summary-card__label {
  font-size: 10px;
  font-family: var(--mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.rn-payout-summary-card__desc {
  font-size: 10px;
  font-family: var(--mono, monospace);
  color: rgba(255,255,255,0.26);
  letter-spacing: 0.06em;
}

/* ── Payout status badges (affiliate-facing) ── */
.rn-payout-status {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  white-space: nowrap;
  border: 1px solid;
}
.rn-payout-status--pending {
  background: rgba(255,200,50,0.1);
  color: #ffd050;
  border-color: rgba(255,200,50,0.28);
}
.rn-payout-status--approved {
  background: rgba(79,255,176,0.1);
  color: #4fffb0;
  border-color: rgba(79,255,176,0.3);
}
.rn-payout-status--paid {
  background: rgba(100,160,255,0.1);
  color: #80b0ff;
  border-color: rgba(100,160,255,0.3);
}
.rn-payout-status--rejected,
.rn-payout-status--cancelled {
  background: rgba(255,80,80,0.07);
  color: rgba(255,128,128,0.8);
  border-color: rgba(255,80,80,0.22);
}

/* ── Payouts table: download link ── */
.rn-payout-dl-btn {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  text-decoration: none;
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  display: inline-block;
}
.rn-payout-dl-btn:hover {
  color: var(--fg, #fff);
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.05);
}

/* ── Payouts table: wider period column ── */
.rn-payouts-table td:first-child { white-space: nowrap; }

/* ── Payout actions cell ── */
.rn-payout-actions { white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.rn-payout-stmt-btn { color: rgba(255,255,255,0.55) !important; }
.rn-theme-light .rn-payout-stmt-btn { color: rgba(0,0,0,0.5) !important; }

/* ── Light theme: tab nav ── */
.rn-theme-light .rn-tab-nav { border-bottom-color: rgba(0,0,0,0.1); }
/* .rn-theme-light .rn-tab-nav-wrap — arrow button colours handled in button rules above */
.rn-theme-light .rn-tab-nav__link { color: rgba(0,0,0,0.42); }
.rn-theme-light .rn-tab-nav__link:hover { color: rgba(0,0,0,0.75); }
.rn-theme-light .rn-tab-nav__link.active { color: #111; border-bottom-color: rgba(0,0,0,0.55); }
.rn-theme-light .rn-tab-nav__badge { background: rgba(0,0,0,0.08); color: rgba(0,0,0,0.45); }

/* ── Light theme: payout summary cards ── */
.rn-theme-light .rn-payout-summary-card { background: #fff; border-color: rgba(0,0,0,0.1); border-top-color: rgba(0,0,0,0.2); }
.rn-theme-light .rn-payout-summary-card--approved { background: rgba(13,158,96,0.04); border-color: rgba(13,158,96,0.22); border-top-color: rgba(13,158,96,0.55); }
.rn-theme-light .rn-payout-summary-card--paid     { background: rgba(60,120,255,0.04); border-color: rgba(60,120,255,0.22); border-top-color: rgba(60,120,255,0.55); }
.rn-theme-light .rn-payout-summary-card--next     { background: rgba(200,140,0,0.04);  border-color: rgba(200,140,0,0.22); border-top-color: rgba(200,140,0,0.5); }
.rn-theme-light .rn-payout-summary-card__val   { color: #111; }
.rn-theme-light .rn-payout-summary-card__label { color: #555; }
.rn-theme-light .rn-payout-summary-card__desc  { color: #999; }

/* ── Light theme: payout status badges ── */
.rn-theme-light .rn-payout-status--pending  { background: rgba(200,140,0,0.08);  color: #7a5500; border-color: rgba(200,140,0,0.28); }
.rn-theme-light .rn-payout-status--approved { background: rgba(13,158,96,0.08);  color: #0a6e44; border-color: rgba(13,158,96,0.28); }
.rn-theme-light .rn-payout-status--paid     { background: rgba(60,120,255,0.08); color: #2a5ed4; border-color: rgba(60,120,255,0.28); }
.rn-theme-light .rn-payout-status--rejected,
.rn-theme-light .rn-payout-status--cancelled { background: rgba(200,50,50,0.07); color: #a02020; border-color: rgba(200,50,50,0.22); }

/* ── Light theme: download button ── */
.rn-theme-light .rn-payout-dl-btn { color: rgba(0,0,0,0.45); border-color: rgba(0,0,0,0.15); }
.rn-theme-light .rn-payout-dl-btn:hover { color: #111; border-color: rgba(0,0,0,0.3); background: rgba(0,0,0,0.04); }

/* ══════════════════════════════════════════
   STATS EXPORT — v1.5
   ══════════════════════════════════════════ */

/* ── Export Stats button (in analytics controls bar) ── */
.rn-export-stats-btn {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 3px;
  padding: 5px 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  margin-left: auto;
}
.rn-export-stats-btn:hover {
  color: var(--fg, #fff);
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.05);
}

/* ── Modal backdrop + scroll lock ── */
body.rn-modal-open { overflow: hidden; }

/* Hidden by default — JS adds .is-open to show */
.rn-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rn-modal.is-open {
  display: flex;
}
.rn-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(2px);
}

/* ── Modal box ── */
.rn-modal__box {
  position: relative;
  z-index: 1;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
}

/* ── Modal header ── */
.rn-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.rn-modal__title {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.rn-modal__close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 3px;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.rn-modal__close:hover {
  color: var(--fg, #fff);
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.05);
}

/* ── Modal body ── */
.rn-modal__body {
  padding: 18px 20px;
}
.rn-modal__note {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 18px;
  line-height: 1.5;
}
.rn-modal__note strong { color: rgba(255,255,255,0.75); font-weight: 600; }

/* ── Column selector fieldsets ── */
.rn-export-cols {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 5px;
  padding: 12px 14px 14px;
  margin: 0 0 14px;
}
.rn-export-cols:last-of-type { margin-bottom: 0; }
.rn-export-cols__legend {
  font-family: var(--mono, monospace);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0 4px;
}
.rn-export-cols__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px 12px;
  margin-top: 10px;
}

/* ── Individual column checkbox labels ── */
.rn-export-col {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  user-select: none;
  transition: color 0.12s;
}
.rn-export-col:hover { color: var(--fg, #fff); }
.rn-export-col input[type="checkbox"] {
  accent-color: rgba(79,255,176,0.8);
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
/* ID columns: slightly dimmer to signal they're advanced */
.rn-export-col--id { color: rgba(255,255,255,0.5); }
.rn-export-col--id:hover { color: rgba(255,255,255,0.82); }

/* ── Event-level mode warning ── */
.rn-export-mode-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(255,200,50,0.75);
  background: rgba(255,200,50,0.06);
  border: 1px solid rgba(255,200,50,0.18);
  border-radius: 4px;
  padding: 8px 12px;
  line-height: 1.5;
}
.rn-export-mode-note strong { color: rgba(255,200,50,0.95); }

/* ── Modal footer ── */
.rn-modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.rn-modal__cancel {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 7px 16px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.rn-modal__cancel:hover {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.28);
}
.rn-modal__download {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 3px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rn-modal__download:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.38);
  color: #fff;
}

/* ── Mobile: full-width modal at narrow viewports ── */
@media (max-width: 560px) {
  .rn-modal.is-open { align-items: flex-end; padding: 0; }
  .rn-modal__box {
    border-radius: 12px 12px 0 0;
    max-height: 90vh;
    max-width: 100%;
  }
  .rn-export-cols__grid { grid-template-columns: repeat(2, 1fr); }
  .rn-modal__foot { flex-wrap: wrap; }
  .rn-modal__download { flex: 1; justify-content: center; display: flex; }
}

/* ── Light theme: export button ── */
.rn-theme-light .rn-export-stats-btn {
  color: rgba(0,0,0,0.45);
  border-color: rgba(0,0,0,0.15);
}
.rn-theme-light .rn-export-stats-btn:hover {
  color: #111;
  border-color: rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.04);
}

/* ── Light theme: modal ── */
.rn-theme-light .rn-modal__backdrop { background: rgba(0,0,0,0.45); }
.rn-theme-light .rn-modal__box {
  background: #fff;
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}
.rn-theme-light .rn-modal__head  { border-bottom-color: rgba(0,0,0,0.08); }
.rn-theme-light .rn-modal__foot  { border-top-color: rgba(0,0,0,0.08); }
.rn-theme-light .rn-modal__title { color: rgba(0,0,0,0.6); }
.rn-theme-light .rn-modal__close { color: rgba(0,0,0,0.4); border-color: rgba(0,0,0,0.14); }
.rn-theme-light .rn-modal__close:hover { color: #111; background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.28); }
.rn-theme-light .rn-modal__note  { color: rgba(0,0,0,0.5); }
.rn-theme-light .rn-modal__note strong { color: rgba(0,0,0,0.75); }
.rn-theme-light .rn-export-cols  { border-color: rgba(0,0,0,0.09); }
.rn-theme-light .rn-export-cols__legend { color: rgba(0,0,0,0.3); }
.rn-theme-light .rn-export-col   { color: rgba(0,0,0,0.65); }
.rn-theme-light .rn-export-col:hover { color: #111; }
.rn-theme-light .rn-export-col--id { color: rgba(0,0,0,0.45); }
.rn-theme-light .rn-export-col--id:hover { color: rgba(0,0,0,0.8); }
.rn-theme-light .rn-export-mode-note {
  color: #7a5500;
  background: rgba(200,140,0,0.06);
  border-color: rgba(200,140,0,0.22);
}
.rn-theme-light .rn-export-mode-note strong { color: #5a3e00; }
.rn-theme-light .rn-modal__cancel  { color: rgba(0,0,0,0.4); border-color: rgba(0,0,0,0.14); }
.rn-theme-light .rn-modal__cancel:hover { color: #111; border-color: rgba(0,0,0,0.28); }
.rn-theme-light .rn-modal__download {
  color: #111;
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.2);
}
.rn-theme-light .rn-modal__download:hover {
  background: rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.32);
}

/* ── Payout download actions ── */
.rn-payout-actions { white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.rn-payout-stmt-btn { color: rgba(255,255,255,0.55) !important; }
.rn-theme-light .rn-payout-stmt-btn { color: rgba(0,0,0,0.5) !important; }

/* ── Tab badge warn ── */
.rn-tab-nav__badge--warn {
  background: #d97706;
  color: #fff;
}

/* ── Payment profile warning banner ── */
.rn-payment-profile-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(217,119,6,0.12);
  border: 1px solid rgba(217,119,6,0.35);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 16px 0 20px;
  font-size: 13px;
  color: var(--fg, #e8e8e8);
}
.rn-payment-profile-warning__icon {
  font-size: 18px;
  line-height: 1;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 1px;
}
.rn-payment-profile-warning__body { flex: 1; }
.rn-payment-profile-warning__btn {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: #d97706 !important;
  text-decoration: none;
  border: 1px solid #d97706;
  border-radius: 4px;
  padding: 4px 10px;
  flex-shrink: 0;
}
.rn-payment-profile-warning__btn:hover { background: rgba(217,119,6,0.1); }

.rn-theme-light .rn-payment-profile-warning {
  background: rgba(217,119,6,0.07);
  color: #1a1a1a;
}

/* ── Profile status badge ── */
.rn-profile-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}
.rn-profile-status--complete {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.25);
}
.rn-profile-status--incomplete {
  background: rgba(217,119,6,0.12);
  color: #d97706;
  border: 1px solid rgba(217,119,6,0.3);
}
.rn-theme-light .rn-profile-status--complete { color: #166534; }
.rn-theme-light .rn-profile-status--incomplete { color: #92400e; }

/* ── Payment profile form ── */
.rn-payment-form { max-width: 720px; }

.rn-payment-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #888);
  padding: 20px 0 10px;
  border-bottom: 1px solid var(--hair, rgba(255,255,255,0.07));
  margin-bottom: 16px;
}

.rn-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.rn-payment-field { display: flex; flex-direction: column; gap: 5px; }
.rn-payment-field--full  { grid-column: 1 / -1; }
.rn-payment-field--half  { grid-column: span 1; }
.rn-payment-field--third { grid-column: span 1; }

/* 3-column thirds require 3-column grid — override for the address group */
.rn-payment-grid .rn-payment-field--third:nth-child(n) {
  grid-column: span 1;
}

.rn-payment-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #aaa);
  letter-spacing: 0.04em;
}
.rn-required { color: #ef4444; }

.rn-payment-input {
  background: var(--input-bg, rgba(255,255,255,0.05));
  border: 1px solid var(--hair, rgba(255,255,255,0.10));
  border-radius: 5px;
  padding: 8px 11px;
  color: var(--fg, #e8e8e8);
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s;
  outline: none;
  box-sizing: border-box;
}
.rn-payment-input:focus { border-color: rgba(255,255,255,0.28); }
.rn-payment-textarea { resize: vertical; min-height: 60px; }

select.rn-payment-input { cursor: pointer; }
select.rn-payment-input option { background: #1a1a1a; color: #e8e8e8; }

.rn-theme-light .rn-payment-input {
  background: #fff;
  border-color: rgba(0,0,0,0.18);
  color: #1a1a1a;
}
.rn-theme-light .rn-payment-input:focus { border-color: rgba(0,0,0,0.4); }
.rn-theme-light select.rn-payment-input option { background: #fff; color: #1a1a1a; }

/* Payment method radio tabs */
.rn-payment-method-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rn-payment-method-tab {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}
.rn-payment-method-tab input[type="radio"] { display: none; }
.rn-payment-method-tab span {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid var(--hair, rgba(255,255,255,0.12));
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted, #aaa);
  transition: all 0.15s;
  user-select: none;
}
.rn-payment-method-tab input:checked + span {
  border-color: rgba(255,255,255,0.32);
  color: var(--fg, #e8e8e8);
  background: rgba(255,255,255,0.07);
}
.rn-theme-light .rn-payment-method-tab span { color: #6b7280; border-color: rgba(0,0,0,0.16); }
.rn-theme-light .rn-payment-method-tab input:checked + span {
  border-color: rgba(0,0,0,0.35);
  color: #1a1a1a;
  background: rgba(0,0,0,0.04);
}

/* Method field groups — use CSS grid passthrough */
.rn-payment-method-fields { display: none; }
.rn-payment-method-fields[style*="contents"] { display: contents; }

/* Save button */
.rn-payment-actions { margin-top: 24px; }
.rn-payment-save-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: var(--fg, #e8e8e8);
  color: var(--bg, #111);
  border: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}
.rn-payment-save-btn:hover { opacity: 0.88; }
.rn-payment-save-btn:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 600px) {
  .rn-payment-grid { grid-template-columns: 1fr; }
  .rn-payment-field--half,
  .rn-payment-field--third { grid-column: 1 / -1; }
  .rn-payment-method-tabs { flex-direction: column; }
  .rn-payment-profile-warning { flex-direction: column; }
}

/* ══════════════════════════════════════════
   READABILITY v2.0 — Contrast + weight pass
   Dark theme only; light-theme rules use
   .rn-theme-light prefix (higher specificity)
   and continue to win regardless of order.
   ══════════════════════════════════════════ */

/* ── 1. Dashboard base text ──
   (.rn-theme-light .rn-dashboard { color:#111 } at spec 0,2,0 overrides this 0,1,0) */
.rn-dashboard {
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 500;
}

/* ── 2. Headings ── */
.rn-dashboard__header h2 {
  color: #fff;
}
/* Section head: slightly larger + bolder than the 10px original */
.rn-section-head {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
}

/* ── 3. Tab navigation ── */
.rn-tab-nav__link {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
}
.rn-tab-nav__link:hover {
  color: rgba(255,255,255,0.88);
}
.rn-tab-nav__link.active {
  font-weight: 800;
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.75);
}

/* ── 4. Stat cards ── */
.rn-stat-card__val {
  font-weight: 800;
  color: #fff;
}
.rn-stat-card__label {
  color: rgba(255,255,255,0.75);
}

/* ── 5. Payout summary cards ── */
.rn-payout-summary-card__val {
  font-weight: 800;
  color: #fff;
}
.rn-payout-summary-card__label {
  color: rgba(255,255,255,0.72);
}

/* ── 6. Performance table ── */
.rn-perf-table thead th {
  font-weight: 700;
}
.rn-perf-table tbody td {
  font-weight: 500;
}
.rn-perf-brand strong {
  font-weight: 700;
}

/* ── 7. Brand cards + campaign name ── */
.rn-brand-card__name {
  font-weight: 700;
}
.rn-campaign-name {
  color: rgba(255,255,255,0.72);
}
.rn-payout-val {
  font-weight: 800;
}
.rn-payout-lbl {
  color: rgba(255,255,255,0.72);
}
.rn-geo-badge,
.rn-traffic-badge {
  font-weight: 700;
}
.rn-tag {
  font-weight: 700;
}

/* ── 8. Forms — dark-mode background guard ──
   .rn-wrap:not(.rn-theme-light) doesn't match when light theme is active,
   so the original transparent bg is used in light mode instead.            */
.rn-wrap:not(.rn-theme-light) .rn-field input,
.rn-wrap:not(.rn-theme-light) .rn-field select,
.rn-wrap:not(.rn-theme-light) .rn-field textarea {
  background: rgba(20,30,50,0.85);
  border-color: rgba(255,255,255,0.18);
}
/* font-weight is fine in both themes */
.rn-field input,
.rn-field select,
.rn-field textarea {
  font-weight: 500;
}
.rn-field input::placeholder,
.rn-field textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

/* ── 9. Buttons ── */
.rn-btn {
  font-weight: 700;
}

/* ── 10. Footer / logout ── */
.rn-logout-link a {
  color: rgba(255,255,255,0.62);
}

/* ── 11. Section notes + period labels ── */
.rn-section-note {
  color: rgba(255,255,255,0.68);
}
.rn-section-period {
  color: rgba(255,255,255,0.58);
}

/* ── 12. Chart bar values ── */
.rn-bar-val {
  font-weight: 600;
}

/* ── 13. Profile + meta grid values ── */
.rn-profile-grid strong {
  font-weight: 600;
}
.rn-dash-meta strong {
  font-weight: 600;
}

/* ══════════════════════════════════════════
   POLISH v2.1 — Logo zones + light-mode fixes
   All rules use .rn-theme-light prefix (spec
   0,2,0+) so dark-mode rules are unaffected.
   ══════════════════════════════════════════ */

/* ── Logo zone: light mode ── */
.rn-theme-light .rn-opp-logo {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.10);
  color: #111;
}

/* ── Opportunity cards: light mode ── */
.rn-theme-light .rn-opp-card {
  background: #fff;
  border-color: rgba(0,0,0,.09);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.rn-theme-light .rn-opp-card:hover {
  border-color: rgba(40,90,255,.32);
  box-shadow: 0 4px 16px rgba(40,90,255,.07);
}
.rn-theme-light .rn-opp-card-name {
  color: #111;
}
.rn-theme-light .rn-opp-card-type {
  color: rgba(0,0,0,.52);
}
.rn-theme-light .rn-opp-card-footer {
  border-top-color: rgba(0,0,0,.06);
}
.rn-theme-light .rn-opp-empty {
  color: rgba(0,0,0,.45);
}

/* Match score badges */
.rn-theme-light .rn-opp-score--good   { background: #d1fae5; color: #065f46; }
.rn-theme-light .rn-opp-score--medium { background: #fef3c7; color: #92400e; }
.rn-theme-light .rn-opp-score--low    { background: #fee2e2; color: #991b1b; }

/* Reason chips on cards */
.rn-theme-light .rn-opp-chip {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.10);
  color: #1a1a1a;
}

/* Warning flags */
.rn-theme-light .rn-opp-flag { color: #dc2626; }

/* Connection status badges */
.rn-theme-light .rn-opp-connected-badge {
  background: #d1fae5;
  color: #065f46;
}
.rn-theme-light .rn-opp-pending-badge {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(217,119,6,.4);
}

/* Suggested label on fallback cards */
.rn-theme-light .rn-opp-suggested-label {
  color: #1740cc;
}

/* ── RAI recommendation banner: light mode ── */
.rn-theme-light .rn-opp-rai {
  background: linear-gradient(180deg, rgba(40,90,255,.07) 0%, rgba(40,90,255,.03) 100%);
  border-color: rgba(40,90,255,.18);
}
.rn-theme-light .rn-opp-rai__head {
  color: #1740cc;
}
.rn-theme-light .rn-opp-rai__item {
  color: #1a1a1a;
}
/* Inline-styled reason chips inside RAI banner */
.rn-theme-light .rn-opp-rai span[style] {
  background: rgba(0,120,80,.07) !important;
  border-color: rgba(0,120,80,.18) !important;
  color: #065f46 !important;
}

/* ── Completeness nudge banner: light mode ── */
.rn-theme-light .rn-opp-nudge {
  background: #fffbeb;
  border-color: rgba(217,119,6,.28);
  color: #78350f;
}
/* Label headings inside the nudge */
.rn-theme-light .rn-opp-nudge [style*="color:#fcd34d"] {
  color: #92400e !important;
}

/* ── Traffic Profile panel: inputs + chips ── */
/* Number inputs and textarea */
.rn-theme-light .rn-mp-number-input,
.rn-theme-light .rn-mp-textarea {
  background: #fff;
  border-color: rgba(0,0,0,.12);
  color: #111;
}
.rn-theme-light .rn-mp-number-input::placeholder,
.rn-theme-light .rn-mp-textarea::placeholder {
  color: rgba(0,0,0,.42);
}
.rn-theme-light .rn-mp-number-input:focus,
.rn-theme-light .rn-mp-textarea:focus {
  border-color: rgba(40,90,255,.4);
}

/* Section labels */
.rn-theme-light .rn-mp-section-label {
  color: rgba(0,0,0,.52);
}

/* Completeness bar track */
.rn-theme-light .rn-mp-comp-bar {
  background: rgba(0,0,0,.08);
}

/* ── Profile chips: light mode ── */
.rn-theme-light .rn-mp-chip {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.12);
  color: #333;
}
.rn-theme-light .rn-mp-chip:hover {
  border-color: rgba(40,90,255,.38);
  color: #1740cc;
}
.rn-theme-light .rn-mp-chip.is-selected {
  background: rgba(40,90,255,.12);
  border-color: rgba(40,90,255,.28);
  color: #1740cc;
}

/* Save button stays blue in both themes */
.rn-theme-light .rn-mp-save-btn {
  background: #2563eb;
  color: #fff;
}
.rn-theme-light .rn-mp-save-btn:hover {
  background: #1d4ed8;
}

/* ── Payout grid cards: light mode ── */
.rn-theme-light .rn-payout-summary-card {
  background: #fff;
  border-color: rgba(0,0,0,.09);
}

/* ── .rn-field inputs in light mode (Payment Settings tab) ── */
.rn-theme-light .rn-field input,
.rn-theme-light .rn-field select,
.rn-theme-light .rn-field textarea {
  background: #fff;
  border-color: rgba(0,0,0,.14);
  color: #111;
}
.rn-theme-light .rn-field input::placeholder,
.rn-theme-light .rn-field textarea::placeholder {
  color: rgba(0,0,0,.42);
}
.rn-theme-light .rn-field label {
  color: rgba(0,0,0,.55);
}

/* ── Footer: keep dark in both themes ── */
/* (no overrides — dark look is intentional per spec) */

/* ══════════════════════════════════════════
   MOBILE PASS v1.0
   Responsive refinements across all dashboard
   tabs — no business logic or colour changes.
   ══════════════════════════════════════════ */

/* ── 1. Tracking link hint: let code snippets wrap ──
   Prevents <code> tokens overflowing on narrow phones. */
.rn-link-hint code {
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: normal;
}

/* ── 2. Section head: allow period label to wrap on tiny screens ── */
@media (max-width: 480px) {
  .rn-section-head {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .rn-section-period {
    margin-left: 0;
  }
}

/* ── 3. Tab nav: compact font + tighter padding below 480 px ── */
@media (max-width: 480px) {
  .rn-tab-nav__link {
    font-size: 11px;
    padding: 12px 14px;
  }
  /* Narrow the scroll-arrow buttons proportionally */
  .rn-tab-scroll-btn { width: 44px; }
  .rn-tab-scroll-btn--right { padding-right: 8px; }
  .rn-tab-scroll-btn--left  { padding-left:  8px; }
}

/* ── 4. Stat cards: tighter at 2-column breakpoint (≤ 380 px) ── */
@media (max-width: 380px) {
  .rn-stat-card {
    padding: 18px 10px 14px;
  }
  .rn-stat-card__val {
    font-size: 22px;
    margin-bottom: 8px;
  }
}

/* ── 5. Payout summary cards: reduce padding/size at single-column (≤ 360 px) ── */
@media (max-width: 360px) {
  .rn-payout-summary-card {
    padding: 16px 14px 14px;
  }
  .rn-payout-summary-card__val {
    font-size: 22px;
  }
  .rn-payout-summary-card__val--sm {
    font-size: 16px;
  }
}

/* ── 6. Analytics controls: fix export button in stacked (column) layout ──
   margin-left:auto has no effect in flex-column; reset it and
   add a small top gap to visually separate from the toggle. */
@media (max-width: 640px) {
  .rn-export-stats-btn {
    margin-left: 0;
    margin-top: 2px;
    align-self: flex-start;
  }
}

/* ── 7. Dashboard header: tighter bottom spacing on mobile ── */
@media (max-width: 480px) {
  .rn-dashboard__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }
}

/* ── 8. Meta row: let theme-toggle wrap cleanly on very narrow screens ── */
@media (max-width: 360px) {
  .rn-dashboard__meta {
    gap: 8px;
  }
  .rn-theme-toggle {
    margin-left: 0;
  }
}

/* ── 9. Brand card payout column: tighten mobile row layout ── */
@media (max-width: 380px) {
  .rn-brand-card__payout-col {
    padding: 10px 14px;
  }
}

/* ── 10. Light-theme overrides for items 3–8 ── */
/* All rules above are theme-agnostic; no overrides needed. */

/* ══════════════════════════════════════════
   LOGIN FORM POLISH v1.0
   ══════════════════════════════════════════ */

/* Explicit column layout so fields have consistent, deliberate spacing */
#rn-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Tighten the password → remember-me → sign-in zone:
   shave a few px from the gap between the bottom three elements
   so the action cluster feels compact and purposeful.         */
#rn-login-form .rn-field--inline { margin-top: -5px; }
#rn-login-form > .rn-btn         { margin-top: -3px; }

/* Ensure "Forgot password?" baseline sits flush with
   "Remember me" label text regardless of line-height rounding. */
.rn-field--inline .rn-link {
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* ── Mobile: slightly smaller checkbox at ≤480px ── */
@media (max-width: 480px) {
  .rn-agree input[type="checkbox"] {
    width: 15px;
    height: 15px;
    min-width: 15px;
  }
  /* Scale checkmark for 15px box — centering is inherited from base rule */
  .rn-agree input[type="checkbox"]::after {
    width: 4px;
    height: 7px;
  }
  /* The full <label> area remains the tap target, keeping mobile a11y intact */
}

/* ── LEGAL NOTICE BLOCKS v1.0 ─────────────────────────────────────────── */
/* Used in affiliate/operator dashboards for inline legal disclaimers.      */
.rn-legal-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid rgba(99,135,193,0.4);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--rn-text-muted, #8c9ab0);
  margin-bottom: 20px;
}
.rn-legal-notice--compact {
  padding: 8px 12px;
  font-size: 11px;
  margin-bottom: 0;
}
.rn-legal-notice__links {
  white-space: nowrap;
  flex-shrink: 0;
}
.rn-legal-notice a,
.rn-legal-notice__links a {
  color: rgba(96,165,250,0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: inherit;
}
.rn-legal-notice a:hover,
.rn-legal-notice__links a:hover {
  color: #93c5fd;
}

/* Light mode */
.rn-theme-light .rn-legal-notice {
  background: #f8fafc;
  border-color: #d1d9e6;
  border-left-color: #93c5fd;
  color: #5a6a82;
}
.rn-theme-light .rn-legal-notice a,
.rn-theme-light .rn-legal-notice__links a {
  color: #1d4ed8;
}
.rn-theme-light .rn-legal-notice a:hover,
.rn-theme-light .rn-legal-notice__links a:hover {
  color: #1e40af;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONNECTIONS SOFT-GATE
   ───────────────────────────────────────────────────────────────────────────── */

/* Tab nav: gated indicator */
.rn-tab-nav__link--gated {
  opacity: 0.65;
  position: relative;
}
.rn-tab-nav__link--gated:hover {
  opacity: 0.9;
}
.rn-tab-nav__badge--gate {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  color: #60a5fa;
  border: 1px solid #2d5b9e;
  margin-left: 5px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Connections premium placeholder */
.rn-conn-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 32px 56px;
  max-width: 480px;
  margin: 0 auto;
}
.rn-conn-gate__icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.6;
}
.rn-conn-gate__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--rn-text, #e2e8f0);
  margin-bottom: 12px;
}
.rn-conn-gate__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  color: #60a5fa;
  border: 1px solid #2d5b9e;
  margin-bottom: 20px;
}
.rn-conn-gate__copy {
  font-size: 14px;
  line-height: 1.7;
  color: var(--rn-text-muted, #8c9ab0);
  margin: 0 0 28px;
}
.rn-conn-gate__cta {
  padding: 10px 28px;
  background: transparent;
  border: 1px solid #2d5b9e;
  border-radius: 8px;
  color: #60a5fa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  margin-bottom: 16px;
}
.rn-conn-gate__cta:hover:not(:disabled) {
  background: #1e3a5f;
  border-color: #4a90d9;
  color: #93c5fd;
}
.rn-conn-gate__cta:disabled {
  opacity: 0.55;
  cursor: default;
}
.rn-conn-gate__note {
  font-size: 12px;
  color: #86efac;
  background: #0a3622;
  border: 1px solid #166534;
  border-radius: 6px;
  padding: 8px 16px;
}

/* Light mode overrides */
.rn-theme-light .rn-conn-gate__title { color: #0f1728; }
.rn-theme-light .rn-conn-gate__copy  { color: #5a6a82; }
.rn-theme-light .rn-conn-gate__badge {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}
.rn-theme-light .rn-conn-gate__cta {
  border-color: #93c5fd;
  color: #1d4ed8;
}
.rn-theme-light .rn-conn-gate__cta:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}
.rn-theme-light .rn-conn-gate__note {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}

/* ─────────────────────────────────────────────────────────────────────────────
   OPPORTUNITY CURATED LABELS
   ───────────────────────────────────────────────────────────────────────────── */

/* Card with a curated label gets a subtle top border accent */
.rn-opp-card--curated {
  border-top-width: 2px;
}

.rn-opp-curated-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 4px 4px 0 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: -1px -1px 10px;
  border-bottom: none;
  width: calc(100% + 2px);
  box-sizing: border-box;
}

/* Featured — gold */
.rn-opp-curated--featured {
  background: linear-gradient(90deg, #78350f 0%, #451a03 100%);
  color: #fcd34d;
  border-top: 2px solid #d97706;
}
.rn-opp-card--curated:has(.rn-opp-curated--featured) {
  border-top-color: #d97706;
}

/* New — teal/green */
.rn-opp-curated--new {
  background: linear-gradient(90deg, #064e3b 0%, #022c22 100%);
  color: #6ee7b7;
  border-top: 2px solid #059669;
}
.rn-opp-card--curated:has(.rn-opp-curated--new) {
  border-top-color: #059669;
}

/* High Converting — blue */
.rn-opp-curated--highconv {
  background: linear-gradient(90deg, #1e3a5f 0%, #0f2744 100%);
  color: #93c5fd;
  border-top: 2px solid #2563eb;
}
.rn-opp-card--curated:has(.rn-opp-curated--highconv) {
  border-top-color: #2563eb;
}

/* Invite Only — purple */
.rn-opp-curated--invite {
  background: linear-gradient(90deg, #2e1065 0%, #1e0a4a 100%);
  color: #c4b5fd;
  border-top: 2px solid #7c3aed;
}
.rn-opp-card--curated:has(.rn-opp-curated--invite) {
  border-top-color: #7c3aed;
}

/* Default (custom label) — slate */
.rn-opp-curated--default {
  background: #1f2937;
  color: #9ca3af;
  border-top: 2px solid #4b5563;
}

/* Light mode */
.rn-theme-light .rn-opp-curated--featured  { background: #fef3c7; color: #92400e; border-top-color: #d97706; }
.rn-theme-light .rn-opp-curated--new       { background: #d1fae5; color: #065f46; border-top-color: #059669; }
.rn-theme-light .rn-opp-curated--highconv  { background: #dbeafe; color: #1e40af; border-top-color: #2563eb; }
.rn-theme-light .rn-opp-curated--invite    { background: #ede9fe; color: #5b21b6; border-top-color: #7c3aed; }
.rn-theme-light .rn-opp-curated--default   { background: #f1f5f9; color: #475569; border-top-color: #94a3b8; }

/* ══════════════════════════════════════════
   AFFILIATE POSTBACK FORWARDING SECTION
   ══════════════════════════════════════════ */

.rn-pb-section { margin-top: 32px; }

.rn-pb-head { margin-bottom: 16px; }
.rn-pb-head__title {
  font-family: var(--mono, monospace);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg, #fff);
}
.rn-pb-head__sub {
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-top: 5px;
  line-height: 1.55;
}

/* Main card */
.rn-pb-card {
  background: #080808;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Toggle row */
.rn-pb-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 16px;
}
.rn-pb-toggle-text {}
.rn-pb-toggle-title {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}
.rn-pb-toggle-sub {
  font-family: var(--mono, monospace);
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  margin-top: 3px;
  line-height: 1.5;
}

/* Toggle switch — CSS-driven via :checked */
.rn-pb-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}
.rn-pb-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.rn-pb-toggle__track {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  transition: background 0.2s, border-color 0.2s;
}
.rn-pb-toggle input:checked ~ .rn-pb-toggle__track {
  background: rgba(79,255,176,0.22);
  border-color: rgba(79,255,176,0.45);
}
.rn-pb-toggle__knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: left 0.2s, background 0.2s;
  pointer-events: none;
}
.rn-pb-toggle input:checked ~ .rn-pb-toggle__knob {
  left: 24px;
  background: #4fffb0;
}

/* Body */
.rn-pb-body { padding: 20px; }
.rn-pb-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 18px 0; }

/* Field group */
.rn-pb-field { margin-bottom: 18px; }
.rn-pb-field-label {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.rn-pb-field-label .rn-pb-required { color: #ff8080; }
.rn-pb-field-hint {
  font-family: var(--mono, monospace);
  font-size: 10px;
  color: rgba(255,255,255,0.60);
  margin-top: 6px;
  line-height: 1.55;
}
.rn-pb-field-hint code {
  font-size: 10px;
  color: rgba(255,255,255,0.80);
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
}

/* Text / URL input */
.rn-pb-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.90);
  padding: 10px 14px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  outline: none;
  transition: color 0.15s, border-color 0.15s;
  box-sizing: border-box;
}
.rn-pb-input::placeholder { color: rgba(255,255,255,0.32); }
.rn-pb-input:focus { color: var(--fg, #fff); border-color: rgba(255,255,255,0.22); }

/* Macro reference block */
.rn-pb-macros-wrap {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 12px 14px;
  margin-bottom: 18px;
}
.rn-pb-macros-title {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin-bottom: 8px;
}
.rn-pb-macros-list { display: flex; flex-wrap: wrap; gap: 5px; }
.rn-pb-macro {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.78);
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.rn-pb-macro:hover {
  border-color: rgba(79,255,176,0.5);
  color: #4fffb0;
  background: rgba(79,255,176,0.06);
}

/* Event chips */
.rn-pb-events-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rn-pb-event-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.72);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.rn-pb-event-chip input { display: none; }
.rn-pb-event-chip.is-active {
  border-color: rgba(79,255,176,0.5);
  color: #4fffb0;
  background: rgba(79,255,176,0.08);
}

/* Method + Token row */
.rn-pb-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.rn-pb-row__method { flex: 0 0 110px; }
.rn-pb-row__token  { flex: 1; min-width: 180px; }

/* Dark select */
.rn-pb-select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.90);
  padding: 9px 32px 9px 14px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='rgba(255,255,255,0.45)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.rn-pb-select option { background: #111; color: #fff; }
.rn-pb-select:focus { border-color: rgba(255,255,255,0.22); }

/* Action buttons */
.rn-pb-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.rn-pb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.90);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.rn-pb-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.5); color: #fff; }
.rn-pb-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.rn-pb-btn--primary {
  border-color: rgba(79,255,176,0.55);
  color: #4fffb0;
}
.rn-pb-btn--primary:hover { background: rgba(79,255,176,0.09); border-color: rgba(79,255,176,0.8); }

.rn-pb-save-msg {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.rn-pb-save-msg--ok  { color: #4fffb0; }
.rn-pb-save-msg--err { color: #ff8080; }

/* Status row */
.rn-pb-status {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.rn-pb-status-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono, monospace);
  font-size: 11px;
}
.rn-pb-status-item span { color: rgba(255,255,255,0.62); }
.rn-pb-status-item strong { color: var(--fg, #fff); font-weight: 600; }
.rn-pb-status-ok  { color: #4fffb0 !important; }
.rn-pb-status-err { color: #ff8080 !important; }
.rn-pb-status-body {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--mono, monospace);
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Test result box */
.rn-pb-test-result {
  display: none;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 12px 14px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Recent log */
.rn-pb-log-head {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin-bottom: 10px;
}
.rn-pb-log-wrap {
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}
.rn-pb-log-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono, monospace);
  font-size: 11px;
}
.rn-pb-log-table th {
  padding: 6px 10px;
  text-align: left;
  color: rgba(255,255,255,0.60);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-weight: 600;
  background: rgba(255,255,255,0.015);
}
.rn-pb-log-table td {
  padding: 7px 10px;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.rn-pb-log-table tr:last-child td { border-bottom: 0; }
.rn-pb-log-ok   { color: #4fffb0 !important; font-weight: 700; }
.rn-pb-log-fail { color: #ff8080 !important; font-weight: 700; }
.rn-pb-log-test-badge {
  font-size: 10px;
  padding: 1px 6px;
  border: 1px solid rgba(128,200,255,0.4);
  color: #80c8ff;
  letter-spacing: 0.04em;
}

/* ── Guide / How it works ── */
/* ── Postbacks guide — collapsible accordion ── */
.rn-pb-guide-toggle {
  background: #080808;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 22px;
}

/* Header button */
.rn-pb-guide-toggle__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.rn-pb-guide-toggle__head:hover { background: rgba(255,255,255,0.03); }
.rn-pb-guide-toggle__head:focus-visible {
  outline: 1px solid rgba(79,255,176,0.5);
  outline-offset: -2px;
}

/* Question-mark icon badge */
.rn-pb-guide-toggle__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(79,255,176,0.35);
  color: rgba(79,255,176,0.8);
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Title + subtitle */
.rn-pb-guide-toggle__label { flex: 1; min-width: 0; }
.rn-pb-guide-toggle__title {
  display: block;
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
}
.rn-pb-guide-toggle__sub {
  display: block;
  font-family: var(--mono, monospace);
  font-size: 10px;
  color: rgba(255,255,255,0.52);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* Chevron — rotates 180° when .is-open on wrapper */
.rn-pb-guide-toggle__chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,0.38);
  transition: transform 0.28s ease, color 0.18s;
}
.rn-pb-guide-toggle.is-open .rn-pb-guide-toggle__chevron {
  transform: rotate(180deg);
  color: #4fffb0;
}

/* Body — CSS grid-row collapse for perfectly proportional animation */
.rn-pb-guide-toggle__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.rn-pb-guide-toggle.is-open .rn-pb-guide-toggle__body {
  grid-template-rows: 1fr;
}
/* Direct child must overflow:hidden for the grid trick to work */
.rn-pb-guide-toggle__body-inner {
  overflow: hidden;
}

/* Inner padding + top border (matches card separator style) */
.rn-pb-guide-inner {
  padding: 20px 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Content styles — all existing guide internals kept as-is */
.rn-pb-guide__sub {
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
  line-height: 1.65;
  max-width: 680px;
}

/* Steps */
.rn-pb-guide__steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.rn-pb-guide__step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}
.rn-pb-guide__num {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(79,255,176,0.7);
  padding-top: 1px;
  min-width: 20px;
}
.rn-pb-guide__step strong {
  color: rgba(255,255,255,0.90);
  font-weight: 600;
}

/* Example URL block */
.rn-pb-guide__examples {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.025);
  border-left: 2px solid rgba(79,255,176,0.3);
}
.rn-pb-guide__example-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.rn-pb-guide__examples code {
  display: block;
  font-family: var(--mono, monospace);
  font-size: 10px;
  color: rgba(255,255,255,0.72);
  word-break: break-all;
  line-height: 1.7;
}

/* Macro reference table */
.rn-pb-guide__macro-ref {
  margin-bottom: 18px;
}
.rn-pb-guide__macro-ref-title {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.rn-pb-guide__macro-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rn-pb-guide__macro-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.rn-pb-guide__macro-row:last-child { border-bottom: 0; }
.rn-pb-guide__macro-row code {
  flex-shrink: 0;
  min-width: 140px;
  font-size: 11px;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.04);
  padding: 2px 7px;
}
.rn-pb-guide__macro-row span {
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}
.rn-pb-guide__macro-row em { color: rgba(255,255,255,0.55); font-style: normal; }

/* Note / warning */
.rn-pb-guide__note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: rgba(255,255,255,0.60);
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  line-height: 1.65;
}
.rn-pb-guide__note-icon {
  flex-shrink: 0;
  color: rgba(79,255,176,0.7);
  font-size: 13px;
  line-height: 1.4;
}

/* Mobile */
@media (max-width: 640px) {
  .rn-pb-row { flex-direction: column; }
  .rn-pb-row__method,
  .rn-pb-row__token { flex: none; width: 100%; min-width: 0; }
  .rn-pb-actions { flex-direction: column; align-items: stretch; }
  .rn-pb-btn { justify-content: center; }
  .rn-pb-status-row { flex-direction: column; gap: 8px; }
  .rn-pb-guide-toggle__head { padding: 12px 14px; }
  .rn-pb-guide-inner { padding: 16px 14px 14px; }
  .rn-pb-guide__macro-row { flex-direction: column; gap: 3px; }
  .rn-pb-guide__macro-row code { min-width: 0; }
}

/* ── Test-fire result: class-based colours (theme-aware, replaces inline styles) ── */
.rn-pb-tr-ok   { color: #4fffb0; }
.rn-pb-tr-err  { color: #ff8080; }
.rn-pb-tr-url  { margin-top: 6px; font-size: 10px; word-break: break-all; color: rgba(255,255,255,0.55); }
.rn-pb-tr-body { margin-top: 4px; font-size: 10px; color: rgba(255,255,255,0.45); white-space: pre-wrap; }
.rn-pb-tr-msg  { margin-top: 4px; color: #ff8080; }

/* ══════════════════════════════════════════
   POSTBACKS TAB — light theme overrides
   ══════════════════════════════════════════ */

/* ── Card & guide container ── */
.rn-theme-light .rn-pb-card,
.rn-theme-light .rn-pb-guide-toggle {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
}

/* ── Section heading ── */
.rn-theme-light .rn-pb-head__title { color: #111; }
.rn-theme-light .rn-pb-head__sub   { color: #666; }

/* ── Toggle enable row ── */
.rn-theme-light .rn-pb-toggle-row  { border-bottom-color: rgba(0,0,0,0.07); }
.rn-theme-light .rn-pb-toggle-title { color: #111; }
.rn-theme-light .rn-pb-toggle-sub   { color: #666; }

/* ── Toggle switch track & knob ── */
.rn-theme-light .rn-pb-toggle__track {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.16);
}
.rn-theme-light .rn-pb-toggle input:checked ~ .rn-pb-toggle__track {
  background: rgba(13,158,96,0.18);
  border-color: rgba(13,158,96,0.45);
}
.rn-theme-light .rn-pb-toggle__knob { background: rgba(0,0,0,0.35); }
.rn-theme-light .rn-pb-toggle input:checked ~ .rn-pb-toggle__knob { background: #0d9e60; }

/* ── Body dividers ── */
.rn-theme-light .rn-pb-divider { background: rgba(0,0,0,0.07); }

/* ── Required marker ── */
.rn-theme-light .rn-pb-field-label .rn-pb-required { color: #c0392b; }

/* ── Field labels & hints ── */
.rn-theme-light .rn-pb-field-label { color: #444; }
.rn-theme-light .rn-pb-field-hint  { color: #666; }
.rn-theme-light .rn-pb-field-hint code {
  color: #333;
  background: rgba(0,0,0,0.05);
}

/* ── Text / URL input ── */
.rn-theme-light .rn-pb-input {
  background: #fff;
  border-color: rgba(0,0,0,0.15);
  color: #111;
}
.rn-theme-light .rn-pb-input::placeholder { color: rgba(0,0,0,0.35); }
.rn-theme-light .rn-pb-input:focus {
  color: #111;
  border-color: rgba(0,0,0,0.32);
}

/* ── Method/select dropdown ── */
.rn-theme-light .rn-pb-select {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='rgba(0,0,0,0.4)'/%3E%3C/svg%3E");
  border-color: rgba(0,0,0,0.15);
  color: #111;
}
.rn-theme-light .rn-pb-select option { background: #fff; color: #111; }
.rn-theme-light .rn-pb-select:focus  { border-color: rgba(0,0,0,0.32); }

/* ── Macro chips panel ── */
.rn-theme-light .rn-pb-macros-wrap {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.08);
}
.rn-theme-light .rn-pb-macros-title { color: #555; }

/* ── Individual macro chips ── */
.rn-theme-light .rn-pb-macro {
  border-color: rgba(0,0,0,0.18);
  color: #444;
  background: transparent;
}
.rn-theme-light .rn-pb-macro:hover {
  border-color: rgba(13,158,96,0.5);
  color: #0d7a4e;
  background: rgba(13,158,96,0.06);
}

/* ── Event chips (Signup / FTD / Deposit / Revenue) ── */
.rn-theme-light .rn-pb-event-chip {
  border-color: rgba(0,0,0,0.16);
  color: #555;
  background: transparent;
}
.rn-theme-light .rn-pb-event-chip.is-active {
  border-color: rgba(13,158,96,0.5);
  color: #0d7a4e;
  background: rgba(13,158,96,0.07);
}

/* ── Buttons ── */
.rn-theme-light .rn-pb-btn {
  border-color: rgba(0,0,0,0.2);
  color: #444;
  background: transparent;
}
.rn-theme-light .rn-pb-btn:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.4);
  color: #111;
}
.rn-theme-light .rn-pb-btn--primary {
  border-color: rgba(13,158,96,0.55);
  color: #0d7a4e;
}
.rn-theme-light .rn-pb-btn--primary:hover {
  background: rgba(13,158,96,0.08);
  border-color: rgba(13,158,96,0.8);
}

/* ── Save message ── */
.rn-theme-light .rn-pb-save-msg--ok  { color: #0d7a4e; }
.rn-theme-light .rn-pb-save-msg--err { color: #c0392b; }

/* ── Last-fired status block ── */
.rn-theme-light .rn-pb-status {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.08);
}
.rn-theme-light .rn-pb-status-item span   { color: #666; }
.rn-theme-light .rn-pb-status-item strong { color: #111; }
.rn-theme-light .rn-pb-status-ok  { color: #0d7a4e !important; }
.rn-theme-light .rn-pb-status-err { color: #c0392b !important; }
.rn-theme-light .rn-pb-status-body {
  border-top-color: rgba(0,0,0,0.07);
  color: #666;
}

/* ── Test-fire result box ── */
.rn-theme-light .rn-pb-test-result {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.08);
  color: #333;
}
/* Class-based test result colours (light mode) */
.rn-theme-light .rn-pb-tr-ok   { color: #0d7a4e; }
.rn-theme-light .rn-pb-tr-err  { color: #c0392b; }
.rn-theme-light .rn-pb-tr-url  { color: #666; }
.rn-theme-light .rn-pb-tr-body { color: #777; }
.rn-theme-light .rn-pb-tr-msg  { color: #c0392b; }

/* ── Recent postbacks log table ── */
.rn-theme-light .rn-pb-log-head { color: #666; }
.rn-theme-light .rn-pb-log-wrap { border-color: rgba(0,0,0,0.1); }
.rn-theme-light .rn-pb-log-table th {
  color: #555;
  border-bottom-color: rgba(0,0,0,0.1);
  background: #f5f7fa;
  font-weight: 600;
}
.rn-theme-light .rn-pb-log-table td {
  color: #333;
  border-bottom-color: rgba(0,0,0,0.05);
}
.rn-theme-light .rn-pb-log-table tr:hover td { background: rgba(0,0,0,0.02); }
.rn-theme-light .rn-pb-log-ok   { color: #0d7a4e !important; }
.rn-theme-light .rn-pb-log-fail { color: #c0392b !important; }
.rn-theme-light .rn-pb-log-test-badge {
  border-color: rgba(37,99,235,0.35);
  color: #2563eb;
}

/* ── Guide accordion header ── */
.rn-theme-light .rn-pb-guide-toggle__head:hover        { background: rgba(0,0,0,0.025); }
.rn-theme-light .rn-pb-guide-toggle__head:focus-visible { outline-color: rgba(13,158,96,0.5); }

/* ── Guide "?" icon badge ── */
.rn-theme-light .rn-pb-guide-toggle__icon {
  border-color: rgba(13,158,96,0.4);
  color: #0d7a4e;
}

/* ── Guide title & subtitle ── */
.rn-theme-light .rn-pb-guide-toggle__title { color: #111; }
.rn-theme-light .rn-pb-guide-toggle__sub   { color: #777; }

/* ── Chevron ── */
.rn-theme-light .rn-pb-guide-toggle__chevron { color: rgba(0,0,0,0.38); }
.rn-theme-light .rn-pb-guide-toggle.is-open .rn-pb-guide-toggle__chevron { color: #0d9e60; }

/* ── Guide body inner ── */
.rn-theme-light .rn-pb-guide-inner     { border-top-color: rgba(0,0,0,0.07); }
.rn-theme-light .rn-pb-guide__sub      { color: #555; }

/* ── Step numbering & text ── */
.rn-theme-light .rn-pb-guide__step        { color: #444; }
.rn-theme-light .rn-pb-guide__num         { color: #0d9e60; }
.rn-theme-light .rn-pb-guide__step strong { color: #111; }

/* ── Example code blocks ── */
.rn-theme-light .rn-pb-guide__examples {
  background: rgba(0,0,0,0.025);
  border-left-color: rgba(13,158,96,0.35);
}
.rn-theme-light .rn-pb-guide__example-label { color: #888; }
.rn-theme-light .rn-pb-guide__examples code { color: #333; }

/* ── Macro reference table ── */
.rn-theme-light .rn-pb-guide__macro-ref-title { color: #666; }
.rn-theme-light .rn-pb-guide__macro-row       { border-bottom-color: rgba(0,0,0,0.05); }
.rn-theme-light .rn-pb-guide__macro-row code  { color: #111; background: rgba(0,0,0,0.04); }
.rn-theme-light .rn-pb-guide__macro-row span  { color: #555; }
.rn-theme-light .rn-pb-guide__macro-row em    { color: #888; }

/* ── Guide note/info callout ── */
.rn-theme-light .rn-pb-guide__note {
  border-color: rgba(0,0,0,0.09);
  background: rgba(0,0,0,0.02);
  color: #555;
}
.rn-theme-light .rn-pb-guide__note-icon { color: #0d9e60; }
