*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#0b0b0b;
    color:white;
    font-family:Arial, sans-serif;
}

.dashboard-layout{
    min-height:100vh;
    display:grid;
    grid-template-columns:280px 1fr;
}

/* SIDEBAR */

.sidebar{
    background:#111111;
    border-right:1px solid rgba(255,255,255,0.08);
    padding:32px 20px;
    display:flex;
    flex-direction:column;

    position:sticky;
    top:0;
    height:100vh;
    overflow-y:auto;
}

.sidebar-logo img{
    height:58px;
    margin-bottom:70px;
}

.sidebar-menu{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.sidebar-menu a{
    color:#B5B5B5;
    text-decoration:none;
    padding:17px 18px;
    border-radius:12px;
    font-weight:bold;
    transition:0.25s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active{
    background:#556B2F;
    color:white;
    box-shadow:0 0 20px rgba(107,142,35,0.25);
}

.logout-btn{
    margin-top:auto;
    padding:15px;
    border:none;
    border-radius:12px;
    background:#1b1b1b;
    color:#B5B5B5;
    font-weight:bold;
    cursor:pointer;
    transition:0.25s;
}

.logout-btn:hover{
    background:#6B8E23;
    color:white;
}

/* MAIN */

.dashboard-main{
    padding:38px;
    background:
        radial-gradient(circle at 85% 15%, rgba(107,142,35,0.13), transparent 30%),
        #0b0b0b;
}

.topbar{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:14px;
    margin-bottom:35px;
}

.evaluation-box select{
    width:100%;
    padding:10px 38px 10px 12px;

    background:#151515;
    color:white;

    border:1px solid rgba(85,107,47,0.55);
    border-radius:12px;

    font-size:15px;
    font-weight:700;
    cursor:pointer;
    outline:none;

    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='M3 6L8 11L13 6' stroke='%238FAF4D' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 12px center;

    transition:0.25s;
}

.evaluation-box select:hover,
.evaluation-box select:focus{
    border-color:#8FAF4D;
    box-shadow:0 0 18px rgba(107,142,35,0.25);
}

.evaluation-box select option{
    background:#151515;
    color:white;
}


.profile-box{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:300px;
}

.profile-icon{
    width:46px;
    height:46px;
    border-radius:50%;
    background:#556B2F;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
}

.profile-box strong{
    display:block;
}

.profile-box span{
    color:#B5B5B5;
    font-size:14px;
}

.settings-btn{
    margin-left:auto;
    background:none;
    border:none;
    color:#B5B5B5;
    font-size:20px;
    cursor:pointer;
}

/* HERO */

.dashboard-hero{
    margin-bottom:22px;
}

.dashboard-hero h1{
    font-size:64px;
    font-weight:400;
    margin-bottom:8px;
}

.dashboard-hero p{
    color:#B5B5B5;
}

/* STATS */

.stats-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:14px;
    margin-bottom:14px;
}

.stat-card,
.chart-card{
    background:#151515;
    border:1px solid rgba(255,255,255,0.06);
    border-radius:18px;
    padding:24px;
}

.stat-card h3{
    color:#B5B5B5;
    margin-bottom:16px;
}

.stat-card strong{
    display:block;
    font-size:30px;
    font-weight:500;
    margin-bottom:45px;
}

.stat-card small{
    color:#777;
    font-weight:bold;
}

.mini-stats{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:18px;
    margin-bottom:28px;
}

.mini-stats span{
    color:#999;
    display:block;
    margin-bottom:8px;
    font-size:13px;
}

.mini-stats b{
    font-size:18px;
}

/* CHART */

.chart-card{
    height:360px;
    min-height:360px;
    max-height:360px;
    position:relative;
    overflow:hidden;
}

.chart-card canvas{
    height:260px !important;
    max-height:260px;
}

.chart-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:35px;
}

.chart-header h2{
    font-size:32px;
}

.chart-header p{
    color:#888;
    margin-top:6px;
}

