:root {
    --aff-bg: #f6f7fb;
    --aff-surface: #ffffff;
    --aff-surface-2: #f0f1f5;
    --aff-border: #e2e4ed;
    --aff-text: #1a1d27;
    --aff-text-2: #5a5f7a;
    --aff-text-3: #9499b8;
    --aff-accent: #5e6ad2;
    --aff-accent-light: #eef0fc;
    --aff-accent-hover: #4a55c0;
    --aff-green: #22c55e;
    --aff-green-light: #dcfce7;
    --aff-amber: #f59e0b;
    --aff-amber-light: #fef3c7;
    --aff-blue: #3b82f6;
    --aff-blue-light: #dbeafe;
    --aff-violet: #8b5cf6;
    --aff-violet-light: #ede9fe;
    --aff-red: #ef4444;
    --aff-red-light: #fee2e2;
    --aff-radius: 12px;
    --aff-radius-sm: 8px;
    --aff-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --aff-shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
}

[data-theme="dark"] {
    --aff-bg: #13141f;
    --aff-surface: #1c1e2e;
    --aff-surface-2: #242638;
    --aff-border: #2c2f47;
    --aff-text: #e8eaf8;
    --aff-text-2: #9499c8;
    --aff-text-3: #5a5f8a;
    --aff-accent: #7b87e8;
    --aff-accent-light: #2a2d4e;
    --aff-accent-hover: #9198ef;
    --aff-green: #4ade80;
    --aff-green-light: #14532d22;
    --aff-amber: #fbbf24;
    --aff-amber-light: #78350f22;
    --aff-blue: #60a5fa;
    --aff-blue-light: #1e3a5f22;
    --aff-violet: #a78bfa;
    --aff-violet-light: #3b1f7222;
    --aff-red: #f87171;
    --aff-red-light: #7f1d1d22;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.aff-page {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--aff-bg);
    color: var(--aff-text);
    line-height: 1.5;
    min-height: 100dvh;
}

.aff-shell { display: flex; flex-direction: column; min-height: 100dvh; }

.aff-topbar {
    background: var(--aff-surface);
    border-bottom: 1px solid var(--aff-border);
}

.aff-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    height: 56px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.aff-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--aff-text);
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
}
.aff-brand__logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.aff-brand__name { letter-spacing: -.01em; }

.aff-nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 20px;
    flex: 1;
}

.aff-nav__link {
    padding: 6px 12px;
    border-radius: 7px;
    color: var(--aff-text-2);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: color .15s, background .15s;
}
.aff-nav__link:hover { color: var(--aff-text); background: var(--aff-surface-2); }
.aff-nav__link--active { color: var(--aff-accent); background: var(--aff-accent-light); }

.aff-nav__actions { margin-left: auto; display: flex; gap: 8px; }

.aff-hero {
    padding: 32px 24px 28px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}
.aff-hero__eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--aff-accent);
    margin-bottom: 6px;
}
.aff-hero__title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--aff-text);
    margin-bottom: 8px;
}
.aff-hero__sub {
    font-size: 14.5px;
    color: var(--aff-text-2);
    max-width: 560px;
}

.aff-main { flex: 1; padding: 32px 24px 64px; }
.aff-container { max-width: 1100px; margin: 0 auto; }

.aff-auth-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    gap: 16px;
}
.aff-auth-gate__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--aff-accent-light);
    color: var(--aff-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.aff-auth-gate h2 { font-size: 20px; font-weight: 700; }
.aff-auth-gate p { color: var(--aff-text-2); max-width: 400px; font-size: 14.5px; }

.aff-section-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--aff-text);
    margin-bottom: 16px;
}
.aff-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.aff-section-header .aff-section-title { margin-bottom: 0; }

.aff-link-section { margin-bottom: 32px; }
.aff-link-card {
    background: var(--aff-surface);
    border: 1px solid var(--aff-border);
    border-radius: var(--aff-radius);
    padding: 28px;
    box-shadow: var(--aff-shadow);
}
.aff-link-card--active {
    border-color: var(--aff-accent);
    box-shadow: 0 0 0 1px var(--aff-accent), var(--aff-shadow);
}
.aff-link-card__copy h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.aff-link-card__copy p { color: var(--aff-text-2); font-size: 14.5px; margin-bottom: 20px; }

.aff-link-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.aff-link-top__left { display: flex; align-items: center; gap: 8px; }
.aff-link-top__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.aff-code-label { font-size: 12px; color: var(--aff-text-3); }
.aff-code-chip {
    font-family: ui-monospace, monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--aff-accent);
    background: var(--aff-accent-light);
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: .04em;
}

