* {
  box-sizing: border-box;
}

body {
  background: #050505;
  color: #e4e4e7;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

.nav-item.active {
  color: #ffffff;
  border-bottom: 2px solid #22c55e;
  background: rgba(34, 197, 94, 0.06);
}

.dropdown-menu {
  display: none;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: block;
}

.tag-pill {
  background: #141417;
  border: 1px solid #27272a;
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 11px;
  color: #d4d4d8;
  white-space: nowrap;
}

.screener-pill {
  background: #09090b;
  border: 1px solid #232328;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  color: #a1a1aa;
  font-family: 'JetBrains Mono', monospace;
}

.pnl-pill-pos {
  background: #166534;
  color: #dcfce7;
  border-radius: 9999px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 11px;
}

.pnl-pill-neg {
  background: #3b1d20;
  color: #fca5a5;
  border-radius: 9999px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 11px;
}

.side-long {
  background: #14532d;
  color: #4ade80;
  border-radius: 9999px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.side-short {
  background: #3a1a1e;
  color: #f87171;
  border-radius: 9999px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.tf-btn.active {
  background: #27272a;
  color: #ffffff;
  border-color: #3f3f46;
}

.tool-btn.active {
  background: #22c55e22;
  color: #22c55e;
  border-color: #22c55e66;
}

.recording-pulse {
  animation: pulseRec 1.1s infinite;
  color: #ef4444 !important;
}

@keyframes pulseRec {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.ord-tip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ord-tip-box {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #09090b;
  border: 1px solid #2e2e34;
  color: #f4f4f5;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 60;
}

.ord-tip-wrap:hover .ord-tip-box {
  opacity: 1;
  transform: translateY(0);
}

.dot-market {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.45);
}

.dot-limit {
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.45);
}
