*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

body{
background:#0B1220;
color:white;
}

.app{
display:flex;
min-height:100vh;
}

.sidebar{
width:240px;
background:#111827;
padding:30px 20px;
display:flex;
flex-direction:column;
}

.logo{
font-size:28px;
font-weight:bold;
color:#00BFFF;
margin-bottom:40px;
}

.sidebar nav{
display:flex;
flex-direction:column;
gap:18px;
}

.sidebar nav a{
color:#cbd5e1;
text-decoration:none;
padding:12px;
border-radius:10px;
transition:.3s;
}

.sidebar nav a:hover{
background:#1f2937;
color:white;
}

.main-content{
flex:1;
padding:30px;
}

.top-bar{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:30px;
}

.balance-card{
background:#111827;
padding:20px;
border-radius:15px;
text-align:center;
min-width:180px;
}

.balance-card span{
color:#94a3b8;
}

.balance-card h2{
margin-top:10px;
color:#22c55e;
}

.chart-section{
background:#111827;
border-radius:20px;
padding:20px;
}

.chart-header{
display:flex;
justify-content:space-between;
margin-bottom:20px;
}

.profit{
color:#22c55e;
font-weight:bold;
}

.chart-placeholder{
height:420px;
border-radius:15px;
display:flex;
justify-content:center;
align-items:center;
background:
linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);

background-size:40px 40px;
background-color:#0f172a;
color:#64748b;
font-size:28px;
}

.controls{
display:flex;
gap:20px;
margin-top:30px;
flex-wrap:wrap;
}

.card{
flex:1;
background:#111827;
padding:20px;
border-radius:15px;
}

.control-box{
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
    margin-top:20px;
}

.control-box button{
width:45px;
height:45px;
border:none;
border-radius:10px;
background:#1f2937;
color:white;
cursor:pointer;
font-size:20px;
}

.trade-buttons{
display:flex;
gap:30px;
margin-top:30px;
}

.trade-buttons button{
flex:1;
height:90px;
font-size:26px;
border:none;
border-radius:18px;
cursor:pointer;
font-weight:bold;
transition:.3s;
}

.up{
background:#16a34a;
color:white;
}

.down{
background:#dc2626;
color:white;
}

.trade-buttons button:hover{
transform:translateY(-5px);
}

@media(max-width:900px){

.app{
flex-direction:column;
}

.sidebar{
width:100%;
}

.top-bar{
flex-direction:column;
gap:20px;
}

.trade-buttons{
flex-direction:column;
}

.controls{
flex-direction:column;
}

}

/* ---------- LOGIN PAGE ---------- */

.auth-body{

margin:0;

padding:0;

font-family:'Poppins',sans-serif;

background:#0f172a;

display:flex;

justify-content:center;

align-items:center;

height:100vh;

}

.auth-container{

width:100%;

display:flex;

justify-content:center;

align-items:center;

}

.auth-card{

width:420px;

background:#111827;

padding:45px;

border-radius:18px;

box-shadow:0 0 40px rgba(0,0,0,.4);

}

.auth-logo{

text-align:center;

color:#00bfff;

font-size:38px;

margin-bottom:10px;

}

.auth-card h2{

text-align:center;

margin:0;

}

.auth-card p{

text-align:center;

color:#94a3b8;

margin-bottom:35px;

}

.input-group{

display:flex;

flex-direction:column;

margin-bottom:22px;

}

.input-group label{

margin-bottom:8px;

font-size:14px;

}

.input-group input{

padding:15px;

background:#1e293b;

border:none;

outline:none;

color:white;

border-radius:10px;

font-size:15px;

}

.input-group input:focus{

border:1px solid #00bfff;

}

.login-btn{

width:100%;

padding:16px;

background:#16a34a;

border:none;

border-radius:12px;

font-size:17px;

font-weight:600;

color:white;

cursor:pointer;

transition:.3s;

}

.login-btn:hover{

background:#15803d;

transform:translateY(-2px);

}

.bottom-text{

margin-top:25px;

text-align:center;

color:#94a3b8;

}

.bottom-text a{

text-decoration:none;

color:#00bfff;

font-weight:600;

}

.auth-btn{

width:100%;

padding:14px;

margin-top:20px;

border:none;

border-radius:12px;

background:#16a3ff;

color:white;

font-size:17px;

font-weight:600;

cursor:pointer;

transition:0.3s;

}

.auth-btn:hover{

background:#0d8ef0;

transform:translateY(-2px);

box-shadow:0 10px 25px rgba(22,163,255,.3);

}

.chart-header{
display:flex;
justify-content:space-between;
align-items:center;
position:relative;
}

.chart-header div{
display:flex;
align-items:center;
gap:10px;
}

#timeframeBtn{
width:38px;
height:38px;
border:none;
border-radius:8px;
background:#1f2937;
color:white;
font-size:22px;
cursor:pointer;
}

#timeframeBtn:hover{
background:#2563eb;
}

#timeframeMenu{
position:absolute;
top:70px;
right:20px;
background:#111827;
padding:12px;
border-radius:10px;
display:none;
grid-template-columns:repeat(3,60px);
gap:8px;
z-index:1000;
}

#timeframeMenu button{
background:#1f2937;
color:white;
border:none;
border-radius:6px;
padding:8px;
cursor:pointer;
}

#timeframeMenu button:hover{
background:#2563eb;
}

#investmentAmount{
    font-size:30px;
    font-weight:600;
    color:white;
}

#selectedTimer{
    font-size:30px;
    font-weight:600;
    color:white;
}

.trade-history{
    margin-top:35px;
}

