/* GUARDEER PRIME V57: polished live visible-range volume profile + faster viewport feedback. */
:root {
  --gp-v57-blue: #2aa8ff;
  --gp-v57-blue-soft: rgba(42, 168, 255, 0.42);
  --gp-v57-orange: #ff9d34;
  --gp-v57-gold: #ffd66e;
  --gp-v57-panel: rgba(2, 8, 18, 0.94);
}

.gp-of-dash-card--vp[data-gp-visible-profile-v57="true"] {
  border-color: rgba(59, 166, 255, 0.26) !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(42, 168, 255, 0.10), transparent 34%),
    radial-gradient(circle at 86% 62%, rgba(255, 157, 52, 0.09), transparent 38%),
    linear-gradient(180deg, rgba(5, 17, 34, 0.98), rgba(1, 7, 16, 0.98)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 18px 38px rgba(0,0,0,0.20) !important;
}

.gp-of-dash-card--vp .gp-of-card-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.gp-vp-v57-meta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: rgba(174, 209, 246, 0.72);
  font: 850 9px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.gp-bottom-vp-card {
  grid-template-columns: minmax(0, 1fr) 64px !important;
  gap: 12px !important;
  padding: 2px !important;
}

.gp-bottom-vp-bars[data-gp-visible-profile-v57="true"] {
  min-height: 184px !important;
  border: 1px solid rgba(64, 152, 255, 0.17) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(90deg, rgba(55, 137, 255, 0.050) 1px, transparent 1px) 0 0 / 38px 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px) 0 0 / 100% 18px,
    radial-gradient(circle at 0% 50%, rgba(34, 156, 255, 0.19), transparent 52%),
    linear-gradient(180deg, rgba(4, 15, 32, 0.98), rgba(1, 8, 18, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    inset 0 0 0 1px rgba(0,0,0,0.22),
    0 0 22px rgba(29, 126, 255, 0.07) !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

.gp-bottom-vp-bars[data-gp-visible-profile-v57="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(72, 174, 255, 0.82), transparent);
  box-shadow: 0 0 18px rgba(42,168,255,0.34);
  pointer-events: none;
  z-index: 0;
}

.gp-bottom-vp-bars[data-gp-visible-profile-v57="true"]::after {
  content: "LIVE VISIBLE RANGE";
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  color: rgba(147, 185, 229, 0.24);
  font: 950 8px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.10em;
  pointer-events: none;
}

.gp-bottom-vp-bars[data-gp-visible-profile-v57="true"] .gp-bottom-vp-row {
  left: 0 !important;
  right: 0 !important;
  min-height: 4px !important;
  z-index: 2 !important;
  transform: translateZ(0);
}

.gp-bottom-vp-bars[data-gp-visible-profile-v57="true"] .gp-bottom-vp-row::before,
.gp-bottom-vp-bars[data-gp-visible-profile-v57="true"] .gp-bottom-vp-row::after {
  display: none !important;
}

.gp-bottom-vp-fill {
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--gp-bottom-width, 34%);
  height: max(5px, calc(100% - 2px));
  transform: translateY(-50%);
  border-radius: 0 999px 999px 0;
  pointer-events: none;
}

.gp-bottom-vp-fill--buy {
  background: linear-gradient(90deg, rgba(18, 100, 238, 0.98), rgba(42, 168, 255, 0.98));
  box-shadow: 0 0 12px rgba(42, 168, 255, 0.20);
}

.gp-bottom-vp-fill--sell {
  width: calc(var(--gp-bottom-width, 34%) * max(0.12, min(0.88, var(--gp-bottom-hot, 0.42)))) !important;
  background: linear-gradient(90deg, rgba(143, 64, 0, 0.88), rgba(255, 157, 52, 0.98), rgba(255, 191, 82, 0.92));
  opacity: 0.92;
  box-shadow: 0 0 14px rgba(255, 157, 52, 0.20);
}

.gp-bottom-vp-row.is-value .gp-bottom-vp-fill--buy {
  filter: brightness(1.08) saturate(1.08);
}

.gp-bottom-vp-row.is-poc {
  z-index: 5 !important;
}

.gp-bottom-vp-row.is-poc::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  right: 8px !important;
  top: 50% !important;
  width: auto !important;
  height: 2px !important;
  transform: translateY(-50%) !important;
  border-radius: 999px !important;
  background: rgba(255, 214, 110, 0.98) !important;
  box-shadow: 0 0 12px rgba(255, 214, 110, 0.70), 0 0 24px rgba(255, 157, 52, 0.25) !important;
  z-index: 6 !important;
}

