/* ============================================================
   affiliate-page.css v3 — CSLOW affiliate (CSGOBIG-style)
   ============================================================
   כל הסלקטורים מוכפפים ל-#affiliatePage. Prefix: aff2-
   ============================================================ */

#affiliatePage {
  --aff2-bg: #212121;
  --aff2-panel: #212121;
  --aff2-panel2: #242429;
  --aff2-ink: #1b1b1b;
  --aff2-b1: rgba(255,255,255,.05);
  --aff2-b2: rgba(255,255,255,.1);
  --aff2-hero-a: #212121;
  --aff2-hero-b: #242429;
  --aff2-g: #f0a830;
  --aff2-g2: #f5b548;
  --aff2-hi: #ffffff;
  --aff2-tx: #e5e7eb;
  --aff2-mute: #9aa3b5;
  --aff2-dim: #7a8599;
  --aff2-darker: #4a4a4a;
  --aff2-green: #3ccf82;
  --aff2-red: #e15b5b;
  color: var(--aff2-tx);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

#affiliatePage .aff2-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 48px;
}

/* ─── HERO ─────────────────────────────── */
#affiliatePage .aff2-hero {
  position: relative;
  background: url('/Media/IDK.png?v=3') center center / cover no-repeat;
  border-radius: 12px;
  padding: 28px 32px;
  overflow: visible;
  min-height: 160px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
#affiliatePage .aff2-hero-topo {
  display: none;
}
#affiliatePage .aff2-hero-content {
  flex: 1;
  z-index: 1;
  max-width: 520px;
}
#affiliatePage .aff2-hero-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  font-family: 'Inter', sans-serif;
}
#affiliatePage .aff2-hero-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--aff2-mute);
  margin: 0 0 16px;
  line-height: 1.5;
  max-width: 420px;
  font-family: 'Inter', sans-serif;
}
#affiliatePage .aff2-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e08b29 0%, #f5b548 100%);
  color: #1a1a1a;
  border: none;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease;
  letter-spacing: 0.3px;
  font-family: 'Inter', sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
#affiliatePage .aff2-hero-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

#affiliatePage .aff2-hero-char {
  display: block;
  position: absolute;
  right: 40px;
  bottom: 0;
  width: 280px;
  height: 340px;
  background: url('/Media/AFFC.png') center bottom / contain no-repeat;
  pointer-events: none;
  z-index: 2;
}
#affiliatePage .aff2-char-crown,
#affiliatePage .aff2-char-body,
#affiliatePage .aff2-char-gold {
  display: none;
}

/* ─── CODES STRIP ──────────────────────── */
#affiliatePage .aff2-codes-strip {
  background: var(--aff2-panel);
  border: 1px solid var(--aff2-b1);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 18px;
}
#affiliatePage .aff2-codes-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--aff2-g);
  text-transform: uppercase;
  margin-bottom: 12px;
}
#affiliatePage .aff2-codes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#affiliatePage .aff2-code-row {
  background: var(--aff2-panel2);
  border: 1px solid var(--aff2-b1);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#affiliatePage .aff2-primary-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(229,184,87,.15);
  color: var(--aff2-g);
  border: 1px solid rgba(229,184,87,.3);
  white-space: nowrap;
}
#affiliatePage .aff2-code-val {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: var(--aff2-g);
  font-family: 'Inter', sans-serif;
}
#affiliatePage .aff2-code-link {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--aff2-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 120px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
}
#affiliatePage .aff2-code-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
#affiliatePage .aff2-edit-input {
  background: var(--aff2-ink);
  border: 1px solid var(--aff2-b2);
  border-radius: 5px;
  padding: 5px 9px;
  color: var(--aff2-hi);
  font-size: 12px;
  font-weight: 800;
  width: 110px;
  outline: none;
  letter-spacing: 1.5px;
  display: none;
  font-family: 'Inter', sans-serif;
}
#affiliatePage .aff2-edit-input:focus { border-color: var(--aff2-g); }
#affiliatePage .aff2-code-msg {
  font-size: 11px;
  font-weight: 800;
  padding-left: 4px;
  min-height: 14px;
}
#affiliatePage .aff2-add-row {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(229,184,87,.04);
  border: 1px dashed rgba(229,184,87,.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#affiliatePage .aff2-new-input {
  background: var(--aff2-ink);
  border: 1px solid var(--aff2-b2);
  border-radius: 5px;
  padding: 6px 10px;
  color: var(--aff2-hi);
  font-size: 12px;
  font-weight: 800;
  width: 130px;
  outline: none;
  letter-spacing: 1.5px;
  font-family: 'Inter', sans-serif;
}
#affiliatePage .aff2-new-input:focus { border-color: var(--aff2-g); }
#affiliatePage .aff2-hint {
  font-size: 10px;
  color: var(--aff2-dim);
  margin-left: auto;
}

/* ─── MINI BUTTONS ─────────────────────── */
#affiliatePage .aff2-mini-btn {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 1px solid;
  background: transparent;
  transition: all .12s;
  font-family: 'Inter', sans-serif;
}
#affiliatePage .aff2-mini-btn.gold {
  background: rgba(229,184,87,.1);
  border-color: rgba(229,184,87,.35);
  color: var(--aff2-g);
}
#affiliatePage .aff2-mini-btn.gold:hover { background: rgba(229,184,87,.2); }
#affiliatePage .aff2-mini-btn.ghost {
  background: rgba(255,255,255,.03);
  border-color: var(--aff2-b2);
  color: var(--aff2-tx);
}
#affiliatePage .aff2-mini-btn.ghost:hover { border-color: rgba(229,184,87,.3); color: var(--aff2-hi); }
#affiliatePage .aff2-mini-btn.green {
  background: rgba(60,207,130,.1);
  border-color: rgba(60,207,130,.3);
  color: var(--aff2-green);
}
#affiliatePage .aff2-mini-btn.green:hover { background: rgba(60,207,130,.2); }

