/* ══════════════════════════════════════════
   AFFILIATION / PARRAINAGE PAGE — EXTRAS
   ══════════════════════════════════════════ */

:root {
  --aff-green: #22c55e;
  --aff-green-dim: rgba(34,197,94,0.12);
  --aff-green-glow: rgba(34,197,94,0.25);
  --aff-gold: #f59e0b;
  --aff-gold-dim: rgba(245,158,11,0.10);
}

/* ── HERO ── */
.aff-hero {
  min-height: 88vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 72px 24px 48px; position: relative; overflow: hidden;
  text-align: center;
}
.hero-glow-aff {
  position: absolute; top: -15%; left: 50%; transform: translateX(-50%);
  width: min(1000px, 150vw); height: min(800px, 120vw);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(34,197,94,0.08) 0%,
    rgba(111,66,193,0.12) 35%,
    transparent 65%);
  pointer-events: none;
}

/* ── HERO TITLE FIX ── */
.aff-hero-title {
  position: relative;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-align: center;
  max-width: 760px;
  animation: fadeUp 0.6s ease both 0.2s;
}

.aff-gradient-text {
  background: linear-gradient(135deg, #22c55e, #a78bfa, #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: inline;
}

/* ── STATS BAR ── */
.aff-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.aff-stat {
  padding: 36px 20px; text-align: center;
  border-right: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.aff-stat:last-child { border-right: none; }
.aff-stat::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--aff-green), transparent);
  opacity: 0.6;
}
.aff-stat-icon {
  width: 40px; height: 40px; border-radius: 10px; margin: 0 auto 12px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--aff-green);
}
.aff-stat-val {
  font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800;
  letter-spacing: -0.015em; line-height: 1;
  background: linear-gradient(135deg, var(--white), var(--w50));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.aff-stat-label { font-size: 11.5px; color: var(--w40); margin-top: 6px; }

/* ══════════════════════════════════════════
   TIERS / PALIERS
   ══════════════════════════════════════════ */
.aff-tiers-section {
  max-width: 1200px; margin: 0 auto; padding: 80px 24px;
}
.aff-tiers-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.aff-tier-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 16px; text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.aff-tier-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.aff-tier-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,0.06);
  transition: background 0.25s;
}
.aff-tier-active { border-color: rgba(205,127,50,0.4); }
.aff-tier-active::before {
  background: linear-gradient(90deg, transparent, #cd7f32, transparent);
}
.aff-tier-diamond { border-color: rgba(34,211,238,0.3); }
.aff-tier-diamond::before {
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
}
.aff-tier-diamond:hover { border-color: rgba(34,211,238,0.5); box-shadow: 0 16px 48px rgba(34,211,238,0.1); }

.aff-tier-badge {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 20px; color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.aff-tier-name {
  font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800;
  margin-bottom: 8px; color: var(--white);
}
.aff-tier-rate {
  font-family: 'Syne', sans-serif; font-size: 2.4rem; font-weight: 800;
  line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--white), var(--w50));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.aff-tier-rate span {
  font-size: 1.4rem;
}
.aff-tier-range {
  font-size: 12px; color: var(--w40); margin-top: 8px;
}
.aff-tier-tag {
  display: inline-block; margin-top: 14px;
  font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
}
.aff-tier-tag-current {
  background: rgba(205,127,50,0.12); border: 1px solid rgba(205,127,50,0.3);
  color: #e8a862;
}
.aff-tier-tag-top {
  background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.25);
  color: #67e8f9;
}

/* ── HOW IT WORKS ── */
.aff-steps {
  max-width: 1100px; margin: 0 auto; padding: 80px 24px;
}
.aff-steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 48px; position: relative;
}
.aff-steps-grid::before {
  content: '';
  position: absolute; top: 32px; left: calc(12.5% + 24px); right: calc(12.5% + 24px);
  height: 1px; background: linear-gradient(90deg, transparent, var(--border2), var(--aff-green-dim), var(--border2), transparent);
  pointer-events: none;
}
.aff-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 20px; text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.aff-step:hover { border-color: rgba(34,197,94,0.3); transform: translateY(-4px); }
.aff-step-num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 16px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; color: var(--aff-green);
}
.aff-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.aff-step p { font-size: 12.5px; color: var(--w40); line-height: 1.65; margin: 0; }