.aff-url-type {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--aff-surface-2);
    border: 1px solid var(--aff-border);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 12px;
}
.aff-url-type__btn {
    padding: 5px 14px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--aff-text-2);
    font-size: 12.5px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.aff-url-type__btn--active {
    background: var(--aff-surface);
    color: var(--aff-text);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.aff-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}
.aff-badge::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.aff-badge--green { background: var(--aff-green-light); color: var(--aff-green); }
.aff-badge--green::before { background: var(--aff-green); }
.aff-badge--amber { background: var(--aff-amber-light); color: var(--aff-amber); }
.aff-badge--amber::before { background: var(--aff-amber); }
.aff-badge--blue { background: var(--aff-blue-light); color: var(--aff-blue); }
.aff-badge--blue::before { background: var(--aff-blue); }
.aff-badge--violet { background: var(--aff-violet-light); color: var(--aff-violet); }
.aff-badge--violet::before { background: var(--aff-violet); }

.aff-commission-badge {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--aff-accent);
    background: var(--aff-accent-light);
    padding: 3px 10px;
    border-radius: 20px;
}

.aff-link-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.aff-link-input {
    flex: 1;
    padding: 9px 13px;
    border-radius: var(--aff-radius-sm);
    border: 1px solid var(--aff-border);
    background: var(--aff-surface-2);
    color: var(--aff-text-2);
    font-size: 13.5px;
    font-family: ui-monospace, monospace;
    outline: none;
    cursor: default;
    min-width: 0;
}

.aff-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.aff-share-label { font-size: 12px; color: var(--aff-text-3); }
.aff-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid var(--aff-border);
    color: var(--aff-text-2);
    text-decoration: none;
    transition: all .15s;
}
.aff-share-btn:hover { border-color: var(--aff-accent); color: var(--aff-accent); background: var(--aff-accent-light); }

.aff-how { margin-bottom: 32px; }
.aff-steps {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.aff-step {
    background: var(--aff-surface);
    border: 1px solid var(--aff-border);
    border-radius: var(--aff-radius);
    padding: 20px;
    flex: 1;
    min-width: 180px;
    box-shadow: var(--aff-shadow);
}
.aff-step__num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--aff-accent);
    margin-bottom: 10px;
}
.aff-step__body h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.aff-step__body p { font-size: 13px; color: var(--aff-text-2); line-height: 1.5; }
.aff-step-arrow {
    font-size: 20px;
    color: var(--aff-text-3);
    flex-shrink: 0;
    margin-top: 32px;
    user-select: none;
}

.aff-stats-section { margin-bottom: 32px; }
.aff-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.aff-kpi {
    background: var(--aff-surface);
    border: 1px solid var(--aff-border);
    border-radius: var(--aff-radius);
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--aff-shadow);
}
.aff-kpi--wide { grid-column: span 4; }
.aff-kpi__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.aff-kpi__icon--blue { background: var(--aff-blue-light); color: var(--aff-blue); }
.aff-kpi__icon--violet { background: var(--aff-violet-light); color: var(--aff-violet); }
.aff-kpi__icon--green { background: var(--aff-green-light); color: var(--aff-green); }
.aff-kpi__icon--amber { background: var(--aff-amber-light); color: var(--aff-amber); }
.aff-kpi__icon--indigo { background: var(--aff-accent-light); color: var(--aff-accent); }
.aff-kpi__body { display: flex; flex-direction: column; gap: 3px; }
.aff-kpi__label { font-size: 12px; color: var(--aff-text-2); font-weight: 500; }
.aff-kpi__value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--aff-text);
    line-height: 1.1;
}
.aff-kpi__value--big { font-size: 32px; }

.aff-bottom-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
}

.aff-wallet {
    background: var(--aff-surface);
    border: 1px solid var(--aff-border);
    border-radius: var(--aff-radius);
    padding: 24px;
    box-shadow: var(--aff-shadow);
}
.aff-wallet__balance { text-align: center; padding: 20px 0; border-bottom: 1px solid var(--aff-border); margin-bottom: 16px; }
.aff-wallet__label { display: block; font-size: 12px; color: var(--aff-text-3); margin-bottom: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.aff-wallet__amount { font-size: 36px; font-weight: 800; color: var(--aff-text); letter-spacing: -.03em; }
.aff-wallet__meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.aff-wallet__row { display: flex; align-items: center; justify-content: space-between; }
.aff-wallet__meta-label { font-size: 13px; color: var(--aff-text-2); }
.aff-wallet__meta-val { font-size: 13px; font-weight: 600; color: var(--aff-text); }
.aff-wallet__actions { display: flex; flex-direction: column; gap: 8px; }

.aff-leads-preview { }
.aff-leads-table-wrap { overflow-x: auto; border-radius: var(--aff-radius); border: 1px solid var(--aff-border); background: var(--aff-surface); box-shadow: var(--aff-shadow); }
.aff-leads-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.aff-leads-table th {
    text-align: left;
    padding: 11px 14px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--aff-text-3);
    border-bottom: 1px solid var(--aff-border);
    background: var(--aff-surface-2);
}
.aff-leads-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--aff-border);
    color: var(--aff-text-2);
    vertical-align: middle;
}
.aff-leads-table tr:last-child td { border-bottom: none; }
.aff-leads-table tr:hover td { background: var(--aff-surface-2); }
.aff-leads-table__empty { text-align: center; padding: 32px !important; color: var(--aff-text-3); }