/* ─── TABS ROW ─────────────────────────── */
#affiliatePage .aff2-tabs-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
#affiliatePage .aff2-tab-bar {
  display: flex;
  gap: 4px;
  background: var(--aff2-panel2);
  border-radius: 7px;
  padding: 3px;
}
#affiliatePage .aff2-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 5px;
  color: var(--aff2-mute);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .12s;
  font-family: 'Inter', sans-serif;
}
#affiliatePage .aff2-tab-btn:hover { color: var(--aff2-tx); }
#affiliatePage .aff2-tab-btn.active {
  background: var(--aff2-bg);
  color: var(--aff2-g);
}
#affiliatePage .aff2-tab-ico {
  font-size: 11px;
  opacity: 0.9;
}
#affiliatePage .aff2-tab-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--aff2-mute);
}
#affiliatePage .aff2-period b { color: var(--aff2-hi); font-weight: 600; }

/* ─── PANELS ───────────────────────────── */
#affiliatePage .aff2-panel { display: none; }
#affiliatePage .aff2-panel.active { display: block; }

/* ─── CHART + STATS GRID ───────────────── */
#affiliatePage .aff2-chart-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

#affiliatePage .aff2-chart-card {
  background: var(--aff2-panel);
  border: 1px solid var(--aff2-b1);
  border-radius: 10px;
  padding: 18px 20px;
  min-width: 0;
}
#affiliatePage .aff2-chart-head {
  margin-bottom: 10px;
}
#affiliatePage .aff2-chart-label {
  font-size: 13px;
  color: var(--aff2-mute);
  font-weight: 600;
}
#affiliatePage .aff2-chart-val {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--aff2-g);
  margin-top: 2px;
}
#affiliatePage .aff2-chart-wrap {
  height: 240px;
  position: relative;
}
#affiliatePage .aff2-chart-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
#affiliatePage .aff2-grid {
  stroke: rgba(255,255,255,.05);
  stroke-width: 0.5;
}
#affiliatePage .aff2-axis {
  font-size: 10px;
  fill: var(--aff2-dim);
  font-family: 'Inter', sans-serif;
}
#affiliatePage .aff2-line {
  stroke: var(--aff2-g);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ─── STATS COLUMN ─────────────────────── */
#affiliatePage .aff2-stats-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#affiliatePage .aff2-stat-card {
  background: var(--aff2-panel);
  border: 1px solid var(--aff2-b1);
  border-radius: 8px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#affiliatePage .aff2-stat-left {
  min-width: 0;
  flex: 1;
}
#affiliatePage .aff2-stat-v {
  font-size: 16px;
  font-weight: 800;
  color: var(--aff2-hi);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
#affiliatePage .aff2-stat-v.gold { color: var(--aff2-g); }
#affiliatePage .aff2-stat-l {
  font-size: 11px;
  color: var(--aff2-mute);
  margin-top: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#affiliatePage .aff2-coin { color: var(--aff2-g); font-size: 13px; }
#affiliatePage .aff2-stat-ico { font-size: 13px; opacity: 0.8; margin-right: 2px; }
#affiliatePage .aff2-claim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e08b29 0%, #f5b548 100%);
  color: #1a1a1a;
  border: none;
  padding: 9px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
#affiliatePage .aff2-claim-btn:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}
#affiliatePage .aff2-claim-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#affiliatePage .aff2-claim-note {
  display: none;
  font-size: 11px;
  color: var(--aff2-mute);
  text-align: center;
  margin: 6px 0 14px;
  font-weight: 600;
}
#affiliatePage .aff2-msg {
  display: none;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}
#affiliatePage .aff2-msg.ok {
  background: rgba(60,207,130,.1);
  border: 1px solid rgba(60,207,130,.3);
  color: var(--aff2-green);
}
#affiliatePage .aff2-msg.err {
  background: rgba(225,91,91,.1);
  border: 1px solid rgba(225,91,91,.3);
  color: var(--aff2-red);
}

/* ─── SEARCH + FILTERS ─────────────────── */
#affiliatePage .aff2-search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
#affiliatePage .aff2-search-input {
  flex: 1;
  max-width: 340px;
  background: var(--aff2-panel);
  border: 1px solid var(--aff2-b1);
  border-radius: 7px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
}
#affiliatePage .aff2-search-ico { font-size: 12px; opacity: 0.5; }
#affiliatePage .aff2-search-input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--aff2-tx);
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
#affiliatePage .aff2-search-input input::placeholder { color: var(--aff2-dim); }

#affiliatePage .aff2-filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--aff2-panel);
  border: 1px solid var(--aff2-b1);
  border-radius: 7px;
  padding: 3px;
}
#affiliatePage .aff2-ft-btn {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 5px;
  color: var(--aff2-mute);
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all .12s;
  font-family: 'Inter', sans-serif;
}
#affiliatePage .aff2-ft-btn:hover { color: var(--aff2-tx); }
#affiliatePage .aff2-ft-btn.active {
  background: rgba(229,184,87,.15);
  color: var(--aff2-g);
}

/* ─── PLAYERS TABLE ────────────────────── */
#affiliatePage .aff2-table-wrap {
  background: var(--aff2-panel);
  border: 1px solid var(--aff2-b1);
  border-radius: 10px;
  overflow: hidden;
}
#affiliatePage .aff2-ptable {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
#affiliatePage .aff2-ptable th {
  text-align: left;
  font-size: 10px;
  color: var(--aff2-mute);
  letter-spacing: 1.2px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--aff2-b1);
  font-weight: 600;
  text-transform: uppercase;
  background: var(--aff2-ink);
}
#affiliatePage .aff2-ptable td {
  padding: 11px 14px;
  font-size: 12px;
  border-bottom: 1px solid var(--aff2-b1);
  color: var(--aff2-tx);
  vertical-align: middle;
  font-weight: 600;
}
#affiliatePage .aff2-ptable tbody tr:last-child td { border-bottom: none; }
#affiliatePage .aff2-ptable tbody tr:hover td { background: rgba(229,184,87,.02); }
#affiliatePage .aff2-ptable td.aff2-gold { color: var(--aff2-g); font-weight: 800; font-variant-numeric: tabular-nums; }
#affiliatePage .aff2-ptable td.aff2-dim  { color: var(--aff2-darker); font-variant-numeric: tabular-nums; }
#affiliatePage .aff2-ptable td.aff2-dim .aff2-coin { color: var(--aff2-darker); }