.chart-tabs{
    display:flex;
    gap:10px;
}

.chart-tabs button{
    padding:12px 22px;
    border-radius:30px;
    border:1px solid rgba(255,255,255,0.08);
    background:#111111;
    color:#B5B5B5;
    font-weight:bold;
    cursor:pointer;
}

.chart-tabs button.active,
.chart-tabs button:hover{
    background:#556B2F;
    color:white;
}

.fake-chart{
    height:170px;
    border-top:1px dashed rgba(255,255,255,0.08);
    border-bottom:1px dashed rgba(255,255,255,0.08);
    position:relative;
    overflow:hidden;
}

.chart-line{
    position:absolute;
    left:40px;
    right:40px;
    top:75px;
    height:6px;
    background:#8FAF4D;
    border-radius:20px;
    box-shadow:0 0 20px rgba(143,175,77,0.35);
}

.evaluation-box select{
    width:100%;
    background:#111111;
    color:white;
    border:none;
    outline:none;
    font-weight:bold;
    font-size:16px;
    cursor:pointer;
}

.trade-stats-grid{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:14px;
    margin-bottom:14px;
}

.trades-card{
    background:#151515;
    border:1px solid rgba(255,255,255,0.06);
    border-radius:18px;
    padding:24px;
}

.trades-card h2{
    margin-bottom:22px;
}

.trades-card table{
    width:100%;
    border-collapse:collapse;
}

.trades-card th{
    color:#888;
    font-size:12px;
    text-align:left;
    padding:14px 10px;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.trades-card td{
    padding:16px 10px;
    border-bottom:1px solid rgba(255,255,255,0.05);
    color:#ddd;
}

.pnl-positive{
    color:#8FAF4D !important;
}

.pnl-negative{
    color:#ff6b6b !important;
}

.trade-stats-grid{
    margin-top:25px;
    margin-bottom:14px;
}

.trades-card{
    margin-top:25px;
}

.configure-card{
    max-width:520px;
    background:#151515;
    border:1px solid rgba(85,107,47,0.45);
    border-radius:18px;
    padding:28px;
}

.configure-card label{
    display:block;
    color:#B5B5B5;
    font-weight:bold;
    margin-bottom:8px;
}

.configure-card input,
.configure-card select{
    width:100%;
    padding:16px;
    margin-bottom:20px;
    background:#111111;
    color:white;
    border:1px solid rgba(85,107,47,0.45);
    border-radius:12px;
    outline:none;
}

.configure-card input:focus,
.configure-card select:focus{
    border-color:#8FAF4D;
    box-shadow:0 0 18px rgba(107,142,35,0.25);
}

.configure-card button{
    width:100%;
    padding:16px;
    border:none;
    border-radius:12px;
    background:#556B2F;
    color:white;
    font-weight:bold;
    cursor:pointer;
}

.configure-card button:hover{
    background:#6B8E23;
    box-shadow:0 0 25px rgba(107,142,35,0.3);
}

#bybitMessage{
    margin-top:16px;
    font-weight:bold;
}

.dashboard-addons{
    display:grid;
    gap:12px;
    margin-bottom:22px;
}

.addon-row{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px;
    border:1px solid rgba(85,107,47,0.35);
    border-radius:12px;
    color:#B5B5B5;
    cursor:pointer;
    transition:0.25s;
}

.addon-row:hover{
    border-color:#8FAF4D;
    box-shadow:0 0 18px rgba(107,142,35,0.18);
}

.addon-row input{
    width:auto;
    margin:0;
    accent-color:#6B8E23;
}

#dashboardBuyMessage{
    margin-top:16px;
    font-weight:bold;
}

.dashboard-buy-grid{
    display:grid;
    grid-template-columns:1.2fr 0.8fr;
    gap:18px;
    align-items:start;
}

.dashboard-order-card{
    background:#151515;
    border:1px solid rgba(85,107,47,0.45);
    border-radius:18px;
    padding:28px;
}

