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

html{
    scroll-behavior:smooth;
}

body{
    background:#0a0a0a;
    color:white;
    font-family:Arial, sans-serif;
}

.hidden{
    display:none !important;
}

/* LOADING */

.affiliate-loading{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(circle at 80% 30%, rgba(107,142,35,0.18), transparent 30%),
        linear-gradient(135deg, #0a0a0a 0%, #111111 55%, #151812 100%);
}

.loader-card{
    width:360px;
    padding:36px;
    background:#111111;
    border:1px solid rgba(85,107,47,0.45);
    border-radius:18px;
    text-align:center;
    box-shadow:0 18px 45px rgba(0,0,0,0.35);
}

.loader-card img{
    height:70px;
    width:auto;
    margin-bottom:20px;
}

.loader-card p{
    color:#B5B5B5;
    line-height:1.6;
}

/* HEADER */

.affiliate-header{
    height:75px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 60px;
    background:#111111;
    border-bottom:1px solid rgba(255,255,255,0.08);
    position:sticky;
    top:0;
    z-index:50;
}

.logo img{
    height:60px;
    width:auto;
}

.affiliate-header nav{
    display:flex;
    gap:35px;
}

.affiliate-header nav a{
    color:#A3A3A3;
    text-decoration:none;
    font-size:14px;
    font-weight:500;
    transition:0.25s;
}

.affiliate-header nav a:hover{
    color:#6B8E23;
}

.header-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.dashboard-btn,
.logout-btn{
    background:#556B2F;
    color:white;
    border:none;
    padding:11px 24px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
    text-decoration:none;
    font-size:14px;
    transition:0.25s;
}

.logout-btn{
    background:transparent;
    border:1px solid rgba(85,107,47,0.65);
    color:#B5B5B5;
}

.dashboard-btn:hover,
.logout-btn:hover{
    background:#6B8E23;
    color:white;
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(107,142,35,0.35);
}

/* HERO */

.affiliate-hero{
    min-height:calc(100vh - 75px);
    display:flex;
    align-items:center;
    padding:0 60px;
    background:
        radial-gradient(circle at 80% 30%, rgba(107,142,35,0.18), transparent 30%),
        linear-gradient(135deg, #0a0a0a 0%, #111111 55%, #151812 100%);
}

.hero-content{
    max-width:980px;
}

.section-kicker{
    display:inline-block;
    color:#8FAF4D;
    font-size:13px;
    font-weight:800;
    letter-spacing:0.16em;
    text-transform:uppercase;
    margin-bottom:18px;
}

.affiliate-hero h1{
    font-size:72px;
    line-height:1.05;
    font-weight:800;
    letter-spacing:-2px;
}

.affiliate-hero h1 span{
    color:#8FAF4D;
}

.affiliate-hero p{
    margin-top:25px;
    max-width:760px;
    font-size:20px;
    line-height:1.6;
    color:#B5B5B5;
}

.hero-actions{
    display:flex;
    align-items:center;
    gap:16px;
    margin-top:40px;
}

.hero-btn,
.ghost-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    padding:0 34px;
    border-radius:10px;
    font-size:15px;
    font-weight:bold;
    text-decoration:none;
    transition:0.25s;
}

.hero-btn{
    background:#556B2F;
    color:white;
}

.ghost-btn{
    background:transparent;
    color:#B5B5B5;
    border:1px solid rgba(85,107,47,0.65);
}

.hero-btn:hover,
.ghost-btn:hover{
    background:#6B8E23;
    color:white;
    transform:translateY(-2px);
    box-shadow:0 10px 30px rgba(107,142,35,0.35);
}

/* SHARED */

.section-divider{
    width:100%;
    height:1px;
    background:linear-gradient(
        90deg,
        transparent,
        rgba(107,142,35,0.5),
        transparent
    );
}

.page-section{
    padding:120px 60px;
}

.section-title-wrap{
    width:100%;
    max-width:860px;
    margin:0 auto 60px;
    text-align:center;
}

.section-title-wrap h2,
.dashboard-title-wrap h2{
    font-size:52px;
    font-weight:800;
    line-height:1.08;
    letter-spacing:-1px;
    background:linear-gradient(
        90deg,
        #999595 12%,
        #426605 80%
    );
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
}

.section-title-wrap p{
    color:#B5B5B5;
    font-size:16px;
    line-height:1.75;
    margin:22px auto 0;
    max-width:760px;
}

.wide-card{
    max-width:980px;
    margin:0 auto;
}

.rank-card,
.calculator-card,
.affiliate-form,
.dashboard-card,
.stat-card,
.login-gate,
.influencer-note{
    background:#111111;
    border:1px solid rgba(85,107,47,0.45);
    border-radius:18px;
}

/* RANKS */

.rank-section,
.portal-section{
    background:#0b0b0b;
}

.rank-grid{
    max-width:1280px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}

.rank-card{
    position:relative;
    padding:30px;
    min-height:455px;
    transition:0.25s;
}

.rank-card:hover{
    transform:translateY(-4px);
    border-color:#6B8E23;
    box-shadow:0 18px 45px rgba(107,142,35,0.18);
}

.rank-top span{
    display:block;
    color:#A3A3A3;
    font-size:13px;
    font-weight:900;
    letter-spacing:0.15em;
    text-transform:uppercase;
    margin-bottom:8px;
}

.rank-top b{
    font-size:26px;
}

.rank-percent{
    color:#8FAF4D;
    font-size:58px;
    font-weight:900;
    margin:30px 0 10px;
}

.rank-range{
    color:white;
    font-weight:bold;
    margin-bottom:26px;
}

.rule{
    display:flex;
    justify-content:space-between;
    border-top:1px solid rgba(255,255,255,0.08);
    padding:16px 0;
    color:#B5B5B5;
}

.rule b{
    color:white;
}

.rank-note{
    color:#B5B5B5;
    line-height:1.7;
    margin-top:24px;
}

/* CALCULATOR / FORMS */

.calculator-card,
.affiliate-form,
.login-gate{
    padding:42px;
}

.calc-row,
.form-row{
    margin-bottom:24px;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}

.calc-row label,
.affiliate-form label,
.dashboard-card label,
.split-control label,
.slider-label-row label{
    display:block;
    color:white;
    font-weight:bold;
    margin-bottom:10px;
}

.slider-label-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:14px;
}

