:root{

    --bg:#020617;
    --card:#0f172a;
    --border:rgba(255,255,255,0.06);

    --green:#22c55e;
    --red:#ef4444;
    --yellow:#f59e0b;
    --blue:#2563eb;

    --text:#ffffff;
    --muted:#94a3b8;

}

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

body{
    background:var(--bg);
    color:var(--text);
    font-family:Arial, Helvetica, sans-serif;
}

/* ========================= */
/* TOPBAR */
/* ========================= */

.topbar{
    height:70px;
    background:#081120;
    border-bottom:1px solid var(--border);

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 20px;

    position:sticky;
    top:0;
    z-index:1000;
}

.topbar-left,
.topbar-center,
.topbar-right{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo{
    font-size:24px;
    font-weight:bold;
}

.market-live{
    display:flex;
    align-items:center;
    gap:8px;

    color:var(--green);
    font-weight:bold;
}

.live-dot{
    width:10px;
    height:10px;
    background:var(--green);
    border-radius:50%;

    animation:pulse 1.5s infinite;
}

@keyframes pulse{

    0%{
        opacity:1;
    }

    50%{
        opacity:0.3;
    }

    100%{
        opacity:1;
    }

}

.pair-badge{
    background:#1e293b;
    padding:8px 14px;
    border-radius:30px;
}

.search-box{
    background:#1e293b;
    border:none;
    outline:none;
    color:white;

    padding:10px 14px;
    border-radius:12px;
}

.icon-btn{
    width:42px;
    height:42px;

    border:none;
    border-radius:12px;

    background:#1e293b;
    color:white;

    cursor:pointer;
}

.icon-btn:hover{
    background:#2563eb;
}

/* ========================= */
/* SIDEBAR */
/* ========================= */

.sidebar{
    width:250px;
    height:100vh;

    background:#081120;

    position:fixed;
    top:70px;
    left:0;

    border-right:1px solid var(--border);

    padding:20px;
}

.sidebar-logo{
    font-size:20px;
    font-weight:bold;
    margin-bottom:30px;
}

.sidebar-menu{
    list-style:none;
}

.sidebar-menu li{
    display:flex;
    align-items:center;
    gap:15px;

    padding:14px;
    margin-bottom:10px;

    border-radius:14px;

    cursor:pointer;

    transition:0.3s;
}

.sidebar-menu li:hover{
    background:#1e293b;
}

.sidebar-menu li.active{
    background:#2563eb;
}

/* ========================= */
/* MAIN */
/* ========================= */

.main-content{
    margin-left:250px;
    padding:30px;
}

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

.card-box{
    background:var(--card);

    border-radius:20px;
    border:1px solid var(--border);

    padding:20px;
}

.widget-title{
    font-size:20px;
    font-weight:bold;
    margin-bottom:20px;
}

/* ========================= */
/* SIGNAL CARDS */
/* ========================= */

.signal-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
}

.signal-card{
    padding:20px;
    border-radius:20px;
    text-align:center;
}

.signal-card.buy{
    background:rgba(34,197,94,0.15);
    border:1px solid rgba(34,197,94,0.3);
}

.signal-card.sell{
    background:rgba(239,68,68,0.15);
    border:1px solid rgba(239,68,68,0.3);
}

.signal-card.hold{
    background:rgba(245,158,11,0.15);
    border:1px solid rgba(245,158,11,0.3);
}

.signal-type{
    font-size:28px;
    font-weight:bold;
    margin-bottom:10px;
}

.signal-pair{
    font-size:18px;
    margin-bottom:10px;
}

.signal-confidence{
    color:var(--muted);
}

/* ========================= */
/* WATCHLIST */
/* ========================= */

.watchlist-table{
    width:100%;
    border-collapse:collapse;
}

.watchlist-table tr{
    border-bottom:1px solid var(--border);
}

.watchlist-table td{
    padding:14px;
}

.up{
    color:var(--green);
}

.down{
    color:var(--red);
}

/* ========================= */
/* MOBILE */
/* ========================= */

.mobile-menu-btn{
    display:none;
}

@media(max-width:991px){

    .sidebar{
        transform:translateX(-100%);
        transition:0.3s;
    }

    .sidebar.show{
        transform:translateX(0);
    }

    .main-content{
        margin-left:0;
    }

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

    .mobile-menu-btn{
        display:block;

        background:none;
        border:none;
        color:white;
        font-size:24px;
    }

}

