:root {
  --glass-bg: rgba(255,255,255,.7);
  --glass-border: rgba(255,255,255,.45);
}

.login-bg{
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(0,0,0,.10), transparent),
    radial-gradient(900px 450px at 90% 20%, rgba(0,0,0,.06), transparent),
    #f7f7fb;
}

.glass{
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.brand-badge{
  background:#111;
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  font-weight:700;
  letter-spacing:1px;
}

.sidebar {
  width: 300px;
  min-height: calc(100vh - 56px);
  background: #ffffff;
  transition: transform .2s ease;
}

.sidebar.hidden {
  transform: translateX(-100%);
  position: absolute;
  z-index: 10;
}

@media (max-width: 992px) {
  .sidebar {
    position: absolute;
    z-index: 10;
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0%);
  }
}

.logo-sm{ width:22px; height:22px; border-radius:6px; object-fit:contain; background:#fff; border:1px solid rgba(0,0,0,.08); }
.logo-lg{ width:38px; height:38px; border-radius:10px; object-fit:contain; background:#fff; border:1px solid rgba(0,0,0,.08); }

.codebox{
  max-height:220px;
  overflow:auto;
  background:#0b1220;
  color:#d6e2ff;
  padding:12px;
  border-radius:14px;
}

.badge-soft{
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
  color:#111;
}

.spark svg{display:block}
.spark polyline{fill:none;stroke:currentColor;stroke-width:2}
.spark{width:120px;height:28px}

/* Sparkline cell */
#tbl td:nth-child(3) svg{display:block}
#tbl td:nth-child(3) polyline{fill:none;stroke-width:2}


/* === TradingView-like dark tweaks === */
body{ background:#0b1220; }
.navbar{ box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.card{ background:#0f172a; }
.card, .sidebar{ border:1px solid rgba(255,255,255,.06)!important; }
.sidebar{ background:#0f172a; }
.table{ color: rgba(255,255,255,.92); }
.table thead th{ color: rgba(255,255,255,.85); }
.table-hover tbody tr:hover{ background: rgba(255,255,255,.04); }
.codebox{ background:#050914; }
.badge-soft{ background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); color:#e5e7eb; }
.logo-sm,.logo-lg{ background:#0b1220; border:1px solid rgba(255,255,255,.12); }
.nav-tabs .nav-link{ border:1px solid rgba(255,255,255,.08); }
.nav-tabs .nav-link.active{ background:#111c34; border-color: rgba(255,255,255,.12); }

.chipbar{ display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; }
.chip{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#e5e7eb;
  padding:.3rem .55rem;
  border-radius:999px;
  font-size:.78rem;
  cursor:pointer;
  user-select:none;
}
.chip.active{ background: rgba(56,189,248,.18); border-color: rgba(56,189,248,.35); }
.chip .dot{ display:inline-block; width:8px; height:8px; border-radius:99px; margin-right:6px; vertical-align:middle; }
.dot-buy{ background:#22c55e; }
.dot-buyc{ background:#16a34a; }
.dot-sell{ background:#ef4444; }
.dot-sellc{ background:#dc2626; }
.dot-hold{ background:#94a3b8; }

.quickbar{
  display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; justify-content:space-between;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:.65rem .75rem;
}
.quickbar .group{ display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; }
.quickbar label{ font-size:.78rem; color: rgba(255,255,255,.7); margin-right:.35rem; }
.quickbar input[type="number"]{ width:110px; }
.quickbar input, .quickbar select{ background:#0b1220; border:1px solid rgba(255,255,255,.12); color:#e5e7eb; }
.dataTables_filter input{ background:#0b1220!important; border:1px solid rgba(255,255,255,.12)!important; color:#e5e7eb!important; }
.dataTables_length select{ background:#0b1220!important; border:1px solid rgba(255,255,255,.12)!important; color:#e5e7eb!important; }

#tbl td:nth-child(3) svg{ cursor:pointer; }


.tv-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:26px;
  border-radius:10px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
#signalCombo,#regimeCombo{ min-width: 160px; }

#colSearchRow select.col-search-select{ background:#0b1220; border:1px solid rgba(255,255,255,.12); color:#e5e7eb; }

.candle-img{ width:46px; height:22px; border-radius:8px; display:block; }

#candleGallery .card{ border-radius:16px; }




/* Badge with icon + text (Signal/Regime) */
.tv-badge{
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 600;
  letter-spacing: .2px;
}
