/* ── Holder Distribution Canvas ─────────── */
.holder-map-wrap {
  border: 1px solid rgba(79, 209, 197, 0.2);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: 24px;
  position: relative;
  overflow: hidden;
  /* Round 69: Breathing border glow */
  animation: border-breathe 4s ease-in-out infinite;
}
@keyframes border-breathe {
  0%,
  100% {
    border-color: rgba(79, 209, 197, 0.15);
    box-shadow: 0 0 8px rgba(79, 209, 197, 0.04);
  }
  50% {
    border-color: rgba(79, 209, 197, 0.3);
    box-shadow: 0 0 16px rgba(79, 209, 197, 0.08);
  }
}

/* Round 526: Map container border intensifies on hover */
.holder-map-wrap:hover {
  border-color: rgba(79, 209, 197, 0.35);
  box-shadow: 0 0 20px rgba(79, 209, 197, 0.06);
}

.holder-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(79, 209, 197, 0.12);
}

.holder-map-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  /* Round 56: Animated jade underline */
  position: relative;
}

.holder-map-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(79, 209, 197, 0.5), rgba(79, 209, 197, 0) 80%);
  animation: title-underline 3s ease-in-out infinite;
}

@keyframes title-underline {
  0%,
  100% {
    width: 30%;
    opacity: 0.4;
  }
  50% {
    width: 60%;
    opacity: 0.7;
  }
}

.holder-map-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  position: relative;
}

.holder-map-live-dot.is-live {
  background: var(--accent);
  box-shadow:
    0 0 8px rgba(79, 209, 197, 0.5),
    0 0 16px rgba(79, 209, 197, 0.2);
  animation: live-breathe 2.5s ease-in-out infinite;
}

/* Round 93: Enhanced LIVE breathing glow */
@keyframes live-breathe {
  0%,
  100% {
    opacity: 1;
    box-shadow:
      0 0 8px rgba(79, 209, 197, 0.5),
      0 0 16px rgba(79, 209, 197, 0.15);
  }
  50% {
    opacity: 0.7;
    box-shadow:
      0 0 12px rgba(79, 209, 197, 0.7),
      0 0 24px rgba(79, 209, 197, 0.3);
  }
}

/* Round 192: Live dot periodic ping ring */
.holder-map-live-dot.is-live::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  border: 1px solid rgba(79, 209, 197, 0.4);
  animation: live-ping-192 3s ease-out infinite;
}
@keyframes live-ping-192 {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  70% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

/* Round 47: Refresh countdown ring */
.holder-map-live-dot.is-live::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(79, 209, 197, 0.5);
  border-right-color: rgba(79, 209, 197, 0.3);
  animation: countdown-ring 300s linear infinite;
}

@keyframes countdown-ring {
  0% {
    transform: rotate(0deg);
    opacity: 0.8;
  }
  100% {
    transform: rotate(1080deg);
    opacity: 0.3;
  }
}

