/* ============================================================
   AFFILIATES PAGE
   Namespace: frag-aff  /  aff-*
   File: mani-affiliates-ltr.css
   Visual identity: Premium dark with gold/green earning accent
   ============================================================ */

/* ── Keyframes ── */
@keyframes aff-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes aff-counter-spin {
    from { opacity: 0; transform: rotateX(40deg) scale(.9); }
    to   { opacity: 1; transform: rotateX(0deg) scale(1); }
}

@keyframes aff-pulse-ring {
    0%   { transform: scale(1);   opacity: .7; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes aff-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes aff-bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

/* ── Reveal helpers ── */
.frag-aff .aff-ri  { animation: aff-rise .7s cubic-bezier(.22,1,.36,1) both; }
.frag-aff .aff-d1  { animation-delay: .05s; }
.frag-aff .aff-d2  { animation-delay: .12s; }
.frag-aff .aff-d3  { animation-delay: .20s; }
.frag-aff .aff-d4  { animation-delay: .28s; }

/* ── Root tokens ── */
.frag-aff {
    --ink:      #0b1120;
    --ink2:     #1a2340;
    --slate:    #5b6b8a;
    --silver:   #94a3b8;
    --mist:     #e2e8f0;
    --snow:     #f8fafc;
    --white:    #ffffff;
    --blue:     #2563eb;
    --blue-l:   #eff6ff;
    --blue-d:   #1e40af;
    --green:    #059669;
    --green-l:  #ecfdf5;
    --gold:     #d97706;
    --gold-l:   #fffbeb;
    --gold-h:   #b45309;
    --amber:    #f59e0b;
    --red:      #ef4444;
    --red-l:    #fef2f2;
    --purple:   #7c3aed;
    --purple-l: #f5f3ff;
    --sans: 'Plus Jakarta Sans', system-ui, sans-serif;

    font-family: var(--sans);
    color: var(--ink2);
    line-height: 1.6;
    background: var(--white);
}

.frag-aff a { text-decoration: none; color: inherit; }

/* ============================================================
   HERO — Dark with animated gold shimmer headline
   ============================================================ */
.aff-hero {
    position: relative;
    padding: 80px 24px 72px;
    text-align: center;
    background: #070c18;
    overflow: hidden;
}

/* Radial spotlight from top */
.aff-hero::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 320px;
    background: radial-gradient(ellipse, rgba(217,119,6,.18) 0%, transparent 65%);
    pointer-events: none;
}

/* Subtle dot texture */
.aff-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.aff-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.aff-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 6px;
    border-radius: 100px;
    background: rgba(217,119,6,.12);
    border: 1px solid rgba(217,119,6,.3);
    font-size: 12px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 24px;
    animation: aff-bob 3.5s ease-in-out infinite;
}

.aff-hero-badge-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(217,119,6,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    position: relative;
}

.aff-hero-badge-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(217,119,6,.4);
    animation: aff-pulse-ring 2s ease-out infinite;
}

.aff-hero h1 {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 16px;
}

/* Gold shimmer on the key word */
.aff-hero h1 em {
    font-style: normal;
    background: linear-gradient(
        90deg,
        #fbbf24 0%,
        #fde68a 30%,
        #f59e0b 50%,
        #fde68a 70%,
        #fbbf24 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aff-shimmer 3s linear infinite;
}

.aff-hero-sub {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,.5);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.aff-hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.aff-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.65);
}

.aff-hero-meta i { color: #fbbf24; font-size: 11px; }

/* ============================================================
   NAV STRIP
   ============================================================ */
.aff-nav-strip {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mist);
    padding: 0 24px;
}

.aff-nav-strip-in {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 0;
}

.aff-nav-strip-in::-webkit-scrollbar { display: none; }

.aff-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate);
    white-space: nowrap;
    transition: .2s;
    flex-shrink: 0;
}

.aff-nav-pill:hover,
.aff-nav-pill.active {
    background: var(--gold-l);
    color: var(--gold);
}

.aff-nav-pill i { font-size: 11px; }

/* ============================================================
   BODY LAYOUT
   ============================================================ */
.aff-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px;
    align-items: start;
}

/* ── TOC Sidebar ── */
.aff-toc {
    position: sticky;
    top: 64px;
    padding-right: 32px;
}

.aff-toc-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--silver);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--mist);
    margin-bottom: 14px;
}

.aff-toc-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aff-toc-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate);
    transition: .18s;
    line-height: 1.3;
}

.aff-toc-list a:hover { background: var(--gold-l); color: var(--gold); }

.aff-toc-num {
    width: 22px; height: 22px;
    border-radius: 6px;
    background: var(--snow);
    border: 1px solid var(--mist);
    font-size: 10px; font-weight: 800;
    color: var(--silver);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: .18s;
}

