/* ============================================================
   TopXFunded — Affiliate page styles
   ============================================================ */

/* ===== Hero — slim text variant (no planet) ===== */

.aff-hero-slim {
  min-height: 78vh;
  justify-content: center;
}

.aff-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  padding: 0 24px clamp(40px, 6vh, 64px);
  z-index: 2;
}

.aff-intro-title {
  font-family: var(--display);
  font-size: clamp(40px, 6.5vw, 90px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.08;
  color: var(--ink);
  margin-top: 14px;
  margin-bottom: 24px;
}

.aff-intro-accent {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aff-intro-sub {
  font-family: var(--display);
  font-size: clamp(11px, 1.2vw, 15px);
  font-weight: 400;
  letter-spacing: .18em;
  line-height: 2;
  text-transform: uppercase;
  color: var(--ink-dim);
  max-width: 560px;
  margin-bottom: 36px;
}

/* Commission tier pills */
.aff-tier-pills {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 8px;
}

.aff-tier-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  border-radius: 999px;
  background: rgba(96, 165, 250, .08);
  border: 1px solid rgba(96, 165, 250, .28);
  transition: border-color .25s, box-shadow .25s;
}

.aff-tier-pill:hover {
  border-color: rgba(96, 165, 250, .55);
  box-shadow: 0 0 24px rgba(96, 165, 250, .18);
}

.aff-tier-pill--elite {
  background: rgba(192, 132, 252, .08);
  border-color: rgba(192, 132, 252, .28);
}

.aff-tier-pill--elite:hover {
  border-color: rgba(192, 132, 252, .55);
  box-shadow: 0 0 24px rgba(192, 132, 252, .18);
}

.atp-pct {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1;
  color: var(--accent-soft);
}

.atp-pct small {
  font-size: 17px;
  font-weight: 700;
  margin-left: 1px;
}

.aff-tier-pill--elite .atp-pct { color: var(--purple); }

.atp-lbl {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.atp-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--ink-faint);
  pointer-events: none;
}

.atp-connector svg { width: 18px; height: 18px; }

.atp-connector span {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.aff-hero-slim .hero-ctas {
  margin-top: clamp(26px, 5vh, 48px);
}

.aff-hero-slim .scroll { margin-top: clamp(24px, 4vh, 40px); }

/* ===== About the Program ===== */

.aff-about {
  padding: clamp(48px, 8vh, 76px) 24px;
  background: rgba(10, 16, 40, .85);
  border-top: 1px solid rgba(59, 130, 246, .14);
  border-bottom: 1px solid rgba(59, 130, 246, .14);
  backdrop-filter: blur(12px);
}

.about-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about-inner p {
  font-family: var(--body);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.9;
  color: var(--ink-dim);
  margin-bottom: 32px;
}

.about-inner p:last-child { margin-bottom: 0; }

.about-highlights {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 48px);
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(96, 165, 250, .1);
}

.about-highlights li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.about-highlights li svg {
  width: 14px;
  height: 14px;
  color: #34d399;
  flex-shrink: 0;
}

/* ===== Commission Tiers ===== */

.aff-commission {
  padding: clamp(64px, 10vh, 100px) 24px;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
  position: relative;
  overflow: hidden;
}

.aff-commission::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(192, 132, 252, .1), transparent 70%);
  pointer-events: none;
}

.comm-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 0 auto;
}

.comm-card {
  --accent: #60a5fa;
  --accent-2: #3b82f6;
  --glow: 96, 165, 250;
  position: relative;
  flex: 1 1 300px;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(13, 22, 54, .85), rgba(8, 13, 35, .88));
  border: 1px solid rgba(var(--glow), .2);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.comm-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--glow), .55);
  box-shadow: 0 20px 56px rgba(6, 10, 30, .7), 0 0 0 1px rgba(var(--glow), .3);
}

.cc-blue   { --accent: #60a5fa; --accent-2: #3b82f6; --glow: 96, 165, 250; }
.cc-purple { --accent: #c084fc; --accent-2: #a855f7; --glow: 192, 132, 252; }

.comm-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(var(--glow), .6);
}

.comm-featured {
  border-color: rgba(var(--glow), .45);
  box-shadow: 0 0 0 1px rgba(var(--glow), .3), 0 24px 64px rgba(8, 12, 40, .7);
  background: linear-gradient(180deg, rgba(30, 18, 60, .7), rgba(12, 8, 38, .92));
}

.comm-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(var(--glow), .65);
}

.comm-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 24px 14px;
  gap: 6px;
}

.comm-tier-tag {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.comm-pct-wrap {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}

.comm-pct {
  font-family: var(--display);
  font-size: clamp(54px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 48px rgba(var(--glow), .5);
}

.comm-pct-sym {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--accent);
  margin-top: 14px;
  opacity: .7;
}

.comm-pct-lbl {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.comm-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 20px 28px 28px;
  gap: 13px;
  flex: 1;
}

.comm-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-dim);
}

.comm-features li svg {
  width: 14px;
  height: 14px;
  color: #34d399;
  flex-shrink: 0;
}

.comm-example {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 28px 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(var(--glow), .08);
  border: 1px solid rgba(var(--glow), .2);
  gap: 8px;
  flex-wrap: wrap;
}

