.affiliate-page {
    --aff-bg: #f7f3ed;
    --aff-card: #fffdfa;
    --aff-ink: #20252a;
    --aff-soft: #697177;
    --aff-line: #e7e0d7;
    --aff-brand: #ec7d15;
    --aff-brand-dark: #c95b0a;
    --aff-plum: #2b2428;
    color: var(--aff-ink);
    background: var(--aff-bg);
    margin: 0 !important;
    overflow: hidden;
}

.affiliate-page * { box-sizing: border-box; }
.aff-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.aff-kicker {
    margin: 0;
    color: var(--aff-brand-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.aff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.aff-btn:hover { transform: translateY(-2px); }
.aff-btn-primary {
    background: var(--aff-brand);
    color: #fff;
    box-shadow: 0 12px 24px -14px rgba(201, 91, 10, .9);
}
.aff-btn-primary:hover { background: var(--aff-brand-dark); color: #fff; }
.aff-btn-ghost {
    border: 1px solid var(--aff-line);
    background: rgba(255, 255, 255, .55);
    color: var(--aff-ink);
}
.aff-btn-ghost:hover { background: #fff; color: var(--aff-ink); }
.aff-btn-light {
    background: #fff;
    color: var(--aff-brand-dark);
    box-shadow: 0 15px 30px -18px rgba(38, 28, 20, .75);
}
.aff-btn-light:hover { color: var(--aff-brand-dark); }

.aff-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 36px;
    background: linear-gradient(160deg, #fffdf9 0%, #f8f1e8 72%, #f3eadc 100%);
}
.aff-hero::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    right: -160px;
    top: -240px;
    border-radius: 50%;
    background: rgba(236, 125, 21, .12);
}
.aff-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    gap: 48px;
    align-items: center;
}
.aff-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid rgba(236, 125, 21, .2);
    border-radius: 999px;
    background: #fff2df;
    color: var(--aff-brand-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.aff-eyebrow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--aff-brand);
    box-shadow: 0 0 0 4px rgba(236, 125, 21, .14);
}
.aff-hero h1 {
    margin: 20px 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: .98;
}
.aff-hero h1 em { color: var(--aff-brand); font-style: normal; }
.aff-hero-lead {
    max-width: 520px;
    margin: 20px 0 0;
    color: var(--aff-soft);
    font-size: 17px;
    line-height: 1.7;
}
.aff-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.aff-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 16px 0 0;
    color: #858b8f;
    font-size: 12px;
}
.aff-hero-visual { position: relative; }
.aff-hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 28px 60px -28px rgba(50, 38, 27, .4);
}
.aff-float {
    position: absolute;
    left: 18px;
    bottom: 18px;
    min-width: 168px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 16px;
    background: rgba(255, 253, 249, .92);
    box-shadow: 0 16px 32px -18px rgba(32, 24, 18, .55);
    backdrop-filter: blur(12px);
}
.aff-float strong { display: block; font-size: 26px; letter-spacing: -.04em; }
.aff-float span { display: block; margin-top: 2px; color: var(--aff-soft); font-size: 11px; }

.aff-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: min(1180px, calc(100% - 40px));
    margin: -8px auto 0;
    position: relative;
    z-index: 1;
}
.aff-proof-item {
    padding: 18px 16px;
    border: 1px solid var(--aff-line);
    border-radius: 16px;
    background: var(--aff-card);
    box-shadow: 0 10px 28px -22px rgba(50, 38, 27, .4);
}
.aff-proof-item strong { display: block; font-size: 20px; letter-spacing: -.03em; }
.aff-proof-item span { display: block; margin-top: 4px; color: var(--aff-soft); font-size: 12px; line-height: 1.4; }

.aff-section { padding: 72px 0; }
.aff-section-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.aff-section-head h2 {
    margin: 10px 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1.05;
}
.aff-section-head p:not(.aff-kicker) {
    margin: 14px 0 0;
    color: var(--aff-soft);
    font-size: 16px;
    line-height: 1.65;
}

.aff-why { background: #fffdf9; }
.aff-why-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: center;
}
.aff-why-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
}
.aff-why-list { display: grid; gap: 12px; }
.aff-reason {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 16px 16px 14px;
    border: 1px solid var(--aff-line);
    border-radius: 16px;
    background: var(--aff-card);
}
.aff-reason i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff2df;
    color: var(--aff-brand-dark);
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
}
.aff-reason h3 { margin: 0; font-size: 15px; }
.aff-reason p { margin: 5px 0 0; color: var(--aff-soft); font-size: 13px; line-height: 1.55; }