.slider-label-row span{
    color:#8FAF4D;
    font-size:13px;
    font-weight:800;
}

select,
input,
textarea{
    width:100%;
    background:#0a0a0a;
    border:1px solid rgba(255,255,255,0.12);
    color:white;
    border-radius:10px;
    padding:15px 16px;
    outline:none;
    font-size:15px;
    transition:0.25s;
}

textarea{
    resize:vertical;
    min-height:120px;
}

select:focus,
input:focus,
textarea:focus{
    border-color:#6B8E23;
    box-shadow:0 0 0 3px rgba(107,142,35,0.16);
}

input[readonly]{
    color:#A3A3A3;
    background:#0d0d0d;
}

.affiliate-form small{
    display:block;
    color:#8a8a8a;
    margin-top:8px;
    line-height:1.5;
}

/* PREMIUM RANGE SLIDER */

.vexora-range{
    --fill:50%;
    appearance:none;
    -webkit-appearance:none;
    width:100%;
    height:18px;
    padding:0;
    border:none;
    border-radius:999px;
    background:linear-gradient(
        90deg,
        #8FAF4D 0%,
        #6B8E23 var(--fill),
        rgba(255,255,255,0.10) var(--fill),
        rgba(255,255,255,0.10) 100%
    );
    outline:none;
    cursor:pointer;
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 30px rgba(0,0,0,0.25);
    margin:8px 0 32px;
}

