.aff-hero {
  padding: calc(var(--header-h) + 48px) 0 72px;
  background: var(--gray-light);
}
.aff-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.aff-hook {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}
.aff-hook-num {
  display: flex;
  align-items: flex-start;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.05em;
}
.aff-hook-10 { font-size: clamp(4.4rem, 10vw, 6.8rem); color: var(--blue); }
.aff-hook-pct {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-top: 0.18em;
  letter-spacing: -0.04em;
  color: var(--blue);
}
.aff-hook-copy { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.aff-hook-copy h1 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  color: var(--dark);
}
.aff-hook-copy h2 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: var(--dark);
}
.aff-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.aff-hero > .container p,
.aff-hero-copy p { color: #374151; font-size: 1.08rem; max-width: 34rem; }
.aff-hero-copy p strong { color: var(--blue); font-weight: 800; }
.aff-hero-copy .aff-hook-num { color: var(--blue); max-width: none; }
.aff-hero-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.aff-hero-photo img { width: 100%; height: 440px; object-fit: cover; object-position: 50% 40%; }
.aff-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.aff-pill {
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  box-shadow: var(--shadow);
}
.aff-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.aff-split { padding: 88px 0; }
.aff-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.aff-split-grid.reverse { direction: rtl; }
.aff-split-grid.reverse > * { direction: ltr; }
.aff-split-copy .section-label { color: var(--blue); }
.aff-split-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; margin: 0 0 16px; }
.aff-split-copy p { color: #374151; margin-bottom: 14px; font-size: 1.05rem; }
.aff-split-copy ul {
  list-style: none;
  margin: 20px 0 8px;
}
.aff-split-copy ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.aff-split-copy ul i {
  color: var(--blue);
  margin-top: 4px;
  width: 1.1em;
}
.aff-split-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.aff-split-photo img { width: 100%; height: 420px; object-fit: cover; }

.aff-bg-white { background: var(--white); }
.aff-bg-gray { background: var(--gray-light); }
.aff-bg-blue {
  background: var(--blue);
  color: var(--white);
}
.aff-bg-blue .section-label { color: rgba(255,255,255,.75); }
.aff-bg-blue h2,
.aff-bg-blue p,
.aff-bg-blue li { color: var(--white); }
.aff-bg-blue ul i { color: #fff; }
.aff-bg-blue .btn-primary {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}
.aff-bg-blue .btn-primary:hover {
  background: var(--gray-light);
  border-color: var(--gray-light);
  color: var(--blue);
}
.aff-bg-blue .btn-outline { color: #fff; border-color: #fff; }
.aff-bg-blue .btn-outline:hover { background: #fff; color: var(--blue); }
.aff-bg-dark {
  background: var(--dark);
  color: var(--white);
}
.aff-bg-dark .section-label { color: var(--blue); }
.aff-bg-dark .section-title { color: #fff; }
.aff-bg-dark .section-subtitle { color: rgba(255,255,255,.75); }

.aff-rules { padding: 88px 0 96px; }
.aff-rules-head { max-width: 640px; margin-bottom: 40px; }
.aff-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.aff-rule {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px 24px;
}
.aff-rule-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.aff-rule h3 { font-size: 1.15rem; margin-bottom: 8px; color: #fff; }
.aff-rule p { color: rgba(255, 255, 255, 0.78); font-size: .98rem; }
.aff-rule a { color: #9bb8ff; font-weight: 600; text-decoration: underline; }
.aff-rule a:hover { color: #fff; }

.aff-sim-modal.pt-modal { padding: 16px; align-items: stretch; }
.aff-sim-card {
  width: min(860px, 100%);
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.aff-sim-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 12px;
  border-bottom: 1px solid #e5e7eb;
}
.aff-sim-head h3 { margin: 0 0 4px; font-size: 1.35rem; }
.aff-sim-head p { margin: 0; color: var(--gray-mid); font-size: .92rem; }
.aff-sim-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--dark);
  cursor: pointer;
}
.aff-sim-close:hover { background: #e5e7eb; }
.aff-sim-body {
  padding: 20px 24px 24px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.aff-sim-loading,
.aff-sim-empty { text-align: center; padding: 32px 8px; color: var(--gray-mid); }
.aff-sim-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.aff-kpi {
  background: var(--gray-light);
  border-radius: 14px;
  padding: 16px;
}
.aff-kpi span { display: block; color: var(--gray-mid); font-size: .8rem; }
.aff-kpi strong { font-size: 1.25rem; }
.aff-kpi.highlight { background: var(--blue); color: #fff; }
.aff-kpi.highlight span { color: rgba(255,255,255,.8); }
.wizard-page .wizard-header { margin-top: 10px; }

.aff-note {
  font-size: .72rem;
  line-height: 1.45;
  color: #1e3a8a;
  margin-top: 28px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #e8effe;
  border: 1px solid rgba(50, 108, 244, 0.16);
}
.aff-brand { font-weight: 800; font-size: 1.2rem; color: var(--dark); }
.aff-sim-meta { color: var(--gray-mid); margin: 4px 0 0; }
.aff-sim-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.table-wrap { overflow-x: auto; margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; background: #fff; min-width: 420px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; }
.table th { font-size: .8rem; color: var(--gray-mid); }

.aff-legal { padding: 48px 0 80px; }
.aff-legal .prose { max-width: 760px; }
.aff-legal h2, .aff-legal h3 { margin: 24px 0 8px; }
.aff-legal p, .aff-legal li { color: #374151; line-height: 1.7; }
.aff-legal ul { padding-left: 20px; margin: 8px 0 16px; }

.aff-thanks { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 120px 20px 60px; }
.aff-thanks-card {
  max-width: 560px;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
}
.aff-thanks-card code {
  display: block;
  margin: 12px 0;
  padding: 10px;
  background: var(--gray-light);
  border-radius: 8px;
  word-break: break-all;
}

@media (max-width: 900px) {
  .aff-hook { flex-wrap: wrap; }
  .aff-hero { padding: calc(var(--header-h) + 28px) 0 48px; }
  .aff-hero-grid,
  .aff-split-grid,
  .aff-split-grid.reverse,
  .aff-rule-grid,
  .aff-sim-kpis { grid-template-columns: 1fr; }
  .aff-split-grid.reverse { direction: ltr; }
  .aff-hero-photo img,
  .aff-split-photo img { height: 260px; }
  .aff-sim-modal.pt-modal { padding: 0; }
  .aff-sim-card {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
}