.dashboard-order-card h2{
    margin-bottom:24px;
}

.summary-row,
.summary-total{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 0;
    border-bottom:1px solid rgba(255,255,255,0.07);
}

.summary-row span,
.summary-total span,
.payment-method span{
    color:#B5B5B5;
}

.summary-total{
    border-bottom:none;
    margin-top:10px;
}

.summary-total b{
    font-size:28px;
    color:#8FAF4D;
}

.payment-method{
    margin-top:24px;
    margin-bottom:22px;
}

.crypto-payment{
    margin-top:10px;
    padding:15px;
    border:1px solid rgba(85,107,47,0.55);
    border-radius:12px;
    background:#111111;
    color:white;
    font-weight:bold;
}

.dashboard-order-card button{
    width:100%;
    padding:16px;
    border:none;
    border-radius:12px;
    background:#556B2F;
    color:white;
    font-weight:bold;
    cursor:pointer;
    transition:0.25s;
}

.dashboard-order-card button:hover{
    background:#6B8E23;
    box-shadow:0 0 25px rgba(107,142,35,0.3);
}

.profile-settings-card{
    background:#151515;
    border:1px solid rgba(85,107,47,0.45);
    border-radius:18px;
    padding:28px;
    margin-bottom:24px;
}

.profile-settings-card h2{
    margin-bottom:22px;
}

.profile-form-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:18px;
    margin-bottom:24px;
}

.profile-form-grid label{
    display:block;
    color:#B5B5B5;
    font-weight:bold;
    margin-bottom:8px;
}

.profile-form-grid input{
    width:100%;
    padding:16px;
    background:#111111;
    color:white;
    border:1px solid rgba(85,107,47,0.35);
    border-radius:12px;
    outline:none;
}

.profile-form-grid input:focus{
    border-color:#8FAF4D;
    box-shadow:0 0 18px rgba(107,142,35,0.22);
}

.profile-form-grid input:disabled{
    opacity:0.65;
    cursor:not-allowed;
}

.profile-settings-card button{
    width:100%;
    padding:16px;
    border-radius:12px;
    border:none;
    background:#556B2F;
    color:white;
    font-weight:bold;
    cursor:pointer;
    transition:0.25s;
}

.profile-settings-card button:hover{
    background:#6B8E23;
    box-shadow:0 0 25px rgba(107,142,35,0.3);
}

#profileMessage,
#passwordMessage{
    margin-top:15px;
    font-weight:bold;
}

.addon-row input{
    display:none;
}

.addon-row.selected{
    border-color:#8FAF4D;
    background:rgba(107,142,35,0.12);
    box-shadow:0 0 22px rgba(107,142,35,0.25);
    color:white;
}

.coupon-box{
    margin-top:18px;
    margin-bottom:18px;
}

.coupon-box label{
    display:block;
    color:#B5B5B5;
    font-weight:bold;
    margin-bottom:8px;
}

.coupon-row{
    display:flex;
    gap:10px;
}

.coupon-row input{
    flex:1;
    padding:14px;
    background:#111111;
    color:white;
    border:1px solid rgba(85,107,47,0.45);
    border-radius:12px;
    outline:none;
}

.coupon-row button{
    width:auto;
    padding:14px 20px;
}

#dashCouponMessage{
    display:block;
    margin-top:8px;
    color:#B5B5B5;
}

/* AFFILIATE DASHBOARD */

.affiliate-panel-card{
    background:#151515;
    border:1px solid rgba(85,107,47,0.45);
    border-radius:18px;
    padding:28px;
    margin-bottom:24px;
}

.affiliate-panel-card h2{
    margin-bottom:14px;
}

.affiliate-muted{
    color:#B5B5B5;
    line-height:1.7;
    margin-bottom:22px;
}

.affiliate-panel-card label{
    display:block;
    color:#B5B5B5;
    font-weight:bold;
    margin-bottom:8px;
}

