/* Affiliates portal — marketing tokens + a simple signed-in shell */

.aff-body {
    background: #060606;
    color: #f7f6f9;
}

.aff-hero {
    max-width: 980px;
    margin: 0 auto;
    padding: 56px 20px 24px;
    text-align: center;
}

.aff-hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.aff-hero .lede {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #cfcfcf;
    max-width: 640px;
    margin: 0 auto 28px;
}

.aff-hero .lede strong { color: #fff; }

.aff-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

.aff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 100px;
    padding: 12px 26px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.aff-btn-primary {
    background: linear-gradient(157deg, #8e23e2 0%, #cf2576 100%);
    color: #fff !important;
}

.aff-btn-primary:hover { filter: brightness(1.08); text-decoration: none; }

.aff-btn-ghost {
    background: transparent;
    color: #fff !important;
    border: 1px solid #333;
}

.aff-btn-ghost:hover { border-color: #8e23e2; text-decoration: none; }

.aff-client-login {
    font-size: 0.92rem;
    color: #9a9a9a;
    margin-top: 8px;
}
.aff-client-login a { color: #21bdb8; }

.forgot-password {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 14px;
    color: rgb(211, 27, 199);
}
.forgot-password a {
    color: rgb(211, 27, 199);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}
.forgot-password a:hover {
    color: rgb(195, 29, 241);
    text-decoration: underline;
}

.aff-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px 20px 48px;
}

.aff-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.aff-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 22px;
}

.aff-card h2, .aff-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.aff-step-num {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: linear-gradient(157deg, #8e23e2 0%, #cf2576 100%);
    font-weight: 700;
    margin-bottom: 12px;
}

.aff-card p { color: #cfcfcf; margin: 0; line-height: 1.55; }

.aff-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.aff-form label {
    display: block;
    font-weight: 600;
    margin: 0 0 6px;
}

.aff-form input, .aff-form textarea, .aff-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 14px;
}

.aff-form input:focus, .aff-form textarea:focus, .aff-form select:focus {
    outline: none;
    border-color: #8e23e2;
}

.aff-form textarea { min-height: 88px; resize: vertical; }

.aff-form .hint { color: #9a9a9a; font-size: 0.85rem; margin: -8px 0 14px; }

.aff-flash {
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0 0 16px;
}
.aff-flash-ok { background: rgba(46, 204, 113, 0.12); color: #7dffa8; }
.aff-flash-error { background: rgba(231, 76, 60, 0.15); color: #ffb4ab; }
.aff-flash-warn { background: rgba(241, 196, 15, 0.12); color: #ffe08a; }

.aff-faq details {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 10px;
}
.aff-faq summary { cursor: pointer; font-weight: 600; }
.aff-faq p { color: #cfcfcf; margin: 10px 0 0; }

.aff-shell {
    display: flex;
    min-height: 100vh;
    max-width: 1280px;
    margin: 0 auto;
}

.aff-sidenav {
    width: 230px;
    flex-shrink: 0;
    padding: 24px 16px;
    border-right: 1px solid #222;
}

.aff-sidenav-brand { margin-bottom: 18px; }
.aff-sidenav-kicker {
    display: block;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #21bdb8;
    margin-bottom: 4px;
}

.aff-sidenav nav { display: flex; flex-direction: column; gap: 4px; }
.aff-sidenav a {
    color: #9a9a9a;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 500;
}
.aff-sidenav a:hover { color: #fff; background: #161616; }
.aff-sidenav a.active { color: #21bdb8; background: rgba(33, 189, 184, 0.12); }

.aff-main { flex: 1; padding: 28px 28px 64px; min-width: 0; }
.aff-page-title { margin: 0 0 20px; font-size: 1.7rem; }

.aff-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.aff-stat {
    background: #111;
    border: 1px solid #222;
    border-radius: 14px;
    padding: 16px;
}
.aff-stat .label { color: #9a9a9a; font-size: 0.82rem; }
.aff-stat .value { font-size: 1.45rem; font-weight: 700; margin-top: 4px; }

.aff-link-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.aff-link-box input {
    flex: 1;
    min-width: 220px;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.95rem;
}

.aff-table-wrap { overflow-x: auto; }
table.aff-data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
table.aff-data th, table.aff-data td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #222;
}
table.aff-data th { color: #9a9a9a; font-weight: 600; }
table.aff-data td.num { text-align: right; font-variant-numeric: tabular-nums; }

.aff-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}
.aff-badge-ok { background: rgba(46, 204, 113, 0.15); color: #7dffa8; }
.aff-badge-warn { background: rgba(241, 196, 15, 0.15); color: #ffe08a; }
.aff-badge-muted { background: #1a1a1a; color: #9a9a9a; }

.aff-banner {
    background: linear-gradient(180deg, rgba(142, 35, 226, 0.16), rgba(17, 17, 17, 0.6));
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.aff-howto {
    display: grid;
    gap: 28px;
}
.aff-howto figure {
    margin: 12px 0 0;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
}
.aff-howto img, .aff-howto video {
    display: block;
    width: 100%;
    height: auto;
}
.aff-howto figcaption {
    padding: 10px 14px;
    color: #9a9a9a;
    font-size: 0.88rem;
}

.aff-reel {
    position: relative;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.aff-reel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: affReel 24s infinite;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background-size: cover;
    background-position: center;
}
.aff-reel-slide:nth-child(1) { animation-delay: 0s; }
.aff-reel-slide:nth-child(2) { animation-delay: 6s; }
.aff-reel-slide:nth-child(3) { animation-delay: 12s; }
.aff-reel-slide:nth-child(4) { animation-delay: 18s; }
.aff-reel-slide h3 { margin: 0 0 6px; }
.aff-reel-slide p { margin: 0; color: #e8e8e8; }

@keyframes affReel {
    0% { opacity: 0; }
    4% { opacity: 1; }
    21% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

.aff-pitch {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 16px;
    white-space: pre-wrap;
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.55;
}

.empty { color: #9a9a9a; }

@media (max-width: 900px) {
    .aff-steps, .aff-split, .aff-stat-grid { grid-template-columns: 1fr; }
    .aff-shell { flex-direction: column; }
    .aff-sidenav {
        width: auto;
        border-right: none;
        border-bottom: 1px solid #222;
        padding: 12px;
    }
    .aff-sidenav nav { flex-direction: row; flex-wrap: wrap; }
    .aff-main { padding: 20px 16px 48px; }
}
