/* Affiliate program page. Scoped under .lc-aff so nothing leaks into other pages. */
.lc-aff {
    --aff-navy: #16254a;
    --aff-blue: #2a56c6;
    --aff-gold: #f5b82e;
    --aff-green: #127a3b;
    --aff-green-soft: #e8f7ee;
    --aff-line: #e6ebf3;
    --aff-muted: #5c6b80;
    --aff-ink: #172033;
    padding-top: 24px;
    padding-bottom: 40px;
    color: var(--aff-ink);
}

.lc-aff *,
.lc-aff *:before,
.lc-aff *:after {
    box-sizing: border-box;
}

.lc-aff h1,
.lc-aff h2,
.lc-aff h3,
.lc-aff p {
    font-family: var(--lc-font, "Plus Jakarta Sans", sans-serif);
}

.lc-aff-section {
    margin-top: 40px;
}

.lc-aff-section > h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--aff-ink);
}

.lc-aff-section > .lc-aff-sub {
    margin: 0 0 20px;
    color: var(--aff-muted);
    font-size: 15px;
}

.lc-aff-ok {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 12px !important;
    background: var(--aff-green-soft);
    color: var(--aff-green);
    font-weight: 700;
}

/* Hero */
.lc-aff-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
    overflow: hidden;
    padding: 40px;
    border-radius: 26px !important;
    color: #fff;
    background:
        radial-gradient(circle at 12% 110%, rgba(245, 184, 46, 0.25), transparent 45%),
        linear-gradient(120deg, var(--aff-navy) 0%, var(--aff-blue) 100%);
    box-shadow: 0 22px 48px rgba(42, 86, 198, 0.28);
}

.lc-aff-pill {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px !important;
    background: var(--aff-gold);
    color: #3b2a00;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lc-aff-hero h1 {
    margin: 14px 0 10px;
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
}

.lc-aff-hero h1 em {
    font-style: normal;
    color: var(--aff-gold);
}

.lc-aff-hero p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    line-height: 1.55;
}

.lc-aff-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px 8px 0;
    padding: 13px 24px;
    border: 0;
    border-radius: 999px !important;
    background: var(--aff-gold);
    color: #3b2a00 !important;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lc-aff-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.25);
}

.lc-aff-cta-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff !important;
    box-shadow: none;
}

.lc-aff-trust {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* Earnings playground */
.lc-aff-calc {
    padding: 24px;
    border-radius: 20px !important;
    background: #fff;
    color: var(--aff-ink);
    box-shadow: 0 18px 40px rgba(10, 20, 50, 0.3);
}

.lc-aff-calc h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--aff-muted);
}

.lc-aff-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 18px;
}

.lc-aff-chip {
    margin: 0;
    padding: 10px 12px;
    border: 2px solid var(--aff-line);
    border-radius: 12px !important;
    background: #fff;
    color: var(--aff-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.lc-aff-chip:hover {
    border-color: #b9c8ea;
}

.lc-aff-chip.is-active {
    border-color: var(--aff-blue);
    background: #eef3fd;
    transform: translateY(-1px);
}

.lc-aff-chip b {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.lc-aff-chip span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--aff-green);
    font-weight: 700;
}

.lc-aff-range-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
}

.lc-aff-range-label strong {
    font-size: 22px;
    color: var(--aff-blue);
}

.lc-aff-calc input[type=range] {
    width: 100%;
    margin: 6px 0 18px;
    accent-color: var(--aff-blue);
    cursor: pointer;
}

.lc-aff-result {
    padding: 16px;
    border-radius: 14px !important;
    background: var(--aff-green-soft);
    text-align: center;
}

.lc-aff-result small {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--aff-green);
}

.lc-aff-result strong {
    display: block;
    margin: 2px 0;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--aff-green);
    font-variant-numeric: tabular-nums;
}

.lc-aff-result em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: var(--aff-muted);
}

/* Link card */
.lc-aff-link {
    padding: 28px;
    border: 1px solid var(--aff-line);
    border-radius: 22px !important;
    background: #fff;
    box-shadow: 0 12px 32px rgba(23, 32, 51, 0.08);
}

