/* ISHOUT // CHARTS — nt-overlays.css
 * Floating HUD cards for FlowGamma Regime Playbook & BennyLava ROB Gauge
 */
#nt-hud {
  position: absolute;
  top: 8px;
  right: 82px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: min(328px, calc(100% - 92px));
  pointer-events: none;
  user-select: none;
}

.nt-card {
  pointer-events: auto;
  width: 100%;
  background: rgba(20, 23, 27, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(60, 66, 74, 0.72);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.42);
  color: var(--tx);
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nt-card.is-compact {
  width: auto;
  min-width: 192px;
}

.nt-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
}

.nt-card-head:hover {
  background: rgba(255, 255, 255, 0.035);
}

.nt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px currentColor;
  flex-shrink: 0;
}

.nt-badge {
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
}

.nt-meta {
  margin-left: auto;
  color: var(--tx2);
  font-size: 10px;
}

.nt-chev {
  color: var(--dim);
  font-size: 10px;
  margin-left: 2px;
}

/* FlowGamma Regime Tones */
.fg-tone-scalp { border-left-color: #35bda5; }
.fg-tone-scalp .nt-dot { background: #35bda5; color: #35bda5; }
.fg-tone-scalp .nt-badge { color: #57dfc5; }

.fg-tone-buy { border-left-color: #00e676; }
.fg-tone-buy .nt-dot { background: #00e676; color: #00e676; }
.fg-tone-buy .nt-badge { color: #69f0ae; }

.fg-tone-sell { border-left-color: #f06b75; }
.fg-tone-sell .nt-dot { background: #f06b75; color: #f06b75; }
.fg-tone-sell .nt-badge { color: #ff8a93; }

.fg-tone-warn { border-left-color: #ffb74d; }
.fg-tone-warn .nt-dot { background: #ffb74d; color: #ffb74d; }
.fg-tone-warn .nt-badge { color: #ffd180; }

.fg-tone-pin { border-left-color: #ce93d8; }
.fg-tone-pin .nt-dot { background: #ce93d8; color: #ce93d8; }
.fg-tone-pin .nt-badge { color: #e1bee7; }

.fg-tone-drift { border-left-color: #63b9eb; }
.fg-tone-drift .nt-dot { background: #63b9eb; color: #63b9eb; }
.fg-tone-drift .nt-badge { color: #90caf9; }

.nt-card-body {
  padding: 5px 9px 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fg-rules {
  color: #edf1f5;
  font-size: 11px;
  line-height: 1.38;
  font-weight: 500;
}

.fg-levels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
}

.fg-lvl {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.fg-lvl span {
  color: var(--dim);
  flex-shrink: 0;
}

.fg-lvl b {
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fg-lvl.up b { color: #f48fb1; }
.fg-lvl.dn b { color: #64d8cb; }

.fg-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  color: var(--dim);
  font-size: 9.5px;
  font-family: var(--mono);
}

.fg-foot b {
  color: var(--tx2);
  font-weight: 600;
}

/* BennyLava ROB Gauge */
#rob-hud {
  min-width: 214px;
}

.rob-tone-buy { border-left-color: #35bda5; }
.rob-tone-buy .rob-state { color: #57dfc5; background: rgba(53, 189, 165, 0.16); }
.rob-tone-buy-soft { border-left-color: rgba(53, 189, 165, 0.65); }
.rob-tone-buy-soft .rob-state { color: #7ad7c6; background: rgba(53, 189, 165, 0.10); }

.rob-tone-sell { border-left-color: #f06b75; }
.rob-tone-sell .rob-state { color: #ff8a93; background: rgba(240, 107, 117, 0.18); }
.rob-tone-sell-soft { border-left-color: rgba(240, 107, 117, 0.65); }
.rob-tone-sell-soft .rob-state { color: #f49ca3; background: rgba(240, 107, 117, 0.10); }

.rob-tone-neutral { border-left-color: #59616b; }
.rob-tone-neutral .rob-state { color: var(--tx2); background: rgba(255, 255, 255, 0.06); }

.rob-tag {
  color: var(--dim);
  font-weight: 600;
}

.rob-tag b {
  color: #fff;
  font-weight: 700;
}

.rob-state {
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.25px;
}

.rob-bar-wrap {
  padding: 0 9px 6px;
  cursor: pointer;
}

.rob-bar {
  position: relative;
  height: 5px;
  border-radius: 3px;
  background: rgba(239, 83, 80, 0.52);
  overflow: hidden;
}

.rob-bar-bid {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1ea88e, #3fe0c2);
  transition: width 0.18s ease-out;
}

.rob-mid {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.55);
}

.rob-totals {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
}

.rob-totals .g { color: var(--buy); }
.rob-totals .r { color: var(--sell); }

/* Expandable 10-Level DOM Micro-Ladder */
.rob-ladder {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 5px 8px 6px;
  font-family: var(--mono);
  font-size: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.rob-ladder-empty {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 9px;
  color: var(--dim);
  font-size: 10px;
}

.dom-row {
  display: grid;
  grid-template-columns: 62px 1fr 34px;
  align-items: center;
  gap: 6px;
  height: 15px;
}

.dom-px {
  color: var(--tx2);
}

.dom-fill-wrap {
  height: 9px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
}

.dom-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
}

.dom-row.ask .dom-fill { background: rgba(240, 107, 117, 0.42); }
.dom-row.bid .dom-fill { background: rgba(53, 189, 165, 0.42); }
.dom-row.ask .dom-sz { color: #f48c94; text-align: right; font-weight: 600; }
.dom-row.bid .dom-sz { color: #5cd6bf; text-align: right; font-weight: 600; }

.dom-spread {
  display: flex;
  justify-content: space-between;
  padding: 2px 2px;
  margin: 2px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--dim);
  font-size: 9px;
}

body.embed #nt-hud {
  top: 4px;
  max-width: min(260px, calc(100% - 76px));
  gap: 4px;
}

@media (max-width: 680px) {
  #nt-hud {
    top: 6px;
    max-width: calc(100% - 68px);
    gap: 4px;
  }
  .nt-card.is-compact {
    min-width: 158px;
  }
  .nt-card-head {
    padding: 4px 7px;
    font-size: 10px;
    gap: 5px;
  }
  #rob-hud {
    min-width: 170px;
  }
  .rob-bar-wrap {
    padding: 0 7px 4px;
  }
}