#affiliatePage .aff2-p-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
#affiliatePage .aff2-p-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
#affiliatePage .aff2-p-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--aff2-hi);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#affiliatePage .aff2-s-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aff2-green);
  margin-right: 6px;
  vertical-align: middle;
}
#affiliatePage .aff2-s-active {
  color: var(--aff2-green);
  font-size: 11px;
  font-weight: 600;
}
#affiliatePage .aff2-s-ago {
  color: var(--aff2-mute);
  font-size: 11px;
  font-weight: 600;
}

#affiliatePage .aff2-no-data {
  text-align: center;
  padding: 36px;
  color: var(--aff2-mute);
  font-size: 12px;
  font-weight: 600;
}

/* ─── SOON (Campaigns / Tiers) ─────────── */
#affiliatePage .aff2-soon-card {
  background: var(--aff2-panel);
  border: 1px solid var(--aff2-b1);
  border-radius: 10px;
  padding: 40px 32px;
  text-align: center;
}
#affiliatePage .aff2-soon-ico {
  font-size: 32px;
  margin-bottom: 14px;
  opacity: 0.6;
}
#affiliatePage .aff2-soon-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--aff2-hi);
  margin-bottom: 8px;
}
#affiliatePage .aff2-soon-desc {
  font-size: 13px;
  color: var(--aff2-mute);
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.5;
}
#affiliatePage .aff2-codes-inline-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--aff2-g);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: left;
}
#affiliatePage .aff2-campaigns-codes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 600px;
  margin: 0 auto;
}
#affiliatePage .aff2-cc-row {
  background: var(--aff2-panel2);
  border: 1px solid var(--aff2-b1);
  border-radius: 7px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── RESPONSIVE ───────────────────────── */
@media (max-width: 900px) {
  #affiliatePage .aff2-chart-row {
    grid-template-columns: 1fr;
  }
  #affiliatePage .aff2-hero { padding: 22px 20px; }
  #affiliatePage .aff2-hero-title { font-size: 18px; }
  #affiliatePage .aff2-hero-char { width: 150px; height: 185px; right: 20px; }
}
@media (max-width: 640px) {
  #affiliatePage .aff2-wrap { padding: 14px 12px 32px; }
  #affiliatePage .aff2-hero-char { display: none; }
  #affiliatePage .aff2-hero-content { max-width: 100%; }
  #affiliatePage .aff2-code-row { flex-wrap: wrap; }
  #affiliatePage .aff2-code-link { min-width: 100%; order: 10; }
  #affiliatePage .aff2-tabs-row { gap: 8px; }
  #affiliatePage .aff2-tab-right { margin-left: 0; width: 100%; }
  #affiliatePage .aff2-ptable { font-size: 11px; }
  #affiliatePage .aff2-ptable th,
  #affiliatePage .aff2-ptable td { padding: 9px 8px; }
  #affiliatePage .aff2-ptable th:nth-child(3),
  #affiliatePage .aff2-ptable td:nth-child(3),
  #affiliatePage .aff2-ptable th:nth-child(4),
  #affiliatePage .aff2-ptable td:nth-child(4) { display: none; }
  #affiliatePage .aff2-search-input { max-width: 100%; }
}

/* ============================================================
   v3 — Creator Leaderboards Section
   ============================================================ */
#affiliatePage #aff2LbRoot { display:flex; flex-direction:column; gap:14px; padding:4px 0; }
#affiliatePage .aff2-lb-loading { padding:30px; text-align:center; color:var(--aff2-mute); font-weight:800; font-size:13px; letter-spacing:1px; }
#affiliatePage .aff2-lb-empty { padding:50px 24px; text-align:center; background:var(--aff2-panel); border:1px solid var(--aff2-b1); border-radius:14px; }
#affiliatePage .aff2-lb-empty-ico { font-size:42px; margin-bottom:14px; opacity:.6; }
#affiliatePage .aff2-lb-empty-title { font-size:18px; font-weight:900; color:var(--aff2-hi); margin-bottom:6px; letter-spacing:1px; }
#affiliatePage .aff2-lb-empty-desc { font-size:13px; color:var(--aff2-mute); font-weight:700; max-width:480px; margin:0 auto; line-height:1.6; }
#affiliatePage .aff2-lb-empty-row { padding:18px; text-align:center; color:var(--aff2-mute); font-size:12px; font-weight:800; }

#affiliatePage .aff2-lb-card { background:var(--aff2-panel); border:1px solid var(--aff2-b1); border-radius:14px; padding:22px 24px; }
#affiliatePage .aff2-lb-sec-title { font-size:11px; font-weight:900; letter-spacing:3px; color:var(--aff2-g); text-transform:uppercase; padding-bottom:14px; margin-bottom:16px; border-bottom:1px solid var(--aff2-b1); }

/* Creds card */
#affiliatePage .aff2-lb-creds-grid { display:flex; flex-direction:column; gap:10px; }
#affiliatePage .aff2-lb-creds-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 12px; background:var(--aff2-panel2); border:1px solid var(--aff2-b1); border-radius:8px; }
#affiliatePage .aff2-lb-creds-label { font-size:10px; font-weight:900; letter-spacing:2px; color:var(--aff2-mute); text-transform:uppercase; min-width:90px; }
#affiliatePage .aff2-lb-creds-val { flex:1; font-size:12px; font-weight:700; color:var(--aff2-hi); font-family:Menlo,Monaco,monospace; padding:6px 10px; background:var(--aff2-ink); border-radius:5px; word-break:break-all; min-width:200px; }
#affiliatePage .aff2-lb-creds-hint { margin-top:14px; font-size:11px; font-weight:700; color:var(--aff2-mute); line-height:1.7; padding:12px 14px; background:var(--aff2-ink); border-radius:8px; border:1px dashed var(--aff2-b2); }
#affiliatePage .aff2-lb-creds-hint code { background:rgba(229,184,87,.1); color:var(--aff2-g); padding:1px 6px; border-radius:3px; font-size:10px; }