.aff-toc-list a:hover .aff-toc-num {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* ── Main Content ── */
.aff-content { min-width: 0; }

/* ── Section ── */
.aff-section {
    margin-bottom: 52px;
    scroll-margin-top: 72px;
}

.aff-sec-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--mist);
}

.aff-sec-num {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: #070c18;
    color: #fbbf24;
    font-size: 13px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.aff-sec-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -.4px;
    margin: 0;
}

.aff-body {
    font-size: 16px;
    font-weight: 500;
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.aff-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--mist);
    border: 1px solid var(--mist);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

.aff-stat-item {
    background: var(--white);
    padding: 24px 20px;
    text-align: center;
}

.aff-stat-val {
    font-size: 36px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -1.5px;
    line-height: 1;
    animation: aff-counter-spin .7s cubic-bezier(.22,1,.36,1) both;
}

.aff-stat-val.aff-stat-gold { color: var(--gold); }
.aff-stat-val.aff-stat-green { color: var(--green); }

.aff-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: 6px;
}

/* ============================================================
   WHY CARDS
   ============================================================ */
.aff-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.aff-why-card {
    padding: 24px 20px;
    background: var(--white);
    border: 1.5px solid var(--mist);
    border-radius: 18px;
    transition: .24s cubic-bezier(.22,1,.36,1);
}

.aff-why-card:hover {
    transform: translateY(-4px);
    border-color: #fde68a;
    box-shadow: 0 12px 32px rgba(217,119,6,.1);
}

.aff-why-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
    transition: .22s;
}

.aff-why-icon--gold   { background: var(--gold-l);   color: var(--gold); }
.aff-why-icon--green  { background: var(--green-l);  color: var(--green); }
.aff-why-icon--blue   { background: var(--blue-l);   color: var(--blue); }

.aff-why-card:hover .aff-why-icon { transform: scale(1.1) rotate(-4deg); }

.aff-why-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
}

.aff-why-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--slate);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   COMMISSION BOX — The hero earnings visualizer
   ============================================================ */
.aff-commission-box {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid #fde68a;
    box-shadow: 0 8px 32px rgba(217,119,6,.12);
    margin-bottom: 20px;
}

.aff-comm-left {
    background: #070c18;
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Gold glow behind the % */
.aff-comm-left::before {
    content: '';
    position: absolute;
    bottom: -30px; left: 50%;
    transform: translateX(-50%);
    width: 160px; height: 100px;
    background: radial-gradient(ellipse, rgba(217,119,6,.3) 0%, transparent 70%);
}

.aff-comm-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.aff-comm-pct {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    background: linear-gradient(160deg, #fde68a 20%, #f59e0b 60%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    animation: aff-counter-spin .8s cubic-bezier(.22,1,.36,1) .3s both;
}

.aff-comm-sub {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    margin-top: 8px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.aff-comm-right {
    background: #f8f9fc;
    padding: 28px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.aff-scenario-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
}

.aff-scenario-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate);
    line-height: 1.6;
    margin: 0;
}

.aff-scenario-result {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1.5px solid #a7f3d0;
    border-radius: 12px;
    padding: 14px 18px;
}

.aff-scenario-result-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate);
}

.aff-scenario-num {
    font-size: 26px;
    font-weight: 900;
    color: var(--green);
    letter-spacing: -1px;
    flex-shrink: 0;
}

.aff-scenario-note {
    font-size: 15px;
    font-weight: 600;
    color: var(--silver);
    margin: 0;
    line-height: 1.55;
}

.aff-scenario-note strong { color: var(--ink); }

/* ============================================================
   PAYOUT TABLE
   ============================================================ */
.aff-table-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--mist);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.aff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.aff-table thead th {
    background: #070c18;
    color: rgba(255,255,255,.55);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 14px 18px;
    text-align: left;
}

.aff-table thead th:first-child { color: #fbbf24; }

.aff-table tbody tr {
    border-bottom: 1px solid var(--mist);
}

.aff-table tbody tr:last-child { border-bottom: none; }
.aff-table tbody tr:hover { background: var(--gold-l); }

.aff-table td {
    padding: 14px 18px;
    color: var(--ink2);
    font-weight: 500;
    line-height: 1.5;
    vertical-align: middle;
}

/* ============================================================
   WHO CARDS — Ideal partner profiles
   ============================================================ */
.aff-who-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.aff-who-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 1.5px solid var(--mist);
    border-radius: 14px;
    transition: .2s;
}

.aff-who-item:hover {
    border-color: #fde68a;
    background: var(--gold-l);
    transform: translateX(4px);
}