.holder-stats-bar {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  /* Round 293: Hover glow effect */
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.holder-stats-bar:hover {
  background: rgba(79, 209, 197, 0.03);
  box-shadow: inset 0 -1px 12px rgba(79, 209, 197, 0.06);
}

.holder-stats-sep {
  color: rgba(79, 209, 197, 0.4);
  opacity: 0.7;
  text-shadow: 0 0 4px rgba(79, 209, 197, 0.15);
  display: inline-block;
  animation: sep-pulse-199 4s ease-in-out infinite;
}
.holder-stats-sep:nth-of-type(2) {
  animation-delay: 1.3s;
}
.holder-stats-sep:nth-of-type(3) {
  animation-delay: 2.6s;
}
@keyframes sep-pulse-199 {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
    color: rgba(79, 209, 197, 0.4);
  }
  /* Round 463: Color shifts toward gold at peak for visual interest */
  50% {
    transform: scale(1.4);
    opacity: 1;
    color: rgba(244, 201, 93, 0.5);
  }
}
/* Round 117: Stats value emphasis glow */
.holder-stats-bar span:first-child {
  color: var(--ink-high);
  text-shadow: 0 0 6px rgba(79, 209, 197, 0.2);
}
.holder-stats-bar span:nth-child(3) {
  color: var(--ink-med);
}
/* Round 77: Flash on data refresh */
.holder-stats-bar.refreshing {
  animation: stats-flash 0.6s ease-out;
}
@keyframes stats-flash {
  0% {
    background: rgba(79, 209, 197, 0.08);
    transform: scale(1.01);
  }
  50% {
    transform: scale(1);
  }
  100% {
    background: transparent;
    transform: scale(1);
  }
}
/* Round 421: Stats bar number elements flash brighter on refresh */
.holder-stats-bar.refreshing span:first-child {
  animation: statNumFlash421 0.5s ease-out;
}
@keyframes statNumFlash421 {
  0% {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(79, 209, 197, 0.4);
  }
  100% {
    color: var(--ink-high);
    text-shadow: 0 0 6px rgba(79, 209, 197, 0.2);
  }
}
@keyframes stats-pulse-249 {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.holder-canvas-wrap {
  padding: 0;
  position: relative;
  /* Round 163: Breathing border radius */
  border-radius: 4px;
  overflow: hidden;
  animation: canvas-radius-breathe 6s ease-in-out infinite;
}
@keyframes canvas-radius-breathe {
  0%,
  100% {
    border-radius: 4px;
  }
  50% {
    border-radius: 6px;
  }
}

#holder-canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
  outline: none;
}
/* Round 204: Subtle focus ring for keyboard navigation */
#holder-canvas:focus-visible {
  outline: 1px solid rgba(79, 209, 197, 0.3);
  outline-offset: 2px;
}

/* Round 97: Subtle focus ring for keyboard accessibility */
#holder-canvas:focus-visible {
  box-shadow:
    inset 0 0 0 2px rgba(79, 209, 197, 0.35),
    0 0 12px rgba(79, 209, 197, 0.15);
}

/* ── Detail panel (click-to-inspect) ─── */
.holder-detail-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* Round 213: Enhanced glassmorphism */
  background: rgba(5, 6, 10, 0.92);
  border-top: 1px solid rgba(79, 209, 197, 0.25);
  box-shadow:
    0 -2px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(79, 209, 197, 0.06);
  padding: 16px 24px;
  display: none;
  gap: 12px;
  z-index: 20;
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
}

.holder-detail-panel.open {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  animation:
    detailSlideUp 0.25s ease-out,
    border-breathe 3s ease-in-out 0.3s infinite;
}
@keyframes border-breathe {
  0%,
  100% {
    border-top-color: rgba(79, 209, 197, 0.25);
    box-shadow: 0 -1px 8px rgba(79, 209, 197, 0.05);
  }
  50% {
    border-top-color: rgba(79, 209, 197, 0.45);
    box-shadow: 0 -1px 12px rgba(79, 209, 197, 0.12);
  }
}

/* Round 580: Detail panel children stagger in */
.holder-detail-panel.open > * {
  animation: detailChildFade580 0.3s ease-out both;
}
.holder-detail-panel.open > *:nth-child(1) {
  animation-delay: 0.05s;
}
.holder-detail-panel.open > *:nth-child(2) {
  animation-delay: 0.1s;
}
.holder-detail-panel.open > *:nth-child(3) {
  animation-delay: 0.15s;
}
.holder-detail-panel.open > *:nth-child(4) {
  animation-delay: 0.2s;
}
@keyframes detailChildFade580 {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes detailSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes detailSlideDown253 {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}
/* Round 172: Bar pulse glow */
@keyframes bar-pulse {
  0% {
    box-shadow: 0 0 16px currentColor;
  }
  100% {
    box-shadow: 0 0 4px currentColor;
  }
}

.holder-detail-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.holder-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.holder-detail-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
}

.holder-detail-type.wallet {
  color: var(--accent);
  background: rgba(79, 209, 197, 0.12);
  border: 1px solid rgba(79, 209, 197, 0.25);
}

