#marketsMenu .coin-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;        
}

/* === MINI CHART & TRADES === */
#miniChart       { border:1px solid #1b2639; border-radius:4px }
#recentTrades td { font-size:.60rem; padding:.25rem .4rem }
#recentTrades th { font-size:.60rem }
.trade-buy  td:first-child{ color:#3cd07a }
.trade-sell td:first-child{ color:#ff5555 }

/* === ORDER BOOK === */
#asksTbl, #bidsTbl{ table-layout:fixed; width:100%; border-collapse:collapse }
#asksTbl th, #bidsTbl th,
#asksTbl td, #bidsTbl td{ font-size:.65rem; padding:.2rem .35rem; background:transparent }
#asksTbl tbody tr td:first-child{ color:#ff5555 }
#bidsTbl tbody tr td:first-child{ color:#3cd07a }

.order-row       { position:relative; cursor:pointer }
.order-row td    { position:relative; z-index:1 }
.order-row.ask:hover {
  background: rgba(255, 85, 85, 0.08); 
  position: relative;
}



.order-row.ask > td {
  position: relative;
  z-index: 1;
}



.order-row.bid:hover {
  background: rgba(113, 255, 172, 0.08); 
  position: relative;
}



.order-row.bid > td {
  position: relative;
  z-index: 1;
}


.order-row.ask,
.order-row.bid {
  transition: background-image 0.3s ease;
}
.order-row {
  position: relative;
  cursor: pointer;
}
.order-row td {
  position: relative;
  z-index: 1;
}

.order-row.ask::before,
.order-row.bid::before {
  content: "";
  position: absolute;
  top: 0;
    left: auto;
  right: 0;
  height: 100%;
  width: var(--depth, 0%);
  z-index: 0;
  pointer-events: none;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.order-row.ask::before {
  background: rgba(255, 85, 85, 0.25);
}
.order-row.bid::before {
  background: rgba(60, 208, 122, 0.25);
}

.order-row.ask:hover::before {
  background: rgba(255, 85, 85, 0.35);
}
.order-row.bid:hover::before {
  background: rgba(113, 255, 172, 0.35);
}

.order-row.ask:hover {
  background-color: rgba(255, 85, 85, 0.08);
}
.order-row.bid:hover {
  background-color: rgba(113, 255, 172, 0.08);
}

#orderBookCard .card-body{ max-height:none; overflow-y:visible!important; scrollbar-width:none }
#orderBookCard .card-body::-webkit-scrollbar{ display:none }

/* === TRADES PANEL (scroll) === */
#tradesCard .card-body{
  max-height:610px; overflow-y:auto; padding:.5rem;
  scrollbar-width:thin; scrollbar-color:transparent transparent;
}
#tradesCard .card-body:hover{ scrollbar-color:#2a354a transparent }
#tradesCard .card-body::-webkit-scrollbar{ width:3px }
#tradesCard .card-body::-webkit-scrollbar-thumb{ background:#2a354a; border-radius:8px }

/* === MARKETS PANEL === */
#marketsCard {
  background:#0b1321;
  border:1px solid #1b2639;
   border-radius: 0.4rem !important;
  color:#dcdcdc;
}
#marketsCard .card-header {
  background:#0b1321;
  border-bottom:none!important;
  padding:.5rem .75rem;
}
#marketsCard .card-body {
  padding-top:.75rem;
  border-radius:0!important;
  overflow:visible;
  
}


#marketsMenu .market-item {
  padding: 0.03rem 0.6rem;       
  font-size: 0.65rem;
  background: #0d111b;
  color: #dcdcdc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1b2639;
  border-bottom: 1px solid #1b2639;
  transition: background 0.2s;
  cursor: pointer;
  border-radius: 0!important;
}
#marketsMenu .market-item:hover  { background:#2b2b1b ; }
#marketsMenu .market-item.active { background-color: #2b2b1b !important;
  color: #C5B707  !important;
  font-weight: 600;
  border-left: 4px solid #C5B707;
  padding-left: 8px;font-weight:bold; }





#marketsMenu .market-item .text-muted{ color:#aaa!important }
#marketsMenu .market-item:last-child {
  border-bottom-left-radius:0!important;
  border-bottom-right-radius:0!important;
}

/* === BASE TABS (BTC/LTC/…) === */
#baseTabs {
  display:flex; flex-wrap:wrap; gap:.3rem;
  list-style:none; margin:0; padding:0;
}
#baseTabs .nav-link {
  font-size:.75rem;
  padding:.35rem .75rem;
  color:#ccc;
  background:#101a2a;
  border:none;
  border-radius:.35rem;
  transition:background .2s,color .2s;
}
#baseTabs .nav-link:hover,
#baseTabs .nav-link.active {
  background:#1a2a44!important;
  color:#fff!important;
  font-weight:600;
}
#baseTabs .nav-link:focus,
#baseTabs .nav-link:active,
#baseTabs .nav-link:focus-visible,
#baseTabs .nav-link:focus-within {
  transform:none!important;
  outline:none!important;
  box-shadow:none!important;
  top:0!important;
}

/* === LAYOUT (side by side) === */
@media (min-width:1200px){
  #rightPanels{ display:flex; gap:.5rem }
  #orderBookCard, #marketsCard{ flex:1 1 0; max-width:unset }
}

/* === HEADERS SPACING === */
.card-header { padding-bottom:.6rem!important }


.card:last-child,
.card,
.card-body {
  border-radius: 0 !important;
}

#baseTabs .nav-link {
  font-size:.75rem;
  padding:.35rem .75rem;
  color:#ccc;
  background:#101a2a;
  border:none;
  border-radius:0.35rem 0.35rem 0 0; 
  transition:background .2s,color .2s;
}
#baseTabs .nav-link.active {
  background:#1a2a44!important;
  color:#fff!important;
  font-weight:600;
  border-bottom-left-radius:0!important;
  border-bottom-right-radius:0!important;
}
#orderBookCard.card {

  border-radius: 0.4rem !important;
 
}