.gp-bottom-vp-row.is-poc .gp-bottom-vp-fill--buy,
.gp-bottom-vp-row.is-poc .gp-bottom-vp-fill--sell {
  height: max(7px, calc(100% - 1px));
  filter: brightness(1.12) saturate(1.15);
}

.gp-bottom-vp-row em {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 110, 0.42);
  background: rgba(5, 12, 22, 0.90);
  color: var(--gp-v57-gold);
  font: 950 8px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  box-shadow: 0 0 15px rgba(255, 183, 74, 0.20);
}

.gp-bottom-vp-axis {
  padding: 4px 0 4px 0 !important;
}

.gp-bottom-vp-axis span {
  color: rgba(202, 225, 250, 0.82) !important;
  font: 900 10px/1 "JetBrains Mono", monospace !important;
  text-shadow: 0 0 12px rgba(42, 168, 255, 0.10);
}

.gp-bottom-vp-price-tag {
  right: 68px !important;
  border: 1px solid rgba(72, 233, 178, 0.34) !important;
  background: linear-gradient(135deg, rgba(23, 152, 111, 0.96), rgba(43, 215, 155, 0.96)) !important;
  color: #ecfff9 !important;
  font: 950 10px/1 "JetBrains Mono", monospace !important;
  border-radius: 999px !important;
  box-shadow: 0 0 18px rgba(37, 204, 149, 0.24) !important;
}

/* DOM side volume profile polish. */
.gp-dom-volume-profile--chart-style .gp-dom-vp-bars[data-gp-dom-visible-profile-v57="true"] {
  background:
    linear-gradient(90deg, rgba(42, 168, 255, 0.045) 1px, transparent 1px) 0 0 / 22px 100%,
    linear-gradient(180deg, rgba(255,255,255,0.032) 1px, transparent 1px) 0 0 / 100% 16px,
    radial-gradient(circle at 0% 48%, rgba(42, 168, 255, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(4, 14, 30, 0.96), rgba(1, 7, 17, 0.98)) !important;
}

.gp-dom-vp-profile-row[data-gp-v57-vp="1"] .gp-dom-vp-bar-stack {
  border-radius: 0 999px 999px 0 !important;
  min-height: 4px !important;
  background: rgba(13, 55, 124, 0.28) !important;
  box-shadow: 0 0 12px rgba(42, 168, 255, 0.18) !important;
}

.gp-dom-vp-profile-row[data-gp-v57-vp="1"].is-value::before {
  background: linear-gradient(90deg, rgba(42, 168, 255, 0.10), rgba(42, 168, 255, 0.018) 72%, transparent) !important;
}

.gp-dom-vp-profile-row[data-gp-v57-vp="1"].is-poc::after {
  height: 2px !important;
  background: rgba(255, 214, 110, 0.98) !important;
  box-shadow: 0 0 13px rgba(255, 214, 110, 0.72), 0 0 24px rgba(255, 157, 52, 0.30) !important;
}

/* V57 live current-price marker and smoother in-range redraw. */
.gp-bottom-vp-bars[data-gp-visible-profile-v57="true"] .gp-bottom-vp-row,
.gp-dom-vp-bars[data-gp-dom-visible-profile-v57="true"] .gp-dom-vp-profile-row {
  transition: top 90ms linear, height 90ms linear, opacity 90ms linear, transform 90ms linear !important;
  will-change: top, height;
}

.gp-v57-current-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  z-index: 12;
  pointer-events: none;
  border-top: 1px dashed rgba(49, 232, 164, 0.88);
  filter: drop-shadow(0 0 8px rgba(49, 232, 164, 0.30));
}

.gp-v57-current-line span {
  position: absolute;
  right: 6px;
  top: -9px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(49, 232, 164, 0.38);
  background: linear-gradient(135deg, rgba(9, 90, 74, 0.94), rgba(25, 176, 126, 0.95));
  color: #effff9;
  font: 950 9px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  box-shadow: 0 0 16px rgba(49, 232, 164, 0.22);
}

.gp-v57-current-line--dom span {
  right: 3px;
  font-size: 7px;
  padding: 1px 4px;
}

.gp-bottom-vp-bars[data-gp-visible-profile-v57="true"] .gp-bottom-vp-fill--buy,
.gp-bottom-vp-bars[data-gp-visible-profile-v57="true"] .gp-bottom-vp-fill--sell,
.gp-dom-vp-profile-row[data-gp-v57-vp="1"] .gp-dom-vp-buy,
.gp-dom-vp-profile-row[data-gp-v57-vp="1"] .gp-dom-vp-sell {
  transition: width 85ms linear, opacity 85ms linear, transform 85ms linear !important;
  will-change: width;
}

.gp-of-dash-card--vp[data-gp-visible-profile-v57="true"] .gp-of-card-head strong {
  letter-spacing: -0.015em;
}