/* ========================= */
/* MARKET OVERVIEW */
/* ========================= */

.market-overview-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:20px;

    margin-bottom:20px;

}

.overview-card{

    background:#0f172a;

    border:1px solid rgba(255,255,255,0.05);

    border-radius:20px;

    padding:20px;

}

.overview-card.green{
    border-color:rgba(34,197,94,0.3);
}

.overview-card.blue{
    border-color:rgba(37,99,235,0.3);
}

.overview-card.red{
    border-color:rgba(239,68,68,0.3);
}

.overview-title{

    color:#94a3b8;

    margin-bottom:10px;

}

.overview-value{

    font-size:30px;
    font-weight:bold;

}

/* ========================= */
/* COMMENTARY */
/* ========================= */

.commentary-feed{

    display:flex;
    flex-direction:column;
    gap:20px;

}

.commentary-item{

    background:#111c30;

    border-radius:16px;

    padding:20px;

}

.commentary-header{

    font-size:18px;
    font-weight:bold;

    margin-bottom:10px;

}

.commentary-text{

    color:#cbd5e1;

    line-height:1.7;

}

.commentary-time{

    margin-top:15px;

    color:#64748b;

    font-size:13px;

}

/* ========================= */
/* RADIO */
/* ========================= */

.radio-widget{

    text-align:center;

}

.radio-status{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    margin-bottom:20px;

    color:#22c55e;
    font-weight:bold;

}

.radio-player{

    display:flex;
    justify-content:center;
    gap:15px;

    margin-bottom:20px;

}

.radio-btn{

    border:none;

    background:#2563eb;

    color:white;

    padding:12px 20px;

    border-radius:12px;

    cursor:pointer;

}

.radio-btn:hover{
    opacity:0.85;
}

.radio-now{

    color:#94a3b8;

}

/* ========================= */
/* SENTIMENT */
/* ========================= */

.sentiment-box{

    text-align:center;

    padding:25px;

    border-radius:20px;

    margin-bottom:20px;

}

.sentiment-box.bullish{

    background:rgba(34,197,94,0.15);

    border:1px solid rgba(34,197,94,0.25);

}

.sentiment-title{

    font-size:22px;
    font-weight:bold;

    margin-bottom:10px;

}

.sentiment-score{

    font-size:42px;
    font-weight:bold;

}

.sentiment-row{

    display:flex;
    justify-content:space-between;

    padding:12px 0;

    border-bottom:1px solid rgba(255,255,255,0.05);

}
/* ========================= */
/* LIVE TICKER */
/* ========================= */

.live-ticker-wrap{

    display:flex;
    align-items:center;

    background:#081120;

    border-bottom:1px solid rgba(255,255,255,0.05);

    overflow:hidden;

    height:50px;

}

.ticker-label{

    background:#2563eb;

    color:white;

    padding:0 20px;

    height:100%;

    display:flex;
    align-items:center;

    font-weight:bold;

}

.ticker-scroll{

    overflow:hidden;

    white-space:nowrap;

    flex:1;

}

.ticker-content{

    display:inline-block;

    padding-left:100%;

    animation:tickerMove 25s linear infinite;

}

.ticker-item{

    margin-right:40px;

    font-weight:bold;

}

@keyframes tickerMove{

    0%{
        transform:translateX(0);
    }

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

}

/* ========================= */
/* TRADE HISTORY */
/* ========================= */

.trade-history-table{

    width:100%;

    border-collapse:collapse;

}

.trade-history-table th{

    color:#94a3b8;

    text-align:left;

    padding:14px;

    border-bottom:1px solid rgba(255,255,255,0.06);

}

.trade-history-table td{

    padding:14px;

    border-bottom:1px solid rgba(255,255,255,0.05);

}

/* ========================= */
/* TOP MOVERS */
/* ========================= */

.mover-item{

    display:flex;
    justify-content:space-between;

    padding:14px 0;

    border-bottom:1px solid rgba(255,255,255,0.05);

}
/* ========================= */
/* ECONOMIC CALENDAR */
/* ========================= */

.calendar-item{

    display:flex;

    gap:20px;

    padding:16px 0;

    border-bottom:
    1px solid rgba(255,255,255,0.05);

}

.calendar-time{

    color:#94a3b8;

    min-width:90px;

}

.calendar-title{

    font-weight:bold;

}