#miniChart { border:none; }

/* === Form Controls === */
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  background-color: #0b1321;
  color: #dcdcdc;
  border: 1px solid #1b2639;
  border-radius: 0.4rem;
  font-size: 0.875rem;
}
.form-control:focus {
  border-color: #28503E;
  outline: 0;
  box-shadow: 0 0 0 0.1rem rgba(40, 80, 62, 0.5);
}

/* === Select === */
.form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  background-color: #0b1321;
  color: #dcdcdc;
  border: 1px solid #1b2639;
  border-radius: 0.4rem;
  font-size: 0.875rem;
}

/* === Buttons === */



/* === Card === */
.card {
  background-color: #0b1321;
  border: 1px solid #1b2639;
  border-radius: 0.4rem;
  margin-bottom: 1rem;
}
.card-header {
  background-color: transparent;
  border-bottom: 1px solid #1b2639;
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.card-body {
  padding: 1rem;
}

/* === Range Slider === */
.form-range {
  width: 100%;
  height: 0.5rem;
  background-color: #1b2639;
  border-radius: 0.25rem;
}
.form-range::-webkit-slider-thumb {
  appearance: none;
  width: 1rem;
  height: 1rem;
  background: #f9b707;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -0.25rem;
}
.form-range::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  background: #f9b707;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

/* === Helpers === */
.d-flex {
  display: flex !important;
}
.justify-content-between {
  justify-content: space-between !important;
}
.align-items-center {
  align-items: center !important;
}
.mt-2 { margin-top: .5rem }
.mt-3 { margin-top: 1rem }
.mb-0 { margin-bottom: 0!important }
.bg-dark {
  background-color: #0b1321 !important;
}

#miniChart {
  border-radius: 0.4rem;
  overflow: hidden; 
}

#miniChart {
  position: relative;
  border-radius: 0.4rem;
  overflow: hidden;
  background-color: #000411; 
}

#miniChart canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0.4rem;
  object-fit: cover;
}
#orderBookCard {
  border-radius: 0.4rem !important;
  overflow: hidden;
}

#orderBookCard .card-body {
  border-radius: 0 0 0.4rem 0.4rem !important; 
  background-color: #0b1321; 
}

#asksTbl thead th,
#bidsTbl thead th {
  background-color: #0b1321 !important;
  color: #dcdcdc;
  border-color: #1b2639;
}

#recentTrades thead th {
  background-color: #0b1321 !important;
  color: #dcdcdc;
  border-color: #1b2639;
}


#recentTrades tbody td {
  background-color: #0b1321 !important;
  
  border-color: #1b2639;
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
}
#recentTrades thead th {
  position: sticky;
  top: 0;
  z-index: 2; 
  background-color: #0b1321; 
  color: #dcdcdc;
  border-bottom: 1px solid #1b2639;
}
.container-fluid.content-inner > .row {
  --bs-gutter-x: 0.5rem;
}

@media (max-width: 1199.98px) {
  #rightPanels {
    display: flex;
    flex-direction: column;
  }
  #orderBookCard { order: 1; }
  #marketsCard   { order: 2; }
}

@media (max-width: 1199.98px) {

  .row > .col-xl-5 { order: 1; }


  .row > .col-xl-7 { order: 3; }

}



    .market-item.active { background:#27364b; cursor:pointer; }
    .market-item { cursor:pointer; }
    .order-row.ask  { color:#ff6b6b; }
    .order-row.bid  { color:#3cd07a; }
    .trade-buy  { color:#3cd07a; }
    .trade-sell { color:#ff6b6b; }
   

    #chartTimeframes .btn.active {
      background:#0d6efd; border-color:#0d6efd;
    }
  #chartLegend {
  position: absolute;
  left: 8px;
  top: 6px;
  z-index: 5;
  font-size: 0.72rem;
  background: rgba(0, 8, 17, 0.85);
  color: #e0e6ed;
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.25;
  font-weight: 500;
}

#chartLegend span {
  white-space: nowrap;
}
#chartLegend .ma5  { color: #1e90ff; }
#chartLegend .ma10 { color: #00bfff; }
#chartLegend .ma30 { color: #6495ed; }
#chartTimeframes .btn {
  background-color: transparent;
  border: 1px solid #1B2639;
  border-radius: 0;
  color: #fff;
  font-weight: 500;
  padding: 6px 14px;
  min-width: 48px;
  transition: background 0.2s ease;
}

#chartTimeframes .btn:first-child {
  border-radius: 6px 0 0 6px;
}

#chartTimeframes .btn:last-child {
  border-radius: 0 6px 6px 0;
}

#chartTimeframes .btn:hover {
  background-color:#1A2A44;
}

#chartTimeframes .btn.active {
  background-color: #1A2A44;
  color: #fff;
  border-color: #1A2A44;
}

.slider-container {
  position: relative;
}

.slider-label{
  position:absolute;
  top:-10px;                   
  transform:translateX(-50%);  
  font-size:.70rem;
  color:#ffc107;
  font-weight:bold;
  pointer-events:none;
  
}


input[type="range"] {
  --thumb-size: 18px; 
}
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.toast-polx {
  display: flex;
  align-items: center;
  background: rgba(18, 24, 34, 0.96);
  color: #fff;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  min-width: 280px;
  max-width: 360px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-size: 0.9rem;
  animation: slideIn 0.35s ease-out forwards;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.toast-polx .lucide {
  flex-shrink: 0;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.lucide-spin {
  animation: spin 1s linear infinite;
}


