/* ─── affiliate.css ──────────────────────────────────────────────────────
   Page-specific styles for /affiliate. Stats bar, three-tier cards,
   earnings calculator, perks grid. Sits on site.css for tokens,
   buttons, faq and final-cta.
   ─────────────────────────────────────────────────────────────────────── */

/* STATS bar ----------------------------------------------------------- */
.af-stats {
    max-width: 1080px;
    margin: 64px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.af-stat {
    padding: 24px 22px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 255, 255, .03), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.af-stat-ico {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(108, 99, 255, .12);
    border: 1px solid rgba(108, 99, 255, .22);
    color: var(--accent-2);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.af-stat-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.af-stat-value { font-size: 24px; font-weight: 800; color: var(--head); letter-spacing: -.6px; line-height: 1.1; }
.af-stat-label { font-size: 13px; color: var(--accent-2); margin-top: 4px; font-weight: 600; letter-spacing: .04em; }
.af-stat-sub { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* SECTION primitives -------------------------------------------------- */
.af-section { max-width: 1180px; margin: 96px auto 0; padding: 0 24px; }
.af-section-head { text-align: center; margin-bottom: 48px; }
.af-section-head .sec-label { margin-bottom: 14px; }
.af-section-head h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; letter-spacing: -1.1px; color: var(--head); margin-bottom: 14px; line-height: 1.12; }
.af-section-head p { font-size: 16px; color: var(--muted); max-width: 620px; margin: 0 auto; line-height: 1.6; }

/* STEPS (3 numbered cards) ------------------------------------------- */
.af-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.af-step {
    padding: 28px 24px 28px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 255, 255, .03), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: border-color .25s, transform .25s;
}
.af-step:hover { border-color: rgba(166, 128, 255, .32); transform: translateY(-3px); }
.af-step-num {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(166, 128, 255, .2), rgba(108, 99, 255, .2));
    border: 1px solid rgba(166, 128, 255, .4);
    color: var(--accent-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700;
    margin-bottom: 16px;
}
.af-step h3 { font-size: 18px; font-weight: 700; color: var(--head); margin-bottom: 8px; letter-spacing: -.3px; }
.af-step p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* TIER CARDS (3 cards) ------------------------------------------------ */
.af-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.af-tier {
    position: relative;
    padding: 32px 28px;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 255, 255, .03), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    display: flex;
    flex-direction: column;
    transition: border-color .25s, transform .25s;
}
.af-tier:hover { border-color: rgba(166, 128, 255, .32); transform: translateY(-3px); }
.af-tier--elite {
    border-color: rgba(166, 128, 255, .32);
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(166, 128, 255, .06), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
}
.af-tier--elite:hover { border-color: rgba(166, 128, 255, .55); }
.af-tier-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #a89fff, #6c63ff);
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .1em;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(108, 99, 255, .35);
}
.af-tier-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.af-tier-label-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.af-tier-name { font-size: 24px; font-weight: 800; color: var(--head); letter-spacing: -.5px; line-height: 1.05; }
.af-tier-req { font-size: 13px; color: var(--muted); margin-top: 4px; }
.af-tier-rate-row { margin-top: 22px; }
.af-tier-rate { font-size: 52px; font-weight: 800; color: var(--head); letter-spacing: -.04em; line-height: 1; }
.af-tier-rate-sub { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.af-tier-renewal {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted-2);
}
.af-tier-renewal--earn {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(52, 211, 153, .12);
    border: 1px solid rgba(52, 211, 153, .28);
    border-radius: 100px;
    color: var(--green-2);
    font-weight: 600;
}
.af-tier-divider { height: 1px; background: rgba(255, 255, 255, .07); margin: 22px 0; }
.af-tier-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.af-tier-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: var(--text); line-height: 1.5;
}
.af-tier-list li svg { flex-shrink: 0; margin-top: 2px; width: 15px; height: 15px; stroke: var(--accent-2); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.af-tier-example {
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .05);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}
.af-tier-example strong { color: var(--head); font-weight: 600; }

/* CALCULATOR --------------------------------------------------------- */
.af-calc-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 32px;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(166, 128, 255, .06), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border: 1px solid rgba(166, 128, 255, .25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.af-calc-title { font-size: 18px; font-weight: 700; color: var(--head); margin-bottom: 4px; }
.af-calc-sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.af-calc-row { margin-bottom: 18px; }
.af-calc-row-label {
    display: flex; justify-content: space-between;
    margin-bottom: 8px;
}
.af-calc-row-name { font-size: 13px; color: var(--muted); letter-spacing: .03em; }
.af-calc-row-val { font-size: 13px; color: var(--head); font-weight: 600; }
.af-plan-toggle {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    padding: 4px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 100px;
}
.af-plan-btn {
    background: none; border: none; cursor: pointer; font-family: inherit;
    padding: 8px 12px; font-size: 13px; color: var(--muted); border-radius: 100px;
    transition: color .2s, background .2s; font-weight: 500;
}
.af-plan-btn:hover { color: var(--text); }
.af-plan-btn.active { color: var(--head); background: rgba(255, 255, 255, .08); font-weight: 600; }
.af-slider {
    width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--accent-2) 0%, rgba(255,255,255,.1) 0%);
    border-radius: 100px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.af-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a89fff, #6c63ff);
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(108, 99, 255, .4);
}
.af-slider::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a89fff, #6c63ff);
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(108, 99, 255, .4);
}
.af-calc-tier {
    margin: 24px 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(166, 128, 255, .08);
    border: 1px solid rgba(166, 128, 255, .25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
}
.af-calc-tier-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.af-calc-tier-name { font-weight: 700; color: var(--head); }
.af-calc-result {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}
.af-calc-cell {
    padding: 16px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .05);
    text-align: center;
}
.af-calc-cell-val { font-size: 22px; font-weight: 800; color: var(--head); letter-spacing: -.4px; }
.af-calc-cell-val.accent { color: var(--accent-2); }
.af-calc-cell-lbl { font-size: 11.5px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.af-calc-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .05); }

/* PERKS grid --------------------------------------------------------- */
.af-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.af-perk {
    padding: 26px 24px 24px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 255, 255, .03), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: border-color .25s, transform .25s;
}
.af-perk:hover { border-color: rgba(166, 128, 255, .32); transform: translateY(-3px); }
.af-perk-ico {
    width: 42px; height: 42px;
    border-radius: 11px;
    background: rgba(108, 99, 255, .12);
    border: 1px solid rgba(108, 99, 255, .25);
    color: var(--accent-2);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.af-perk-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.af-perk h3 { font-size: 17px; font-weight: 700; color: var(--head); margin-bottom: 8px; letter-spacing: -.2px; }
.af-perk p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* RESPONSIVE --------------------------------------------------------- */
@media (max-width: 900px) {
    .af-steps { grid-template-columns: 1fr; }
    .af-tiers { grid-template-columns: 1fr; }
    .af-perks { grid-template-columns: repeat(2, 1fr); }
    .af-calc-result { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .af-stats { grid-template-columns: 1fr; }
    .af-perks { grid-template-columns: 1fr; }
    .af-calc-wrap { padding: 22px 18px; }
}