/* Active LB */
#affiliatePage .aff2-lb-active { background:linear-gradient(180deg, rgba(229,184,87,.04), transparent 50%), var(--aff2-panel); }
#affiliatePage .aff2-lb-row-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; flex-wrap:wrap; }
#affiliatePage .aff2-lb-active-label { font-size:10px; font-weight:900; letter-spacing:3px; color:var(--aff2-g); text-transform:uppercase; margin-bottom:4px; }
#affiliatePage .aff2-lb-active-name { font-size:22px; font-weight:900; color:var(--aff2-hi); letter-spacing:1px; }
#affiliatePage .aff2-lb-status { padding:4px 12px; border-radius:14px; font-size:10px; font-weight:900; letter-spacing:2px; }
#affiliatePage .aff2-lb-status.active { background:rgba(60,207,130,.14); color:var(--aff2-green); border:1px solid rgba(60,207,130,.3); }
#affiliatePage .aff2-lb-status.ended  { background:rgba(156,163,175,.14); color:var(--aff2-mute); border:1px solid rgba(156,163,175,.3); }
#affiliatePage .aff2-lb-active-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--aff2-b1); border-radius:9px; overflow:hidden; margin-bottom:16px; border:1px solid var(--aff2-b1); }
#affiliatePage .aff2-lb-stat { background:var(--aff2-panel2); padding:12px 14px; }
#affiliatePage .aff2-lb-stat-l { font-size:9px; font-weight:900; letter-spacing:2px; color:var(--aff2-mute); text-transform:uppercase; margin-bottom:5px; }
#affiliatePage .aff2-lb-stat-v { font-size:14px; font-weight:900; color:var(--aff2-hi); }
#affiliatePage .aff2-lb-countdown { text-align:center; font-size:30px; font-weight:900; color:var(--aff2-g); letter-spacing:3px; padding:18px; background:var(--aff2-ink); border-radius:10px; border:1px solid var(--aff2-b1); margin-bottom:16px; font-variant-numeric:tabular-nums; }
#affiliatePage .aff2-lb-prizes-title { font-size:10px; font-weight:900; letter-spacing:2px; color:var(--aff2-mute); text-transform:uppercase; margin-bottom:8px; }
#affiliatePage .aff2-lb-prizes { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
#affiliatePage .aff2-lb-prize { display:flex; align-items:center; gap:8px; background:var(--aff2-panel2); border:1px solid var(--aff2-b1); border-radius:7px; padding:7px 12px; }
#affiliatePage .aff2-lb-prize-rank { font-size:10px; font-weight:900; letter-spacing:1px; color:var(--aff2-g); }
#affiliatePage .aff2-lb-prize-val { font-size:12px; font-weight:800; color:var(--aff2-hi); }

/* Create form */
#affiliatePage .aff2-lb-form { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:14px; }
#affiliatePage .aff2-lb-field { display:flex; flex-direction:column; gap:6px; }
#affiliatePage .aff2-lb-field > span { font-size:10px; font-weight:900; letter-spacing:2px; color:var(--aff2-mute); text-transform:uppercase; }
#affiliatePage .aff2-lb-field input[type=text],
#affiliatePage .aff2-lb-field input[type=number],
#affiliatePage .aff2-lb-field input[type=datetime-local] {
  background:var(--aff2-ink); border:1px solid var(--aff2-b2); border-radius:7px; padding:10px 12px; color:var(--aff2-hi); font-size:13px; font-weight:700; outline:none; font-family:inherit;
}
#affiliatePage .aff2-lb-field input:focus { border-color:var(--aff2-g); }
#affiliatePage .aff2-lb-field-check { flex-direction:row; align-items:center; gap:8px; padding:10px 0; }
#affiliatePage .aff2-lb-field-check input { width:16px; height:16px; accent-color:var(--aff2-g); }
#affiliatePage .aff2-lb-field-check span { letter-spacing:1px; color:var(--aff2-tx); text-transform:none; }
#affiliatePage .aff2-lb-prizes-edit { background:var(--aff2-ink); border:1px dashed var(--aff2-b2); border-radius:9px; padding:14px; margin-bottom:14px; }
#affiliatePage .aff2-lb-prizes-edit-title { font-size:10px; font-weight:900; letter-spacing:2px; color:var(--aff2-mute); text-transform:uppercase; margin-bottom:10px; }
#affiliatePage .aff2-lb-prizes-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:8px; }
#affiliatePage .aff2-lb-prize-input { display:flex; align-items:center; gap:6px; background:var(--aff2-panel2); border:1px solid var(--aff2-b1); border-radius:6px; padding:6px 10px; }
#affiliatePage .aff2-lb-prize-input label { font-size:10px; font-weight:900; color:var(--aff2-g); min-width:24px; }
#affiliatePage .aff2-lb-prize-input input { background:transparent; border:none; color:var(--aff2-hi); font-size:12px; font-weight:700; outline:none; flex:1; min-width:60px; }

/* Buttons */
#affiliatePage .aff2-lb-btn { padding:11px 18px; border-radius:8px; font-size:12px; font-weight:900; letter-spacing:1px; cursor:pointer; border:1px solid; transition:all .12s; text-transform:uppercase; font-family:inherit; }
#affiliatePage .aff2-lb-btn.primary { background:var(--aff2-g); border-color:var(--aff2-g); color:var(--aff2-ink); }
#affiliatePage .aff2-lb-btn.primary:hover { background:var(--aff2-g2); }
#affiliatePage .aff2-lb-btn.ghost { background:rgba(122,133,153,.08); border-color:rgba(122,133,153,.22); color:var(--aff2-tx); }
#affiliatePage .aff2-lb-btn.ghost:hover { border-color:rgba(229,184,87,.3); color:var(--aff2-hi); }
#affiliatePage .aff2-lb-mini-btn { padding:6px 12px; border-radius:5px; font-size:10px; font-weight:900; letter-spacing:1px; cursor:pointer; border:1px solid var(--aff2-b2); background:rgba(122,133,153,.08); color:var(--aff2-tx); transition:all .12s; font-family:inherit; }
#affiliatePage .aff2-lb-mini-btn:hover { border-color:var(--aff2-g); color:var(--aff2-hi); }
#affiliatePage .aff2-lb-mini-btn.warn { border-color:rgba(225,91,91,.3); color:var(--aff2-red); }
#affiliatePage .aff2-lb-mini-btn.warn:hover { background:rgba(225,91,91,.1); }