.aff-earn { background: var(--aff-bg); }
.aff-earn-list { display: grid; gap: 10px; max-width: 720px; margin: 0 auto; }
.aff-earn-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--aff-line);
    border-radius: 18px;
    background: var(--aff-card);
}
.aff-earn-row.is-featured {
    border-color: rgba(236, 125, 21, .35);
    background: linear-gradient(135deg, #fff8ef, #fffdf9);
    box-shadow: 0 16px 36px -24px rgba(201, 91, 10, .55);
}
.aff-earn-count {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f4efe8;
    font-size: 18px;
    font-weight: 800;
}
.aff-earn-row.is-featured .aff-earn-count { background: #fff2df; color: var(--aff-brand-dark); }
.aff-earn-row h3 { margin: 0; font-size: 16px; }
.aff-earn-row p { margin: 3px 0 0; color: var(--aff-soft); font-size: 12px; }
.aff-earn-sum { text-align: right; }
.aff-earn-sum strong { display: block; font-size: 26px; letter-spacing: -.04em; }
.aff-earn-sum span { color: var(--aff-soft); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.aff-earn-note { margin: 16px 0 0; color: #8a847c; font-size: 12px; text-align: center; }

.aff-who { background: #fffdf9; }
.aff-who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.aff-who-card {
    padding: 20px 18px;
    border: 1px solid var(--aff-line);
    border-radius: 18px;
    background: var(--aff-card);
}
.aff-who-card h3 { margin: 0; font-size: 16px; }
.aff-who-card p { margin: 7px 0 0; color: var(--aff-soft); font-size: 13px; line-height: 1.5; }

.aff-steps { background: var(--aff-bg); }
.aff-step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.aff-step {
    position: relative;
    padding: 28px 22px 24px;
    border: 1px solid var(--aff-line);
    border-radius: 20px;
    background: var(--aff-card);
}
.aff-step b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--aff-brand);
    color: #fff;
    font-size: 13px;
}
.aff-step h3 { margin: 0; font-size: 18px; font-family: "Playfair Display", Georgia, serif; letter-spacing: -.02em; }
.aff-step p { margin: 10px 0 0; color: var(--aff-soft); font-size: 14px; line-height: 1.6; }

.aff-dash { background: #fffdf9; }
.aff-dash-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid var(--aff-line);
    border-radius: 22px;
    background: var(--aff-card);
    box-shadow: 0 22px 48px -30px rgba(50, 38, 27, .4);
}
.aff-dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.aff-stat {
    padding: 14px 12px;
    border: 1px solid var(--aff-line);
    border-radius: 14px;
    background: #faf6f0;
    text-align: center;
}
.aff-stat.is-earn { background: #fff2df; border-color: rgba(236, 125, 21, .22); }
.aff-stat small { display: block; color: var(--aff-soft); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.aff-stat strong { display: block; margin-top: 6px; font-size: 22px; letter-spacing: -.03em; }
.aff-bars { display: flex; align-items: flex-end; gap: 4px; height: 88px; margin-top: 18px; padding: 0 4px; }
.aff-bars i {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to top, #f9d8a5, #ec7d15);
}

.aff-terms { background: var(--aff-bg); }
.aff-terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 860px; margin: 0 auto; }
.aff-term {
    padding: 20px 18px;
    border: 1px solid var(--aff-line);
    border-radius: 16px;
    background: var(--aff-card);
}
.aff-term h3 { margin: 0; font-size: 15px; }
.aff-term p { margin: 6px 0 0; color: var(--aff-soft); font-size: 13px; line-height: 1.55; }

.aff-cta {
    padding: 84px 0 92px;
    background: var(--aff-plum);
    color: #fff;
    text-align: center;
}
.aff-cta .aff-kicker { color: rgba(255, 255, 255, .62); }
.aff-cta h2 {
    margin: 12px 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -.045em;
    line-height: 1.02;
}
.aff-cta p:not(.aff-kicker) { margin: 16px auto 0; max-width: 520px; color: rgba(255, 255, 255, .78); font-size: 17px; line-height: 1.6; }
.aff-cta .aff-btn { margin-top: 26px; }
.aff-cta small { display: block; margin-top: 14px; color: rgba(255, 255, 255, .55); font-size: 12px; }

@media (max-width: 900px) {
    .aff-hero-grid,
    .aff-why-grid { grid-template-columns: 1fr; }
    .aff-hero { padding: 44px 0 28px; }
    .aff-hero-lead { max-width: none; }
    .aff-proof { grid-template-columns: 1fr 1fr; }
    .aff-who-grid,
    .aff-step-grid,
    .aff-dash-stats,
    .aff-terms-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .aff-wrap { width: min(100% - 28px, 560px); }
    .aff-hero-actions { flex-direction: column; align-items: stretch; }
    .aff-proof,
    .aff-who-grid,
    .aff-step-grid,
    .aff-dash-stats,
    .aff-terms-grid { grid-template-columns: 1fr; }
    .aff-earn-row { grid-template-columns: 48px 1fr; }
    .aff-earn-sum { grid-column: 2; text-align: left; }
    .aff-float { left: 12px; right: 12px; bottom: 12px; min-width: 0; }
    .aff-section { padding: 52px 0; }
}