.comm-ex-lbl {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.comm-ex-val {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(var(--glow), .4);
}

.comm-btn {
  margin: 22px 28px 28px;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(var(--glow), .5);
  box-shadow: 0 0 22px rgba(var(--glow), .35);
}

.comm-btn:hover { box-shadow: 0 0 36px rgba(var(--glow), .65); }

/* ===== How It Works — clean numbered steps ===== */

.aff-steps {
  padding: clamp(64px, 10vh, 100px) 24px;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

.aff-step-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: clamp(48px, 7vh, 72px);
}

.aff-step-item {
  flex: 1;
  padding: 0 clamp(20px, 3.5vw, 48px);
}

.aff-step-item:first-child { padding-left: 0; }
.aff-step-item:last-child  { padding-right: 0; }

.aff-step-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(96, 165, 250, .35);
  margin-bottom: 20px;
  transition: -webkit-text-stroke .3s;
}

.aff-step-item:hover .aff-step-num {
  -webkit-text-stroke: 1.5px rgba(96, 165, 250, .75);
}

.aff-step-title {
  font-family: var(--display);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.aff-step-desc {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-dim);
}

/* vertical divider between step items */
.aff-step-divider {
  width: 1px;
  height: 100px;
  background: linear-gradient(180deg,
    transparent,
    rgba(96, 165, 250, .28) 40%,
    rgba(96, 165, 250, .28) 60%,
    transparent);
  flex-shrink: 0;
  align-self: center;
  margin-top: -10px;
}

@media (max-width: 760px) {
  .aff-step-row { flex-direction: column; gap: 0; }
  .aff-step-item { padding: 28px 0; }
  .aff-step-item:first-child { padding-left: 0; }
  .aff-step-item:last-child  { padding-right: 0; }
  .aff-step-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .28), transparent);
    align-self: auto;
    margin-top: 0;
  }
}

/* ===== Benefits — 2 × 2 grid ===== */

.aff-benefits {
  padding: clamp(64px, 10vh, 100px) 24px;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: clamp(40px, 6vh, 60px);
  background: rgba(96, 165, 250, .07);
  border: 1px solid rgba(96, 165, 250, .1);
  border-radius: 22px;
  overflow: hidden;
}

.benefit-card {
  padding: clamp(28px, 3.5vw, 48px);
  background: rgba(8, 12, 32, .72);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: background .25s;
}

.benefit-card:hover { background: rgba(13, 20, 52, .9); }

/* thin dividers between cells */
.benefit-card:nth-child(1),
.benefit-card:nth-child(3) {
  border-right: 1px solid rgba(96, 165, 250, .07);
}

.benefit-card:nth-child(1),
.benefit-card:nth-child(2) {
  border-bottom: 1px solid rgba(96, 165, 250, .07);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(59, 130, 246, .1);
  border: 1px solid rgba(96, 165, 250, .2);
  color: var(--accent-soft);
}

.benefit-icon svg { width: 24px; height: 24px; }

.benefit-body { display: flex; flex-direction: column; gap: 10px; }

.benefit-body h3 {
  font-family: var(--display);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

.benefit-body p {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.78;
  color: var(--ink-dim);
}

@media (max-width: 640px) {
  .benefits-grid { grid-template-columns: 1fr; gap: 1px; }
  .benefit-card { gap: 16px; }
  .benefit-card:nth-child(1),
  .benefit-card:nth-child(3)  { border-right: none; }
  .benefit-card:nth-child(1),
  .benefit-card:nth-child(2),
  .benefit-card:nth-child(3)  { border-bottom: 1px solid rgba(96, 165, 250, .07); }
}

/* ===== Terms & Conditions ===== */

.aff-terms {
  padding: clamp(64px, 10vh, 100px) 24px;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

.terms-box {
  background: linear-gradient(180deg, rgba(13, 20, 48, .58), rgba(8, 12, 32, .58));
  border: 1px solid rgba(59, 130, 246, .14);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 60px);
}

.terms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  counter-reset: terms;
}

.terms-list li {
  counter-increment: terms;
  position: relative;
  padding: 15px 0 15px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-dim);
}

.terms-list li:last-child { border-bottom: none; }

.terms-list li::before {
  content: counter(terms, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-soft);
  opacity: .55;
  line-height: 1.75;
}

/* ===== Final CTA accent override ===== */

.aff-final-cta .cta-title-accent {
  background: linear-gradient(135deg, #c084fc, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Responsive ===== */

@media (max-width: 860px) {
  .comm-grid { flex-direction: column; align-items: center; }
  .comm-card { max-width: 520px; flex: 0 0 auto; width: 100%; }
}

@media (max-width: 480px) {
  /* Reduce horizontal padding across all sections */
  .aff-intro { padding-left: 12px; padding-right: 12px; }
  .aff-about,
  .aff-commission,
  .aff-steps,
  .aff-benefits,
  .aff-terms { padding-left: 12px; padding-right: 12px; }

  .terms-box { padding: 24px 16px; }
  .terms-list li { padding-left: 36px; }
  .aff-tier-pills { flex-direction: column; }
  .atp-connector { display: none; }

  /* Commission cards — compact mobile layout */
  .comm-card { width: 100%; max-width: 100%; border-radius: 18px; }
  .comm-head { padding: 24px 20px 14px; gap: 6px; }
  .comm-pct { font-size: 56px; }
  .comm-pct-sym { font-size: 26px; margin-top: 10px; }
  .comm-features { padding: 14px 20px 22px; gap: 11px; }
  .comm-features li { font-size: 13px; }
  .comm-example { margin: 16px 20px 0; }
  .comm-btn { margin: 16px 20px 22px; }
}