.holder-detail-type.contract {
  color: var(--gold);
  background: rgba(244, 201, 93, 0.12);
  border: 1px solid rgba(244, 201, 93, 0.25);
}

.holder-detail-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--bright);
  /* Round 508: Type-colored underline — set dynamically via JS */
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.holder-detail-addr {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.01em;
  word-break: break-all;
  cursor: pointer;
  transition: color 0.15s;
}

/* Round 327: Address hover glow effect */
.holder-detail-addr:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(79, 209, 197, 0.3);
}

.holder-detail-addr .copy-hint {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.15s;
}

.holder-detail-addr:hover .copy-hint {
  opacity: 1;
}

.holder-detail-metrics {
  display: flex;
  gap: 20px;
  margin-top: 2px;
  /* Round 457: Gradient divider above metrics for visual separation */
  padding-top: 6px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 0%, rgba(79, 209, 197, 0.15) 50%, transparent 100%) 1;
}

.holder-detail-metric {
  display: flex;
  flex-direction: column;
}

.holder-detail-metric-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.holder-detail-metric-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--bright);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.holder-detail-metric-value.accent {
  color: var(--accent);
}
.holder-detail-metric-value.gold {
  color: var(--gold);
}
.holder-detail-metric-sub {
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
/* Round 321: Metric values animate in on detail open */
.holder-detail.open .holder-detail-metric-value {
  animation: metricPop321 0.4s ease-out both;
}
.holder-detail.open .holder-detail-metric:nth-child(2) .holder-detail-metric-value {
  animation-delay: 80ms;
}
.holder-detail.open .holder-detail-metric:nth-child(3) .holder-detail-metric-value {
  animation-delay: 160ms;
}
@keyframes metricPop321 {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Round 440: Metric value text shadow flashes on open for emphasis */
.holder-detail.open .holder-detail-metric-value.accent {
  animation:
    metricPop321 0.4s ease-out both,
    metricGlow440 1.2s ease-out 0.2s both;
}
.holder-detail.open .holder-detail-metric-value.gold {
  animation:
    metricPop321 0.4s ease-out both,
    metricGlow440g 1.2s ease-out 0.2s both;
}
@keyframes metricGlow440 {
  0% {
    text-shadow: 0 0 12px rgba(79, 209, 197, 0.5);
  }
  100% {
    text-shadow: 0 0 6px rgba(79, 209, 197, 0.15);
  }
}
@keyframes metricGlow440g {
  0% {
    text-shadow: 0 0 12px rgba(244, 201, 93, 0.5);
  }
  100% {
    text-shadow: 0 0 6px rgba(244, 201, 93, 0.15);
  }
}

.holder-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  flex-shrink: 0;
}

.holder-detail-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid rgba(79, 209, 197, 0.3);
  background: rgba(79, 209, 197, 0.08);
  color: var(--accent);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.holder-detail-btn:hover {
  background: rgba(79, 209, 197, 0.18);
  border-color: rgba(79, 209, 197, 0.5);
  color: var(--bright);
  /* Round 261: Jade glow on hover */
  box-shadow:
    0 0 12px rgba(79, 209, 197, 0.15),
    inset 0 0 8px rgba(79, 209, 197, 0.05);
  /* Round 537: Arrow slides up-right on hover */
  letter-spacing: 0.02em;
}
/* Round 333: Contract holder buttons glow gold on hover */
.holder-detail-btn[data-holder-type='contract']:hover {
  border-color: rgba(244, 201, 93, 0.5);
  background: rgba(244, 201, 93, 0.12);
  box-shadow:
    0 0 12px rgba(244, 201, 93, 0.15),
    inset 0 0 8px rgba(244, 201, 93, 0.05);
}

.holder-detail-close {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
/* Round 416: Ripple click effect on close button */
.holder-detail-close:active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(79, 209, 197, 0.25) 0%, transparent 70%);
  animation: closeRipple416 0.3s ease-out;
}
@keyframes closeRipple416 {
  from {
    transform: scale(0);
    opacity: 1;
  }
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Round 155: Close button jade glow on hover */
/* Round 369: Close button hover border pulse animation */
.holder-detail-close:hover {
  border-color: rgba(79, 209, 197, 0.5);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(79, 209, 197, 0.18);
  animation: closePulse369 1.5s ease-in-out infinite;
}
@keyframes closePulse369 {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(79, 209, 197, 0.12);
  }
  50% {
    box-shadow: 0 0 16px rgba(79, 209, 197, 0.25);
  }
}

