/* ==========================================================================
   Affiliate programme
   ========================================================================== */

.aff {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  color: var(--wm-ink, #2e2f32);
  font-size: 15px;
}

.aff-flash {
  padding: 12px 15px;
  border-radius: var(--wm-r-sm, 8px);
  font-size: 14px;
  margin-bottom: 16px;
}
.aff-flash.is-ok  { background: #e8f5ee; border: 1px solid #b7e0c8; color: #0a6b39; }
.aff-flash.is-bad { background: #fdeced; border: 1px solid #f7c3c6; color: #8a1319; }

/* ------------------------------------------------------------------ hero */

.aff-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 32px;
  align-items: center;
  padding: 38px 36px;
  margin-bottom: 26px;
  border-radius: var(--wm-r-lg, 24px);
  background: linear-gradient(135deg, var(--wm-navy, #041e42) 0%, #0a3163 60%, #0d4a8f 100%);
  color: #fff;
  overflow: hidden;
}
.aff-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--wm-r-pill, 100px);
  background: var(--wm-yellow, #ffc220);
  color: #3d2c00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.aff-hero h1 {
  margin: 14px 0 10px;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.aff-hero p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.86);
  max-width: 46ch;
}
.aff-fineprint {
  margin-top: 14px !important;
  font-size: 12.5px !important;
  color: rgba(255,255,255,.62) !important;
}
.aff-linkbox .aff-fineprint { color: var(--wm-muted, #74767c) !important; }

/* The three-step promise, as stacked chips. */
.aff-hero-art { position: relative; min-height: 190px; }
.aff-chip {
  position: absolute;
  padding: 13px 20px;
  border-radius: var(--wm-r-md, 16px);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(3px);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.aff-chip-1 { top: 8px;   left: 0;    }
.aff-chip-2 { top: 74px;  left: 46px; }
.aff-chip-3 {
  top: 140px; left: 92px;
  background: var(--wm-yellow, #ffc220);
  border-color: var(--wm-yellow, #ffc220);
  color: #3d2c00;
  font-weight: 700;
}

/* --------------------------------------------------------------- buttons */

.aff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--wm-r-pill, 100px);
  background: var(--wm-blue, #0071dc);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s ease;
}
.aff-btn:hover { background: var(--wm-blue-hover, #005fbb); color: #fff; }
.aff-btn-lg { height: 50px; padding: 0 30px; font-size: 16px; }

/* ----------------------------------------------------------------- steps */

.aff-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.aff-step {
  padding: 22px;
  background: var(--wm-surface, #fff);
  border: 1px solid var(--wm-line, #e4e5e7);
  border-radius: var(--wm-r-md, 16px);
}
.aff-step-n {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--wm-sky-100, #e6f1fc);
  color: var(--wm-blue, #0071dc);
  font-size: 14px;
  font-weight: 700;
}
.aff-step h3 { margin: 13px 0 6px; font-size: 16px; color: var(--wm-navy, #041e42); }
.aff-step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--wm-ink-2, #46474a); }

/* ------------------------------------------------------------------- faq */

.aff-faq { margin-bottom: 20px; }
.aff-faq h2 { font-size: 20px; color: var(--wm-navy, #041e42); margin: 0 0 14px; }
.aff-faq details {
  background: var(--wm-surface, #fff);
  border: 1px solid var(--wm-line, #e4e5e7);
  border-radius: var(--wm-r-sm, 8px);
  margin-bottom: 8px;
  overflow: hidden;
}
.aff-faq summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--wm-navy, #041e42);
  list-style: none;
}
.aff-faq summary::-webkit-details-marker { display: none; }
.aff-faq summary::after { content: "+"; float: right; font-weight: 400; font-size: 19px; line-height: 1; }
.aff-faq details[open] summary::after { content: "\2212"; }
.aff-faq p { margin: 0; padding: 0 18px 16px; font-size: 14px; line-height: 1.6; color: var(--wm-ink-2, #46474a); }

/* ------------------------------------------------------------- dashboard */

.aff-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.aff-head h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.015em; color: var(--wm-navy, #041e42); }
.aff-head p { margin: 5px 0 0; font-size: 14px; color: var(--wm-muted, #74767c); }
.aff-status {
  padding: 5px 14px;
  border-radius: var(--wm-r-pill, 100px);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: capitalize;
}
.aff-status.is-active { background: #e8f5ee; color: #0a6b39; }
.aff-status.is-paused { background: #fff6e6; color: #a06000; }
.aff-status.is-banned { background: #fdeced; color: #8a1319; }

.aff-linkbox {
  padding: 18px;
  margin-bottom: 18px;
  background: var(--wm-sky-100, #e6f1fc);
  border: 1px solid var(--wm-sky-200, #cce4f9);
  border-radius: var(--wm-r-md, 16px);
}
.aff-linkbox label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--wm-navy, #041e42);
  margin-bottom: 8px;
}
.aff-linkrow { display: flex; gap: 8px; }
.aff-linkrow input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--wm-line-strong, #d4d5d8);
  border-radius: var(--wm-r-sm, 8px);
  background: #fff;
  font: inherit;
  font-size: 14.5px;
  color: var(--wm-ink, #2e2f32);
}
.aff-linkbox code {
  background: rgba(255,255,255,.7);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}

.aff-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.aff-kpi {
  padding: 16px 18px;
  background: var(--wm-surface, #fff);
  border: 1px solid var(--wm-line, #e4e5e7);
  border-radius: var(--wm-r-md, 16px);
}
.aff-kpi.is-good { border-color: #b7e0c8; background: #f6fbf8; }
.aff-kpi-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--wm-muted, #74767c);
}
.aff-kpi-value {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--wm-navy, #041e42);
  font-variant-numeric: tabular-nums;
}
.aff-kpi-foot { margin-top: 5px; font-size: 12.5px; color: var(--wm-muted, #74767c); }

/* ----------------------------------------------------------------- table */

.aff-card {
  background: var(--wm-surface, #fff);
  border: 1px solid var(--wm-line, #e4e5e7);
  border-radius: var(--wm-r-md, 16px);
  overflow: hidden;
}
.aff-card-head { padding: 15px 18px; border-bottom: 1px solid var(--wm-line, #e4e5e7); }
.aff-card-head h2 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--wm-navy, #041e42); }

.aff-tablewrap { overflow-x: auto; }
.aff-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.aff-table th {
  text-align: left;
  padding: 11px 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--wm-muted, #74767c);
  background: var(--wm-surface-2, #f8f8f8);
  white-space: nowrap;
}
.aff-table td { padding: 12px 18px; border-top: 1px solid var(--wm-surface-3, #f2f2f2); }
.aff-table .aff-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

.aff-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--wm-r-pill, 100px);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: capitalize;
}
.aff-tag.t-pending  { background: #fff6e6; color: #a06000; }
.aff-tag.t-approved { background: #e8f5ee; color: #0a6b39; }
.aff-tag.t-paid     { background: var(--wm-sky-100, #e6f1fc); color: #0057a8; }
.aff-tag.t-reversed { background: var(--wm-surface-3, #f2f2f2); color: var(--wm-muted, #74767c); }

.aff-empty { padding: 40px 20px; text-align: center; color: var(--wm-muted, #74767c); }
.aff-empty-ic { font-size: 30px; opacity: .5; }
.aff-empty h3 { margin: 10px 0 4px; font-size: 15.5px; color: var(--wm-ink, #2e2f32); }
.aff-empty p { margin: 0; font-size: 13.5px; }

/* ---------------------------------------------------------------- mobile */

@media (max-width: 860px) {
  .aff-hero { grid-template-columns: 1fr; padding: 28px 22px; gap: 22px; }
  .aff-hero h1 { font-size: 29px; }
  .aff-hero-art { min-height: 150px; }
  .aff-chip { font-size: 13px; padding: 11px 16px; }
  .aff-chip-2 { left: 34px; top: 58px; }
  .aff-chip-3 { left: 68px; top: 110px; }
}

@media (max-width: 560px) {
  .aff { padding: 14px 12px 44px; }
  .aff-hero { border-radius: var(--wm-r-md, 16px); padding: 22px 18px; }
  .aff-hero h1 { font-size: 25px; }
  .aff-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aff-kpi { padding: 13px 14px; }
  .aff-kpi-value { font-size: 21px; }
  .aff-table .aff-hide-sm { display: none; }
  .aff-table th, .aff-table td { padding: 10px 12px; }
  .aff-linkrow { flex-wrap: wrap; }
  .aff-linkrow input { flex: 1 1 100%; }
  .aff-btn { width: 100%; }
}
