body{
background:#020817;
font-family:Inter,Arial,sans-serif;
overflow-x:hidden;
margin:0;
padding:0;
color:#fff;
}

.bistradar-app{
display:flex;
min-height:100vh;
background:#020817;
color:#fff;
}

/* SIDEBAR */

.bist-sidebar{
width:260px;
background:#06101f;
border-right:1px solid #132033;
padding:25px;
display:flex;
flex-direction:column;
gap:25px;
position:fixed;
top:0;
left:0;
bottom:0;
z-index:1000;
overflow-y:auto;
}

.sidebar-logo h1{
font-size:34px;
margin:0;
font-weight:900;
color:#fff;
line-height:1;
}

.sidebar-logo span{
color:#3b82f6;
font-size:12px;
letter-spacing:3px;
}

.sidebar-menu{
display:flex;
flex-direction:column;
gap:12px;
}

.sidebar-menu a{
background:#0b1727;
padding:15px 18px;
border-radius:14px;
text-decoration:none;
color:#cbd5e1;
font-weight:700;
transition:.25s;
border:1px solid transparent;
font-size:15px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active{
background:#132238;
border-color:#2563eb;
transform:translateX(4px);
color:#fff;
}

/* PREMIUM BOX */

.premium-box{
margin-top:auto;
background:linear-gradient(
135deg,
#2563eb,
#7c3aed
);
padding:24px;
border-radius:22px;
}

.premium-box h3{
margin-top:0;
font-size:34px;
margin-bottom:10px;
}

.premium-box p{
line-height:1.7;
opacity:.9;
}

.premium-box button{
width:100%;
border:none;
background:#fff;
color:#111827;
padding:14px;
border-radius:14px;
font-weight:900;
cursor:pointer;
margin-top:10px;
}

/* MAIN */

.bist-main{
margin-left:260px;
width:calc(100% - 260px);
padding:30px;
box-sizing:border-box;
}

/* TOPBAR */

.topbar{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:25px;
gap:20px;
}

.ticker-wrap{
flex:1;
overflow:hidden;
background:#081120;
border-radius:18px;
padding:16px;
border:1px solid #162235;
}

.ticker{
display:flex;
gap:40px;
white-space:nowrap;
animation:tickerMove 35s linear infinite;
font-weight:800;
font-size:15px;
}

@keyframes tickerMove{

0%{
transform:translateX(0);
}

100%{
transform:translateX(-50%);
}

}

.user-box{
display:flex;
align-items:center;
gap:14px;
}

.premium-badge{
background:#7c3aed;
padding:10px 14px;
border-radius:999px;
font-size:13px;
font-weight:800;
}

.user-avatar{
width:48px;
height:48px;
border-radius:50%;
background:#2563eb;
display:flex;
align-items:center;
justify-content:center;
font-weight:900;
font-size:18px;
}

/* BUTTON */

#terminalFullscreen{
background:#2563eb;
border:none;
padding:14px 18px;
border-radius:14px;
color:#fff;
font-weight:800;
cursor:pointer;
transition:.25s;
}

#terminalFullscreen:hover{
transform:translateY(-2px);
background:#3b82f6;
}

/* GRID */

.dashboard-grid{
display:grid;
grid-template-columns:2fr 1fr 1fr;
gap:20px;
}

.widget{
background:#081120;
border-radius:24px;
padding:22px;
border:1px solid #162235;
box-shadow:0 10px 40px rgba(0,0,0,0.35);
position:relative;
overflow:hidden;
}

.large-widget{
grid-column:span 2;
}

.widget-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:20px;
}

.widget-header h2{
margin:0;
font-size:24px;
font-weight:900;
color:#fff;
}

/* CHART */

.chart-tools{
display:flex;
gap:10px;
margin-bottom:20px;
flex-wrap:wrap;
}

.chart-tools input{
background:#020817;
border:1px solid #334155;
color:#fff;
padding:12px;
border-radius:12px;
width:140px;
font-size:15px;
}

.chart-tools button{
background:#2563eb;
border:none;
padding:12px 18px;
border-radius:12px;
color:#fff;
font-weight:800;
cursor:pointer;
transition:.2s;
}

.chart-tools button:hover{
background:#3b82f6;
}

.chart-area{
width:100%;
height:500px;
position:relative;
background:#020817;
border-radius:20px;
overflow:hidden;
}

#bistCandleChart{
width:100%;
height:100%;
min-height:500px;
}

/* HEATMAP */

.heatmap{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:12px;
}

.heat{
padding:22px;
border-radius:18px;
text-align:center;
font-weight:900;
transition:.25s;
cursor:pointer;
font-size:18px;
}

.heat:hover{
transform:scale(1.05);
}

.heat.green{
background:#166534;
}

.heat.red{
background:#991b1b;
}

/* LIST */

.news-item,
.volume-item,
.radar-item{
background:#0f172a;
padding:18px;
border-radius:16px;
margin-bottom:12px;
border:1px solid #1e293b;
transition:.25s;
font-weight:700;
}

.news-item:hover,
.volume-item:hover,
.radar-item:hover{
transform:translateY(-3px);
border-color:#2563eb;
}

/* PREMIUM */

.premium-widget{
background:linear-gradient(
135deg,
#1e3a8a,
#312e81
);
}

.premium-lock{
padding:20px;
}

.premium-lock h3{
font-size:28px;
margin-bottom:10px;
}

/* AI SCORE */

#aiRadarScore{
display:flex;
flex-direction:column;
gap:15px;
}

.score-card{
padding:18px;
border-radius:18px;
background:#0f172a;
border:1px solid #1e293b;
display:flex;
justify-content:space-between;
align-items:center;
}

.score-card.buy{
border-left:5px solid #16a34a;
}

.score-card.neutral{
border-left:5px solid #f59e0b;
}

.score-card.risk{
border-left:5px solid #dc2626;
}

.score-number{
font-size:30px;
font-weight:900;
}

.score-label{
font-size:14px;
font-weight:700;
opacity:.8;
}

/* FLOATING */

.floating-widget{
position:fixed;
right:25px;
bottom:25px;
width:320px;
background:#081120;
border-radius:20px;
padding:20px;
border:1px solid #1e293b;
z-index:9999;
box-shadow:0 15px 40px rgba(0,0,0,0.4);
}

/* RESPONSIVE */

@media(max-width:1200px){

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

.large-widget{
grid-column:span 1;
}

}

@media(max-width:900px){

.bist-sidebar{
position:relative;
width:100%;
height:auto;
}

.bist-main{
margin-left:0;
width:100%;
}

.bistradar-app{
flex-direction:column;
}

.topbar{
flex-direction:column;
align-items:flex-start;
}

}