.lc-aff-link h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
}

.lc-aff-link p {
    margin: 0 0 16px;
    color: var(--aff-muted);
}

.lc-aff-linkrow {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.lc-aff-linkrow input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    border: 2px dashed #b9c8ea;
    border-radius: 14px !important;
    background: #f6f9ff;
    color: var(--aff-blue);
    font-size: 16px;
    font-weight: 700;
}

.lc-aff-copy {
    flex: none;
    position: relative;
    height: 52px;
    margin: 0;
    padding: 0 26px;
    border: 0;
    border-radius: 14px !important;
    background: var(--aff-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.lc-aff-copy:hover {
    background: #1d44a3;
    transform: translateY(-1px);
}

.lc-aff-copy.is-copied {
    background: var(--aff-green);
}

/* Stats */
.lc-aff-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.lc-aff-stat {
    padding: 18px;
    border: 1px solid var(--aff-line);
    border-radius: 16px !important;
    background: #fff;
}

.lc-aff-stat i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    border-radius: 10px !important;
    background: #eef3fd;
    color: var(--aff-blue);
    font-size: 16px;
}

.lc-aff-stat.is-money i {
    background: var(--aff-green-soft);
    color: var(--aff-green);
}

.lc-aff-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.lc-aff-stat span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--aff-muted);
    font-weight: 600;
}

/* Steps */
.lc-aff-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    counter-reset: aff-step;
}

.lc-aff-step {
    position: relative;
    padding: 24px 22px;
    border: 1px solid var(--aff-line);
    border-radius: 18px !important;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lc-aff-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(23, 32, 51, 0.1);
}

.lc-aff-step:before {
    counter-increment: aff-step;
    content: counter(aff-step);
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: #eef1f7;
}

.lc-aff-step i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px !important;
    background: #eef3fd;
    color: var(--aff-blue);
    font-size: 22px;
}

.lc-aff-step h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
}

.lc-aff-step p {
    margin: 0;
    color: var(--aff-muted);
    line-height: 1.5;
}

/* Share kit */
.lc-aff-kit {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.lc-aff-post {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--aff-line);
    border-radius: 18px !important;
    background: #fff;
}

.lc-aff-post header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 800;
}

.lc-aff-post header i {
    color: var(--aff-blue);
}

.lc-aff-post p {
    flex: 1;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px !important;
    background: #f6f8fc;
    color: #243049;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
}

.lc-aff-post button {
    align-self: flex-start;
    margin: 0;
    padding: 8px 16px;
    border: 2px solid var(--aff-line);
    border-radius: 999px !important;
    background: #fff;
    color: var(--aff-blue);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lc-aff-post button:hover {
    border-color: var(--aff-blue);
}

.lc-aff-post button.is-copied {
    border-color: var(--aff-green);
    background: var(--aff-green-soft);
    color: var(--aff-green);
}

/* Payout */
.lc-aff-payout {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid var(--aff-line);
    border-radius: 18px !important;
    background: #fff;
}

.lc-aff-payout.is-warn {
    border-color: #f2d58a;
    background: #fff9e8;
}

.lc-aff-payout > i {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px !important;
    background: var(--aff-green-soft);
    color: var(--aff-green);
    font-size: 24px;
}

.lc-aff-payout.is-warn > i {
    background: #fdecb4;
    color: #8a5a00;
}

.lc-aff-payout div {
    flex: 1;
}

.lc-aff-payout h3 {
    margin: 0 0 2px;
    font-size: 17px;
    font-weight: 800;
}

.lc-aff-payout p {
    margin: 0;
    color: var(--aff-muted);
}

.lc-aff-btn {
    flex: none;
    display: inline-block;
    padding: 11px 22px;
    border: 0;
    border-radius: 999px !important;
    background: var(--aff-blue);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}

.lc-aff-btn:hover {
    background: #1d44a3;
}

/* Tabs and tables */
.lc-aff-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 14px;
    padding: 4px;
    border-radius: 999px !important;
    background: #e9eef8;
}