.aff-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.aff-status-badge--click { background: var(--aff-surface-2); color: var(--aff-text-3); }
.aff-status-badge--signup { background: var(--aff-blue-light); color: var(--aff-blue); }
.aff-status-badge--converted { background: var(--aff-green-light); color: var(--aff-green); }

.aff-text-link {
    font-size: 13px;
    color: var(--aff-accent);
    text-decoration: none;
    font-weight: 500;
}
.aff-text-link:hover { text-decoration: underline; }

.aff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--aff-radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all .15s;
    text-decoration: none;
    white-space: nowrap;
}
.aff-btn--primary { background: var(--aff-accent); color: #fff; }
.aff-btn--primary:hover { background: var(--aff-accent-hover); }
.aff-btn--primary:disabled { opacity: .6; cursor: not-allowed; }
.aff-btn--outline {
    background: transparent;
    color: var(--aff-text);
    border: 1px solid var(--aff-border);
}
.aff-btn--outline:hover { border-color: var(--aff-accent); color: var(--aff-accent); background: var(--aff-accent-light); }
.aff-btn--ghost {
    background: transparent;
    color: var(--aff-text-2);
    border: 1px solid var(--aff-border);
}
.aff-btn--ghost:hover { color: var(--aff-red); border-color: var(--aff-red); background: var(--aff-red-light); }
.aff-btn--lg { padding: 11px 22px; font-size: 14.5px; }
.aff-btn--copy {
    background: var(--aff-accent-light);
    color: var(--aff-accent);
    border: 1px solid transparent;
    padding: 9px 16px;
    flex-shrink: 0;
}
.aff-btn--copy:hover { background: var(--aff-accent); color: #fff; }
.aff-btn--copy.copied { background: var(--aff-green-light); color: var(--aff-green); }

.aff-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.aff-modal {
    background: var(--aff-surface);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: var(--aff-shadow-md);
    border: 1px solid var(--aff-border);
}
.aff-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid var(--aff-border);
    background: transparent;
    cursor: pointer;
    color: var(--aff-text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.aff-modal__close:hover { background: var(--aff-surface-2); color: var(--aff-text); }
.aff-modal__title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.aff-modal__sub { font-size: 13.5px; color: var(--aff-text-2); margin-bottom: 20px; }
.aff-modal__field { margin-bottom: 16px; }
.aff-modal__avail { font-size: 12px; color: var(--aff-text-3); margin-top: 6px; }
.aff-modal__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.aff-modal__error {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--aff-red-light);
    color: var(--aff-red);
    border-radius: var(--aff-radius-sm);
    font-size: 13px;
}

.aff-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--aff-text-2); margin-bottom: 6px; }
.aff-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--aff-border);
    border-radius: var(--aff-radius-sm);
    background: var(--aff-surface-2);
    color: var(--aff-text);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
}
.aff-input:focus { border-color: var(--aff-accent); }
.aff-input--select { appearance: none; cursor: pointer; }
.aff-input--textarea { resize: vertical; line-height: 1.5; }
.aff-amount-row { display: flex; align-items: center; gap: 10px; }
.aff-amount-row .aff-input { flex: 1; }
.aff-amount-preview { font-size: 13px; color: var(--aff-text-2); white-space: nowrap; flex-shrink: 0; }
.aff-amount-preview strong { color: var(--aff-accent); }