/* Msg */
#affiliatePage .aff2-lb-msg { margin-top:10px; padding:8px 12px; border-radius:6px; font-size:12px; font-weight:800; min-height:0; }
#affiliatePage .aff2-lb-msg.ok  { background:rgba(60,207,130,.1); color:var(--aff2-green); border:1px solid rgba(60,207,130,.3); }
#affiliatePage .aff2-lb-msg.err { background:rgba(225,91,91,.1); color:var(--aff2-red);  border:1px solid rgba(225,91,91,.3); }

/* History table */
#affiliatePage .aff2-lb-table { display:flex; flex-direction:column; gap:1px; background:var(--aff2-b1); border-radius:8px; overflow:hidden; border:1px solid var(--aff2-b1); }
#affiliatePage .aff2-lb-thead { display:grid; grid-template-columns:1.6fr 1.2fr 1.2fr .8fr 1fr .8fr; background:var(--aff2-ink); padding:10px 14px; gap:10px; }
#affiliatePage .aff2-lb-thead > div { font-size:9px; font-weight:900; letter-spacing:2px; color:var(--aff2-mute); text-transform:uppercase; }
#affiliatePage .aff2-lb-trow { display:grid; grid-template-columns:1.6fr 1.2fr 1.2fr .8fr 1fr .8fr; background:var(--aff2-panel2); padding:11px 14px; gap:10px; align-items:center; }
#affiliatePage .aff2-lb-tcell { font-size:12px; font-weight:800; color:var(--aff2-hi); overflow:hidden; text-overflow:ellipsis; }
#affiliatePage .aff2-lb-tcell.muted { color:var(--aff2-mute); font-weight:700; }
#affiliatePage .aff2-lb-tcell.gold  { color:var(--aff2-g); }
#affiliatePage .aff2-lb-tcell.rank  { color:var(--aff2-g); font-weight:900; }

/* Detail panel uses same row-head + table */
#affiliatePage #aff2LbDetail .aff2-lb-thead,
#affiliatePage #aff2LbDetail .aff2-lb-trow { grid-template-columns:.6fr 2fr 1fr 1.2fr 1fr; }

/* Mobile */
@media (max-width: 760px) {
  #affiliatePage .aff2-lb-form { grid-template-columns:1fr; }
  #affiliatePage .aff2-lb-active-grid { grid-template-columns:repeat(2,1fr); }
  #affiliatePage .aff2-lb-countdown { font-size:20px; letter-spacing:2px; padding:14px; }
  #affiliatePage .aff2-lb-thead,
  #affiliatePage .aff2-lb-trow { grid-template-columns:1.4fr 1fr .8fr 1fr; }
  #affiliatePage .aff2-lb-thead > div:nth-child(3),
  #affiliatePage .aff2-lb-trow > div:nth-child(3) { display:none; }
  #affiliatePage #aff2LbDetail .aff2-lb-thead,
  #affiliatePage #aff2LbDetail .aff2-lb-trow { grid-template-columns:.5fr 1.5fr 1fr 1fr; }
  #affiliatePage #aff2LbDetail .aff2-lb-thead > div:nth-child(3),
  #affiliatePage #aff2LbDetail .aff2-lb-trow > div:nth-child(3) { display:none; }
}

/* ============================================================
   v4 — Help button + Integration Guide modal
   ============================================================ */
#affiliatePage .aff2-lb-help-btn {
  background: rgba(229,184,87,.14);
  border: 1px solid rgba(229,184,87,.4);
  color: var(--aff2-g);
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 14px; font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: all .15s;
  padding: 0;
  line-height: 1;
  font-family: inherit;
  flex-shrink: 0;
}
#affiliatePage .aff2-lb-help-btn:hover {
  background: var(--aff2-g);
  color: var(--aff2-ink);
  transform: scale(1.08);
}

/* Modal — lives in body, outside #affiliatePage */
#aff2LbHelpModal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  font-family: 'Inter', system-ui, sans-serif;
}
#aff2LbHelpModal .aff2-lb-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4,8,18,.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#aff2LbHelpModal .aff2-lb-modal {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  background: #212121;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
#aff2LbHelpModal .aff2-lb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(229,184,87,.06), transparent);
  flex-shrink: 0;
}
#aff2LbHelpModal .aff2-lb-modal-title {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
}
#aff2LbHelpModal .aff2-lb-modal-close {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #9aa3b5;
  width: 32px; height: 32px;
  border-radius: 7px;
  font-size: 14px; font-weight: 800;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
#aff2LbHelpModal .aff2-lb-modal-close:hover {
  background: rgba(225,91,91,.14);
  border-color: rgba(225,91,91,.4);
  color: #e15b5b;
}
#aff2LbHelpModal .aff2-lb-modal-body {
  overflow-y: auto;
  padding: 20px 24px 28px;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
#aff2LbHelpModal .aff2-lb-help-intro {
  padding: 12px 14px;
  margin-bottom: 18px;
  background: rgba(60,207,130,.08);
  border: 1px solid rgba(60,207,130,.25);
  border-radius: 8px;
  color: #86efac;
  font-size: 12px;
  font-weight: 700;
}
#aff2LbHelpModal .aff2-lb-help-sec {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
#aff2LbHelpModal .aff2-lb-help-sec:last-child { border-bottom: none; }
#aff2LbHelpModal .aff2-lb-help-sec-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f0a830;
  margin-bottom: 12px;
}
#aff2LbHelpModal .aff2-lb-help-kv {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  flex-wrap: wrap;
}
#aff2LbHelpModal .aff2-lb-help-kv > span:first-child {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #9aa3b5;
  text-transform: uppercase;
  min-width: 140px;
}
#aff2LbHelpModal .aff2-lb-help-kv code {
  background: #1b1b1b;
  color: #f0a830;
  padding: 6px 10px;
  border-radius: 5px;
  font-family: Menlo, Monaco, monospace;
  font-size: 12px;
  word-break: break-all;
  border: 1px solid rgba(255,255,255,.05);
  flex: 1;
  min-width: 180px;
}
#aff2LbHelpModal .aff2-lb-help-note {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(225,91,91,.06);
  border-left: 3px solid #e15b5b;
  border-radius: 5px;
  font-size: 12px;
  color: #fca5a5;
  line-height: 1.7;
}
#aff2LbHelpModal .aff2-lb-help-note code {
  background: rgba(0,0,0,.4);
  color: #fca5a5;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-family: Menlo, Monaco, monospace;
}
#aff2LbHelpModal .aff2-lb-help-code {
  background: #1b1b1b;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px;
  padding: 14px 16px;
  color: #e5e7eb;
  font-family: Menlo, Monaco, monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
  margin: 6px 0 10px;
  max-height: 360px;
  overflow-y: auto;
}
#aff2LbHelpModal .aff2-lb-help-list {
  list-style: none;
  padding: 0; margin: 0;
}
#aff2LbHelpModal .aff2-lb-help-list li {
  padding: 7px 0 7px 20px;
  position: relative;
  font-size: 12px;
  color: #e5e7eb;
}
#aff2LbHelpModal .aff2-lb-help-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #f0a830;
  font-weight: 900;
}
#aff2LbHelpModal .aff2-lb-help-list code {
  background: rgba(229,184,87,.1);
  color: #f0a830;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-family: Menlo, Monaco, monospace;
}
#aff2LbHelpModal .aff2-lb-mini-btn {
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #e5e7eb;
  transition: all .12s;
  font-family: inherit;
  margin-top: 4px;
}
#aff2LbHelpModal .aff2-lb-mini-btn:hover {
  border-color: #f0a830;
  color: #ffffff;
}