.trade-card{

    background:#182233;

    border:1px solid rgba(255,255,255,.08);

    border-radius:14px;

    padding:18px;

    margin-bottom:16px;

    transition:.25s;

}

.trade-card:hover{

    transform:translateY(-2px);

    border-color:#2563eb;

}

.trade-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    margin-bottom:18px;

}

.trade-header h3{

    margin:0;

    color:#fff;

}

.trade-direction{

    color:#94a3b8;

    font-size:14px;

}

.win-badge{

    color:#22c55e;

    font-weight:bold;

}

.loss-badge{

    color:#ef4444;

    font-weight:bold;

}

.trade-body{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.trade-row{

    display:flex;

    justify-content:space-between;

    color:#e2e8f0;

}

.trade-row span{

    color:#94a3b8;

}

.profit{

    color:#22c55e;

}

.loss{

    color:#ef4444;

}

.trade-footer{

    margin-top:15px;

    padding-top:12px;

    border-top:1px solid rgba(255,255,255,.08);

    color:#94a3b8;

    font-size:13px;

}

/* ===========================
   TRADE RESULT POPUP
=========================== */

.popup-overlay{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.65);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.popup-box{

    width:350px;

    background:#111827;

    border-radius:16px;

    padding:30px;

    text-align:center;

    border:2px solid #334155;

    color:white;

    animation:popup .25s ease;

}

.popup-box h2{

    margin-bottom:20px;

    font-size:28px;

}

.popup-box p{

    line-height:1.8;

    font-size:18px;

}

.popup-box button{

    margin-top:25px;

    width:100%;

    padding:12px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    background:#2563eb;

    color:white;

    font-size:18px;

}

.popup-box button:hover{

    background:#1d4ed8;

}

@keyframes popup{

    from{

        transform:scale(.8);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}

.win{

    border-color:#22c55e;

}

.loss{

    border-color:#ef4444;

}

/* ===========================
   Dashboard Statistics
=========================== */

.dashboard-stats{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:15px;

    margin:20px 0;

}

.stat-card{

    background:#1e293b;

    border:1px solid #334155;

    border-radius:12px;

    padding:18px;

    text-align:center;

    transition:.25s;

}

.stat-card:hover{

    transform:translateY(-3px);

    border-color:#2563eb;

}

.stat-card span{

    color:#94a3b8;

    font-size:14px;

}

.stat-card h2{

    margin-top:10px;

    color:white;

    font-size:28px;

    font-weight:600;

}

/* ==========================
   Current Trade Panel
========================== */

.current-trade{

    margin:25px 0;

    background:#1e293b;

    border-radius:12px;

    padding:20px;

}

.current-trade h2{

    color:white;

    margin-bottom:15px;

}

#tradePanel{

    color:white;

}

.trade-info{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

}

.trade-item{

    background:#0f172a;

    border:1px solid #334155;

    border-radius:10px;

    padding:15px;

}

.trade-item span{

    color:#94a3b8;

    display:block;

    margin-bottom:8px;

}

.trade-item strong{

    font-size:20px;

    color:white;

}

.winning {
    color: #22c55e;
    font-weight: 700;
    transition: 0.3s;
}

.losing {
    color: #ef4444;
    font-weight: 700;
    transition: 0.3s;
}

.trade-win{

    border:2px solid #22c55e;

    box-shadow:0 0 15px rgba(34,197,94,.35);

    transition:.3s;

}

.trade-loss{

    border:2px solid #ef4444;

    box-shadow:0 0 15px rgba(239,68,68,.35);

    transition:.3s;

}

/* ========= Notification ========= */

.notification-box{
    display:flex;
    align-items:center;
}

.notification-btn{

    position:relative;

    width:58px;
    height:58px;

    background:#1b2436;

    border:1px solid rgba(255,255,255,.08);

    border-radius:16px;

    color:white;

    font-size:26px;

    cursor:pointer;

    transition:.25s;

    display:flex;

    justify-content:center;

    align-items:center;

    box-shadow:0 8px 20px rgba(0,0,0,.25);

}

.notification-btn:hover{

    background:#2563eb;

    transform:translateY(-2px);

}

#notificationCount{

    position:absolute;

    top:-4px;

    right:-4px;

    width:22px;

    height:22px;

    border-radius:50%;

    background:#ef4444;

    color:#fff;

    font-size:11px;

    font-weight:700;

    display:flex;

    justify-content:center;

    align-items:center;

    border:2px solid #111827;

}

.notification-box{
    position: relative;
}

.notification-panel{

    position: absolute;

    top: 60px;

    right: 0;

    width: 340px;

    background: #1b1f2f;

    border: 1px solid #2b3147;

    border-radius: 12px;

    box-shadow: 0 10px 25px rgba(0,0,0,.4);

    z-index: 9999;

}

.notification-header{

    display:flex;

    align-items:center;

    padding:15px;

    font-size:18px;

    font-weight:600;

    border-bottom:1px solid #2b3147;

}

.notification-item{

    padding:15px;

    border-bottom:1px solid #2b3147;

    cursor:pointer;

}

.notification-item:hover{

    background:#252c42;

}

/* ===========================
   Mobile Sidebar
=========================== */

.menu-btn {
    display: none;
}

@media (max-width:768px){

    .menu-btn{
    display:block !important;
    position:fixed;
    top:20px;
    left:20px;
    width:60px;
    height:60px;
    background:red;
    color:white;
    font-size:30px;
    border:none;
    z-index:999999;
}

    .sidebar{

        position:fixed;

        top:0;
        left:-250px;

        width:250px;
        height:100vh;

        z-index:1000;

        transition:.3s;

    }

    .sidebar.active{

        left:0;

    }

    .main-content{

        margin-left:0 !important;
        width:100%;

    }

}