/* =========================================================
   Hero product tour (HTML recreation of a product video)
   Fixed 1280x700 stage, scaled to fit; a "camera" zooms between scenes.
   ========================================================= */
.ov { position: relative; width: 100%; aspect-ratio: 1280 / 700; overflow: hidden; background: var(--win-bg); }
.ov-stage { position: absolute; top: 0; left: 0; width: 1280px; height: 700px; transform-origin: 0 0; overflow: hidden; }
.ov-cam {
  position: absolute; inset: 0; transform-origin: 0 0;
  will-change: transform;
}
.ov-fade { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 600ms ease; }
.ov-fade.on { opacity: .85; }

.ov-app { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--win-bg); color: var(--fg-100); font-size: 11px; line-height: 1.6; }
.ov-flex { flex: 1; }
.ov-top { height: 36px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--win-line); color: var(--fg-300); }
.ov-logo { height: 15px; width: auto; }
.ov-chip { padding: 3px 10px; border-radius: 6px; border: 1px solid var(--win-line-2); color: var(--fg-200); font-size: 11px; }
.ov-chip.on { background: var(--win-3); color: var(--fg-100); }
.ov-btn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--win-line-2); border-radius: 6px; color: var(--fg-200); font-size: 10.5px; }

.ov-main { flex: 1; min-height: 0; display: flex; }