/* Mobile */
@media (max-width: 760px) {
  #aff2LbHelpModal .aff2-lb-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 32px);
  }
  #aff2LbHelpModal .aff2-lb-modal-body { padding: 16px 18px 22px; }
  #aff2LbHelpModal .aff2-lb-help-kv > span:first-child { min-width: auto; width: 100%; }
  #aff2LbHelpModal .aff2-lb-help-code { font-size: 11px; padding: 10px 12px; }
}

/* ============================================================
   v5 — Always-visible Live Rankings (inside active LB card)
   ============================================================ */
#affiliatePage .aff2-lb-live-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  margin-bottom: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--aff2-b1);
}
#affiliatePage .aff2-lb-live-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--aff2-hi);
  letter-spacing: 1px;
}
#affiliatePage .aff2-lb-live-sub {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--aff2-mute);
  text-transform: uppercase;
}

#affiliatePage .aff2-lb-live-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--aff2-b1);
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--aff2-b1);
}
#affiliatePage .aff2-lb-live-thead {
  display: grid;
  grid-template-columns: 90px 1.6fr .8fr 1fr 1fr;
  background: var(--aff2-ink);
  padding: 10px 14px;
  gap: 10px;
}
#affiliatePage .aff2-lb-live-thead > div {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--aff2-mute);
  text-transform: uppercase;
}
#affiliatePage .aff2-lb-live-trow {
  display: grid;
  grid-template-columns: 90px 1.6fr .8fr 1fr 1fr;
  background: var(--aff2-panel2);
  padding: 12px 14px;
  gap: 10px;
  align-items: center;
  transition: background .15s;
}
#affiliatePage .aff2-lb-live-trow:hover { background: rgba(229,184,87,.03); }
#affiliatePage .aff2-lb-live-trow.empty { opacity: .55; }

/* Podium highlights */
#affiliatePage .aff2-lb-live-trow:nth-child(2) {
  background: linear-gradient(90deg, rgba(229,184,87,.07), var(--aff2-panel2) 40%);
}
#affiliatePage .aff2-lb-live-trow:nth-child(3) {
  background: linear-gradient(90deg, rgba(200,200,200,.05), var(--aff2-panel2) 40%);
}
#affiliatePage .aff2-lb-live-trow:nth-child(4) {
  background: linear-gradient(90deg, rgba(205,127,50,.05), var(--aff2-panel2) 40%);
}

#affiliatePage .aff2-lb-live-rank {
  font-size: 13px;
  font-weight: 900;
  color: var(--aff2-hi);
  letter-spacing: .5px;
}
#affiliatePage .aff2-lb-live-rank.rank-1 { color: #f5b548; font-size: 14px; }
#affiliatePage .aff2-lb-live-rank.rank-2 { color: #b1bad3; font-size: 14px; }
#affiliatePage .aff2-lb-live-rank.rank-3 { color: #f5b548; font-size: 14px; }

#affiliatePage .aff2-lb-live-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--aff2-hi);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#affiliatePage .aff2-lb-live-name.empty {
  color: var(--aff2-dim);
  font-style: italic;
  font-weight: 700;
}
#affiliatePage .aff2-lb-live-muted {
  font-size: 12px;
  font-weight: 700;
  color: var(--aff2-mute);
}
#affiliatePage .aff2-lb-live-val {
  font-size: 13px;
  font-weight: 900;
  color: var(--aff2-g);
  font-variant-numeric: tabular-nums;
}
#affiliatePage .aff2-lb-live-val.empty { color: var(--aff2-dim); }
#affiliatePage .aff2-lb-live-prize {
  font-size: 12px;
  font-weight: 800;
  color: var(--aff2-hi);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#affiliatePage .aff2-lb-live-extra {
  padding: 10px 14px;
  background: rgba(229,184,87,.04);
  border-top: 1px solid var(--aff2-b1);
  font-size: 11px;
  font-weight: 700;
  color: var(--aff2-mute);
  text-align: center;
  letter-spacing: .5px;
}

/* Mobile */
@media (max-width: 760px) {
  #affiliatePage .aff2-lb-live-thead,
  #affiliatePage .aff2-lb-live-trow {
    grid-template-columns: 70px 1.4fr 1fr 1fr;
  }
  /* Hide the Wagers column on mobile */
  #affiliatePage .aff2-lb-live-thead > div:nth-child(3),
  #affiliatePage .aff2-lb-live-trow > div:nth-child(3) { display: none; }
}

