/* The affiliate programme: the public page (/affiliates), the customer area page (/account/affiliate) and the staff pages (/admin/affiliates).
   Uses the site's own tokens (base.css); nothing here is inline, so the strict Content-Security-Policy is kept. */

.af-offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* ------------------------------------------------------------ public page: hero */
.affiliates-page .fx-hero-grid { grid-template-columns: minmax(0, 5.2fr) minmax(0, 5fr); margin-bottom: 0; }
.af-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; max-width: 34rem; }
.af-points li { display: flex; align-items: center; gap: 12px; color: #b4c2e6; font-size: 15.5px; }
.af-points svg { flex: none; color: #8fb1ff; }
.af-points b { color: #fff; font-weight: 650; }
@media (max-width: 520px) { .af-points { grid-template-columns: 1fr; } }

/* the picture of the dashboard (an example, drawn from the live rate and prices) */
.af-win { max-width: 560px; margin-left: auto; }
.af-eg { margin-left: auto; font: 600 11px/1 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: #f5b84a; border: 1px solid rgba(245, 184, 74, .45); border-radius: 99px; padding: 4px 9px; }
.afd { padding: 18px; display: grid; gap: 14px; background: #fff; color: var(--ink); font-size: 13.5px; }
.afd-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f3f6fc; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px 9px 14px; }
.afd-url { font-family: var(--mono, monospace); font-size: 13px; color: #44506b; overflow-wrap: anywhere; }
.afd-url b { color: var(--cobalt, #1d4ed8); }
.afd-btn, .afd-ask { background: var(--cobalt, #1d4ed8); color: #fff; font-weight: 650; border-radius: 8px; padding: 7px 13px; white-space: nowrap; font-size: 13px; }
.afd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.afd-c { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; display: grid; gap: 4px; }
.afd-c small { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.afd-c b { font: 650 21px/1.1 var(--font-display); letter-spacing: -.03em; }
.afd-c-ok { background: #f2fbf6; border-color: #9fd9bf; } .afd-c-ok b { color: #0e8a5a; }
.afd-c-wait { background: #fffaf0; border-color: #efd29a; } .afd-c-wait b { color: #a8650a; }
.afd-chart small { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.afd-chart svg { width: 100%; height: 58px; display: block; margin-top: 6px; }
.afd-bar { fill: #3d7bff; }
.afd-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.afd-rows li { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) auto 5.2em; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.afd-rows li span:first-child { color: var(--muted); }
.afd-rows b { font-weight: 650; }
.afd-chip { font-style: normal; font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 99px; background: #eef0f6; color: #5a6379; text-align: center; white-space: nowrap; }
.afd-chip-ok { background: #def5ea; color: #0e8a5a; }
.afd-chip-wait { background: #fdecc8; color: #8a5300; }
.afd-ask { justify-self: start; }
@media (max-width: 700px) { .affiliates-page .fx-hero-vis { display: none; } }

/* ------------------------------------------------------------ public page: sections */
.af-sec { padding: clamp(64px, 8vw, 112px) 0; }
.af-tint { background: var(--paper, #f5f7fb); }
.af-sec .ex-head { max-width: 52rem; }

/* the timeline */
.af-time { list-style: none; margin: clamp(30px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: aft; }
.af-time li { position: relative; padding: 0 22px 0 0; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; }
.af-time li::before { content: ''; position: absolute; top: 21px; left: 46px; right: 4px; height: 2px; background: repeating-linear-gradient(90deg, #c9d3ea 0 6px, transparent 6px 12px); }
.af-time li:last-child::before { display: none; }
.af-tn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink, #0f1729); color: #fff; position: relative; z-index: 1; }
.af-time li:nth-child(4) .af-tn { background: #0e8a5a; }
.af-time li:nth-child(3) .af-tn { background: #c98a1b; }
.af-time b { font: 650 19px/1.25 var(--font-display); letter-spacing: -.02em; margin-top: 10px; }
.af-time p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.af-time em { font-style: normal; font: 600 12px/1 var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt, #1d4ed8); margin-top: 4px; }
.af-time .afd-chip { font-size: 12px; }
@media (max-width: 980px) {
  .af-time { grid-template-columns: 1fr; gap: 26px; }
  .af-time li { padding: 0 0 0 64px; }
  .af-tn { position: absolute; left: 0; top: 0; }
  .af-time li::before { top: 48px; bottom: -26px; left: 21px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #c9d3ea 0 6px, transparent 6px 12px); }
  .af-time b { margin-top: 0; padding-top: 10px; }
}

/* calculator */
.af-calc-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 84px); align-items: start; }
@media (max-width: 960px) { .af-calc-wrap { grid-template-columns: 1fr; } }
.af-earn { width: 100%; border-collapse: collapse; margin: 22px 0 8px; }
.af-earn th, .af-earn td { padding: 14px 10px; text-align: left; border-bottom: 1px solid var(--line); font-size: 16px; }
.af-earn thead th { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.af-earn td b { color: var(--cobalt, #1d4ed8); font-weight: 700; }
@media (max-width: 560px) { .af-earn th, .af-earn td { padding: 10px 6px; font-size: 14px; } }
.af-note { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.af-calc { background: #0a0f1f; color: #cdd8f3; border-radius: 22px; padding: clamp(24px, 3vw, 40px); }
.af-calc h3 { color: #fff; font: 650 24px/1.2 var(--font-display); margin: 0 0 18px; letter-spacing: -.02em; }
.af-sliders { display: grid; gap: 18px; }
.af-slider { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 2.4em; gap: 14px; align-items: center; font-size: 15.5px; }
.af-slider b { color: #fff; }
.af-slider output { text-align: right; font: 650 18px/1 var(--font-display); color: #fff; }
.af-slider input[type=range] { width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; outline: none; cursor: pointer; }
.af-slider input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: #2b3550; }
.af-slider input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: #2b3550; }
.af-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #5b8cff; border: 0; box-shadow: 0 0 0 0 rgba(91, 140, 255, .0); transition: box-shadow .15s; }
.af-slider input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #5b8cff; border: 0; transition: box-shadow .15s; }
/* no box around the slider when it is selected: the thumb itself shows the focus, for keyboard users too */
.af-slider input[type=range]:focus, .af-slider input[type=range]:focus-visible { outline: none; box-shadow: none; }
.af-slider input[type=range]:focus-visible::-webkit-slider-thumb, .af-slider input[type=range]:active::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(91, 140, 255, .3); }
.af-slider input[type=range]:focus-visible::-moz-range-thumb, .af-slider input[type=range]:active::-moz-range-thumb { box-shadow: 0 0 0 6px rgba(91, 140, 255, .3); }
.af-cur { display: flex; gap: 22px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(150, 175, 255, .22); }
.af-cur label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #cdd8f3; }
.af-result { margin-top: 22px; display: grid; gap: 4px; }
.af-result small { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #8fb1ff; }
.af-result b { font: 700 clamp(2.4rem, 5vw, 3.6rem)/1.05 var(--font-display); letter-spacing: -.04em; color: #fff; }
.af-result span { color: #b4c2e6; }
.af-result i { font-style: normal; color: #fff; font-weight: 650; }

/* why it is easy to recommend (dark band) */
.af-dark { background: #0a0f1f; color: #cdd8f3; }
.af-dark .ex-head h2 { color: #fff; }
.af-dark .fx-kicker { color: #8fb1ff; }
.af-dark .fx-lede { color: #b4c2e6; }
.af-why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.af-why .ex-head { position: sticky; top: 120px; margin: 0; }
@media (max-width: 960px) { .af-why { grid-template-columns: 1fr; } .af-why .ex-head { position: static; } }
.af-reasons { list-style: none; margin: 0; padding: 0; display: grid; }
.af-reasons li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid rgba(150, 175, 255, .2); }
.af-reasons li:last-child { border-bottom: 1px solid rgba(150, 175, 255, .2); }
.af-reasons b { display: block; color: #fff; font: 650 20px/1.3 var(--font-display); letter-spacing: -.02em; margin-bottom: 6px; }
.af-reasons p { margin: 0; color: #b4c2e6; font-size: 16.5px; line-height: 1.6; }
.af-ri { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(120, 150, 255, .16); color: #9db9ff; }
.af-ri-light { background: #e9efff; color: #2a55d8; }

/* who it suits: open columns divided by hairlines */
.af-who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.af-who article { padding: 28px 28px 8px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.af-who article:last-child { border-right: 0; margin-right: 0; }
.af-wi { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #e9efff; color: #2a55d8; margin-bottom: 14px; }
.af-who h3 { font: 650 21px/1.25 var(--font-display); letter-spacing: -.02em; margin: 0 0 8px; }
.af-who p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
@media (max-width: 1100px) { .af-who { grid-template-columns: repeat(2, minmax(0, 1fr)); } .af-who article { border-right: 0; margin-right: 0; padding-right: 20px; padding-bottom: 28px; } }
@media (max-width: 620px) { .af-who { grid-template-columns: 1fr; } }

/* what you get */
.af-feat { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.af-feat li { padding: 26px 0; border-top: 1px solid #d5dcee; display: grid; gap: 8px; align-content: start; }
.af-feat b { font: 650 19px/1.3 var(--font-display); letter-spacing: -.02em; }
.af-feat p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
@media (max-width: 960px) { .af-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .af-feat { grid-template-columns: 1fr; } }

/* join */
.af-join { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
@media (max-width: 900px) { .af-join { grid-template-columns: 1fr; } }
.af-three { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.af-three li { display: flex; gap: 14px; align-items: flex-start; font-size: 16.5px; }
.af-three b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink, #0f1729); color: #fff; font-size: 14px; }
.af-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 38px); box-shadow: 0 28px 70px -40px rgba(15, 23, 41, .45); }
.af-card h3 { font: 650 24px/1.2 var(--font-display); letter-spacing: -.02em; margin: 0 0 16px; }
.af-card .check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 15px; }
.af-card .check input { margin-top: 4px; }
.af-done { text-align: center; padding: 14px 0; }
.af-donei { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e9efff; color: #2a55d8; margin-bottom: 12px; }

/* questions */
.af-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.af-faq .ex-head { position: sticky; top: 120px; margin: 0; }
@media (max-width: 960px) { .af-faq { grid-template-columns: 1fr; } .af-faq .ex-head { position: static; } }
.af-qs { display: grid; }
.af-qs details { border-top: 1px solid #d5dcee; padding: 2px 0; }
.af-qs details:last-child { border-bottom: 1px solid #d5dcee; }
.af-qs summary { cursor: pointer; font: 600 18px/1.4 var(--font); padding: 18px 0; }
.af-qs details[open] summary { color: var(--cobalt, #1d4ed8); }
.af-qs p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; max-width: 44rem; }

/* closing band */
.af-final { background: #0a0f1f; color: #cdd8f3; padding: clamp(48px, 6vw, 84px) 0; }
.af-final-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.af-final h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.03em; margin: 0 0 8px; }
.af-final p { margin: 0; color: #b4c2e6; }
.af-final-cta { display: flex; gap: 12px; flex-wrap: wrap; }


/* ------------------------------------------------------------ public page: "what you get" rows */
.af-rows { display: grid; gap: clamp(48px, 6vw, 96px); margin-top: clamp(32px, 4vw, 56px); }
.af-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.af-row-flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.af-row-flip .af-row-copy { order: 2; }
.af-row-copy h3 { font: 650 clamp(1.5rem, 2.3vw, 2.1rem)/1.15 var(--font-display); letter-spacing: -.03em; margin: 18px 0 12px; }
.af-row-copy > p { margin: 0 0 18px; color: var(--muted); font-size: 17.5px; line-height: 1.65; max-width: 34rem; }
.af-bul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.af-bul li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.5; }
.af-bul li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 13px; height: 7px; border-left: 3px solid #0e8a5a; border-bottom: 3px solid #0e8a5a; transform: rotate(-45deg); }
.af-mini { max-width: 620px; width: 100%; justify-self: center; }
.af-row-flip .af-mini { justify-self: start; }
@media (max-width: 960px) {
  .af-row, .af-row-flip { grid-template-columns: 1fr; gap: 28px; }
  .af-row-flip .af-row-copy { order: 0; }
  .af-mini, .af-row-flip .af-mini { justify-self: stretch; max-width: none; }
}
.afd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.afd-chips span { border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: 13px; background: #fff; }
.afd-text { background: #f3f6fc; border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; justify-items: start; }
.afd-text small { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.afd-text p { margin: 0; color: #35405b; line-height: 1.5; }
.afd-btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.afd-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.afd-prog { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.afd-prog-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.afd-prog-top b { color: #8a5300; }
.afd-track { height: 10px; border-radius: 99px; background: #eaeef7; overflow: hidden; }
.afd-fill { display: block; height: 100%; width: 36%; border-radius: 99px; background: #e0a02e; }
.afd-prog-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; }
.afd-note { display: flex; align-items: center; gap: 10px; color: #44506b; }
.afd-ask-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.afd-ask-row small { color: var(--muted); }
.afd-rows-pay li { grid-template-columns: 6em minmax(0, 1fr) auto 4.4em; }
.afd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.afd-stats > div { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; display: grid; gap: 4px; }
.afd-stats small { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.afd-stats b { font: 650 24px/1.1 var(--font-display); letter-spacing: -.03em; }
.af-mini .afd-chart svg { height: 96px; }

/* ------------------------------------------------------------ join (dark band) */
.af-join-sec { padding-bottom: clamp(72px, 9vw, 120px); }
.af-join-copy .fx-lede a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.af-three { margin-top: 30px; gap: 22px; }
.af-three li { gap: 16px; align-items: flex-start; }
.af-three li > b { width: 36px; height: 36px; background: #2a55d8; color: #fff; font-size: 15px; }
.af-three div { display: grid; gap: 2px; }
.af-three strong { color: #fff; font: 650 18px/1.3 var(--font-display); letter-spacing: -.01em; }
.af-three span { color: #b4c2e6; font-size: 16px; line-height: 1.55; }
.af-assure { list-style: none; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(150, 175, 255, .22); display: flex; flex-wrap: wrap; gap: 14px 30px; }
.af-assure li { display: flex; align-items: center; gap: 10px; color: #dbe4ff; font-weight: 600; }
.af-assure svg { color: #8fb1ff; }
.af-card { border: 0; border-radius: 24px; padding: clamp(26px, 3.2vw, 44px); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7); }
.af-card h3 { font-size: 26px; margin: 0 0 4px; }
.af-card-sub { margin: 0 0 22px; color: var(--muted); }
.af-card .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .af-card .field-row { grid-template-columns: 1fr; gap: 0; } }
.af-card .field { margin: 0 0 16px; }
.af-card label:not(.check) { display: block; font-weight: 650; font-size: 14px; margin: 0 0 7px; color: var(--ink); }
.af-card input[type=text], .af-card input[type=email], .af-card textarea { width: 100%; box-sizing: border-box; padding: 13px 15px; font: 400 16px/1.4 var(--font); color: var(--ink); background: #f7f9fd; border: 1.5px solid #d5dcee; border-radius: 12px; outline: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.af-card textarea { min-height: 104px; resize: vertical; }
.af-card input::placeholder, .af-card textarea::placeholder { color: #8791aa; }
.af-card input[type=text]:hover, .af-card input[type=email]:hover, .af-card textarea:hover { border-color: #b7c2de; }
.af-card input[type=text]:focus, .af-card input[type=email]:focus, .af-card textarea:focus { background: #fff; border-color: #2a55d8; box-shadow: 0 0 0 4px rgba(42, 85, 216, .16); }
.af-card .check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; padding: 14px 16px; background: #f7f9fd; border: 1.5px solid #d5dcee; border-radius: 12px; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.af-card .check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 2px solid #9aa6c4; border-radius: 6px; background: #fff; display: grid; place-content: center; cursor: pointer; transition: background .15s, border-color .15s; }
.af-card .check input::after { content: ''; width: 11px; height: 6px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) scale(0); transition: transform .12s; margin-top: -2px; }
.af-card .check input:checked { background: #2a55d8; border-color: #2a55d8; }
.af-card .check input:checked::after { transform: rotate(-45deg) scale(1); }
.af-card .check input:focus-visible { outline: 3px solid rgba(42, 85, 216, .35); outline-offset: 2px; }
.af-card .btn-block { display: block; width: 100%; box-sizing: border-box; padding: 17px 24px; font-size: 17px; font-weight: 700; border: 0; border-radius: 14px; background: #2a55d8; color: #fff; box-shadow: none; cursor: pointer; transition: background .15s, transform .1s; }
.af-card .btn-block:hover { background: #1f45bd; }
.af-card .btn-block:active { transform: translateY(1px); }
.af-card .fine { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ questions */
.af-faq { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.af-faq-head { position: sticky; top: 120px; display: grid; gap: 26px; }
.af-faq-head .ex-head { position: static; margin: 0; }
@media (max-width: 960px) { .af-faq-head { position: static; } }
.af-help { background: var(--paper, #f5f7fb); border-radius: 18px; padding: 22px 24px; }
.af-help b { font: 650 19px/1.3 var(--font-display); display: block; margin-bottom: 6px; }
.af-help p { margin: 0 0 14px; color: var(--muted); line-height: 1.6; }
.af-help-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.af-qgroups { display: grid; gap: 40px; }
.af-qgroup h3 { margin: 0 0 12px; font: 600 12.5px/1 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt, #1d4ed8); }
.af-qs { display: grid; gap: 10px; }
.af-qs details { border: 1px solid #d5dcee; border-radius: 16px; background: #fff; padding: 0; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.af-qs details:last-child { border-bottom: 1px solid #d5dcee; }
.af-qs details[open] { border-color: #9db3ef; box-shadow: 0 14px 34px -26px rgba(42, 85, 216, .6); }
.af-qs summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; font: 600 18px/1.4 var(--font); color: var(--ink); }
.af-qs summary::-webkit-details-marker { display: none; }
.af-qs summary::after { content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #eef2ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a55d8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
.af-qs details[open] summary::after { transform: rotate(45deg); }
.af-qs summary:hover { color: #2a55d8; }
.af-qs summary:focus-visible { outline: 3px solid rgba(42, 85, 216, .35); outline-offset: -3px; border-radius: 16px; }
.af-qs details[open] summary { color: #2a55d8; }
.af-qs details p { margin: 0; padding: 0 24px 22px; max-width: none; color: #4a566f; font-size: 16.5px; line-height: 1.7; }

/* ------------------------------------------------------------ closing band */
.af-final { padding: clamp(56px, 7vw, 96px) 0; }
.af-final-facts { list-style: none; margin: clamp(30px, 4vw, 48px) 0 0; padding: clamp(22px, 3vw, 32px) 0 0; border-top: 1px solid rgba(150, 175, 255, .22); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.af-final-facts li { display: grid; gap: 4px; }
.af-final-facts b { color: #fff; font: 700 clamp(1.5rem, 2.6vw, 2.2rem)/1.1 var(--font-display); letter-spacing: -.03em; }
.af-final-facts span { color: #8fa2d4; font-size: 14.5px; }
@media (max-width: 700px) { .af-final-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ---- the middle of the page, reworked: a slim "who it is for" band, and one big tabbed dashboard in place of the stack of small pictures ---- */
.af-sec { padding: clamp(56px, 6.2vw, 100px) 0; }
.af-who-sec { padding: clamp(44px, 4.6vw, 72px) 0; background: #fff; }
.af-whoband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.af-whoband h2 { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.af-whogrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 56px); }
.af-whogrid li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.af-whogrid li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.af-whogrid b { display: block; font: 650 19px/1.3 var(--font-display); letter-spacing: -.02em; margin-bottom: 4px; }
.af-whogrid p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
@media (max-width: 1000px) { .af-whoband { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) { .af-whogrid { grid-template-columns: 1fr; } .af-whogrid li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 18px; } }

.af-show { background: #fff; }
.af-stage { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); gap: clamp(28px, 4vw, 72px); align-items: start; margin-top: clamp(26px, 3.4vw, 48px); }
.af-tabs { display: grid; gap: 8px; }
.af-tab { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; text-align: left; padding: 18px 20px; border: 1.5px solid transparent; border-radius: 16px; background: transparent; cursor: pointer; font: inherit; color: var(--ink); transition: background .15s, border-color .15s; }
.af-tab b { display: block; font: 650 clamp(1.05rem, 1.3vw, 1.3rem)/1.3 var(--font-display); letter-spacing: -.02em; margin-bottom: 4px; }
.af-tab small { display: block; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.af-tab .af-ri { background: #eef2ff; }
.af-tab:hover { background: #f5f7fb; }
.af-tab[aria-selected="true"] { background: #f5f7fb; border-color: #2a55d8; }
.af-tab[aria-selected="true"] .af-ri { background: #2a55d8; color: #fff; }
.af-tab:focus-visible { outline: 3px solid rgba(42, 85, 216, .35); outline-offset: 2px; }
.af-panels { position: sticky; top: 110px; }
.af-panel[hidden] { display: none; }
.af-stage:not(.af-js) .af-panels { display: grid; gap: 28px; position: static; }
.af-stage:not(.af-js) .af-tab { cursor: default; }
.af-big { width: 100%; max-width: none; margin: 0; font-size: clamp(13px, .42vw + 7.5px, 17.5px); box-shadow: 0 0 0 1px rgba(15, 23, 41, .1), 0 50px 100px -50px rgba(10, 15, 31, .55); }
.af-big .afd { padding: 1.4em; gap: 1.1em; font-size: 1em; min-height: 26em; align-content: start; }
.af-big .afd-link { padding: .75em .85em .75em 1.05em; border-radius: .7em; }
.af-big .afd-url { font-size: .95em; }
.af-big .afd-btn, .af-big .afd-ask { font-size: .95em; padding: .55em 1.05em; border-radius: .6em; }
.af-big .afd-chips span { font-size: .93em; padding: .45em 1.05em; }
.af-big .afd-text { padding: 1em 1.1em; border-radius: .8em; gap: .6em; }
.af-big .afd-text small, .af-big .afd-c small, .af-big .afd-stats small, .af-big .afd-chart small { font-size: .74em; }
.af-big .afd-text p { font-size: 1em; }
.af-big .afd-codeedit { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; border: 1px dashed #c3cde6; border-radius: .8em; padding: .8em 1em; color: var(--muted); }
.af-big .afd-codeedit b { color: var(--ink); font-weight: 650; }
.af-big .afd-codeedit i { margin-left: auto; font-style: normal; color: #2a55d8; font-weight: 650; }
.af-big .afd-cards { gap: .8em; }
.af-big .afd-c { padding: 1em 1.1em; border-radius: .9em; }
.af-big .afd-c b { font-size: 1.9em; }
.af-big .afd-prog { padding: 1em 1.1em; border-radius: .9em; }
.af-big .afd-prog-ends { font-size: .85em; }
.af-big .afd-rows li { grid-template-columns: 6.5em minmax(0, 1fr) auto 5.5em; padding: .7em 0; font-size: 1em; }
.af-big .afd-rows-pay li { grid-template-columns: 7em minmax(0, 1fr) auto 4.5em; }
.af-big .afd-chip { font-size: .82em; padding: .28em .8em; }
.af-big .afd-stats { gap: .8em; }
.af-big .afd-stats > div { padding: .9em 1em; border-radius: .9em; }
.af-big .afd-stats b { font-size: 1.9em; }
.af-big .afd-chart svg { height: 9em; margin-top: .5em; }
.af-big .afd-ask-row { gap: 1em; }
@media (max-width: 1000px) {
  .af-stage { grid-template-columns: 1fr; }
  .af-panels { position: static; }
  .af-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .af-tabs { grid-template-columns: 1fr; } .af-tab small { display: none; } .af-big .afd { min-height: 0; } }

.afa-w0 { width: 0%; }
.afa-w5 { width: 5%; }
.afa-w10 { width: 10%; }
.afa-w15 { width: 15%; }
.afa-w20 { width: 20%; }
.afa-w25 { width: 25%; }
.afa-w30 { width: 30%; }
.afa-w35 { width: 35%; }
.afa-w40 { width: 40%; }
.afa-w45 { width: 45%; }
.afa-w50 { width: 50%; }
.afa-w55 { width: 55%; }
.afa-w60 { width: 60%; }
.afa-w65 { width: 65%; }
.afa-w70 { width: 70%; }
.afa-w75 { width: 75%; }
.afa-w80 { width: 80%; }
.afa-w85 { width: 85%; }
.afa-w90 { width: 90%; }
.afa-w95 { width: 95%; }
.afa-w100 { width: 100%; }

/* ======================= the affiliate page in the customer area, second design ======================= */
.afa-head-r { display: flex; align-items: center; gap: 12px; }
.afa-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: stretch; margin-bottom: 18px; }
@media (max-width: 1100px) { .afa-top { grid-template-columns: 1fr; } }
.afa-top > .card { margin: 0; }
.afa-link .af-copy input { font-size: clamp(15px, 1.1vw, 18px); padding: 15px 16px; border-radius: 12px; }
.afa-link .af-copy .btn { padding-inline: 26px; }
.afa-level { background: #0b1124; color: #cdd8f3; border-color: #0b1124; display: grid; gap: 14px; align-content: start; }
.afa-level-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.afa-level small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8fb1ff; font-weight: 700; margin-bottom: 4px; }
.afa-level h2 { margin: 0; color: #fff; font: 700 1.7rem/1.1 var(--font-display); letter-spacing: -.03em; }
.afa-rate { font: 700 clamp(2.6rem, 4vw, 3.8rem)/1 var(--font-display); letter-spacing: -.05em; color: #fff; }
.afa-prog { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.afa-prog-fill { display: block; height: 100%; border-radius: 99px; background: #5b8cff; }
.afa-level-note { margin: 0; color: #b4c2e6; line-height: 1.55; }
.afa-level-note b { color: #fff; }
.afa-fine { margin: 0; color: #8fa2d4; font-size: 13.5px; line-height: 1.5; }
.afa-ladder .afl { gap: 8px; }
.afa-ladder .afl-bar { height: 54px !important; font-size: 1.15rem; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #aebfef; box-shadow: none; }
.afa-ladder .afl-done .afl-bar { background: rgba(91, 140, 255, .35); color: #fff; }
.afa-ladder .afl-now .afl-bar { background: #2a55d8; color: #fff; box-shadow: 0 0 0 3px rgba(143, 177, 255, .5); }
.afa-ladder .afl-name { color: #fff; font-size: .95rem; } .afa-ladder .afl-need { color: #8fa2d4; font-size: 12.5px; }
.afa-optin-ladder { margin: 22px 0 8px; max-width: 640px; }
.afa-optin-ladder .afl-bar { height: 62px !important; font-size: 1.3rem; }

.afa-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 900px) { .afa-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.afa-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 4px; box-shadow: var(--shadow-sm); }
.afa-stat small, .afa-tile small, .afa-avail small { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.afa-stat b { font: 650 clamp(1.7rem, 2.4vw, 2.3rem)/1.1 var(--font-display); letter-spacing: -.03em; }
.afa-stat span { color: var(--muted); font-size: 14px; }

.afa-money { margin-bottom: 18px; }
.afa-money-h { font: 600 12.5px/1 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.afa-money-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
@media (max-width: 1100px) { .afa-money-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .afa-avail { grid-column: 1 / -1; } }
@media (max-width: 640px) { .afa-money-grid { grid-template-columns: 1fr; } }
.afa-avail { background: #0e8a5a; color: #e6fff4; border-radius: 18px; padding: 22px 24px; display: grid; gap: 6px; align-content: start; box-shadow: 0 24px 50px -30px rgba(14, 138, 90, .8); }
.afa-avail small { color: #bff0d9; }
.afa-avail b { font: 700 clamp(2.4rem, 3.6vw, 3.4rem)/1.05 var(--font-display); letter-spacing: -.04em; color: #fff; }
.afa-avail-note { color: #d1f5e5; font-size: 14.5px; }
.afa-ask { margin-top: 10px; display: grid; gap: 8px; }
.afa-ask p { margin: 0; color: #d1f5e5; font-size: 14.5px; line-height: 1.5; }
.afa-ask .btn { background: #fff; color: #0b6b46; border: 0; box-shadow: none; font-weight: 700; }
.afa-ask .btn:hover { background: #effcf6; }
.afa-tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 6px; align-content: start; box-shadow: var(--shadow-sm); }
.afa-tile b { font: 650 clamp(1.7rem, 2.3vw, 2.2rem)/1.1 var(--font-display); letter-spacing: -.03em; }
.afa-tile span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.afa-tile-wait { background: #fffaf0; border-color: #efd29a; }
.afa-tile-wait b { color: #a8650a; }

.afa-two { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.afa-two-b { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .afa-two, .afa-two-b { grid-template-columns: 1fr; } }
.afa-two > .card, .afa-side > .card { margin-bottom: 0; }
.afa-side { display: grid; gap: 18px; }
.afa-empty { text-align: center; padding: 34px 18px; display: grid; gap: 6px; justify-items: center; color: var(--muted); }
.afa-empty b { color: var(--ink); font: 650 1.15rem/1.3 var(--font-display); }
.afa-empty p { margin: 0; max-width: 28em; }
.afa-empty-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #e9efff; color: #2a55d8; }
.afa-empty-ic svg { width: 26px; height: 26px; }
.afa-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.afa-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.afa-steps b { display: block; font-weight: 650; }
.afa-steps small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.afa-tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c3cde6; margin-top: 1px; position: relative; }
.afa-done .afa-tick { background: #0e8a5a; border-color: #0e8a5a; }
.afa-done .afa-tick::after { content: ''; position: absolute; left: 6px; top: 5px; width: 9px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
.afa-done b { color: var(--muted); text-decoration: line-through; text-decoration-color: #b8c1d8; }

/* --------------------------------------------- customer area and admin */
.af-optin-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: start; }
@media (max-width: 800px) { .af-optin-grid { grid-template-columns: 1fr; } }
.af-optin-form { display: grid; gap: 12px; }
.af-optin-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.af-copy { display: flex; gap: 10px; flex-wrap: wrap; }
.af-copy input { flex: 1 1 320px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fd; font-size: 15px; }
.af-others { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.af-chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; font: 600 14px/1.2 var(--font); cursor: pointer; color: var(--ink); }
.af-chip:hover { border-color: var(--cobalt, #1d4ed8); color: var(--cobalt, #1d4ed8); }
.af-ok { color: var(--green, #12a36b); font-weight: 600; margin: 10px 0 0; }
.af-code { margin-top: 16px; }
.af-code summary { cursor: pointer; color: var(--muted); font-size: 14.5px; }
.af-stats { margin-bottom: 18px; }
.af-bal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .af-bal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .af-bal-grid { grid-template-columns: 1fr; } }
.af-stat { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; background: #fff; }
.af-stat .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.af-stat .v { font: 650 28px/1.1 var(--font-display); letter-spacing: -.03em; }
.af-stat .s { color: var(--muted); font-size: 14px; }
.af-stat-cleared { border-color: #9fd9bf; background: #f2fbf6; }
.af-stat-cleared .v { color: var(--green, #12a36b); }
.af-stat-pending { border-color: #efd29a; background: #fffaf0; }
.af-stat-pending .v { color: #a8650a; }
.af-ask { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.af-ask p { margin: 0; }
.af-fresh { margin: 0 0 18px; }
.af-chart { width: 100%; height: 130px; display: block; }
.af-bar { fill: var(--cobalt, #1d4ed8); }
.af-bar-0 { fill: #dfe5f3; }
.af-blurb { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.af-blurb p { flex: 1 1 380px; margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.af-blurb:first-of-type { border-top: 0; padding-top: 0; }

/* the form card sits on the dark band but is a light card: its text must not inherit the band's light colour */
.af-card, .af-card .check, .af-card .check span, .af-card h3 { color: var(--ink, #0f1729); }
.af-card .muted, .af-card .fine, .af-card-sub { color: var(--muted, #5a6379); }
.af-card a { color: #2a55d8; }


/* ---- questions, second pass: open hairline rows, no boxes (the site's own editorial style) ---- */
.af-faq { display: block; }
.af-faq .ex-head { position: static; max-width: 52rem; margin-bottom: clamp(24px, 3vw, 44px); }
.af-qgroups { display: grid; gap: 0; border-top: 1px solid #cfd7ea; }
.af-qgroup { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 3fr); gap: clamp(20px, 4vw, 64px); padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid #cfd7ea; }
.af-qgroup h3 { margin: 6px 0 0; font: 600 12.5px/1.4 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt, #1d4ed8); }
@media (max-width: 760px) { .af-qgroup { grid-template-columns: 1fr; gap: 10px; } }
.af-qs { display: grid; gap: 0; }
.af-qs details { border: 0; border-top: 1px solid #e3e8f4; border-radius: 0; background: transparent; box-shadow: none; padding: 0; overflow: visible; }
.af-qs details:first-child { border-top: 0; }
.af-qs details[open] { border-color: #e3e8f4; box-shadow: none; }
.af-qs summary { padding: 18px 0; font: 600 19px/1.4 var(--font); color: var(--ink); gap: 24px; }
.af-qs summary:hover, .af-qs details[open] summary { color: var(--ink); }
.af-qs summary:hover { color: #2a55d8; }
.af-qs summary::after { width: 28px; height: 28px; background-color: transparent; border: 1.5px solid #c3cde6; background-size: 14px; }
.af-qs details[open] summary::after { background-color: #2a55d8; border-color: #2a55d8; transform: rotate(45deg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.af-qs summary:focus-visible { border-radius: 8px; outline-offset: 2px; }
.af-qs details p { padding: 0 52px 22px 0; max-width: 46rem; font-size: 17px; line-height: 1.7; color: #4a566f; }
.af-help { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; background: transparent; border-radius: 0; padding: clamp(24px, 3vw, 36px) 0 0; margin: 0; }
.af-help div { display: grid; gap: 4px; max-width: 40rem; }
.af-help b { font: 650 20px/1.3 var(--font-display); margin: 0; }
.af-help span { color: var(--muted); line-height: 1.6; }
.af-help-cta { margin: 0 !important; }


/* ---- hero picture, second pass: a full dashboard window that fills its column and scales with the screen (sizes in em) ---- */
.affiliates-page .fx-hero-grid { grid-template-columns: minmax(0, 4.6fr) minmax(0, 6.4fr); }
.af-win { max-width: none; width: 100%; margin: 0; font-size: clamp(11.5px, .5vw + 6px, 16px); }
.af-win .afh { display: grid; grid-template-columns: 12.5em minmax(0, 1fr); background: #f5f7fb; color: var(--ink); }
.af-win .afh-side { background: #0b1124; padding: 1.3em 1em; display: flex; flex-direction: column; gap: .35em; min-height: 100%; }
.af-win .afh-logo { color: #fff; font: 700 1.25em/1 var(--font-display); margin-bottom: 1.1em; letter-spacing: -.02em; }
.af-win .afh-logo b { color: #7ea2ff; font-weight: 700; }
.af-win .afh-nav { color: #aab6dc; padding: .6em .8em; border-radius: .6em; font-weight: 600; }
.af-win .afh-nav-on { background: rgba(255, 255, 255, .12); color: #fff; }
.af-win .afh-who { margin-top: auto; color: #7f8bb0; font-size: .85em; overflow-wrap: anywhere; padding: 0 .4em; }
.af-win .afh-main { padding: 1.3em; display: grid; gap: 1em; align-content: start; min-width: 0; }
.af-win .afh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; }
.af-win .afh-head b { display: block; font: 700 1.7em/1.1 var(--font-display); letter-spacing: -.03em; }
.af-win .afh-head small { color: var(--muted); font-size: .95em; }
.af-win .afd-link { background: #fff; padding: .7em .8em .7em 1em; border-radius: .7em; font-size: 1em; }
.af-win .afd-url { font-size: .95em; }
.af-win .afd-btn, .af-win .afd-ask { font-size: .95em; padding: .55em 1em; border-radius: .6em; }
.af-win .afh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7em; }
.af-win .afh-stats > div { background: #fff; border: 1px solid var(--line); border-radius: .8em; padding: .8em .9em; display: grid; gap: .3em; }
.af-win .afh-stats small, .af-win .afd-c small, .af-win .afd-chart small { font-size: .74em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.af-win .afh-stats b { font: 650 1.6em/1.1 var(--font-display); letter-spacing: -.03em; }
.af-win .afd-cards { gap: .7em; }
.af-win .afd-c { padding: .85em .95em; border-radius: .8em; gap: .35em; }
.af-win .afd-c b { font-size: 1.7em; }
.af-win .afh-lower { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1em; align-items: stretch; }
.af-win .afd-chart { background: #fff; border: 1px solid var(--line); border-radius: .8em; padding: .9em; display: grid; gap: .6em; align-content: start; }
.af-win .afd-chart svg { height: 6.5em; margin: 0; }
.af-win .afd-rows { background: #fff; border: 1px solid var(--line); border-radius: .8em; padding: .2em .9em; }
.af-win .afd-rows li { grid-template-columns: 6em minmax(0, 1fr) auto 5em; padding: .55em 0; font-size: .95em; }
.af-win .afd-rows li:first-child { border-top: 0; }
.af-win .afd-chip { font-size: .8em; padding: .25em .75em; }
.af-win .afd-ask { justify-self: start; margin-top: .2em; }
@media (max-width: 1100px) { .af-win .afh { grid-template-columns: 1fr; } .af-win .afh-side { display: none; } .af-win .afh-lower { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .affiliates-page .fx-hero-vis { display: none; } }

.af-was { color: #8a93aa; font-size: .9em; margin-right: 4px; }

/* the sales list in the pictures never wraps a pack name onto two lines */
.afd-rows li > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-win .afd-rows li { grid-template-columns: 5.6em minmax(0, 1fr) auto 4.8em; gap: .5em; }


/* ---- where to share it: four little pictures of a link in the wild ---- */
.af-share { background: #fff; }
.af-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px); margin-top: clamp(28px, 3.6vw, 52px); }
@media (max-width: 1100px) { .af-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .af-tiles { grid-template-columns: 1fr; } }
.af-tile { display: flex; flex-direction: column; }
.af-tile h3 { font: 650 clamp(1.15rem, 1.35vw, 1.4rem)/1.25 var(--font-display); letter-spacing: -.02em; margin: 20px 0 6px; }
.af-tile > p { margin: 0; color: var(--muted); font-size: clamp(15.5px, 1vw, 17.5px); line-height: 1.6; }
.afx { flex: 1; min-height: 15.5em; font-size: clamp(12.5px, .62vw + 5px, 15.5px); background: #f3f6fc; border: 1px solid #dde4f3; border-radius: 16px; padding: 1.1em; display: grid; gap: .7em; align-content: start; color: #2b3550; }
.afx p { margin: 0; line-height: 1.5; }
.afx u { color: #2a55d8; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.afx em { font-style: normal; font-weight: 700; }
.afx-top { display: flex; align-items: center; gap: .6em; }
.afx-top i { flex: none; width: 2.4em; height: 1.7em; border-radius: .35em; background: #cfd8ee; position: relative; }
.afx-top i::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-left: .6em solid #fff; border-top: .4em solid transparent; border-bottom: .4em solid transparent; }
.afx-top b { font-weight: 650; line-height: 1.3; color: #0f1729; }
.afx-body { display: grid; gap: .55em; }
.afx-line { display: block; height: .55em; border-radius: 99px; background: #d6ddef; }
.w90 { width: 90%; } .w70 { width: 70%; }
.afx-q { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: .7em; align-items: start; }
.afx-q > div { background: #fff; border-radius: .9em; padding: .6em .8em; }
.afx-q b { display: block; font-size: .92em; color: #0f1729; }
.afx-av { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: #cfd8ee; color: #44506b; font-weight: 700; }
.afx-av-b { background: #2a55d8; color: #fff; }
.afx-reply > div { border: 1.5px solid #b9c9f3; }
.afx-react { display: flex; gap: 1.2em; padding-left: 2.9em; color: #6a7694; font-weight: 600; font-size: .9em; }
.afx-blog { background: #fff; }
.afx-h { display: block; height: .9em; width: 75%; border-radius: 99px; background: #cfd8ee; }
.afx-h2 { width: 48%; }
.afx-cta { justify-self: start; background: #2a55d8; color: #fff; font-weight: 650; border-radius: .6em; padding: .55em 1em; }
.afx-mail { background: #fff; }
.afx-sub { display: grid; gap: .2em; padding-bottom: .7em; border-bottom: 1px solid #e3e8f4; }
.afx-sub small { color: #8791aa; text-transform: uppercase; letter-spacing: .06em; font-size: .72em; font-weight: 700; }
.afx-sub b { color: #0f1729; }

/* ---- more room on big screens: type in the page's sections grows with the screen, so nothing floats small in a wide space ---- */
@media (min-width: 1500px) {
  .affiliates-page .ex-head h2 { font-size: clamp(2.4rem, 2.5vw, 3.1rem); }
  .affiliates-page .fx-lede { font-size: 1.3rem; max-width: 46rem; }
  .af-time b { font-size: 22px; } .af-time p { font-size: 17.5px; }
  .af-reasons b { font-size: 23px; } .af-reasons p { font-size: 18.5px; }
  .af-earn th, .af-earn td { font-size: 18px; padding: 17px 12px; }
  .af-calc h3 { font-size: 28px; } .af-slider { font-size: 17.5px; }
  .af-three strong { font-size: 20px; } .af-three span { font-size: 18px; }
  .af-qs summary { font-size: 20.5px; } .af-qs details p { font-size: 18px; }
  .af-tab b { font-size: 1.4rem; } .af-tab small { font-size: 17px; }
}


/* ---- questions, third pass: heading and help on the left, a readable list on the right ---- */
.af-faq-sec { background: var(--paper, #f5f7fb); }
.af-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.af-faq-side { position: sticky; top: 110px; display: grid; gap: clamp(28px, 3vw, 44px); }
.af-faq-side .ex-head { margin: 0; }
@media (max-width: 960px) { .af-faq { grid-template-columns: 1fr; } .af-faq-side { position: static; } }
.af-help { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: start; padding: clamp(20px, 2vw, 28px) 0 0; border-top: 1px solid #cfd7ea; }
.af-help-ic { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #e9efff; color: #2a55d8; }
.af-help div { display: grid; gap: 4px; max-width: none; }
.af-help b { font: 650 21px/1.3 var(--font-display); letter-spacing: -.02em; }
.af-help span:not(.af-help-ic) { color: var(--muted); line-height: 1.6; font-size: 16.5px; }
.af-help-cta { grid-column: 2; margin: 12px 0 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.af-qgroups { display: grid; gap: clamp(30px, 3.2vw, 48px); border-top: 0; }
.af-qgroup { display: block; padding: 0; border: 0; }
.af-qgroup h3 { margin: 0 0 6px; padding-bottom: 12px; border-bottom: 2px solid var(--ink, #0f1729); font: 600 12.5px/1 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--ink, #0f1729); }
.af-qs details { border-top: 0; border-bottom: 1px solid #d5dcee; }
.af-qs details:first-child { border-top: 0; }
.af-qs summary { padding: 20px 0; font-size: clamp(17.5px, 1.1vw, 20px); }
.af-qs details p { padding: 0 3.2em 22px 0; font-size: clamp(16.5px, 1vw, 18px); max-width: 40rem; }

/* the four share pictures: same tint, same height, titles lined up */
.afx-blog, .afx-mail { background: #f3f6fc; }
.afx { min-height: 17.5em; }
.afx-blog p, .afx-mail > p { background: #fff; border-radius: .9em; padding: .7em .9em; }
.afx-sub { background: #fff; border-radius: .9em; padding: .7em .9em; border-bottom: 0; }
.af-tile h3 { min-height: 2.5em; display: flex; align-items: flex-end; margin-bottom: 4px; }
@media (max-width: 1100px) { .af-tile h3 { min-height: 0; } }


/* ======================= polish pass at real desktop width (checked at 1920) ======================= */

/* section headings: the heading on the left, its explanation on the right, so a wide screen is used and nothing hangs in a corner */
.af-sec > .wrap > .ex-head, .af-sec .af-calc-wrap > div > .ex-head { max-width: none; }
.af-sec > .wrap > .ex-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 120px); align-items: end; margin-bottom: clamp(30px, 3.6vw, 56px); }
.af-sec > .wrap > .ex-head .fx-kicker { grid-column: 1 / -1; }
.af-sec > .wrap > .ex-head h2 { grid-column: 1; margin: 0; max-width: 16em; }
.af-sec > .wrap > .ex-head .fx-lede { grid-column: 2; margin: 0 0 .3em; max-width: 34rem; }
.af-sec > .wrap > .ex-head:not(:has(.fx-lede)) h2 { grid-column: 1 / -1; max-width: 22em; }
@media (max-width: 960px) { .af-sec > .wrap > .ex-head { display: block; } .af-sec > .wrap > .ex-head .fx-lede { margin-top: 14px; } }

/* hero: bigger voice, a strip of the four numbers, and two little notifications that make the picture feel alive */
.affiliates-page .fx-hero h1 { font-size: clamp(2.6rem, 4.3vw, 5rem); line-height: 1.02; }
.affiliates-page .fx-hero-lede { font-size: clamp(1.1rem, 1.25vw, 1.4rem); max-width: 36em; }
.affiliates-page .fx-hero .wrap { display: flex; flex-direction: column; gap: clamp(36px, 4.4vw, 72px); }
.affiliates-page .fx-hero-vis { position: relative; }
.af-float { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; color: #0f1729; border-radius: 16px; padding: 12px 18px 12px 12px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .65), 0 0 0 1px rgba(15, 23, 41, .08); font-size: 14px; z-index: 2; }
.af-float small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6a7694; }
.af-float b { display: block; font: 700 22px/1.15 var(--font-display); letter-spacing: -.02em; }
.af-float em { font-style: normal; color: #5a6379; font-size: 13px; }
.af-fl-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #2a55d8; color: #fff; flex: none; }
.af-fl-ok { background: #0e8a5a; }
.af-float-sale { top: -22px; right: -18px; }
.af-float-paid { bottom: -26px; left: -34px; }
@media (max-width: 1100px) { .af-float-sale { right: 8px; } .af-float-paid { left: 8px; } }
.af-herostats { list-style: none; margin: 0; padding: clamp(22px, 2.4vw, 34px) 0 0; border-top: 1px solid rgba(150, 175, 255, .22); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.af-herostats li { display: grid; gap: 4px; }
.af-herostats b { color: #fff; font: 700 clamp(1.9rem, 3vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -.04em; }
.af-herostats span { color: #9fb0dd; font-size: clamp(14px, 1vw, 17px); }
@media (max-width: 760px) { .af-herostats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the four share pictures line up: same height, titles on one line, text on one line (subgrid) */
.af-tiles { grid-template-rows: auto auto auto; row-gap: 0; }
.af-tile { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.af-tile .afx { margin: 0; }
.af-tile h3 { min-height: 0; margin: 22px 0 8px; align-items: flex-start; }
@media (max-width: 1100px) { .af-tile { grid-row: auto; grid-template-rows: none; } .af-tiles { grid-template-rows: none; row-gap: 40px; } }

/* the timeline: a real track with the days marked on it */
.af-time { margin-top: clamp(34px, 4vw, 60px); }
.af-time li::before { background: none; border-top: 2px solid #c9d3ea; height: 0; top: 22px; border-image: none; }
.af-time li:nth-child(-n+2)::before { border-top-color: #0f1729; }
.af-time li:nth-child(3)::before { border-top-color: #c98a1b; }
.af-time li:nth-child(4)::before { border-top-color: #0e8a5a; }
.af-tn { width: 46px; height: 46px; box-shadow: 0 0 0 6px var(--paper, #f5f7fb); }
.af-time em { display: inline-block; justify-self: start; padding: 5px 11px; border-radius: 99px; background: #fff; border: 1px solid #d5dcee; color: #2a55d8; letter-spacing: .08em; margin-top: 8px; }
.af-time b { font-size: clamp(1.1rem, 1.3vw, 1.4rem); }
.af-time p { font-size: clamp(15.5px, 1vw, 17.5px); }

/* hero: the strip of figures belongs on the first screen, so the hero's own padding is tighter and the picture sits a little higher */
.affiliates-page .fx-hero { padding-top: clamp(36px, 3.4vw, 64px); padding-bottom: clamp(24px, 2.6vw, 44px); }
.affiliates-page .fx-hero .wrap { gap: clamp(30px, 3.2vw, 56px); }
.af-float-sale { top: -40px; right: -26px; }
.af-float-paid { bottom: -22px; left: -38px; }

/* fixes found at 1920: the "why" heading stays one block in its own column; every heading on a dark band is white; the join copy centres against its form */
.af-sec > .wrap.af-why > .ex-head { display: block; }
.af-sec > .wrap.af-why > .ex-head h2 { max-width: none; }
.af-sec > .wrap.af-why > .ex-head .fx-lede { margin: 14px 0 0; max-width: 28rem; }
.af-dark h2, .af-final h2 { color: #fff; }
.af-join-copy .fx-lede, .af-join-copy p { color: #c9d4f2; }
.af-join-copy h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 16px; }
.af-join { align-items: center; }

/* the closing band is light, so it never sits dark-on-dark against the footer */
.af-final { background: #fff; color: var(--ink, #0f1729); border-top: 1px solid #e3e8f4; }
.af-dark h2 { color: #fff; }
.af-final h2 { color: var(--ink, #0f1729); }
.af-final p { color: var(--muted, #5a6379); }
.af-final .fx-ghost, .af-final .fx-ghost:visited { background: #fff; color: var(--ink, #0f1729) !important; border: 1.5px solid #c3cde6; }
.af-final .fx-ghost:hover { background: #f5f7fb; }
.af-final-facts { border-top-color: #e3e8f4; }
.af-final-facts b { color: var(--ink, #0f1729); }
.af-final-facts span { color: var(--muted, #5a6379); }

/* ======================= the ladder of commission levels (public page, account dashboard, staff page) ======================= */
.afl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--afl-n, 5), minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 22px); align-items: end; }
.afl-n2 { --afl-n: 2; } .afl-n3 { --afl-n: 3; } .afl-n4 { --afl-n: 4; } .afl-n5 { --afl-n: 5; } .afl-n6 { --afl-n: 6; } .afl-n7 { --afl-n: 7; }
.afl-step { display: grid; gap: 14px; align-content: end; }
.afl-bar { border-radius: 16px 16px 6px 6px; display: flex; align-items: flex-start; justify-content: flex-start; padding: clamp(12px, 1.4vw, 20px); font: 700 clamp(1.6rem, 2.8vw, 3rem)/1 var(--font-display); letter-spacing: -.04em; transition: transform .2s; }
.afl-s0 .afl-bar { height: clamp(96px, 9vw, 150px); } .afl-s1 .afl-bar { height: clamp(128px, 12vw, 200px); } .afl-s2 .afl-bar { height: clamp(160px, 15vw, 250px); }
.afl-s3 .afl-bar { height: clamp(192px, 18vw, 300px); } .afl-s4 .afl-bar { height: clamp(224px, 21vw, 350px); } .afl-s5 .afl-bar { height: clamp(256px, 24vw, 400px); } .afl-s6 .afl-bar { height: clamp(288px, 27vw, 450px); }
.afl-info { display: grid; gap: 2px; }
.afl-name { font: 650 clamp(1.05rem, 1.25vw, 1.3rem)/1.2 var(--font-display); letter-spacing: -.02em; }
.afl-need { font-size: clamp(13.5px, .95vw, 16px); }
/* on a dark band */
.afl-dark .afl-bar { background: rgba(120, 150, 255, .14); color: #aebfef; box-shadow: inset 0 0 0 1px rgba(150, 175, 255, .22); }
.afl-dark .afl-name { color: #fff; } .afl-dark .afl-need { color: #8fa2d4; }
.afl-dark .afl-s4 .afl-bar, .afl-dark.afl-n3 .afl-s2 .afl-bar { background: #2a55d8; color: #fff; box-shadow: none; }
.afl-dark .afl-step:last-child .afl-bar { background: #2a55d8; color: #fff; box-shadow: 0 30px 60px -28px rgba(42, 85, 216, .9); }
.afl-dark .afl-step:first-child .afl-bar { background: rgba(255, 255, 255, .1); color: #fff; }
/* on a light page */
.afl-light .afl-bar { background: #e9efff; color: #2a55d8; }
.afl-light .afl-name { color: var(--ink, #0f1729); } .afl-light .afl-need { color: var(--muted, #5a6379); }
.afl-light .afl-done .afl-bar { background: #2a55d8; color: #fff; }
.afl-light .afl-now .afl-bar { background: #2a55d8; color: #fff; box-shadow: 0 0 0 4px rgba(42, 85, 216, .22); }
.afl-light.afl-compact .afl-bar { height: 70px !important; font-size: 1.5rem; }
.af-tierrules { list-style: none; margin: clamp(30px, 3.4vw, 52px) 0 0; padding: clamp(20px, 2.4vw, 32px) 0 0; border-top: 1px solid rgba(150, 175, 255, .22); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 64px); }
.af-tierrules li { display: grid; gap: 4px; }
.af-tierrules b { color: #fff; font: 650 clamp(1.05rem, 1.2vw, 1.25rem)/1.3 var(--font-display); letter-spacing: -.02em; }
.af-tierrules span { color: #9fb0dd; font-size: clamp(15px, 1vw, 17px); line-height: 1.55; }
@media (max-width: 900px) { .af-tierrules { grid-template-columns: 1fr; } .afl { gap: 8px; } .afl-bar { padding: 10px; font-size: 1.25rem; } .afl-name { font-size: 1rem; } }
@media (max-width: 560px) { .afl { grid-template-columns: 1fr; } .afl-step { grid-template-columns: 5.4em 1fr; align-items: center; } .afl-bar { height: 64px !important; } }

/* calculator: pick a level */
.af-lvsel { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid rgba(150, 175, 255, .22); }
.af-lvsel label { cursor: pointer; }
.af-lvsel input { position: absolute; opacity: 0; pointer-events: none; }
.af-lvsel span { display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 14px; border-radius: 99px; border: 1.5px solid rgba(150, 175, 255, .3); color: #cdd8f3; font-size: 14.5px; transition: background .15s, border-color .15s, color .15s; }
.af-lvsel b { color: #fff; }
.af-lvsel input:checked + span { background: #2a55d8; border-color: #2a55d8; color: #fff; }
.af-lvsel input:focus-visible + span { outline: 3px solid rgba(143, 177, 255, .6); outline-offset: 2px; }

/* ======================= choosing the link name: sellhelm.co.uk/<name>, with a live "available / taken" line ======================= */
.af-codebox { display: flex; align-items: stretch; border: 1.5px solid #d5dcee; border-radius: 12px; background: #f7f9fd; overflow: hidden; transition: border-color .15s, box-shadow .15s, background .15s; }
.af-codebox:focus-within { background: #fff; border-color: #2a55d8; box-shadow: 0 0 0 4px rgba(42, 85, 216, .16); }
.af-codepre { display: flex; align-items: center; padding: 0 4px 0 15px; color: #5a6379; font: 500 15px/1 var(--mono, monospace); white-space: nowrap; user-select: none; }
.af-card .af-codebox input[type=text], .af-codebox input[type=text] { flex: 1; min-width: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 13px 15px 13px 2px; font: 600 16px/1.4 var(--mono, monospace); outline: none; color: var(--ink, #0f1729); }
.af-codestat { margin: 8px 0 0; min-height: 1.4em; font-size: 14.5px; font-weight: 600; }
.af-codestat.is-ok { color: #0e8a5a; }
.af-codestat.is-bad { color: #c0392b; }
.af-codebox:has(input[aria-invalid="true"]) { border-color: #e2a39b; }

/* ======================= the staff pages, second design ======================= */
.afs-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.afs-needs { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.afs-need { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.afs-need b { font: 700 1.5rem/1 var(--font-display); }
.afs-need i { font-style: normal; color: #2a55d8; font-weight: 650; margin-left: 8px; }
.afs-need-hot { background: #fff7e8; border-color: #efc27a; }
.afs-need-hot b { color: #a8650a; }
.afs-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1500px) { .afs-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .afs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.afs-kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 5px; align-content: start; box-shadow: var(--shadow-sm); }
.afs-kpi small { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.afs-kpi b { font: 650 clamp(1.5rem, 2vw, 2.1rem)/1.1 var(--font-display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.afs-kpi span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.afs-kpi-hot { background: #fff7e8; border-color: #efc27a; } .afs-kpi-hot b { color: #a8650a; }
.afs-kpi-ok b { color: #0e8a5a; }
.afs-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
@media (max-width: 1200px) { .afs-grid { grid-template-columns: 1fr; } }
.afs-main, .afs-side { display: grid; gap: 18px; min-width: 0; }
.afs-main > .card, .afs-side > .card { margin: 0; }
.afs-chart { width: 100%; height: 160px; display: block; }
.afs-bar-c { fill: #cfdcfb; } .afs-bar-s { fill: #2a55d8; }
.afs-legend { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.afs-dot-c, .afs-dot-s { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.afs-dot-c { background: #cfdcfb; } .afs-dot-s { background: #2a55d8; margin-left: 10px; }
.afs-rank { width: 40px; font: 700 1.1rem/1 var(--font-display); color: var(--muted); }
.afs-chip { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 650; background: #eef0f6; color: #44506b; white-space: nowrap; }
.afs-chip-l1 { background: #f4e3d3; color: #8a4f1c; } .afs-chip-l2 { background: #e6e9ef; color: #4a566f; } .afs-chip-l3 { background: #fbecc4; color: #8a5f00; } .afs-chip-l4, .afs-chip-l5, .afs-chip-l6 { background: #e0e9ff; color: #2a55d8; }
.afs-chip-custom { background: #efe6ff; color: #5b34c4; }
.afs-levels { list-style: none; margin: 0; padding: 0; display: grid; }
.afs-levels li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.afs-levels li:first-child { border-top: 0; }
.afs-lv-r { font: 700 1.5rem/1 var(--font-display); letter-spacing: -.03em; color: #2a55d8; }
.afs-lv-n b { display: block; } .afs-lv-n small { color: var(--muted); }
.afs-lv-c { min-width: 2.2em; text-align: center; padding: 4px 10px; border-radius: 99px; background: #eef2ff; font-weight: 700; }
.afs-feed { list-style: none; margin: 0; padding: 0; display: grid; }
.afs-feed li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.afs-feed li:first-child { border-top: 0; }
.afs-f-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #eef2ff; color: #2a55d8; font-weight: 700; }
.afs-f-sale .afs-f-ic, .afs-f-paid .afs-f-ic { background: #def5ea; color: #0e8a5a; }
.afs-f-request .afs-f-ic { background: #fdecc8; color: #8a5300; }
.afs-feed time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.afs-first { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 3vw, 40px); }
@media (max-width: 960px) { .afs-first { grid-template-columns: 1fr; } }
.afs-first h2 { font: 650 1.7rem/1.2 var(--font-display); letter-spacing: -.02em; margin: 0 0 8px; }
.afs-first p { color: var(--muted); max-width: 40rem; }
.afs-first-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.afs-first-steps b { color: #2a55d8; margin-right: 6px; }
.afs-first-cta { background: #f5f7fb; border-radius: 18px; padding: 22px; display: grid; gap: 12px; }
.afs-first-cta .af-copy input { padding: 13px 14px; }
.afs-all .afs-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.afs-filter input[type=search] { min-width: 14em; }
/* the levels editor in the settings */
.afs-tiers { display: grid; gap: 8px; }
.afs-tier { display: grid; grid-template-columns: 5.5em minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.afs-tier .field { margin: 0; }
.afs-tier-head { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.afs-tier-start { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.afs-tier-n { font: 700 1.2rem/1 var(--font-display); color: #2a55d8; }
.afs-tier-note { margin-top: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.afs-settings .btn-lg { margin-top: 6px; }
@media (max-width: 760px) { .afs-tier { grid-template-columns: 4em 1fr 1fr; } .afs-tier > :nth-child(2) { grid-column: 2 / -1; } .afs-tier-head { display: none; } }

/* the level card's ladder on its dark card (more specific, so the light-page ladder rules never win here) */
.afa-level .afa-ladder .afl { gap: 8px; }
.afa-level .afa-ladder .afl-bar { height: 54px !important; font-size: 1.15rem; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #aebfef; box-shadow: none; }
.afa-level .afa-ladder .afl-done .afl-bar { background: rgba(91, 140, 255, .35); color: #fff; }
.afa-level .afa-ladder .afl-now .afl-bar { background: #2a55d8; color: #fff; box-shadow: 0 0 0 3px rgba(143, 177, 255, .5); }
.afa-level .afa-ladder .afl-name { color: #fff; font-size: .95rem; }
.afa-level .afa-ladder .afl-need { color: #8fa2d4; font-size: 12.5px; }
.afa-quick { margin-top: 16px; background: #f3f6fc; border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.afa-quick p { margin: 0; flex: 1 1 320px; color: #35405b; line-height: 1.5; overflow-wrap: anywhere; }
.afa-quick small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* staff pages: the settings fields sit in a row; the list's filter stays on one line on a wide screen */
.afs-settings .field-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
@media (max-width: 1100px) { .afs-settings .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .afs-settings .field-row { grid-template-columns: 1fr; } }
.afs-all .afs-filter { flex-wrap: nowrap; }
.afs-all .afs-filter > * { width: auto; flex: 0 0 auto; }
.afs-all .afs-filter input[type=search] { width: 16em; }
@media (max-width: 1000px) { .afs-all .afs-filter { flex-wrap: wrap; } }
.afs-settings .check { display: flex; gap: 10px; align-items: flex-start; }

/* ======================= staff pages, third pass: payouts, commissions, one affiliate ======================= */
.afs-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.afs-kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .afs-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .afs-kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .afs-kpis-4, .afs-kpis-5 { grid-template-columns: 1fr; } }
.afs-kpi-link { text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .1s; }
.afs-kpi-link:hover { border-color: #9db3ef; box-shadow: 0 14px 30px -22px rgba(42, 85, 216, .6); }
.afs-kpi-on { border-color: #2a55d8; box-shadow: 0 0 0 3px rgba(42, 85, 216, .16); }
.afs-kpi-wait { background: #fffaf0; border-color: #efd29a; } .afs-kpi-wait b { color: #a8650a; }
.afs-kpi-ok b { color: #0e8a5a; }

/* payouts */
.afp-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1200px) { .afp-grid { grid-template-columns: 1fr; } }
.afp-queue { display: grid; gap: 14px; }
.afp-queue-head h2 { margin: 0 0 4px; font: 650 1.3rem/1.2 var(--font-display); }
.afp-queue-head p { margin: 0; color: var(--muted); }
.afp-req { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: grid; gap: 16px; box-shadow: var(--shadow-sm); }
.afp-req-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.afp-av { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #e9efff; color: #2a55d8; font: 700 1.1rem/1 var(--font-display); flex: none; }
.afp-av-lg { width: 64px; height: 64px; border-radius: 20px; font-size: 1.6rem; }
.afp-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1 1 260px; }
.afp-req-top time { margin-left: auto; font-size: 14px; }
.afp-when { display: none; }
.afp-req-mid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 40px; align-items: center; background: #f5f7fb; border-radius: 14px; padding: 16px 20px; }
@media (max-width: 640px) { .afp-req-mid { grid-template-columns: 1fr; } }
.afp-amount b { display: block; font: 700 clamp(2rem, 3vw, 2.8rem)/1.05 var(--font-display); letter-spacing: -.04em; }
.afp-amount small, .afp-pp small { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.afp-pp > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.afp-pp .mono { font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.afp-items summary { cursor: pointer; color: #2a55d8; font-weight: 600; }
.afp-items ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.afp-items li { display: grid; grid-template-columns: 7em minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.afp-adj { color: #8a5300; }
.afp-act { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.afp-paid { display: flex; gap: 10px; flex-wrap: wrap; flex: 1 1 380px; }
.afp-paid input { flex: 1 1 220px; min-width: 0; }
.afp-decline summary { cursor: pointer; color: var(--muted); font-size: 14.5px; padding: 8px 0; }
.afp-decline form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.afp-decline input { min-width: 16em; }
.afp-empty { background: #fff; border: 1px dashed #c3cde6; border-radius: 18px; padding: 44px 20px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.afp-empty-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #def5ea; color: #0e8a5a; font-size: 1.6rem; font-weight: 700; }
.afp-empty b { font: 650 1.2rem/1.3 var(--font-display); } .afp-empty p { margin: 0; color: var(--muted); max-width: 30em; }
.afp-how { position: sticky; top: 90px; }
.afp-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 16px; }
.afp-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; line-height: 1.55; }
.afp-steps li > b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #2a55d8; color: #fff; font-size: 14px; }
@media (max-width: 1200px) { .afp-how { position: static; } }

/* one affiliate */
.afs-person { align-items: flex-start; }
.afs-person-main { display: flex; gap: 20px; align-items: flex-start; }
.afs-person h1 { margin: 2px 0 4px; }
.afs-person p { margin: 0 0 6px; }
.afs-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.afs-link .mono { font-weight: 600; }
.afs-actions form { margin: 0; }
.afs-lvcard { margin-bottom: 18px; }
.afs-lv-track { height: 12px; border-radius: 99px; background: #e5eaf6; overflow: hidden; margin: 4px 0 18px; }
.afs-lv-track .afa-prog-fill { background: #2a55d8; }
.afs-lv-ladder .afl { gap: 10px; }
.afs-lv-ladder .afl-bar { height: 64px !important; font-size: 1.4rem; padding: 12px 14px; }
.afs-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; margin-bottom: 18px; }
@media (max-width: 1100px) { .afs-two { grid-template-columns: 1fr; } }
.afs-two > .card { margin: 0; }
.afs-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.afs-form-grid-3 { grid-template-columns: 1fr 1fr 1.4fr; }
@media (max-width: 700px) { .afs-form-grid, .afs-form-grid-3 { grid-template-columns: 1fr; } }
.afs-adj { margin-top: 16px; }

/* the opt-in page for a customer who has not joined yet */
.afa-opt { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: stretch; margin-bottom: 18px; }
@media (max-width: 1000px) { .afa-opt { grid-template-columns: 1fr; } }
.afa-opt-pitch { background: #0b1124; color: #cdd8f3; border-radius: 20px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; align-content: start; }
.afa-kicker { margin: 0; font: 600 12.5px/1 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: #8fb1ff; }
.afa-opt-pitch h2 { margin: 0; color: #fff; font: 700 clamp(1.9rem, 3vw, 2.8rem)/1.05 var(--font-display); letter-spacing: -.035em; }
.afa-opt-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.afa-opt-points li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; align-items: baseline; padding-top: 16px; border-top: 1px solid rgba(150, 175, 255, .2); }
.afa-opt-points b { color: #fff; font: 700 1.25rem/1.2 var(--font-display); letter-spacing: -.02em; }
.afa-opt-points span { color: #b4c2e6; line-height: 1.55; }
@media (max-width: 560px) { .afa-opt-points li { grid-template-columns: 1fr; gap: 4px; } }
.afa-opt-ladder .afl-bar { height: 70px !important; font-size: 1.4rem; padding: 12px 14px; }
.afa-opt-ladder .afl { gap: 10px; }
.afa-opt-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow-sm); }
.afa-opt-form h2 { margin: 0; font: 650 1.6rem/1.2 var(--font-display); letter-spacing: -.02em; }
.afa-opt-form .muted { margin: 0; }
.afa-opt-form .check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: #f7f9fd; border: 1.5px solid #d5dcee; border-radius: 12px; font-size: 14.5px; cursor: pointer; }
.afa-opt-form .btn-lg { width: 100%; justify-content: center; padding: 16px 24px; }
.afa-fine-l { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
.afa-opt-earn { margin-bottom: 18px; }
.afa-opt-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 800px) { .afa-opt-steps { grid-template-columns: 1fr; } }
.afa-opt-steps > div { display: flex; gap: 14px; align-items: flex-start; padding: 18px 4px; border-top: 2px solid var(--ink, #0f1729); }
.afa-opt-steps b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #2a55d8; color: #fff; }
.afa-opt-steps strong { display: block; font: 650 1.1rem/1.3 var(--font-display); } .afa-opt-steps span { color: var(--muted); line-height: 1.5; }


/* the dashboard before the first sale: one slim strip, one slim panel, no big empty cards */
.afa-two, .afa-two-b { align-items: start; }
.afa-startstrip { margin-bottom: 18px; }
.afa-startstrip-head { display: flex; justify-content: space-between; align-items: center; gap: 18px 40px; flex-wrap: wrap; margin-bottom: 18px; }
.afa-startstrip h2 { margin: 0 0 4px; font: 650 1.3rem/1.2 var(--font-display); }
.afa-startstrip p { margin: 0; color: var(--muted); }
.afa-startbar { height: 10px; border-radius: 99px; background: #e5eaf6; overflow: hidden; width: min(320px, 100%); }
.afa-startbar .afa-prog-fill { background: #0e8a5a; }
.afa-steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .afa-steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .afa-steps-row { grid-template-columns: 1fr; } }
.afa-slim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 700px) { .afa-slim-grid { grid-template-columns: 1fr; } }
.afa-slim-grid h2 { margin: 12px 0 4px; font: 650 1.15rem/1.25 var(--font-display); }
.afa-slim-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.afa-slim .afa-empty-ic { width: 46px; height: 46px; border-radius: 14px; }
.afa-none { margin: 0; padding: 6px 0 4px; color: var(--muted); }

.page-head .afs-filter { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; }
.page-head .afs-filter > * { width: auto; flex: 0 0 auto; }
.page-head .afs-filter input[type=search] { width: 15em; }
@media (max-width: 560px) { .page-head .afs-filter { flex-wrap: wrap; } .page-head .afs-filter input[type=search] { width: 100%; } }

/* phones and small tablets: the hero is one column (the wide-screen two-column rule must not squeeze the words) */
@media (max-width: 960px) {
  .affiliates-page .fx-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .affiliates-page .fx-hero-copy { max-width: none; }
  .affiliates-page .fx-pill { flex-wrap: wrap; }
}


/* the two cards in the "nothing yet" row are the same height and use the same card header as every other card */
.afa-two-b { align-items: stretch; }
.afa-slim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.afa-slim-grid > div { display: flex; gap: 14px; align-items: flex-start; }
.afa-slim-grid b { display: block; font: 650 1rem/1.3 var(--font-display); margin-bottom: 2px; }
.afa-slim-grid p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14.5px; }
.afa-slim .afa-empty-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; }
.afa-slim .afa-empty-ic svg { width: 22px; height: 22px; }

/* section headings: the heading and its paragraph together on the left, as on the rest of the site (the paragraph is not set off to the right) */
.af-sec > .wrap > .ex-head { display: block; max-width: 52rem; margin-bottom: clamp(26px, 3vw, 44px); }
.af-sec > .wrap > .ex-head h2 { max-width: none; margin: 0 0 14px; }
.af-sec > .wrap > .ex-head .fx-lede { margin: 0; max-width: 40rem; }
.af-sec > .wrap > .ex-head:not(:has(.fx-lede)) h2 { margin-bottom: 0; }


/* ======================= the closing section ======================= */
.af-final { background: #fff; color: var(--ink, #0f1729); padding: clamp(64px, 7vw, 112px) 0; border-top: 1px solid #e3e8f4; }
.af-final-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
@media (max-width: 960px) { .af-final-grid { grid-template-columns: 1fr; } }
.af-final-copy h2 { font-size: clamp(2.1rem, 3.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; margin: 10px 0 18px; color: var(--ink, #0f1729); max-width: 14em; }
.af-final-lede { margin: 0 0 26px; color: var(--muted, #5a6379); font-size: clamp(1.05rem, 1.25vw, 1.3rem); line-height: 1.6; max-width: 34rem; }
.af-final-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 26px; }
.af-final-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.af-final-ticks li { display: flex; align-items: center; gap: 9px; color: var(--ink, #0f1729); font-weight: 600; }
.af-final-ticks svg { color: #0e8a5a; }
.af-final-vis { position: relative; background: #0b1124; border-radius: 28px; padding: clamp(28px, 3.4vw, 52px); display: grid; gap: 22px; align-content: center; min-height: clamp(300px, 26vw, 420px); overflow: visible; }
.af-flink small { display: block; color: #8fb1ff; font: 600 12px/1 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.af-flink-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; color: #0f1729; border-radius: 14px; padding: 12px 12px 12px 20px; font: 500 clamp(15px, 1.3vw, 19px)/1.2 var(--mono, monospace); }
.af-flink-box b { color: #2a55d8; }
.af-flink-box i { font-style: normal; font-family: var(--font); font-weight: 650; font-size: .85em; background: #2a55d8; color: #fff; padding: 10px 16px; border-radius: 10px; white-space: nowrap; }
.af-flink-places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.af-flink-places span { border: 1px solid rgba(150, 175, 255, .35); color: #cdd8f3; border-radius: 99px; padding: 6px 14px; font-size: 14px; }
.af-flink-rate { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid rgba(150, 175, 255, .22); padding-top: 20px; }
.af-flink-rate b { color: #fff; font: 700 clamp(2.4rem, 4vw, 4rem)/1 var(--font-display); letter-spacing: -.05em; }
.af-flink-rate span { color: #9fb0dd; font-size: clamp(15px, 1.1vw, 18px); }
.af-final-toast { top: auto; right: clamp(-18px, -1vw, -8px); bottom: -22px; }
@media (max-width: 960px) { .af-final-toast { right: 8px; } }
.af-final .af-final-lede { margin: 0 0 30px; }
.af-final .af-final-cta { margin: 0 0 30px; }
.af-final .af-final-ticks { margin: 0; }

/* free accounts (staff) */
.afx-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
@media (max-width: 1200px) { .afx-grid { grid-template-columns: 1fr; } }
.afx-form { position: sticky; top: 90px; }
@media (max-width: 1200px) { .afx-form { position: static; } }
.afx-form .btn-lg { width: 100%; justify-content: center; margin-top: 6px; }
.afx-fine { margin: 12px 0 0; font-size: 13.5px; }
.afx-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; padding: 12px 14px; background: #f5f7fb; border-radius: 12px; }
.afx-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
@media (max-width: 900px) { .afx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.afx-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.afx-facts dd { margin: 0; line-height: 1.5; font-size: 14.5px; }
.afx-note { margin: 0; padding: 10px 14px; background: #f5f7fb; border-radius: 10px; color: #44506b; font-size: 14.5px; }
.afx-note-off { background: #fdecea; color: #8a2c20; }
.afx-off { opacity: .8; }
.afx-act { align-items: center; justify-content: flex-start; }
.afx-act form { margin: 0; }
.afx-take summary { cursor: pointer; color: #c0392b; font-size: 14.5px; padding: 6px 0; }
.afx-danger { background: #c0392b !important; color: #fff !important; border-color: #c0392b !important; }


/* the sales rule for free accounts */
.afx-rule { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; margin-bottom: 18px; }
@media (max-width: 1100px) { .afx-rule { grid-template-columns: 1fr; } }
.afx-rule h2 { margin: 0 0 6px; font: 650 1.3rem/1.2 var(--font-display); }
.afx-rule p { margin: 0; color: var(--muted); line-height: 1.6; }
.afx-rule-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.afx-rule-form .btn { grid-column: 1 / -1; justify-self: start; }
.afx-rule-form .field { margin: 0; }
@media (max-width: 560px) { .afx-rule-form { grid-template-columns: 1fr; } }
.afx-rule-line { display: grid; gap: 8px; margin: 0; }
.afx-rule-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14.5px; }
.afx-rule-bar { height: 10px; border-radius: 99px; background: #e5eaf6; overflow: hidden; }
.afx-rule-bar .afa-prog-fill { display: block; height: 100%; border-radius: 99px; background: #e0a02e; }
.afx-rule-ok .afa-prog-fill { background: #0e8a5a; } .afx-rule-low .afa-prog-fill { background: #c0392b; } .afx-rule-grace .afa-prog-fill { background: #8fb1ff; }
.afx-rule-off { color: var(--muted); font-size: 14.5px; }
.afx-terms form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.afx-terms input[type=text] { width: 9em; }
.afx-waive { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }

/* the free account's own notice in the affiliate dashboard */
.afa-rule { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; background: #fff7e8; border: 1px solid #efc27a; border-radius: 18px; padding: clamp(18px, 2.4vw, 28px) clamp(20px, 2.6vw, 34px); margin-bottom: 18px; }
.afa-rule-ok { background: #effaf4; border-color: #9fd9bf; }
@media (max-width: 900px) { .afa-rule { grid-template-columns: 1fr; } }
.afa-rule small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a5300; margin-bottom: 4px; }
.afa-rule-ok small { color: #0b6b46; }
.afa-rule h2 { margin: 0 0 6px; font: 650 1.4rem/1.2 var(--font-display); letter-spacing: -.02em; }
.afa-rule p { margin: 0; color: #5a4a2a; line-height: 1.55; }
.afa-rule-ok p { color: #245a40; }
.afa-rule-meter { display: grid; gap: 8px; }
.afa-rule-meter b { font: 700 clamp(2.2rem, 3.4vw, 3.2rem)/1 var(--font-display); letter-spacing: -.04em; }
.afa-rule-meter b i { font-style: normal; font-size: .45em; color: var(--muted); letter-spacing: 0; }
.afa-rule-meter span { color: var(--muted); font-size: 14px; }
.afa-rule .afa-prog { background: rgba(15, 23, 41, .1); }
.afa-rule .afa-prog-fill { background: #e0a02e; } .afa-rule-ok .afa-prog-fill { background: #0e8a5a; }