.calendar-impact{

    margin-top:5px;

    font-size:12px;

    display:inline-block;

    padding:4px 10px;

    border-radius:20px;

}

.calendar-impact.high{

    background:rgba(239,68,68,0.15);

    color:#ef4444;

}

.calendar-impact.medium{

    background:rgba(245,158,11,0.15);

    color:#f59e0b;

}

/* ========================= */
/* FOREX SESSIONS */
/* ========================= */

.session-row{

    display:flex;

    justify-content:space-between;

    padding:14px 0;

    border-bottom:
    1px solid rgba(255,255,255,0.05);

}

.session-status{

    font-size:12px;

    padding:4px 10px;

    border-radius:20px;

}

.session-status.open{

    background:rgba(34,197,94,0.15);

    color:#22c55e;

}

.session-status.closed{

    background:rgba(239,68,68,0.15);

    color:#ef4444;

}

.session-status.upcoming{

    background:rgba(245,158,11,0.15);

    color:#f59e0b;

}

/* ========================= */
/* NEWS FEED */
/* ========================= */

.news-item{

    padding:16px 0;

    border-bottom:
    1px solid rgba(255,255,255,0.05);

}

.news-title{

    font-weight:bold;

    margin-bottom:8px;

}

.news-time{

    color:#94a3b8;

    font-size:13px;

}
/* ========================= */
/* ALERT TOAST */
/* ========================= */

.trade-toast{

    position:fixed;

    right:20px;
    bottom:20px;

    background:#22c55e;

    color:white;

    padding:16px 24px;

    border-radius:14px;

    z-index:9999;

    transform:
    translateY(100px);

    opacity:0;

    transition:0.4s;

}

.trade-toast.show{

    transform:translateY(0);

    opacity:1;

}/* ========================= */
/* ACCOUNT SUMMARY */
/* ========================= */

.summary-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

    gap:20px;

}

.summary-item{

    background:#111c30;

    border-radius:18px;

    padding:20px;

}

.summary-label{

    color:#94a3b8;

    margin-bottom:10px;

}

.summary-value{

    font-size:28px;

    font-weight:bold;

}

/* ========================= */
/* QUICK ACTIONS */
/* ========================= */

.quick-actions-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(160px,1fr));

    gap:15px;

}

.quick-btn{

    height:55px;

    border:none;

    background:#2563eb;

    color:white;

    border-radius:14px;

    font-weight:bold;

    transition:0.3s;

}

.quick-btn:hover{

    transform:translateY(-3px);

    opacity:0.9;

}
/* ========================= */
/* JOURNAL */
/* ========================= */

.journal-box{

    width:100%;
    height:180px;

    background:#111c30;

    border:none;

    border-radius:18px;

    padding:20px;

    color:white;

    resize:none;

}

/* ========================= */
/* HEATMAP */
/* ========================= */

.heatmap-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(120px,1fr));

    gap:15px;

}

.heatmap-item{

    padding:25px;

    border-radius:18px;

    text-align:center;

    font-weight:bold;

}

.heatmap-item.green{

    background:rgba(34,197,94,0.18);

    color:#22c55e;

}

.heatmap-item.red{

    background:rgba(239,68,68,0.18);

    color:#ef4444;

}

.heatmap-item.yellow{

    background:rgba(245,158,11,0.18);

    color:#f59e0b;

}

/* ========================= */
/* SCANNER */
/* ========================= */

.scanner-item{

    display:flex;

    justify-content:space-between;

    padding:15px 0;

    border-bottom:
    1px solid rgba(255,255,255,0.05);

}

/* ========================= */
/* GOALS */
/* ========================= */

.goal-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

/* ========================= */
/* PROFILE */
/* ========================= */

.profile-box{

    text-align:center;

    margin-bottom:20px;

}

.profile-avatar{

    font-size:64px;

    margin-bottom:10px;

}

.profile-name{

    font-size:24px;

    font-weight:bold;

}

.profile-role{

    color:#94a3b8;

}

/* ========================= */
/* MARKET PULSE */
/* ========================= */

.pulse-meter{

    width:100%;

    height:18px;

    background:#111c30;

    border-radius:30px;

    overflow:hidden;

    margin-bottom:20px;

}

.pulse-bar{

    height:100%;

}

.pulse-bar.green{

    background:#22c55e;

}

.pulse-text{

    color:#94a3b8;

}