/* ═══ AFFILIATE PAGE — MOBILE OPTIMIZATION LAYER v1 ═══ */
@media (max-width: 768px) {
  #affiliatePage, #affiliatePage * { box-sizing: border-box; }
  #affiliatePage {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  #affiliatePage .aff2-hero,
  #affiliatePage .aff2-section,
  #affiliatePage .aff2-card,
  #affiliatePage .aff2-panel {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #affiliatePage .aff2-stats,
  #affiliatePage .aff2-stats-grid,
  #affiliatePage .aff2-kpis {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  #affiliatePage .aff2-tiers-grid,
  #affiliatePage .aff2-tiers {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  #affiliatePage input,
  #affiliatePage button,
  #affiliatePage select {
    max-width: 100% !important;
    box-sizing: border-box;
    font-size: 14px !important;
  }
  #affiliatePage .aff2-code-row,
  #affiliatePage .aff2-link-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  #affiliatePage table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100vw;
    font-size: 12px !important;
  }
  #affiliatePage h1 { font-size: 22px !important; }
  #affiliatePage h2 { font-size: 17px !important; }
  #affiliatePage h3 { font-size: 14px !important; }
}
@media (max-width: 480px) {
  #affiliatePage .aff2-stats,
  #affiliatePage .aff2-kpis {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  #affiliatePage { padding-left: 8px !important; padding-right: 8px !important; }
}
/* ═══ END AFFILIATE PAGE MOBILE v1 ═══ */

/* ═══════════════════════════════════════════════════════════════
   AFFILIATE TIERS TAB — v1
   CSBattle-style tier carousel + current tier banner
   ═══════════════════════════════════════════════════════════════ */

#affiliatePage .aff2-tiers-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Header ──────────────────────────────────────────── */
#affiliatePage .aff2-tiers-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 2px 0;
}
#affiliatePage .aff2-tiers-eye {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(240,168,48,0.16) 0%, rgba(240,168,48,0.06) 100%);
  border: 1px solid rgba(240,168,48,0.28);
  color: #f5b548;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(240,168,48,0.08), inset 0 1px 0 rgba(255,255,255,0.04);
}
#affiliatePage .aff2-tiers-titles { display: flex; flex-direction: column; gap: 2px; }
#affiliatePage .aff2-tiers-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--aff2-mute);
  text-transform: uppercase;
}
#affiliatePage .aff2-tiers-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--aff2-hi);
  letter-spacing: -0.2px;
  line-height: 1.1;
}

/* ── Current tier banner ───────────────────────────────── */
#affiliatePage .aff2-tiers-current {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(240,168,48,0.10) 0%, transparent 60%),
    linear-gradient(180deg, #242429 0%, #1c1c20 100%);
  border: 1px solid rgba(240,168,48,0.18);
  border-radius: 14px;
  padding: 22px 24px 20px;
  overflow: hidden;
}
#affiliatePage .aff2-tiers-current::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(240,168,48,0.5) 50%, transparent 100%);
}
#affiliatePage .aff2-tc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
#affiliatePage .aff2-tc-left { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
#affiliatePage .aff2-tc-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--aff2-mute);
  text-transform: uppercase;
}
#affiliatePage .aff2-tc-name { display: flex; align-items: center; gap: 12px; }
#affiliatePage .aff2-tc-icon {
  font-size: 26px;
  color: #f5b548;
  filter: drop-shadow(0 0 8px rgba(245,181,72,0.45));
  line-height: 1;
}
#affiliatePage .aff2-tc-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--aff2-hi);
  letter-spacing: -0.4px;
}
#affiliatePage .aff2-tc-num span { color: #f5b548; margin-left: 4px; }

#affiliatePage .aff2-tc-right { display: flex; gap: 28px; align-items: flex-start; }
#affiliatePage .aff2-tc-stat { display: flex; flex-direction: column; gap: 4px; }
#affiliatePage .aff2-tc-stat-l {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--aff2-mute);
  text-transform: uppercase;
}
#affiliatePage .aff2-tc-stat-v {
  font-size: 22px;
  font-weight: 900;
  color: #f5b548;
  letter-spacing: -0.3px;
  line-height: 1;
}

/* progress */
#affiliatePage .aff2-tc-progress-wrap { margin-top: 4px; }
#affiliatePage .aff2-tc-progress-bar {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: #0d0d0f;
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
#affiliatePage .aff2-tc-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #d68e25 0%, #f5b548 50%, #ffd06b 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(245,181,72,0.35);
  transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
#affiliatePage .aff2-tc-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--aff2-mute);
  letter-spacing: 0.5px;
}
#affiliatePage .aff2-tc-progress-meta #aff2TcProgressPct {
  color: #f5b548;
  font-weight: 900;
}
#affiliatePage .aff2-tc-desc {
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--aff2-tx);
  line-height: 1.55;
  max-width: 580px;
}

/* ── Summary cards ─────────────────────────────────────── */
#affiliatePage .aff2-tc-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
#affiliatePage .aff2-tc-sum-card {
  background: linear-gradient(180deg, #242429 0%, #1e1e22 100%);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
#affiliatePage .aff2-tc-sum-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
#affiliatePage .aff2-tc-sum-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--aff2-mute);
  text-transform: uppercase;
}
#affiliatePage .aff2-tc-sum-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--aff2-hi);
  letter-spacing: -0.3px;
}
#affiliatePage .aff2-tc-sum-val.gold { color: #f5b548; }

/* ── Carousel ─────────────────────────────────────────── */
#affiliatePage .aff2-tier-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 8px;
}
#affiliatePage .aff2-tier-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--aff2-tx);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s, transform 0.15s;
  z-index: 4;
}
#affiliatePage .aff2-tier-arrow:hover:not(:disabled) {
  background: rgba(240,168,48,0.14);
  border-color: rgba(240,168,48,0.4);
  color: #f5b548;
  transform: scale(1.04);
}
#affiliatePage .aff2-tier-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

#affiliatePage .aff2-tier-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: 6px 0;
  min-width: 0;
}
#affiliatePage .aff2-tier-track {
  display: flex;
  gap: 14px;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
#affiliatePage .aff2-tier-fade-l,
#affiliatePage .aff2-tier-fade-r {
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
}
#affiliatePage .aff2-tier-fade-l {
  left: 0;
  background: linear-gradient(90deg, var(--aff2-bg) 0%, rgba(33,33,33,0) 100%);
}
#affiliatePage .aff2-tier-fade-r {
  right: 0;
  background: linear-gradient(270deg, var(--aff2-bg) 0%, rgba(33,33,33,0) 100%);
}