.holder-detail-rank {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}

.holder-tooltip {
  position: absolute;
  pointer-events: none;
  /* Round 280: Subtle gradient background */
  background: linear-gradient(135deg, rgba(5, 6, 10, 0.96) 0%, rgba(12, 16, 24, 0.96) 100%);
  border: 1px solid rgba(79, 209, 197, 0.35);
  /* Round 443: Left accent strip — colored by node type via JS class */
  border-left: 2px solid var(--accent);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(79, 209, 197, 0.08);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  z-index: 15;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition:
    opacity 0.22s ease-in,
    transform 0.22s ease-in;
  max-width: 280px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Round 185: Faster show, slower graceful fade-out with scale */
.holder-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.12s ease-out,
    transform 0.12s ease-out;
}
.holder-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(79, 209, 197, 0.35);
}

.holder-tooltip-addr {
  color: var(--accent);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  word-break: break-all;
  /* Round 388: Tabular figures for address digits */
  font-variant-numeric: tabular-nums;
}

.holder-tooltip-pct {
  color: var(--bright);
  font-weight: 600;
  font-size: 16px;
  margin: 4px 0 2px;
}
/* Round 623: SVG ring glow in tooltip */
.holder-tooltip-pct svg {
  filter: drop-shadow(0 0 3px rgba(79, 209, 197, 0.3));
}
.holder-tooltip-pct.gold-type svg {
  filter: drop-shadow(0 0 3px rgba(244, 201, 93, 0.3));
}
/* Round 397: Tooltip percentage text uses gradient fill */
.holder-tooltip-pct .pct-grad397 {
  background: linear-gradient(90deg, var(--accent) 0%, var(--bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.holder-tooltip-pct.gold-type .pct-grad397 {
  background: linear-gradient(90deg, var(--gold) 0%, var(--bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.holder-tooltip-bal {
  color: var(--dim);
  font-size: 11px;
}

.holder-tooltip-type {
  margin-top: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Round 145: Staggered content fade-in */
.holder-tooltip.visible > div {
  animation: tip-stagger 0.2s ease-out both;
}
.holder-tooltip.visible > div:nth-child(2) {
  animation-delay: 30ms;
}
.holder-tooltip.visible > div:nth-child(3) {
  animation-delay: 60ms;
}
.holder-tooltip.visible > div:nth-child(4) {
  animation-delay: 90ms;
}
.holder-tooltip.visible > div:nth-child(5) {
  animation-delay: 120ms;
}
.holder-tooltip.visible > div:nth-child(6) {
  animation-delay: 150ms;
}
@keyframes tip-stagger {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.holder-tooltip-hint {
  margin-top: 6px;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
  /* Round 607: Hint text pulses subtly */
  animation: hintPulse607 2s ease-in-out infinite;
}
@keyframes hintPulse607 {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* ── Zoom Controls ──────────────────── */
.holder-zoom-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 12;
}

.holder-zoom-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(79, 209, 197, 0.2);
  background: rgba(5, 6, 10, 0.88);
  color: var(--dim);
  cursor: pointer;
  transition: all 0.15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1;
}

.holder-zoom-btn:hover {
  border-color: rgba(79, 209, 197, 0.5);
  color: var(--accent);
  background: rgba(79, 209, 197, 0.1);
  /* Round 583: Glow shadow on hover */
  box-shadow: 0 0 8px rgba(79, 209, 197, 0.15);
}
/* Round 478: Jade flash on click for tactile feedback */
.holder-zoom-btn:active {
  background: rgba(79, 209, 197, 0.25);
  border-color: rgba(79, 209, 197, 0.7);
  transform: scale(0.92);
  transition: all 0.05s;
}

.holder-zoom-level {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
  font-weight: 500;
  padding: 2px 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.holder-zoom-level.visible {
  opacity: 1;
  text-shadow: 0 0 6px rgba(79, 209, 197, 0.3);
}
/* Round 74: Scale bounce on zoom change */
.holder-zoom-level.bounce {
  animation: zoom-bounce 0.3s ease-out;
}
@keyframes zoom-bounce {
  0% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* ── Minimap ─────────────────────────── */
.holder-minimap {
  position: absolute;
  bottom: 8px;
  left: 8px;
  border: 1px solid rgba(79, 209, 197, 0.15);
  background: rgba(5, 6, 10, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 12;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.holder-minimap.visible {
  opacity: 1;
}
/* Round 120: Minimap border breathing */
.holder-minimap.visible {
  animation: minimap-breathe 4s ease-in-out infinite;
}
@keyframes minimap-breathe {
  0%,
  100% {
    border-color: rgba(79, 209, 197, 0.15);
  }
  50% {
    border-color: rgba(79, 209, 197, 0.3);
  }
}

/* Round 49: Coordinate display */
.holder-coord-display {
  position: absolute;
  bottom: 8px;
  left: 136px;
  font-size: 9px;
  font-family: 'IBM Plex Mono', monospace;
  color: rgba(79, 209, 197, 0.35);
  letter-spacing: 0.06em;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.holder-coord-display.visible {
  opacity: 1;
}

/* ── Keyboard hint ───────────────────── */
.holder-keyboard-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 10;
  pointer-events: none;
}

.holder-keyboard-hint.visible {
  opacity: 0.6;
}

.holder-keyboard-hint kbd {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  font-size: 9px;
  margin: 0 2px;
  background: rgba(255, 255, 255, 0.04);
}

/* ── Fullscreen mode ────────────────── */
.holder-map-wrap.fullscreen {
  position: fixed !important;
  inset: 0;
  z-index: 10000;
  background: #000;
  margin: 0;
  border: none;
  display: flex;
  flex-direction: column;
}

.holder-map-wrap.fullscreen .holder-canvas-wrap {
  flex: 1;
  min-height: 0;
}

.holder-map-wrap.fullscreen #holder-canvas {
  height: 100% !important;
}

.holder-map-wrap.fullscreen .holder-map-head {
  border-bottom: 1px solid rgba(79, 209, 197, 0.2);
}

.holder-map-wrap.fullscreen .holder-stats-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.holder-map-wrap.fullscreen .holder-list-toggle,
.holder-map-wrap.fullscreen .holder-list-wrap,
.holder-map-wrap.fullscreen .holder-map-legend {
  display: none;
}

.holder-fs-exit-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  background: rgba(5, 6, 10, 0.92);
  border: 1px solid rgba(79, 209, 197, 0.3);
  padding: 10px 20px;
  z-index: 20;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.holder-fs-exit-hint.visible {
  opacity: 1;
}

/* ── Screenshot toast ────────────────── */
.holder-screenshot-toast {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  background: rgba(5, 6, 10, 0.92);
  border: 1px solid rgba(79, 209, 197, 0.3);
  padding: 8px 18px;
  z-index: 30;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.holder-screenshot-toast.visible {
  opacity: 1;
}

/* ── Holder List (expandable) ────────── */
.holder-list-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--dim);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.holder-list-toggle:hover {
  color: var(--accent);
}

.holder-list-toggle .arrow {
  transition: transform 0.3s;
  font-size: 12px;
}

.holder-list-toggle.expanded .arrow {
  transform: rotate(180deg);
}

.holder-list-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.holder-list-wrap.expanded {
  max-height: 480px;
}

.holder-list-search {
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.holder-list-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(79, 209, 197, 0.15);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 6px 12px;
  outline: none;
  transition: border-color 0.15s;
}

/* Round 470: Focus gets jade underline glow + subtle background shift */
.holder-list-input:focus {
  border-color: rgba(79, 209, 197, 0.4);
  box-shadow:
    0 2px 0 0 rgba(79, 209, 197, 0.3),
    inset 0 0 12px rgba(79, 209, 197, 0.03);
  background: rgba(79, 209, 197, 0.04);
}
.holder-list-input::placeholder {
  color: var(--muted);
}

.holder-list-scroll {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 209, 197, 0.2) transparent;
  /* Round 377: Scroll gradient indicators */
  mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.holder-list-scroll::-webkit-scrollbar {
  width: 4px;
}
.holder-list-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.holder-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(79, 209, 197, 0.2);
  border-radius: 2px;
}

.holder-list-filters {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.holder-list-filter-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.holder-list-filter-btn:hover {
  border-color: rgba(79, 209, 197, 0.3);
  color: var(--dim);
}

.holder-list-filter-btn.active {
  border-color: rgba(79, 209, 197, 0.4);
  background: rgba(79, 209, 197, 0.1);
  color: var(--accent);
}
/* Round 433: Active filter button has indicator dot */
.holder-list-filter-btn.active::before,
.holder-list-filter-btn.active-gold::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 4px;
  vertical-align: middle;
}

.holder-list-filter-btn.active-gold {
  border-color: rgba(244, 201, 93, 0.4);
  background: rgba(244, 201, 93, 0.08);
  color: var(--gold);
}

.holder-list-count {
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.holder-list-head {
  display: grid;
  grid-template-columns: 30px 1fr 70px 50px;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.holder-list-head span[data-sort] {
  cursor: pointer;
  user-select: none;
  /* Round 540: Smooth transition when sort changes */
  transition:
    color 0.15s,
    border-color 0.25s ease-out;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.holder-list-head span[data-sort]:hover {
  color: var(--accent);
}

.holder-list-head span[data-sort].active-sort {
  color: var(--accent);
  /* Round 475: Active sort column gets jade underline */
  border-bottom: 1px solid rgba(79, 209, 197, 0.4);
  padding-bottom: 1px;
}

.sort-arrow {
  font-size: 8px;
  margin-left: 2px;
  opacity: 0.5;
}

.active-sort .sort-arrow {
  opacity: 1;
  /* Round 581: Sort arrow bounce animation */
  animation: sortBounce581 0.3s ease-out;
}
@keyframes sortBounce581 {
  0% {
    transform: scale(1.4);
  }
  50% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}

.holder-list-row {
  display: grid;
  grid-template-columns: 30px 1fr 70px 50px;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  cursor: pointer;
  transition:
    background 0.1s,
    opacity 0.35s ease-out,
    transform 0.35s ease-out;
  font-size: 11px;
  border-left: 2px solid transparent;
  position: relative;
}

/* Round 83: Enhanced hover glow with sidebar + box-shadow */
.holder-list-row:hover {
  background: rgba(79, 209, 197, 0.06);
  box-shadow: inset 2px 0 0 rgba(79, 209, 197, 0.4);
}
/* Round 524: Mini percentage bar at bottom of row on hover */
.holder-list-row:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: var(--pct-w, 0%);
  background: rgba(79, 209, 197, 0.35);
}
/* Round 317: Contract rows hover with gold glow */
.holder-list-row[data-type='contract']:hover {
  background: rgba(244, 201, 93, 0.06);
  box-shadow: inset 2px 0 0 rgba(244, 201, 93, 0.4);
}
.holder-list-row[data-type='contract']:hover::after {
  background: rgba(244, 201, 93, 0.35);
}

.holder-list-row.hl {
  background: rgba(79, 209, 197, 0.08);
  border-left-color: var(--accent);
  box-shadow:
    inset 3px 0 0 var(--accent),
    0 0 8px rgba(79, 209, 197, 0.06);
  /* Round 617: Selected row glow pulse */
  animation: rowGlow617 2.5s ease-in-out infinite;
}
@keyframes rowGlow617 {
  0%,
  100% {
    box-shadow:
      inset 3px 0 0 var(--accent),
      0 0 8px rgba(79, 209, 197, 0.06);
  }
  50% {
    box-shadow:
      inset 3px 0 0 var(--accent),
      0 0 14px rgba(79, 209, 197, 0.12);
  }
}

.holder-list-row.hl-gold {
  background: rgba(244, 201, 93, 0.06);
  border-left-color: var(--gold);
  box-shadow:
    inset 3px 0 0 var(--gold),
    0 0 8px rgba(244, 201, 93, 0.06);
  /* Round 617: Gold row glow pulse */
  animation: rowGlowG617 2.5s ease-in-out infinite;
}
@keyframes rowGlowG617 {
  0%,
  100% {
    box-shadow:
      inset 3px 0 0 var(--gold),
      0 0 8px rgba(244, 201, 93, 0.06);
  }
  50% {
    box-shadow:
      inset 3px 0 0 var(--gold),
      0 0 14px rgba(244, 201, 93, 0.12);
  }
}

.holder-list-rank {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 5px;
}

.holder-list-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
/* Round 409: Hovered row dot pulses with glow */
.holder-list-row:hover .holder-list-dot {
  transform: scale(1.5);
  box-shadow: 0 0 6px currentColor;
}

.holder-list-addr {
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.holder-list-addr .hl-name {
  color: var(--bright);
  font-weight: 500;
}

.holder-list-bar-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  overflow: hidden;
}

.holder-list-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}

.holder-list-pct {
  color: var(--bright);
  font-weight: 600;
  text-align: right;
  font-size: 11px;
}

.holder-list-empty {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  /* Round 479: Empty list fade-in with subtle slide */
  animation: emptyFade479 0.4s ease-out both;
}
@keyframes emptyFade479 {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.holder-map-legend {
  padding: 12px 20px;
  border-top: 1px solid rgba(79, 209, 197, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.holder-legend-items {
  display: flex;
  gap: 16px;
}

.holder-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
  animation: legend-fade-220 0.5s ease-out both;
}
.holder-legend-item:nth-child(2) {
  animation-delay: 0.1s;
}
.holder-legend-item:nth-child(3) {
  animation-delay: 0.2s;
}
@keyframes legend-fade-220 {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 0.7;
    transform: translateY(0);
  }
}
/* Round 177: Legend hover glow */
.holder-legend-item:hover {
  opacity: 1;
}
.holder-legend-item:hover .holder-legend-dot {
  box-shadow: 0 0 8px currentColor;
  transform: scale(1.3);
  transition: transform 0.2s;
}

.holder-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  /* Round 88: Legend dots breathe */
  animation: legend-pulse 3s ease-in-out infinite;
}
@keyframes legend-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media (max-width: 640px) {
  .holder-stats-bar {
    font-size: 11px;
    gap: 4px;
    padding: 8px 14px;
  }
  .holder-canvas-wrap {
    padding: 0;
  }
  .holder-map-legend {
    flex-direction: column;
    align-items: flex-start;
    font-size: 10px;
  }
  .holder-map-head {
    padding: 10px 14px;
  }
  .holder-detail-panel.open {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }
  .holder-detail-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .holder-detail-metrics {
    gap: 12px;
    flex-wrap: wrap;
  }
  .holder-detail-addr {
    font-size: 10px;
  }
  .holder-detail-metric-value {
    font-size: 14px;
  }
  .holder-zoom-controls {
    top: 6px;
    right: 6px;
  }
  .holder-zoom-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .holder-minimap {
    display: none !important;
  }
  .holder-keyboard-hint {
    display: none;
  }
  .holder-list-head,
  .holder-list-row {
    grid-template-columns: 26px 1fr 60px 44px;
    gap: 4px;
    padding: 5px 10px;
    font-size: 10px;
  }
  .holder-list-search {
    padding: 6px 10px;
  }
  .holder-list-input {
    font-size: 10px;
    padding: 5px 10px;
  }
  .holder-list-filters {
    padding: 4px 10px;
    gap: 3px;
  }
  .holder-list-filter-btn {
    font-size: 8px;
    padding: 2px 8px;
  }
}