.aff-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--aff-text);
    color: var(--aff-bg);
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 500;
    z-index: 2000;
    box-shadow: var(--aff-shadow-md);
    pointer-events: none;
    animation: toastIn .2s ease;
}
@keyframes toastIn { from { opacity:0; transform: translateX(-50%) translateY(8px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }

/* ── 900px tablet ── */
@media (max-width: 900px) {
    .aff-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .aff-kpi--wide { grid-column: span 2; }
    .aff-bottom-grid { grid-template-columns: 1fr; }
}

/* ── 640px mobile ── */
@media (max-width: 640px) {

    /* nav */
    .aff-nav {
        padding: 0 16px;
        height: 52px;
    }
    .aff-nav__links { display: none; }
    .aff-nav__actions { margin-left: auto; }
    .aff-nav__actions .aff-btn {
        font-size: 12.5px;
        padding: 6px 13px;
        height: 34px;
        border-radius: 8px;
    }

    /* hero */
    .aff-hero {
        padding: 18px 16px 16px;
    }
    .aff-hero__title { font-size: 20px; }
    .aff-hero__sub { font-size: 13.5px; }

    /* main */
    .aff-main { padding: 18px 16px 56px; }

    /* link card */
    .aff-link-card {
        padding: 20px 16px;
    }
    .aff-link-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
    }
    .aff-link-top__left {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    .aff-link-top__right {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: 0;
    }

    /* url type toggle */
    .aff-url-type {
        width: 100%;
        margin-bottom: 10px;
    }
    .aff-url-type__btn {
        flex: 1;
        text-align: center;
        padding: 7px 10px;
        font-size: 13px;
    }

    /* link input + copy */
    .aff-link-row {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 14px;
    }
    .aff-link-input {
        width: 100%;
        font-size: 12.5px;
        padding: 10px 12px;
    }
    .aff-btn--copy {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }

    /* share row */
    .aff-share-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .aff-share-btn {
        width: 34px;
        height: 34px;
    }

    /* how it works steps */
    .aff-steps { flex-direction: column; gap: 10px; }
    .aff-step { min-width: 0; padding: 16px; }
    .aff-step-arrow { display: none; }

    /* kpi grid */
    .aff-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .aff-kpi { padding: 14px; gap: 10px; }
    .aff-kpi__icon { width: 34px; height: 34px; border-radius: 8px; }
    .aff-kpi__value { font-size: 20px; }
    .aff-kpi__value--big { font-size: 26px; }
    .aff-kpi--wide { grid-column: span 2; }

    /* bottom grid — single column, wallet first */
    .aff-bottom-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* wallet */
    .aff-wallet {
        padding: 20px 16px;
        width: 100%;
    }
    .aff-wallet__amount { font-size: 30px; }
    .aff-wallet__actions {
        flex-direction: row;
        gap: 8px;
    }
    .aff-wallet__actions .aff-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 13px;
    }

    /* recent leads — card layout on mobile */
    .aff-leads-table-wrap {
        border-radius: var(--aff-radius);
        overflow: visible;
        border: none;
        background: transparent;
        box-shadow: none;
    }
    .aff-leads-table,
    .aff-leads-table tbody,
    .aff-leads-table thead,
    .aff-leads-table tr,
    .aff-leads-table td,
    .aff-leads-table th {
        display: block;
    }
    .aff-leads-table thead { display: none; }
    .aff-leads-table tbody tr {
        background: var(--aff-surface);
        border: 1px solid var(--aff-border);
        border-radius: var(--aff-radius);
        padding: 14px 14px 10px;
        margin-bottom: 10px;
        box-shadow: var(--aff-shadow);
        position: relative;
    }
    .aff-leads-table tbody tr:last-child { margin-bottom: 0; }
    .aff-leads-table td {
        padding: 0;
        border: none;
        font-size: 13px;
        line-height: 1.4;
    }
    .aff-leads-table td:first-child {
        margin-bottom: 8px;
    }
    .aff-leads-table td:nth-child(2) {
        color: var(--aff-text);
        font-weight: 500;
        font-size: 13.5px;
        margin-bottom: 2px;
    }
    .aff-leads-table td:nth-child(3),
    .aff-leads-table td:nth-child(4) {
        font-size: 12px;
        color: var(--aff-text-3);
        display: inline;
    }
    .aff-leads-table td:nth-child(3)::after { content: ' · '; color: var(--aff-text-3); }
    .aff-leads-table td:nth-child(5) {
        display: block;
        margin-top: 6px;
        font-size: 11.5px;
        color: var(--aff-text-3);
    }
    .aff-leads-table tr[data-aff-leads-empty] {
        border: 1px dashed var(--aff-border);
    }
    .aff-leads-table__empty {
        text-align: center;
        padding: 20px !important;
    }

    /* modal */
    .aff-modal {
        padding: 24px 18px;
    }
    .aff-modal__actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    .aff-modal__actions .aff-btn {
        width: 100%;
        justify-content: center;
    }

    /* section margin */
    .aff-link-section { margin-bottom: 24px; }
    .aff-how { margin-bottom: 24px; }
    .aff-stats-section { margin-bottom: 24px; }
}
