/* ---------- Visitors (owner only) ---------- */
.vz-tablewrap { overflow-x: auto; }
.vz-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.vz-table th { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); text-align: left; padding: 4px 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vz-table td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: middle; }
.vz-table tbody tr:last-child td { border-bottom: none; }
.vz-table tbody tr:hover td { background: rgba(255,255,255,0.025); }
.vz-table tr.me td { color: var(--ink-faint); }
.vz-barcell { width: 160px; }
.vz-bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.06); overflow: hidden; min-width: 90px; }
.vz-bar span { display: block; height: 100%; border-radius: 4px; box-shadow: 0 0 8px rgba(255,117,24,0.4); }

/* ---------- Chart zoom (click any chart) ---------- */
canvas.zoomable { cursor: zoom-in; }
body.modal-open { overflow: hidden; }
.chart-modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(5,7,11,0.82); backdrop-filter: blur(6px); animation: cm-in .18s ease-out;
}
@keyframes cm-in { from { opacity: 0; } to { opacity: 1; } }
.chart-modal-box {
  width: min(1120px, 100%); max-height: 100%; overflow: auto; border-radius: 18px; padding: 22px 24px 20px;
  background: linear-gradient(180deg, #121722, #0B0E14); border: 1px solid rgba(255,117,24,0.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 30px 80px rgba(0,0,0,0.6), 0 0 50px rgba(255,117,24,0.12);
  animation: cm-pop .2s ease-out;
}
@keyframes cm-pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.cm-title { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px); letter-spacing: 0.5px; color: var(--ink); line-height: 1.1; }
.cm-title svg { width: 22px; height: 22px; vertical-align: -3px; color: var(--forge); margin-right: 6px; filter: drop-shadow(0 0 6px var(--forge-glow)); }
.cm-title .sub { display: block; font-family: var(--font-body); font-size: 12px; letter-spacing: 0.3px; text-transform: none; color: var(--ink-faint); font-weight: 500; margin-top: 4px; }
.cm-stat { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); color: var(--forge-hot); text-shadow: 0 0 16px rgba(255,162,61,0.45); margin: 4px 0 6px; }
.cm-stat .unit, .cm-stat em { font-family: var(--font-body); font-size: 14px; color: var(--ink-dim); font-style: normal; margin-left: 6px; }
.cm-close {
  flex: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--ink-dim);
  font-size: 18px; cursor: pointer; display: grid; place-items: center;
}
.cm-close:hover { color: var(--ink); border-color: var(--forge); }
.cm-canvas { display: block; width: 100%; height: 460px; margin-top: 6px; }
.cm-legend { margin-top: 12px; }
.cm-note { margin-top: 12px; font-size: 13px; color: var(--ink-dim); line-height: 1.5; }
.cm-hint { margin-top: 8px; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.5px; text-transform: uppercase; font-weight: 700; }
@media (max-width: 720px) {
  .chart-modal { padding: 10px; align-items: flex-end; }
  .chart-modal-box { padding: 16px 14px 14px; border-radius: 16px 16px 10px 10px; }
  .cm-canvas { height: 320px; }
}