.lc-aff-tabs button {
    margin: 0;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px !important;
    background: transparent;
    color: var(--aff-muted);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.lc-aff-tabs button.is-active {
    background: #fff;
    color: var(--aff-blue);
    box-shadow: 0 2px 8px rgba(23, 32, 51, 0.1);
}

.lc-aff-panel {
    display: none;
    overflow-x: auto;
    border: 1px solid var(--aff-line);
    border-radius: 18px !important;
    background: #fff;
}

.lc-aff-panel.is-active {
    display: block;
}

.lc-aff-panel table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.lc-aff-panel th {
    padding: 12px 18px;
    border-bottom: 1px solid var(--aff-line);
    background: #f6f8fc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--aff-muted);
    text-align: left;
}

.lc-aff-panel td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--aff-line);
    font-size: 14px;
}

.lc-aff-panel tr:last-child td {
    border-bottom: 0;
}

.lc-aff-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px !important;
    background: #fff4d6;
    color: #8a5a00;
    font-size: 12px;
    font-weight: 800;
}

.lc-aff-badge.is-paid {
    background: var(--aff-green-soft);
    color: var(--aff-green);
}

.lc-aff-empty {
    padding: 40px 20px;
    text-align: center;
}

.lc-aff-empty i {
    display: block;
    margin-bottom: 10px;
    font-size: 34px;
    color: #b9c8ea;
}

.lc-aff-empty strong {
    display: block;
    font-size: 17px;
}

.lc-aff-empty span {
    display: block;
    margin-top: 4px;
    color: var(--aff-muted);
}

/* Video */
.lc-aff-video {
    display: grid;
    grid-template-columns: minmax(0, 480px) 1fr;
    gap: 24px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--aff-line);
    border-radius: 20px !important;
    background: #fff;
}

.lc-aff-video .lc-aff-frame {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 14px !important;
    background: #0f1930;
}

.lc-aff-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lc-aff-video h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
}

.lc-aff-video p {
    margin: 0 0 14px;
    color: var(--aff-muted);
    line-height: 1.5;
}

/* FAQ */
.lc-aff-faq details {
    margin-bottom: 10px;
    border: 1px solid var(--aff-line);
    border-radius: 14px !important;
    background: #fff;
}

.lc-aff-faq summary {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.lc-aff-faq summary::-webkit-details-marker {
    display: none;
}

.lc-aff-faq summary:after {
    content: "+";
    float: right;
    font-size: 20px;
    line-height: 1;
    color: var(--aff-blue);
}

.lc-aff-faq details[open] summary:after {
    content: "\2212";
}

.lc-aff-faq details p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--aff-muted);
    line-height: 1.6;
}

/* Logged-out call to action */
.lc-aff-signup {
    margin-top: 40px;
    padding: 32px;
    border-radius: 22px !important;
    background: #fff;
    border: 1px solid var(--aff-line);
    text-align: center;
    box-shadow: 0 12px 32px rgba(23, 32, 51, 0.08);
}

.lc-aff-signup h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
}

.lc-aff-signup p {
    margin: 0 0 18px;
    color: var(--aff-muted);
}

.lc-aff-signup .lc-aff-btn {
    margin: 0 4px;
}

.lc-aff-btn-ghost {
    background: #eef3fd;
    color: var(--aff-blue) !important;
}

.lc-aff-btn-ghost:hover {
    background: #dfe8fb;
}

/* Confetti */
.lc-aff-confetti {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

@media (max-width: 991px) {
    .lc-aff-hero {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

    .lc-aff-hero h1 {
        font-size: 34px;
    }

    .lc-aff-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .lc-aff-steps,
    .lc-aff-kit,
    .lc-aff-video {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .lc-aff-linkrow,
    .lc-aff-payout {
        flex-direction: column;
        align-items: stretch;
    }

    .lc-aff-copy,
    .lc-aff-btn {
        width: 100%;
        text-align: center;
    }

    .lc-aff-link {
        padding: 20px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lc-aff * {
        transition: none !important;
    }
}
