/* ══════════════════════════════════════════════════════════════════
   RevoCarta · gaya carta kongsi (public + admin)
   Sumber reka bentuk: mock-homepage-v2.html (hero carta FCPO 5 minit).
   Dimuatkan oleh setiap halaman yang ada carta. Tiada library luar.
   ══════════════════════════════════════════════════════════════════ */

.rvc {
  position: relative;
  height: 340px;
  border: 1px solid var(--rvc-line, rgba(255, 255, 255, .08));
  border-radius: 10px;
  background: #0d1118;
  overflow: hidden;
  touch-action: none;
}

.rvc canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

/* Bacaan OHLC kiri atas (ikut mock: kotak gelap lut sinar, font mono) */
.rvc-ohlc {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  line-height: 1.5;
  color: #94a3b8;
  pointer-events: none;
  background: rgba(13, 17, 24, .75);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Butang kawalan kanan bawah */
.rvc-ctl {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.rvc-ctl button {
  width: 36px;
  height: 30px;
  background: rgba(19, 23, 34, .92);
  border: 1px solid var(--rvc-line, rgba(255, 255, 255, .08));
  color: #c9cfda;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: border-color .15s, color .15s;
}

.rvc-ctl button:hover,
.rvc-ctl button:focus-visible {
  border-color: var(--rvc-aksen, #00e29a);
  color: var(--rvc-aksen, #00e29a);
  outline: none;
}

/* Nota interaksi bawah carta */
.rvc-nota {
  font-size: .7rem;
  color: #5b6775;
  margin-top: 8px;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .rvc { height: 280px; }
  .rvc-ohlc { font-size: .65rem; top: 8px; left: 8px; }
  .rvc-ctl { bottom: 8px; right: 8px; gap: 5px; }
  .rvc-ctl button { width: 34px; height: 30px; }
}