/* ---- chat (right side in RTL) ---- */
.ov-chat { width: 250px; flex: none; position: relative; display: flex; flex-direction: column; border-inline-end: 1px solid var(--win-line); padding: 8px 12px 10px; }
.ov-chat-tools { display: flex; gap: 8px; color: var(--fg-400); margin-bottom: 6px; }
.ov-chat-tools i { width: 10px; height: 10px; border: 1.4px solid currentColor; border-radius: 50%; }
.ov-welcome { position: absolute; inset: 0 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 9px; transition: opacity 400ms ease, transform 400ms ease; padding-bottom: 104px; }
.ov-welcome h4 { margin: 0 0 6px; font-size: 18px; font-weight: 700; text-align: center; color: var(--fg-100); }
.ov-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 999px; background: var(--win-3); border: 1px solid var(--win-line); color: var(--fg-200); font-size: 11px; }
.ov-welcome.off { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.ov-thread { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.ov-u { align-self: flex-start; max-width: 92%; background: var(--win-3); border-radius: 10px; padding: 7px 10px; color: var(--fg-100); font-size: 11px; }
.ov-a { color: var(--fg-200); font-size: 10.5px; line-height: 1.85; }
.ov-a p { margin: 0 0 6px; }
.ov-a b { color: var(--fg-100); }
.ov-a h5 { margin: 10px 0 4px; font-size: 13px; color: var(--fg-100); }
.ov-a ul { margin: 0; padding-inline-start: 14px; list-style: disc; }
.ov-a li { margin-bottom: 4px; }
.ov-card { border: 1px solid var(--win-line-2); background: var(--win-2); border-radius: 10px; padding: 9px; text-align: center; color: var(--fg-300); font-size: 10px; display: grid; gap: 6px; justify-items: center; }
.ov-card span { background: var(--win-3); border: 1px solid var(--win-line-2); color: var(--fg-100); border-radius: 6px; padding: 2px 10px; }
[data-ov-msg] { display: none; }
[data-ov-msg].on { display: block; animation: ov-in 450ms cubic-bezier(.16, 1, .3, 1) both; }
.ov-card[data-ov-msg].on { display: grid; }
@keyframes ov-in { from { opacity: 0; transform: translateY(8px); } }
.ov-chips { display: flex; gap: 6px; margin: 8px 0 6px; opacity: 0; transition: opacity 300ms; }
.ov-chips.on { opacity: 1; }
.ov-chips span { border: 1px solid var(--win-line-2); background: var(--win-2); border-radius: 999px; padding: 3px 10px; font-size: 10px; color: var(--fg-200); }
.ov-chips span:first-child { border-color: rgba(168, 85, 247, .6); box-shadow: 0 0 12px rgba(168, 85, 247, .25); color: var(--fg-100); }
.ov-input { border: 1px solid var(--win-line-2); border-radius: 12px; background: var(--win-2); padding: 8px 9px 7px; }
.ov-typed { display: block; min-height: 18px; color: var(--fg-400); font-size: 11px; white-space: nowrap; overflow: hidden; }
.ov-typed.typing { color: var(--fg-100); }
.ov-typed.typing::after { content: ""; display: inline-block; width: 1px; height: 12px; background: currentColor; margin-inline-start: 1px; vertical-align: -2px; animation: pulse .8s steps(1) infinite; }
.ov-input-row { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.ov-plus { width: 18px; height: 18px; border-radius: 50%; background: var(--win-3); color: var(--fg-300); display: grid; place-items: center; font-size: 12px; }
.ov-model { color: var(--fg-100); font-size: 10.5px; }
.ov-model small { color: var(--fg-400); }
.ov-send { width: 20px; height: 20px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); display: grid; place-items: center; font-size: 11px; transition: transform 160ms; }
.ov-send.press { transform: scale(.85); }

/* ---- chart workspace (LTR like a trading terminal) ---- */
.ov-work { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.ov-bar { height: 34px; flex: none; display: flex; align-items: center; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--win-line); font-size: 11px; color: var(--fg-200); font-family: "Vazirmatn", system-ui, sans-serif; }
.ov-sym { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--fg-100); font-size: 12.5px; margin-right: 14px; }
.ov-coin { font-style: normal; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, #f5c451, #c88a1b); color: #3b2604; font-size: 6.5px; font-weight: 800; display: inline-grid; place-items: center; }
.ov-tf { padding: 3px 7px; border-radius: 5px; color: var(--fg-200); transition: background-color 200ms, color 200ms; }
.ov-tf.on { background: var(--win-3); color: var(--fg-100); }
.ov-ic { display: inline-grid; place-items: center; width: 26px; height: 24px; border-radius: 5px; color: var(--fg-200); margin-left: 6px; transition: background-color 200ms; }
.ov-ic.on { background: var(--win-3); color: var(--fg-100); }
.ov-ind { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 3px 8px; border-radius: 5px; color: var(--fg-100); font-weight: 600; transition: background-color 200ms; }
.ov-ind.on { background: var(--win-3); }
.ov-body { flex: 1; min-height: 0; display: flex; position: relative; }
.ov-tools { width: 32px; flex: none; border-right: 1px solid var(--win-line); display: flex; flex-direction: column; align-items: center; gap: 11px; padding-top: 10px; }
.ov-tools i { width: 12px; height: 12px; border: 1.4px solid var(--fg-400); border-radius: 3px; opacity: .8; }
.ov-tools i:nth-child(3n) { border-radius: 50%; }
.ov-tools i:nth-child(4n) { transform: rotate(45deg); width: 10px; height: 10px; }
.ov-panes { flex: 1; min-width: 0; display: flex; gap: 0; }
.ov-pane { position: relative; flex: 1 1 100%; min-width: 0; transition: flex-basis 700ms cubic-bezier(.65, 0, .25, 1); overflow: hidden; }
.ov-pane-b { flex: 0 0 0%; border-left: 0 solid #fff; }
.ov-panes.is-split .ov-pane { flex: 0 0 55%; }
.ov-panes.is-split .ov-pane-b { flex: 0 0 45%; border-left: 1.5px solid var(--fg-100); }
.ov-pane canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.ov-legend { position: absolute; left: 10px; top: 7px; z-index: 2; display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--fg-300); white-space: nowrap; }
.ov-legend b { color: var(--fg-100); }
.ov-ohlc { font-family: ui-monospace, Menlo, monospace; font-size: 9.5px; color: var(--down); margin-left: 6px; }
.ov-ohlc.up { color: var(--up); }
.ov-legend-2 { position: absolute; left: 10px; top: 25px; z-index: 2; font-size: 10px; color: var(--fg-200); opacity: 0; transition: opacity 400ms; }
.ov-legend-2.on { opacity: 1; }
.ov-dash { position: absolute; right: 70px; top: 8px; z-index: 2; border-collapse: collapse; font-size: 8.5px; background: rgba(var(--win-2-rgb), .92); border: 1px solid var(--win-line-2); opacity: 0; transition: opacity 400ms; direction: rtl; }
.ov-dash.on { opacity: 1; }
.ov-dash th, .ov-dash td { padding: 1.5px 8px; border-bottom: 1px solid var(--win-line); text-align: right; color: var(--fg-300); white-space: nowrap; }
.ov-dash th { color: var(--fg-100); font-weight: 600; }
.ov-dash .up { color: var(--up); }
.ov-dash .dn { color: var(--down); }
.ov-zone { position: absolute; z-index: 1; left: 0; top: 0; width: 0; height: 0; border: 1.5px solid #38bdf8; background: rgba(56, 189, 248, .18); opacity: 0; }
.ov-zone.on { opacity: 1; }
.ov-float { position: absolute; z-index: 3; display: flex; gap: 7px; padding: 5px 8px; border-radius: 7px; background: var(--win-2); border: 1px solid var(--win-line-2); box-shadow: 0 8px 20px rgba(var(--shadow), calc(.5 * var(--shadow-k))); opacity: 0; transform: translateY(4px); transition: opacity 250ms, transform 250ms; }
.ov-float.on { opacity: 1; transform: none; }
.ov-float i { width: 10px; height: 10px; border: 1.3px solid var(--fg-300); border-radius: 2px; }
.ov-float i:nth-child(2) { background: #38bdf8; border-color: #38bdf8; }
.ov-xh { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 250ms; }
.ov-xh.on { opacity: 1; }
.ov-xh-v, .ov-xh-h { position: absolute; border-color: var(--fg-400); border-style: dashed; border-width: 0; }
.ov-xh-v { top: 0; bottom: 0; border-left-width: 1px; }
.ov-xh-h { left: 0; right: 60px; border-top-width: 1px; }

/* radial tool menu */
.ov-radial { position: absolute; z-index: 4; width: 330px; height: 330px; left: 50%; top: 50%; margin: -165px 0 0 -165px; opacity: 0; transform: scale(.7); transition: opacity 300ms, transform 450ms cubic-bezier(.16, 1, .3, 1); }
.ov-radial.on { opacity: 1; transform: none; }
.ov-radial svg { width: 100%; height: 100%; overflow: visible; }
.ov-radial .seg { fill: rgba(var(--win-2-rgb), .92); stroke: var(--win-line-2); stroke-width: 1; transition: fill 200ms; }
.ov-radial .seg.on { fill: #2f5cf0; }
.ov-radial .lbl { fill: var(--fg-200); font: 500 10px "Vazirmatn", sans-serif; text-anchor: middle; }
.ov-radial .ico { stroke: var(--fg-200); fill: none; stroke-width: 1.5; }
.ov-radial .g.on .lbl { fill: #fff; }
.ov-radial .g.on .ico { stroke: #fff; }
.ov-radial .hub { fill: var(--win-bg); stroke: #2f5cf0; stroke-width: 1.5; }
.ov-radial .key { fill: var(--win-3); stroke: var(--win-line-2); }
.ov-radial .keyt { fill: var(--fg-100); font: 700 8px ui-monospace, Menlo, monospace; text-anchor: middle; }
.ov-radial .hubt { fill: var(--fg-100); font: 700 12px "Vazirmatn", sans-serif; text-anchor: middle; }
.ov-radial .hubs { fill: var(--fg-400); font: 400 8.5px "Vazirmatn", sans-serif; text-anchor: middle; }

/* chart type dropdown */
.ov-type { position: absolute; z-index: 4; left: 10px; top: 4px; width: 118px; padding: 5px; border-radius: 8px; background: var(--win-2); border: 1px solid var(--win-line-2); box-shadow: 0 16px 40px rgba(var(--shadow), calc(.6 * var(--shadow-k))); display: grid; gap: 1px; direction: rtl; opacity: 0; transform: translateY(-6px); transition: opacity 250ms, transform 250ms; }
.ov-type.on { opacity: 1; transform: none; }
.ov-type span { padding: 3px 8px; border-radius: 5px; font-size: 10px; color: var(--fg-200); }
.ov-type span.on { color: var(--fg-100); background: var(--win-3); }
.ov-type span.hl { background: #2f5cf0; color: #fff; }

/* layout popup */
.ov-layout { position: absolute; z-index: 5; left: 268px; top: 4px; display: flex; gap: 18px; padding: 12px 14px; border-radius: 10px; background: var(--win-2); border: 1px solid var(--win-line-2); box-shadow: 0 20px 50px rgba(var(--shadow), calc(.6 * var(--shadow-k))); direction: rtl; opacity: 0; transform: translateY(-6px); transition: opacity 250ms, transform 250ms; }
.ov-layout.on { opacity: 1; transform: none; }
.ov-layout-h { font-size: 10px; color: var(--fg-300); margin-bottom: 8px; display: flex; gap: 5px; align-items: center; }
.ov-layout-h i { font-style: normal; width: 11px; height: 11px; border: 1px solid var(--fg-400); border-radius: 50%; display: grid; place-items: center; font-size: 7px; }
.ov-grid { display: grid; grid-template-columns: repeat(4, 18px); gap: 4px; direction: ltr; }
.ov-grid i { height: 15px; border-radius: 3px; background: var(--win-3); border: 1px solid var(--win-line-2); transition: background-color 200ms; }
.ov-grid i.on { background: var(--fg-100); }
.ov-grid i.hl { background: #2f5cf0; border-color: #2f5cf0; }
.ov-sw { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 10.5px; color: var(--fg-200); margin-bottom: 6px; }
.ov-sw b { width: 24px; height: 13px; border-radius: 999px; background: var(--win-line-3); position: relative; }
.ov-sw b::after { content: ""; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.ov-sw b.on { background: var(--fg-100); }
.ov-sw b.on::after { right: auto; left: 2px; background: var(--win-bg); }

/* indicators dialog + hover card */
.ov-dialog { position: absolute; z-index: 5; left: 150px; top: 8px; width: 330px; border-radius: 10px; background: var(--win-2); border: 1px solid var(--win-line-2); box-shadow: 0 24px 60px rgba(var(--shadow), calc(.7 * var(--shadow-k))); opacity: 0; transform: scale(.97); transition: opacity 250ms, transform 300ms; }
.ov-dialog.on { opacity: 1; transform: none; }
.ov-dialog-h { display: flex; justify-content: space-between; padding: 9px 12px 6px; font-size: 12px; font-weight: 700; }
.ov-dialog-h span { color: var(--fg-300); font-weight: 400; }
.ov-search { margin: 0 12px 8px; display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 7px; border: 1px solid var(--win-line-2); background: var(--win-bg); color: var(--fg-300); font-size: 11px; }
.ov-search span { color: var(--fg-100); }
.ov-caret { width: 1px; height: 12px; background: var(--fg-100); animation: pulse .8s steps(1) infinite; }
.ov-dialog-b { display: flex; gap: 10px; padding: 0 12px 12px; }
.ov-cats { width: 90px; flex: none; display: grid; gap: 2px; align-content: start; }
.ov-cats li, .ov-results li { font-size: 10px; color: var(--fg-200); padding: 3px 7px; border-radius: 5px; }
.ov-cats li.on { background: var(--win-3); color: var(--fg-100); }
.ov-cats li.t, .ov-results li.t { color: var(--fg-400); font-size: 8.5px; padding-top: 6px; }
.ov-results { flex: 1; display: grid; gap: 1px; align-content: start; }
.ov-results li:not(.t) { opacity: 0; transform: translateY(3px); transition: opacity 250ms, transform 250ms, background-color 200ms; font-weight: 600; color: var(--fg-100); }
.ov-results.on li { opacity: 1; transform: none; }
.ov-results li.hl { background: var(--win-3); }
.ov-hover { position: absolute; z-index: 6; left: 488px; top: 40px; width: 230px; padding: 8px; border-radius: 10px; background: var(--win-2); border: 1px solid var(--win-line-2); box-shadow: 0 24px 60px rgba(var(--shadow), calc(.7 * var(--shadow-k))); opacity: 0; transform: translateX(-6px); transition: opacity 250ms, transform 300ms; }
.ov-hover.on { opacity: 1; transform: none; }
.ov-hover canvas { width: 100%; height: 110px; display: block; border-radius: 6px; background: var(--win-bg); }
.ov-hover b { display: block; font-size: 12px; margin: 8px 2px 3px; }
.ov-hover p { margin: 0 2px; font-size: 9.5px; color: var(--fg-300); line-height: 1.8; }

/* 3D ridge pane */
.ov-ridge { position: absolute; left: 0; right: 0; bottom: 0; height: 0; overflow: hidden; border-top: 1px solid var(--win-line-2); background: var(--win-bg); transition: height 700ms cubic-bezier(.65, 0, .25, 1); }
.ov-ridge.on { height: 46%; }
.ov-ridge-t { position: absolute; left: 8px; top: 5px; z-index: 1; font-size: 10px; color: var(--fg-200); }
.ov-ridge canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.ov-foot { height: 24px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-top: 1px solid var(--win-line); font: 10px ui-monospace, Menlo, monospace; color: var(--fg-300); }

/* cursor */
.ov-cursor { position: absolute; z-index: 20; left: 0; top: 0; width: 1px; height: 1px; transition: transform 700ms cubic-bezier(.45, 0, .2, 1); pointer-events: none; }
.ov-cursor i { position: absolute; left: 0; top: 0; display: block; width: 18px; height: 18px; background: no-repeat center / contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); transition: transform 120ms; }
.ov-cursor.arrow i { margin: -1px 0 0 -2px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 12h-7l4 8-3 1.5-4-8L4 20z' fill='%23fff' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ov-cursor.hand i { margin: -2px 0 0 -7px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11V4.5a1.5 1.5 0 0 1 3 0V10m0-1.5a1.5 1.5 0 0 1 3 0V10m0-.5a1.5 1.5 0 0 1 3 0V11m0 0a1.5 1.5 0 0 1 3 0v4a7 7 0 0 1-7 7h-1.5a6 6 0 0 1-4.6-2.2L4 15.5a1.6 1.6 0 0 1 2.4-2.1L9 16V11' fill='%23fff' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ov-cursor.ibeam i { width: 14px; height: 22px; margin: -11px 0 0 -7px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 22'%3E%3Cpath d='M3 1.5h3.2L7 2.4 7.8 1.5H11M7 2.5v17M3 20.5h3.2L7 19.6l.8.9H11' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M3 1.5h3.2L7 2.4 7.8 1.5H11M7 2.5v17M3 20.5h3.2L7 19.6l.8.9H11' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ov-cursor.cross i { width: 22px; height: 22px; margin: -11px 0 0 -11px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 1v20M1 11h20' stroke='%23000' stroke-width='3.4'/%3E%3Cpath d='M11 1v20M1 11h20' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); }
.ov-cursor.click i { transform: scale(.82); }