.aff-who-num {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: #070c18;
    color: #fbbf24;
    font-size: 12px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.aff-who-item p {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink2);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   STEPS — Get started
   ============================================================ */
.aff-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.aff-steps::before {
    content: '';
    position: absolute;
    left: 19px; top: 28px;
    width: 2px;
    bottom: 28px;
    background: linear-gradient(180deg, #fbbf24, transparent);
}

.aff-step {
    display: flex;
    gap: 16px;
    padding: 0 0 24px;
    position: relative;
}

.aff-step:last-child { padding-bottom: 0; }

.aff-step-dot {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #070c18;
    border: 2px solid #fbbf24;
    color: #fbbf24;
    font-size: 14px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.aff-step-body { padding-top: 8px; }

.aff-step-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 4px;
}

.aff-step-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   CALLOUTS
   ============================================================ */
.aff-callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid;
    margin-bottom: 16px;
}

.aff-callout--gold   { background: var(--gold-l);   border-color: #fde68a; }
.aff-callout--green  { background: var(--green-l);  border-color: #a7f3d0; }
.aff-callout--blue   { background: var(--blue-l);   border-color: #bfdbfe; }

.aff-callout-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}

.aff-callout--gold  .aff-callout-icon { background: #fef3c7; color: var(--gold); }
.aff-callout--green .aff-callout-icon { background: #d1fae5; color: var(--green); }
.aff-callout--blue  .aff-callout-icon { background: #dbeafe; color: var(--blue); }

.aff-callout-title {
    font-size: 14px; font-weight: 800; margin: 0 0 4px;
}

.aff-callout--gold  .aff-callout-title { color: var(--gold-h); }
.aff-callout--green .aff-callout-title { color: #065f46; }
.aff-callout--blue  .aff-callout-title { color: var(--blue-d); }

.aff-callout-text {
    font-size: 13px; font-weight: 500; color: var(--slate);
    margin: 0; line-height: 1.65;
}

/* ============================================================
   FAQ
   ============================================================ */
.aff-faq-list { display: flex; flex-direction: column; gap: 10px; }

.aff-faq-item {
    border: 1.5px solid var(--mist);
    border-radius: 14px;
    overflow: hidden;
    background: var(--snow);
    cursor: pointer;
    transition: .2s;
}

.aff-faq-item:hover { border-color: #fde68a; background: var(--white); }
.aff-faq-item.open  { border-color: var(--gold); background: var(--white); }

.aff-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    font-size: 15px; font-weight: 700;
    color: var(--ink); gap: 16px;
    user-select: none;
}

.aff-faq-q i { color: var(--silver); font-size: 13px; transition: .3s; flex-shrink: 0; }
.aff-faq-item.open .aff-faq-q i { transform: rotate(180deg); color: var(--gold); }

.aff-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.22,1,.36,1); }
.aff-faq-item.open .aff-faq-a { max-height: 220px; }

.aff-faq-a-inner {
    padding: 0 22px 18px;
    font-size: 14px; color: var(--slate);
    line-height: 1.75; font-weight: 500;
}

/* ============================================================
   CTA FOOTER
   ============================================================ */
.aff-cta {
    padding: 0 24px 64px;
    max-width: 1100px;
    margin: 0 auto;
}

.aff-cta-box {
    background: #070c18;
    border-radius: 24px;
    padding: 56px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(217,119,6,.2);
}

.aff-cta-box::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 200px;
    background: radial-gradient(ellipse, rgba(217,119,6,.22) 0%, transparent 70%);
    pointer-events: none;
}

.aff-cta-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.aff-cta-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.2;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}

.aff-cta-box h3 em {
    font-style: normal;
    background: linear-gradient(90deg, #fde68a, #f59e0b, #fde68a);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aff-shimmer 3s linear infinite;
}

.aff-cta-box p {
    font-size: 16px; font-weight: 500;
    color: rgba(255,255,255,.45);
    margin: 0 0 32px;
    position: relative; z-index: 1;
}

.aff-cta-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative; z-index: 1;
}

.aff-cta-btns .mni-btn {
    font-size: 16px;
    font-weight: 800;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .aff-layout {
        grid-template-columns: 1fr;
        padding: 32px 16px;
    }
    .aff-toc    { display: none; }
    .aff-why-grid { grid-template-columns: 1fr; }
    .aff-stats    { grid-template-columns: repeat(3, 1fr); }
    .aff-commission-box { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .aff-hero { padding: 56px 20px 52px; }
    .aff-comm-pct { font-size: 56px; }
    .aff-cta-box { padding: 36px 24px; }
    .aff-stats { grid-template-columns: 1fr; }
}