/* ── Tier Card ────────────────────────────────────────── */
#affiliatePage .aff2-tier-card {
  position: relative;
  flex: 0 0 calc((100% - 28px) / 3); /* 3 cards visible w/ gap=14 */
  min-width: 230px;
  background: linear-gradient(180deg, #2a2a2f 0%, #1d1d21 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 13px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
#affiliatePage .aff2-tier-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  opacity: 0.6;
}

/* status: locked (default look) */
#affiliatePage .aff2-tier-card.status-locked {
  opacity: 0.62;
  filter: grayscale(0.35);
}
#affiliatePage .aff2-tier-card.status-locked .aff2-tier-card-label,
#affiliatePage .aff2-tier-card.status-locked .aff2-tier-comm-val {
  color: var(--aff2-mute);
}

/* status: completed (dim orange) */
#affiliatePage .aff2-tier-card.status-completed {
  background:
    radial-gradient(ellipse at top, rgba(168,112,24,0.18) 0%, transparent 70%),
    linear-gradient(180deg, #2c2620 0%, #1f1b18 100%);
  border-color: rgba(168,112,24,0.3);
}
#affiliatePage .aff2-tier-card.status-completed::before {
  background: linear-gradient(90deg, transparent, rgba(168,112,24,0.6), transparent);
  opacity: 1;
}

/* status: current (bright orange + glow) */
#affiliatePage .aff2-tier-card.status-current {
  background:
    radial-gradient(ellipse at top, rgba(245,181,72,0.22) 0%, transparent 70%),
    linear-gradient(180deg, #322820 0%, #221c17 100%);
  border-color: rgba(245,181,72,0.55);
  box-shadow: 0 8px 28px rgba(245,181,72,0.18), inset 0 1px 0 rgba(255,200,100,0.08);
  transform: translateY(-2px);
}
#affiliatePage .aff2-tier-card.status-current::before {
  background: linear-gradient(90deg, transparent, rgba(245,181,72,0.95), transparent);
  opacity: 1;
}

/* status pill (top right corner) */
#affiliatePage .aff2-tier-status-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  z-index: 2;
}
#affiliatePage [dir="rtl"] .aff2-tier-status-pill,
[dir="rtl"] #affiliatePage .aff2-tier-status-pill {
  right: auto; left: 10px;
}
#affiliatePage .aff2-tier-status-pill.locked {
  background: rgba(255,255,255,0.04);
  color: var(--aff2-mute);
  border: 1px solid rgba(255,255,255,0.06);
}
#affiliatePage .aff2-tier-status-pill.completed {
  background: rgba(168,112,24,0.18);
  color: #d4a050;
  border: 1px solid rgba(168,112,24,0.4);
}
#affiliatePage .aff2-tier-status-pill.current {
  background: rgba(245,181,72,0.18);
  color: #ffd06b;
  border: 1px solid rgba(245,181,72,0.55);
  box-shadow: 0 0 10px rgba(245,181,72,0.35);
}

#affiliatePage .aff2-tier-card-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: var(--aff2-mute);
  text-transform: uppercase;
  margin-top: 6px;
}
#affiliatePage .aff2-tier-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 4px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}
#affiliatePage .aff2-tier-card.status-current .aff2-tier-card-icon svg {
  filter: drop-shadow(0 0 12px rgba(245,181,72,0.55));
}

#affiliatePage .aff2-tier-card-commission {
  text-align: center;
  margin: 2px 0 6px;
}
#affiliatePage .aff2-tier-comm-val {
  font-size: 28px;
  font-weight: 900;
  color: #f5b548;
  letter-spacing: -0.5px;
  line-height: 1;
}
#affiliatePage .aff2-tier-card.status-locked .aff2-tier-comm-val { color: #6f6f78; }
#affiliatePage .aff2-tier-card.status-completed .aff2-tier-comm-val { color: #c98828; }
#affiliatePage .aff2-tier-comm-lbl {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--aff2-mute);
  text-transform: uppercase;
  margin-top: 4px;
}

#affiliatePage .aff2-tier-card-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  margin: 4px 0;
}

#affiliatePage .aff2-tier-reqs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  margin-top: 4px;
}
#affiliatePage .aff2-tier-req {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
}
#affiliatePage .aff2-tier-req-l {
  color: var(--aff2-mute);
  font-weight: 700;
  letter-spacing: 0.2px;
}
#affiliatePage .aff2-tier-req-v {
  color: var(--aff2-hi);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#affiliatePage .aff2-tier-req-v.gold { color: #f5b548; }
#affiliatePage .aff2-tier-card.status-locked .aff2-tier-req-v { color: var(--aff2-mute); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  #affiliatePage .aff2-tier-card { flex-basis: calc((100% - 14px) / 2); }
  #affiliatePage .aff2-tc-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  #affiliatePage .aff2-tiers-current { padding: 18px 16px 16px; }
  #affiliatePage .aff2-tc-row { gap: 14px; }
  #affiliatePage .aff2-tc-right { gap: 18px; width: 100%; }
  #affiliatePage .aff2-tc-stat-v { font-size: 18px; }
  #affiliatePage .aff2-tc-num { font-size: 22px; }
  #affiliatePage .aff2-tc-icon { font-size: 22px; }
  #affiliatePage .aff2-tier-card {
    flex-basis: 78%;
    min-width: 200px;
    padding: 14px 14px 12px;
  }
  #affiliatePage .aff2-tier-comm-val { font-size: 24px; }
  #affiliatePage .aff2-tier-fade-l,
  #affiliatePage .aff2-tier-fade-r { width: 24px; }
  #affiliatePage .aff2-tier-arrow { width: 32px; height: 32px; }
  #affiliatePage .aff2-tiers-title { font-size: 18px; }
}
@media (max-width: 420px) {
  #affiliatePage .aff2-tc-summary { gap: 6px; }
  #affiliatePage .aff2-tc-sum-card { padding: 10px 12px; }
  #affiliatePage .aff2-tc-sum-val { font-size: 16px; }
  #affiliatePage .aff2-tier-card { flex-basis: 86%; min-width: 180px; }
}
/* ═══ END AFFILIATE TIERS v1 ═══ */
