    /* ===== RESET ===== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { height: 100%; overflow: hidden; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
      color: #c8cdd6;
      background: #151921;
      font-size: 12px;
      line-height: 1.4;
    }
    ::-webkit-scrollbar { width: 5px; height: 5px; }
    ::-webkit-scrollbar-track { background: #151921; }
    ::-webkit-scrollbar-thumb { background: #2a3345; border-radius: 3px; }
    button { font-family: inherit; }

    /* ===== APP SHELL ===== */
    .app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

    /* ===== TOP NAVBAR ===== */
    .navbar {
      display: flex; align-items: center; justify-content: space-between;
      background: #1a1f2e; border-bottom: 1px solid #2a3345;
      padding: 0 12px; height: 40px; flex-shrink: 0;
    }
    .nav-brand { display: flex; align-items: center; gap: 8px; }
    .nav-brand svg { width: 22px; height: 22px; }
    .nav-brand span { font-weight: 700; font-size: 14px; color: #fff; letter-spacing: 0.5px; }
    .nav-links { display: flex; align-items: center; gap: 2px; }
    .nav-links a {
      display: flex; align-items: center; gap: 5px;
      color: #8e99a9; text-decoration: none; font-size: 11px;
      padding: 6px 10px; border-radius: 4px;
      transition: background .15s, color .15s; white-space: nowrap;
    }
    .nav-links a:hover { background: #252d3a; color: #fff; }
    .nav-links a svg { width: 14px; height: 14px; flex-shrink: 0; }
    .live-badge {
      background: #27ae60; color: #fff; font-size: 9px; font-weight: 700;
      padding: 2px 6px; border-radius: 3px; letter-spacing: .5px;
    }
    .nav-toggle {
      display: none; background: none; border: none;
      color: #8e99a9; cursor: pointer; padding: 4px;
    }

    /* ===== MAIN ===== */
    .main { display: flex; flex: 1; min-height: 0; overflow: hidden; }

    /* ===== LEFT SIDEBAR ===== */
    .sidebar {
      width: 137px; min-width: 110px; background: #1a1f2e;
      border-right: 1px solid #2a3345;
      display: flex; flex-direction: column; padding: 6px 0;
      overflow-y: auto; flex-shrink: 0;
    }
    .sidebar-item {
      display: flex; align-items: center; gap: 8px;
      padding: 9px 12px; color: #8e99a9; font-size: 11px;
      cursor: pointer; border: none; background: none;
      text-align: left; width: 100%; white-space: nowrap;
      transition: background .15s, color .15s;
    }
    .sidebar-item:hover { background: #252d3a; color: #fff; }
    .sidebar-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .7; }
    .sidebar-item .lbl { font-size: 10px; }
    .sidebar-sep { height: 1px; background: #2a3345; margin: 6px 8px; }
    .sidebar-overlay { display: none; }

    /* ===== CONTENT ===== */
    .content { display: flex; flex: 1; min-width: 0; overflow: hidden; }

    /* ===== INSTRUMENTS ===== */
    .instruments {
      width: 340px; min-width: 280px; background: #1c2230;
      border-right: 1px solid #2a3345;
      display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0;
    }
    .instr-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 6px 10px; border-bottom: 1px solid #2a3345; background: #1a1f2e;
    }
    .instr-header-left { display: flex; align-items: center; gap: 8px; }
    .instr-title { font-size: 12px; font-weight: 600; color: #fff; }
    .instr-close { color: #6b7a90; cursor: pointer; font-size: 14px; background: none; border: none; display: contents; margin: 0 8px; }
    .instr-tabs {
      display: flex; gap: 0; padding: 0 10px;
      border-bottom: 1px solid #2a3345; background: #1c2230;
    }
    .instr-tab {
      background: none; border: none; color: #6b7a90; font-size: 11px;
      padding: 7px 12px; cursor: pointer; border-bottom: 2px solid transparent;
      font-weight: 500; transition: color .15s; display: contents; margin: 0 4px;
    }
    .instr-tab.active { color: #fff; border-bottom-color: #2d8cf0; }
    .instr-tab:hover { color: #c8cdd6; }
    .instr-gear { color: #6b7a90; cursor: pointer; background: none; border: none; padding: 4px; display: contents; margin: 0 8px; }
    .instr-gear svg { width: 16px; height: 16px; }
    .instr-table-wrap { flex: 1; overflow-y: auto; overflow-x: hidden; }
    table.instr-table { width: 100%; border-collapse: collapse; }
    .instr-table thead th {
      position: sticky; top: 0; background: #1c2230; color: #6b7a90;
      font-weight: 500; font-size: 10px; text-align: right;
      padding: 5px 6px; border-bottom: 1px solid #2a3345; white-space: nowrap;
    }
    .instr-table thead th:first-child { text-align: left; padding-left: 10px; }
    .instr-table tbody tr { border-bottom: 1px solid #1e2636; transition: background .1s; cursor: pointer; }
    .instr-table tbody tr:hover { background: #252d3a; }
    .instr-table td {
      padding: 5px 6px; text-align: right; font-size: 11px;
      white-space: nowrap; font-family: 'SFMono-Regular', Consolas, monospace;
    }
    .instr-table td:first-child {
      text-align: left; padding-left: 10px;
      font-family: inherit; font-weight: 500; color: #fff;
    }
    .c-green { color: #27ae60; }
    .c-red { color: #e74c3c; }
    .c-blue { color: #2d8cf0; }
    .c-muted { color: #6b7a90; }
    .sup { font-size: 8px; vertical-align: super; color: #6b7a90; }
    .star-icon { width: 20px; display: inline-block; text-align: center; color: #6b7a90; cursor: pointer; }
    .star-icon.on { color: #f39c12; }

    /* ===== RIGHT COLUMN ===== */
    .right-col { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; overflow: hidden; }

    /* ===== CHART ===== */
    .chart-panel { flex: 1; display: flex; flex-direction: column; min-height: 200px; overflow: hidden; background: #151921; }
    .chart-toolbar {
      display: flex; align-items: center; justify-content: space-between;
      padding: 4px 10px; background: #1a1f2e;
      border-bottom: 1px solid #2a3345; flex-wrap: wrap; gap: 4px; flex-shrink: 0;
    }
    .chart-toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .chart-pair { font-size: 13px; font-weight: 700; color: #fff; }
    .chart-pill {
      font-size: 10px; padding: 2px 8px; border-radius: 3px;
      background: #252d3a; color: #8e99a9; cursor: pointer; border: none;
    }
    .chart-pill:hover { color: #fff; }
    .chart-sep { color: #2a3345; margin: 0 2px; }
    .chart-toolbar-right { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #6b7a90; flex-wrap: wrap; }
    .chart-price { font-size: 11px; color: #8e99a9; font-family: monospace; }
    .chart-price .up { color: #27ae60; }
    .chart-canvas-wrap { flex: 1; position: relative; min-height: 0; }
    .chart-canvas-wrap canvas { display: block; width: 100%; height: 100%; }
    .tradingview-widget-container { width: 100%; height: 100%; }
    .tradingview-widget-container__widget { background: #151921; }
    .tradingview-widget-copyright { background: #1a1f2e; border-top: 1px solid #2a3345; padding: 4px 12px; font-size: 10px; color: #6b7a90; }
    .tradingview-widget-copyright a { color: #2d8cf0; text-decoration: none; }
    .tradingview-widget-copyright a:hover { text-decoration: underline; }
    .blue-text { color: #2d8cf0; }
    .trademark { color: #6b7a90; margin-left: 4px; }
    .chart-indicators {
      position: absolute; top: 8px; left: 12px;
      display: flex; flex-direction: column; gap: 3px; pointer-events: none;
    }
    .chart-ind { display: flex; align-items: center; gap: 4px; font-size: 9px; }
    .ind-tag { padding: 1px 5px; border-radius: 2px; font-weight: 600; }
    .ind-tag.blue { background: rgba(45,140,240,.15); color: #2d8cf0; }
    .ind-tag.yellow { background: rgba(243,156,18,.15); color: #f39c12; }
    .ind-tag.green { background: rgba(39,174,96,.15); color: #27ae60; }
    .ind-tag.red { background: rgba(231,76,60,.15); color: #e74c3c; }
    .chart-timeframes {
      display: flex; align-items: center; gap: 0;
      padding: 3px 10px; background: #1a1f2e;
      border-top: 1px solid #2a3345; flex-shrink: 0; flex-wrap: wrap;
    }
    .tf-btn {
      background: none; border: none; color: #6b7a90; font-size: 10px;
      padding: 3px 7px; cursor: pointer; border-radius: 3px; transition: background .15s, color .15s;
    }
    .tf-btn:hover { color: #c8cdd6; }
    .tf-btn.active { background: #252d3a; color: #fff; }
    .chart-time-label { margin-left: auto; font-size: 10px; color: #6b7a90; font-family: monospace; }
    .chart-auto { font-size: 10px; color: #2d8cf0; margin-left: 8px; cursor: pointer; }

    /* ===== BOTTOM PANELS ===== */

    /* ===== ACCOUNTS ===== */
    .accounts {
      width: 280px; min-width: 240px; background: #1c2230;
      border-right: 1px solid #2a3345;
      display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0;
    }
    .acc-header {
      display: flex; align-items: center; gap: 6px;
      padding: 5px 10px; border-bottom: 1px solid #2a3345; background: #1a1f2e;
    }
    .acc-title { font-size: 11px; font-weight: 600; color: #fff; }
    .acc-close { color: #6b7a90; cursor: pointer; font-size: 12px; background: none; border: none; }
    .acc-name { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid #1e2636; }
    .acc-name span { font-size: 11px; font-weight: 600; color: #fff; }
    .badge { font-size: 8px; padding: 1px 5px; border-radius: 3px; font-weight: 700; }
    .badge-blue { background: #2d8cf0; color: #fff; }
    .badge-green { background: #27ae60; color: #fff; }
    .acc-curr {
      font-size: 11px; font-weight: 600;
      padding: 4px 10px; border-bottom: 1px solid #1e2636;
      color: #fff; background: #252d3a; text-align: center;
    }
    .acc-rows { flex: 1; overflow-y: auto; padding: 2px 0; }
    .acc-row { display: flex; justify-content: space-between; padding: 3px 10px; font-size: 11px; }
    .acc-row .l { color: #6b7a90; }
    .acc-row .v { color: #c8cdd6; font-family: 'SFMono-Regular', Consolas, monospace; }

    /* ===== TRADES ===== */
    .trades {
      flex: 1; min-width: 0; background: #1c2230;
      display: flex; flex-direction: column; overflow: hidden;
    }
    .trades-tabs {
      display: flex; align-items: center; padding: 0 10px;
      border-bottom: 1px solid #2a3345; background: #1a1f2e;
    }
    .trade-tab {
      background: none; border: none; color: #6b7a90; font-size: 11px;
      padding: 7px 12px; cursor: pointer; border-bottom: 2px solid transparent;
      font-weight: 500; transition: color .15s;
    }
    .trade-tab.active { color: #fff; border-bottom-color: #2d8cf0; }
    .trade-tab:hover { color: #c8cdd6; }
    .trade-content { flex: 1; overflow: auto; padding: 8px 12px; }
    .trade-card {
      background: #1a1f2e; border: 1px solid #2a3345;
      border-radius: 4px; padding: 10px 12px;
    }
    .trade-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
    .trade-pair { font-size: 13px; font-weight: 700; color: #fff; }
    .trade-units { font-size: 11px; color: #8e99a9; }
    .trade-pnl { text-align: right; }
    .trade-pnl-val { font-size: 14px; font-weight: 700; font-family: 'SFMono-Regular', Consolas, monospace; }
    .trade-pnl-pips { font-size: 10px; margin-top: 2px; }
    .trade-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; font-size: 10px; }
    .trade-details .dl { color: #6b7a90; }
    .trade-details .dv { color: #c8cdd6; font-family: 'SFMono-Regular', Consolas, monospace; }

    /* ===== MOBILE SIDEBAR BTN ===== */
    .mob-sidebar-btn {
      display: none; position: fixed; bottom: 16px; left: 16px; z-index: 100;
      width: 40px; height: 40px; border-radius: 50%;
      background: #2d8cf0; color: #fff; border: none; cursor: pointer;
      box-shadow: 0 2px 8px rgba(0,0,0,.4); font-size: 18px;
    }

    /* ===== RESPONSIVE 1024 ===== */
    @media (max-width: 1024px) {
      .instruments { width: 260px; min-width: 220px; }
      .accounts { width: 240px; min-width: 200px; }
    }

    /* ===== RESPONSIVE 768 ===== */
    @media (max-width: 768px) {
      .nav-links { display: none; position: absolute; top: 40px; left: 0; right: 0; background: #1a1f2e; flex-direction: column; padding: 8px; border-bottom: 1px solid #2a3345; z-index: 200; }
      .nav-links.open { display: flex; }
      .nav-toggle { display: block; }
      .sidebar { position: fixed; left: -260px; top: 40px; bottom: 0; width: 200px; z-index: 150; transition: left .25s; }
      .sidebar.open { left: 0; }
      .sidebar-overlay { display: none; position: fixed; inset: 0; top: 40px; background: rgba(0,0,0,.5); z-index: 140; }
      .sidebar-overlay.open { display: block; }
      .mob-sidebar-btn { display: flex; align-items: center; justify-content: center; }
      .content { flex-direction: column; overflow-y: auto; }
      .instruments { width: 100%; min-width: 0; max-height: 320px; border-right: none; border-bottom: 1px solid #2a3345; }
      .right-col { min-height: 500px; }
      .chart-panel { min-height: 300px; }
      .bottom { flex-direction: column; height: auto; }
      .accounts { width: 100%; min-width: 0; border-right: none; border-bottom: 1px solid #2a3345; }
      .trades { min-height: 180px; }
      
      /* Home page mobile scrolling */
      #home.page-content { overflow-y: auto; height: auto; min-height: 100vh; }
      #home .content { min-height: auto; }
      #home .bottom { height: auto; min-height: 450px; }
      #home .ai-card { padding: 15px; display: block !important; width: 100% !important; }
    }

    /* ===== RESPONSIVE 480 ===== */
    @media (max-width: 480px) {
      .navbar { padding: 0 8px; }
      .nav-brand span { font-size: 12px; }
      .chart-toolbar-right { display: none; }
      .instruments { max-height: 260px; }
    }
.deposit-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: auto;          /* scroll if content is long */
}



.deposit-card {
    max-width: 700px;
    width: 100%;
    background: #1c2230;
    border: 1px solid #2a3345;
    border-radius: 6px;
    margin: 40px auto; /* centers horizontally */
    padding: 25px 30px; /* added padding inside the card */
    box-sizing: border-box; /* ensures padding doesn't break width */
}

.transaction-card{
    max-width: 1000px;
    width: 100%;
    background: #1c2230;
    border: 1px solid #2a3345;
    border-radius: 6px;
    margin: 40px auto; /* centers horizontally */
    padding: 25px 30px; /* added padding inside the card */
    box-sizing: border-box; /* ensures padding doesn't break width */
}

.deposit-header{
    padding:15px 18px;
    border-bottom:1px solid #2a3345;
}

.deposit-header h2{
    color:#fff;
    font-size:16px;
    margin-bottom:4px;
}

.deposit-header span{
    font-size:11px;
    color:#8e99a9;
}

.deposit-body{
    padding:18px;
}

.deposit-field{
    margin-bottom:16px;
    display:flex;
    flex-direction:column;
}

.deposit-field label{
    margin-bottom:6px;
    font-size:11px;
    color:#8e99a9;
}

.deposit-field input,
.deposit-field select{
    background:#151921;
    border:1px solid #2a3345;
    color:#c8cdd6;
    padding:8px 10px;
    border-radius:4px;
    font-size:12px;
}

.deposit-wallet{
    display:flex;
    gap:20px;
    margin-top:10px;
    align-items:center;
}

.deposit-qr img{
    width:130px;
    height:130px;
    border:1px solid #2a3345;
    background:#fff;
    padding:6px;
}

.deposit-address{
    flex:1;
}

.address-box{
    display:flex;
    margin-top:6px;
}

.address-box input{
    flex:1;
    background:#151921;
    border:1px solid #2a3345;
    padding:8px;
    color:#c8cdd6;
}

.address-box button{
    background:#27ae60;
    border:none;
    color:#fff;
    padding:8px 14px;
    cursor:pointer;
}

.deposit-address small{
    display:block;
    margin-top:6px;
    color:#6b7a90;
    font-size:10px;
}

.deposit-action{
    margin-top:20px;
}

.deposit-action button{
    background:#27ae60;
    border:none;
    padding:10px 18px;
    color:#fff;
    border-radius:4px;
    cursor:pointer;
}

.withdraw-tabs{
display:flex;
gap:10px;
margin-bottom:25px;
}

.withdraw-tab{
flex:1;
padding:12px;
background:#141923;
border:1px solid #2a3345;
color:white;
cursor:pointer;
border-radius:6px;
}

.withdraw-tab.active{
background:#0b3df0;
color:black;
}

.withdraw-section{
display:none;
}

.withdraw-section.active{
display:block;
}
/* ===== WIDE DASHBOARD TABLE ===== */

.table-wrap{
width:100%;
overflow-x:auto;
padding-bottom:5px;
}

/* make the table wider */
.dashboard-table{
width:100%;
min-width:1200px; /* makes table wider */
border-collapse:collapse;
font-size:12px;
}

.dashboard-table thead{
background:#1a1f2e;
}

.dashboard-table th{
padding:14px 18px;
text-align:left;
color:#8e99a9;
border-bottom:1px solid #2a3345;
white-space:nowrap;
}

.dashboard-table td{
padding:14px 18px;
border-bottom:1px solid #1e2636;
color:#c8cdd6;
white-space:nowrap;
}

.dashboard-table tbody tr:hover{
background:#252d3a;
}

/* status badge */

.status{
padding:4px 10px;
border-radius:4px;
font-size:10px;
font-weight:600;
}

.status.completed{
background:rgba(39,174,96,.15);
color:#27ae60;
}

.status.approved{
background:rgba(39,174,96,.15);
color:#27ae60;
}

.status.pending{
background:rgba(243,156,18,.15);
color:#f39c12;
}

.status.rejected{
background:rgba(231,76,60,.15);
color:#e74c3c;
}

.status.failed{
background:rgba(231,76,60,.15);
color:#e74c3c;
}

/* action button */

.table-btn{
background:#252d3a;
border:none;
padding:7px 14px;
border-radius:4px;
color:#c8cdd6;
cursor:pointer;
}

.table-btn:hover{
background:#2d8cf0;
color:white;
}
.sidebar-item.active {
    background-color: #1aff8c55; /* highlight active */
    color: #fff;
}

.page-content {
    display: none;           /* ← important: start hidden */
    flex-direction: column;
    flex: 1;
    width: 100%;
    /* min-height: 400px;   ← optional */
}

/* Home page specific scrolling */
#home.page-content {
    overflow-y: auto;
    overflow-x: hidden;
}
.ai-wrapper{
max-width:1000px;
margin:40px auto;
}

.ai-card{
background:#1c2230;
border:1px solid #2a3345;
border-radius:10px;
padding:25px;
color:#fff;
width: 100%;
height: 100%;
overflow-y: auto;
}

.ai-top{
display:flex;
align-items:center;
justify-content:space-between;
flex-wrap:wrap;
}

.ai-meter{
position:relative;
width:250px;
height:150px;
}

.ai-percent{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-20%);
font-size:32px;
font-weight:bold;
}

.ai-stats{
text-align:left;
}

.ai-levels{
margin-bottom:8px;
display:flex;
align-items:center;
gap:10px;
}

.level{
width:30px;
height:10px;
border-radius:4px;
}

.green{background:#2ecc71;}
.yellow{background:#f1c40f;}
.red{background:#e74c3c;}

.ai-confidence{
margin-top:10px;
}

.ai-value{
font-size:22px;
font-weight:bold;
}

.ai-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
margin-top:25px;
}

.ai-box{
background:#20283a;
border:1px solid #2a3345;
border-radius:8px;
padding:20px;
}

.ai-box h3{
margin-bottom:15px;
}

.trade-line{
margin-bottom:8px;
}

.checkpoint{
font-size:22px;
font-weight:bold;
}
#customAlert{
position:fixed;
top:20px;
right:20px;
padding:15px 20px;
border-radius:6px;
font-weight:600;
display:none;
z-index:9999;
}

.alert-success{
background:#1db954;
color:#fff;
}

.alert-error{
background:#e74c3c;
color:#fff;
}

.alert-warning{
background:#f1c40f;
color:#000;
}
.tx-modal{
display:flex;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(255, 255, 255, 0.6);
justify-content:center;
align-items:center;
z-index:999;
opacity:0;
pointer-events:none;
transition:opacity 0.3s ease;
}

.tx-modal.active{
opacity:1;
pointer-events:auto;
}

.tx-modal-content{
background:#000000;
padding:25px;
border-radius:8px;
width:400px;
position:relative;
}

.close-modal{
position:absolute;
right:15px;
top:10px;
font-size:22px;
cursor:pointer;
}

#txDetails p{
margin:8px 0;
}
.plus{
font-weight:bold;
margin-right:5px;
color:#2ecc71;
}
.deposit-plus{
background:#22c55e;     /* green background */
color:#fff;             /* white plus */
width:18px;
height:18px;
display:inline-flex;
align-items:center;
justify-content:center;
border-radius:4px;      /* small rounded box */
font-weight:bold;
font-size:14px;
margin-right:6px;
}

        .app { overflow: auto !important; }


. s p i n n e r   {   d i s p l a y :   i n l i n e - b l o c k ;   w i d t h :   1 6 p x ;   h e i g h t :   1 6 p x ;   b o r d e r :   2 p x   s o l i d   # f 3 f 3 f 3 ;   b o r d e r - t o p :   2 p x   s o l i d   # 3 4 9 8 d b ;   b o r d e r - r a d i u s :   5 0 % ;   a n i m a t i o n :   s p i n   1 s   l i n e a r   i n f i n i t e ;   m a r g i n - r i g h t :   8 p x ;   }   @ k e y f r a m e s   s p i n   {   0 %   {   t r a n s f o r m :   r o t a t e ( 0 d e g ) ;   }   1 0 0 %   {   t r a n s f o r m :   r o t a t e ( 3 6 0 d e g ) ;   }   } 
 
 