/* ── MAIN FEATURES ── */
.aff-features {
  max-width: 1100px; margin: 0 auto; padding: 0 24px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.aff-features-list { display: flex; flex-direction: column; gap: 16px; }
.aff-feat-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: 13px;
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color 0.2s;
}
.aff-feat-item:hover { border-color: rgba(34,197,94,0.25); }
.aff-feat-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--aff-green);
}
.aff-feat-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.aff-feat-desc { font-size: 12.5px; color: var(--w40); line-height: 1.6; }

/* Panel mockup */
.aff-panel-wrap {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
}
.aff-panel-bar {
  background: #141414; padding: 10px 14px;
  display: flex; align-items: center; gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.aff-dot { width: 9px; height: 9px; border-radius: 50%; }
.aff-panel-content { padding: 24px; }
.aff-panel-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}
.aff-panel-row:last-child { margin-bottom: 0; }
.aff-panel-label { font-size: 12px; color: var(--w40); }
.aff-panel-val { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: var(--aff-green); }
.aff-panel-val.muted { color: var(--w60, rgba(255,255,255,0.6)); }

/* ── COMMISSION CARD ── */
.aff-commission {
  max-width: 1100px; margin: 0 auto; padding: 0 24px 80px;
}
.aff-commission-card {
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(111,66,193,0.06));
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 20px; padding: 48px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.aff-commission-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--aff-green), var(--purple), var(--aff-gold));
}
.aff-commission-big {
  font-family: 'Syne', sans-serif; font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800; letter-spacing: -0.01em; line-height: 1;
  background: linear-gradient(135deg, var(--aff-green), var(--aff-gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.aff-commission-sub { font-size: 13px; color: var(--w40); margin-top: 8px; line-height: 1.65; }
.aff-commission-points { display: flex; flex-direction: column; gap: 12px; }
.aff-point {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--w60, rgba(255,255,255,0.6));
}
.aff-point i { color: var(--aff-green); font-size: 13px; margin-top: 2px; flex-shrink: 0; }
.aff-point strong { color: var(--white); }

/* ── CTA ── */
.aff-cta {
  max-width: 640px; margin: 0 auto; padding: 0 24px 80px; text-align: center;
}
.aff-cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.aff-cta p { color: var(--w40); font-size: 15px; margin-bottom: 32px; line-height: 1.7; }
.aff-cta-pills {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px;
}
.aff-cta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.18);
  color: var(--aff-green); font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
}
.aff-cta-pill i { font-size: 10px; }
.btn-green {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, #16a34a, var(--aff-green));
  color: #052e16; padding: 14px 32px; border-radius: 12px;
  text-decoration: none; letter-spacing: -0.01em;
  box-shadow: 0 4px 32px rgba(34,197,94,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 6px 44px rgba(34,197,94,0.5); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .aff-tiers-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .aff-stats { grid-template-columns: 1fr 1fr; }
  .aff-stat:nth-child(2) { border-right: none; }
  .aff-stat:nth-child(1), .aff-stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .aff-steps-grid { grid-template-columns: 1fr 1fr; }
  .aff-steps-grid::before { display: none; }
  .aff-features { grid-template-columns: 1fr; }
  .aff-commission-card { grid-template-columns: 1fr; gap: 32px; }
  .aff-tiers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .aff-steps-grid { grid-template-columns: 1fr; }
  .aff-stats { grid-template-columns: 1fr 1fr; }
  .aff-commission-card { padding: 32px 24px; }
  .aff-tiers-grid { grid-template-columns: 1fr; }
}


/* ── AFFILIATION LIGHT THEME ── */
[data-theme="light"] { --aff-green: #16a34a; --aff-green-dim: rgba(22,163,74,0.06); --aff-green-glow: rgba(22,163,74,0.12); --aff-gold: #d97706; --aff-gold-dim: rgba(217,119,6,0.06); }
[data-theme="light"] .hero-glow-aff { background: radial-gradient(circle, rgba(22,163,74,0.04) 0%, rgba(124,58,237,0.04) 35%, transparent 65%); }
[data-theme="light"] .aff-hero-title { color: #111827; }
[data-theme="light"] .aff-stats { background: #fff; border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .aff-stat { border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .aff-stat::before { opacity: 0.4; }
[data-theme="light"] .aff-stat-val { background: linear-gradient(135deg, #111827, rgba(17,24,39,0.55)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="light"] .aff-stat-label { color: rgba(17,24,39,0.4); }

/* ══════════════════════════════════════════
   AFFILIATION — LIGHT THEME FIXES
   ══════════════════════════════════════════ */
[data-theme="light"] .aff-hero-title { color: #111827; }
[data-theme="light"] .aff-tier-card { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .aff-tier-card:hover { border-color: rgba(0,0,0,0.15); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }
[data-theme="light"] .aff-tier-card::before { background: rgba(0,0,0,0.04); }
[data-theme="light"] .aff-tier-name { color: #111827; }
[data-theme="light"] .aff-tier-rate {
  background: linear-gradient(135deg, #111827, rgba(17,24,39,0.55));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="light"] .aff-tier-range { color: rgba(17,24,39,0.4); }

[data-theme="light"] .aff-step { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .aff-step:hover { border-color: rgba(22,163,74,0.2); }
[data-theme="light"] .aff-step h3 { color: #111827; }
[data-theme="light"] .aff-step p { color: rgba(17,24,39,0.45); }

[data-theme="light"] .aff-feat-item { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .aff-feat-item:hover { border-color: rgba(22,163,74,0.2); }
[data-theme="light"] .aff-feat-title { color: #111827; }
[data-theme="light"] .aff-feat-desc { color: rgba(17,24,39,0.45); }

[data-theme="light"] .aff-panel-wrap { background: #fff; border-color: rgba(0,0,0,0.08); box-shadow: 0 32px 80px rgba(0,0,0,0.08); }
[data-theme="light"] .aff-panel-bar { background: #f5f5f5; border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .aff-panel-row { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .aff-panel-label { color: rgba(17,24,39,0.45); }
[data-theme="light"] .aff-panel-val.muted { color: rgba(17,24,39,0.55); }

[data-theme="light"] .aff-commission-card {
  background: linear-gradient(135deg, rgba(22,163,74,0.04), rgba(124,58,237,0.03));
  border-color: rgba(22,163,74,0.15);
}
[data-theme="light"] .aff-commission-sub { color: rgba(17,24,39,0.45); }
[data-theme="light"] .aff-point { color: rgba(17,24,39,0.55); }
[data-theme="light"] .aff-point strong { color: #111827; }
[data-theme="light"] .aff-point-icon { background: rgba(22,163,74,0.06); border-color: rgba(22,163,74,0.15); }

[data-theme="light"] .aff-steps h2,
[data-theme="light"] .aff-features h2,
[data-theme="light"] .aff-tiers-section h2,
[data-theme="light"] .aff-commission h2 { color: #111827; }
[data-theme="light"] .aff-steps p.s-desc,
[data-theme="light"] .aff-tiers-section p { color: rgba(17,24,39,0.45); }

[data-theme="light"] .s-tag { color: rgba(17,24,39,0.5); }

/* ── MOBILE FONT FIX ── */
@media (max-width: 600px) {
  .aff-hero-title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    letter-spacing: 0;
    line-height: 1.15;
  }
  .aff-hero p,
  .aff-hero .aff-hero-title + p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    letter-spacing: 0.01em;
  }
  .aff-stat-val {
    font-size: 1.6rem;
    letter-spacing: 0;
  }
  .aff-commission-big {
    font-size: clamp(2.4rem, 10vw, 4rem);
    letter-spacing: 0;
  }
}