.vexora-range::-webkit-slider-thumb{
    appearance:none;
    -webkit-appearance:none;
    width:30px;
    height:30px;
    border-radius:50%;
    background:#ffffff;
    border:7px solid #8FAF4D;
    box-shadow:0 0 0 5px rgba(143,175,77,0.16), 0 8px 22px rgba(0,0,0,0.45);
    transition:0.2s;
}

.vexora-range::-webkit-slider-thumb:hover{
    transform:scale(1.08);
    border-color:#6B8E23;
    box-shadow:0 0 0 8px rgba(143,175,77,0.22), 0 10px 26px rgba(0,0,0,0.5);
}

.vexora-range::-moz-range-thumb{
    width:30px;
    height:30px;
    border-radius:50%;
    background:#ffffff;
    border:7px solid #8FAF4D;
    box-shadow:0 0 0 5px rgba(143,175,77,0.16), 0 8px 22px rgba(0,0,0,0.45);
    cursor:pointer;
}

.vexora-range::-moz-range-track{
    height:18px;
    border-radius:999px;
    background:transparent;
}

.calc-output{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.calc-output div,
.split-preview{
    background:#0a0a0a;
    border:1px solid rgba(255,255,255,0.08);
    border-radius:14px;
    padding:22px;
}

.calc-output span,
.stat-card span{
    display:block;
    color:#A3A3A3;
    font-size:13px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:0.08em;
    margin-bottom:12px;
}

.calc-output strong,
.stat-card strong{
    color:#8FAF4D;
    font-size:34px;
    font-weight:900;
}

.split-control{
    margin:26px 0 30px;
}

.split-preview{
    display:flex;
    justify-content:space-between;
    gap:18px;
    color:#B5B5B5;
}

.split-preview b{
    color:#8FAF4D;
}

.affiliate-form button,
.dashboard-card button{
    width:100%;
    padding:15px;
    border:none;
    border-radius:10px;
    background:#556B2F;
    color:white;
    font-weight:bold;
    cursor:pointer;
    transition:0.25s;
}

.affiliate-form button:hover,
.dashboard-card button:hover{
    background:#6B8E23;
    transform:translateY(-2px);
    box-shadow:0 10px 30px rgba(107,142,35,0.28);
}

.form-message{
    min-height:22px;
    margin-top:16px;
    color:#B5B5B5;
    line-height:1.5;
}

.login-gate{
    text-align:center;
}

.login-gate h3{
    font-size:28px;
    margin-bottom:14px;
}

.login-gate p{
    max-width:620px;
    margin:0 auto 28px;
    color:#B5B5B5;
    line-height:1.7;
}

.influencer-note{
    padding:18px;
    background:#0a0a0a;
}

.influencer-note div{
    color:#B5B5B5;
    line-height:1.6;
}

.influencer-note a{
    color:#8FAF4D;
    font-weight:bold;
    text-decoration:none;
}

.influencer-note a:hover{
    color:#6B8E23;
}

/* AFFILIATE DASHBOARD */

.affiliate-dashboard{
    max-width:1200px;
    margin:0 auto;
}

.dashboard-title-wrap{
    margin-bottom:28px;
}

.dashboard-title-wrap h2{
    text-transform:uppercase;
}

.dashboard-status-row{
    display:flex;
    justify-content:center;
    margin-bottom:42px;
}

.status-badge{
    background:#556B2F;
    color:white;
    padding:10px 18px;
    border-radius:999px;
    text-transform:capitalize;
    font-size:13px;
    font-weight:900;
}

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

.stat-card{
    padding:28px;
}

.stat-card strong{
    font-size:28px;
    word-break:break-word;
}

.dashboard-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:32px;
    margin-bottom:32px;
}

.dashboard-card{
    padding:34px;
}

.dashboard-card h3{
    font-size:24px;
    margin-bottom:20px;
}

.dashboard-card p{
    color:#B5B5B5;
    line-height:1.7;
    margin-top:18px;
}