.affiliate-panel-card input,
.affiliate-panel-card textarea{
    width:100%;
    padding:16px;
    margin-bottom:20px;
    background:#111111;
    color:white;
    border:1px solid rgba(85,107,47,0.45);
    border-radius:12px;
    outline:none;
}

.affiliate-panel-card textarea{
    min-height:120px;
    resize:vertical;
}

.affiliate-panel-card input:focus,
.affiliate-panel-card textarea:focus{
    border-color:#8FAF4D;
    box-shadow:0 0 18px rgba(107,142,35,0.25);
}

.affiliate-panel-card button,
.affiliate-copy-row button{
    padding:16px;
    border:none;
    border-radius:12px;
    background:#556B2F;
    color:white;
    font-weight:bold;
    cursor:pointer;
    transition:0.25s;
}

.affiliate-panel-card button:hover,
.affiliate-copy-row button:hover{
    background:#6B8E23;
    box-shadow:0 0 25px rgba(107,142,35,0.3);
}

.affiliate-stats-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:14px;
    margin-bottom:24px;
}

.affiliate-dashboard-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.affiliate-copy-row{
    display:grid;
    grid-template-columns:1fr 120px;
    gap:12px;
}

.affiliate-copy-row input{
    margin-bottom:0;
}

.affiliate-slider-row{
    display:grid;
    grid-template-columns:1fr 70px;
    gap:16px;
    align-items:center;
    margin-bottom:22px;
}

.affiliate-slider-row span{
    color:#8FAF4D;
    font-size:22px;
    font-weight:bold;
    text-align:right;
}

.dashboard-range{
    --fill:30%;
    appearance:none;
    -webkit-appearance:none;
    width:100%;
    height:16px;
    padding:0 !important;
    margin:0 !important;
    border:none !important;
    border-radius:999px;
    cursor:pointer;
    background:linear-gradient(
        90deg,
        #8FAF4D 0%,
        #6B8E23 var(--fill),
        rgba(255,255,255,0.12) var(--fill),
        rgba(255,255,255,0.12) 100%
    ) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 28px rgba(0,0,0,0.25);
}

.dashboard-range::-webkit-slider-thumb{
    appearance:none;
    -webkit-appearance:none;
    width:28px;
    height:28px;
    border-radius:50%;
    background:white;
    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);
}

.dashboard-range::-moz-range-thumb{
    width:28px;
    height:28px;
    border-radius:50%;
    background:white;
    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);
}

.affiliate-split-preview{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-bottom:22px;
}

.affiliate-split-preview div{
    background:#111111;
    border:1px solid rgba(255,255,255,0.06);
    border-radius:14px;
    padding:18px;
}

.affiliate-split-preview span{
    display:block;
    color:#B5B5B5;
    font-size:13px;
    margin-bottom:8px;
}

.affiliate-split-preview b{
    color:#8FAF4D;
    font-size:28px;
}

.affiliate-monthly-note{
    padding:16px;
    border:1px solid rgba(85,107,47,0.35);
    border-radius:12px;
    background:rgba(107,142,35,0.08);
    color:#B5B5B5;
    line-height:1.6;
    margin-bottom:22px;
}

#dashboardAffiliateCreateMessage,
#affiliateDashMessage{
    margin-top:15px;
    font-weight:bold;
}

.affiliate-commission-card{
    margin-top:0;
}

.affiliate-cta-row{
    display:flex;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
}

.monthly-note{
    margin-top:22px !important;
    color:#B5B5B5;
}

@media(max-width:1050px){
    .affiliate-stats-grid,
    .affiliate-dashboard-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:760px){
    .affiliate-stats-grid,
    .affiliate-dashboard-grid,
    .affiliate-split-preview,
    .affiliate-copy-row{
        grid-template-columns:1fr;
    }

    .affiliate-slider-row{
        grid-template-columns:1fr;
    }

    .affiliate-slider-row span{
        text-align:left;
    }
}