.copy-row{
    display:grid;
    grid-template-columns:1fr 130px;
    gap:12px;
}

.copy-row button{
    height:50px;
    padding:0;
}

.commission-table-wrap{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    min-width:760px;
}

th,
td{
    text-align:left;
    padding:16px 14px;
    border-bottom:1px solid rgba(255,255,255,0.08);
    color:#B5B5B5;
    font-size:14px;
}

th{
    color:white;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:0.08em;
}

td:first-child,
td:nth-child(5){
    color:#8FAF4D;
    font-weight:bold;
}

/* FOOTER */

.affiliate-footer{
    padding:60px 60px;
    background:#111111;
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:60px;
    border-top:1px solid rgba(255,255,255,0.08);
}

.affiliate-footer img{
    height:60px;
    width:auto;
    margin-bottom:20px;
}

.affiliate-footer p{
    color:#B5B5B5;
    max-width:440px;
    line-height:1.8;
}

.affiliate-footer h4{
    margin-bottom:12px;
}

.affiliate-footer a{
    color:#8FAF4D;
    text-decoration:none;
    font-weight:bold;
}

.affiliate-footer a:hover{
    color:#6B8E23;
}

/* RESPONSIVE */

@media(max-width:1050px){
    .affiliate-header{
        padding:0 30px;
    }

    .affiliate-header nav{
        gap:18px;
    }

    .affiliate-hero,
    .page-section{
        padding-left:30px;
        padding-right:30px;
    }

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

    .dashboard-grid,
    .form-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:760px){
    .affiliate-header{
        height:auto;
        padding:18px 22px;
        flex-direction:column;
        align-items:flex-start;
        gap:18px;
    }

    .logo img{
        height:52px;
    }

    .affiliate-header nav{
        width:100%;
        flex-wrap:wrap;
        gap:16px;
    }

    .header-actions{
        width:100%;
    }

    .dashboard-btn,
    .logout-btn{
        flex:1;
        text-align:center;
    }

    .affiliate-hero{
        min-height:auto;
        padding-top:80px;
        padding-bottom:80px;
    }

    .affiliate-hero h1{
        font-size:46px;
        letter-spacing:-1px;
    }

    .affiliate-hero p{
        font-size:17px;
    }

    .hero-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .section-title-wrap h2,
    .dashboard-title-wrap h2{
        font-size:38px;
    }

    .rank-grid,
    .stats-grid,
    .calc-output{
        grid-template-columns:1fr;
    }

    .rank-card{
        min-height:auto;
    }

    .split-preview,
    .slider-label-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .copy-row{
        grid-template-columns:1fr;
    }

    .affiliate-footer{
        grid-template-columns:1fr;
        padding:45px 30px;
    }
}

@media(max-width:480px){
    .affiliate-hero,
    .page-section{
        padding-left:20px;
        padding-right:20px;
    }

    .affiliate-form,
    .calculator-card,
    .dashboard-card,
    .rank-card,
    .login-gate{
        padding:26px;
    }
}

.rank-note a{
    color:#8FAF4D;
    font-weight:bold;
    text-decoration:none;
}

.rank-note a:hover{
    color:#6B8E23;
}

.custom-deal-box{
    max-width:720px;
    margin:42px auto 0;
    padding:28px;
    text-align:center;
    background:#111111;
    border:1px solid rgba(85,107,47,0.45);
    border-radius:18px;
    transition:0.25s;
}

.custom-deal-box:hover{
    border-color:#6B8E23;
    box-shadow:0 18px 45px rgba(107,142,35,0.18);
    transform:translateY(-3px);
}

.custom-deal-box h3{
    font-size:26px;
    margin-bottom:12px;
}

.custom-deal-box p{
    color:#B5B5B5;
    line-height:1.7;
}

.custom-deal-box a{
    color:#8FAF4D;
    font-weight:bold;
    text-decoration:none;
}

.custom-deal-box a:hover{
    color:#6B8E23;
}