/* CryptoNow demo tours — page frame + spotlight tour layer */
:root {
  --cn-blue: #5283fc; --cn-blue-ink: #2b57d6; --cn-blue-soft: #eef3ff;
  --cn-navy: #0b1426; --cn-ink: #0f1b2d; --cn-muted: #5b6b7c; --cn-line: #e4e9f0;
  --cn-ground: #f4f6fa; --cn-surface: #ffffff;
  --cn-green: #17a06a; --cn-green-soft: #e6f7ee; --cn-amber: #c47d12; --cn-amber-soft: #fff4dd; --cn-red: #d64545;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', var(--font);
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--cn-ink); background: var(--cn-ground); line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
button { font: inherit; }

/* ---- brand bar ---- */
.tbar { height: 56px; background: var(--cn-surface); border-bottom: 1px solid var(--cn-line); display: flex; align-items: center; padding: 0 20px; gap: 14px; position: sticky; top: 0; z-index: 20; }
.tbar .brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.tbar .brand img { width: 24px; height: 24px; }
.tbar .brand b { font-weight: 700; }
.tbar .sep { width: 1px; height: 22px; background: var(--cn-line); }
.tbar .title { font-size: 13.5px; color: var(--cn-muted); }
.tbar .title b { color: var(--cn-ink); font-weight: 600; }
.tbar .title .tag { display: inline-block; margin-left: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--cn-blue-ink); background: var(--cn-blue-soft); border-radius: 999px; padding: 2px 8px; vertical-align: 1px; }
.tbar .spacer { flex: 1; }
.tbar .btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--cn-line); background: var(--cn-surface); color: var(--cn-ink); transition: .12s; white-space: nowrap; }
.tbar .btn:hover { background: var(--cn-ground); }
.tbar .btn.primary { background: var(--cn-blue); border-color: var(--cn-blue); color: #fff; }
.tbar .btn.primary:hover { background: var(--cn-blue-ink); border-color: var(--cn-blue-ink); }
.tbar .btn svg { width: 14px; height: 14px; }
@media (max-width: 720px) { .tbar .title { display: none; } .tbar .sep { display: none; } }

/* ---- stage ---- */
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 36px 20px 56px; }
.stage.wide { padding: 0; align-items: stretch; }
.tfoot { text-align: center; font-size: 12px; color: var(--cn-muted); padding: 14px 20px 22px; }
.tfoot b { color: var(--cn-ink); }

/* ---- tour overlay ---- */
.ct-overlay { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.ct-overlay svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ct-overlay svg path { fill: rgba(8, 14, 30, .74); pointer-events: auto; transition: d .25s ease; }
.ct-ring { position: absolute; border-radius: 12px; box-shadow: 0 0 0 2px var(--cn-blue), 0 0 0 7px rgba(82,131,252,.28); pointer-events: none; transition: all .25s ease; }
@media (prefers-reduced-motion: reduce) { .ct-overlay svg path, .ct-ring, .ct-bubble { transition: none !important; } }

.ct-bubble { position: absolute; width: 340px; max-width: calc(100vw - 24px); background: #fff; color: var(--cn-ink); border-radius: 14px; padding: 16px 18px 14px; box-shadow: 0 18px 50px rgba(8,14,30,.45), 0 2px 6px rgba(8,14,30,.2); pointer-events: auto; transition: top .25s ease, left .25s ease; }
.ct-bubble::before { content: ''; position: absolute; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.ct-bubble[data-place="bottom"]::before { top: -7px; left: var(--ax, 40px); }
.ct-bubble[data-place="top"]::before { bottom: -7px; left: var(--ax, 40px); }
.ct-bubble[data-place="right"]::before { left: -7px; top: var(--ay, 40px); }
.ct-bubble[data-place="left"]::before { right: -7px; top: var(--ay, 40px); }
.ct-bubble[data-place="over"]::before { display: none; }
.ct-bubble .k { padding-right: 24px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cn-blue-ink); margin-bottom: 6px; }
.ct-bubble h4 { font-family: var(--display); font-size: 15.5px; margin: 0 0 6px; letter-spacing: -.01em; line-height: 1.3; }
.ct-bubble p { margin: 0; font-size: 13.5px; color: #3b4859; line-height: 1.5; }
.ct-bubble .nav { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.ct-bubble .nav .dots { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; min-width: 0; }
.ct-bubble .nav .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--cn-line); }
.ct-bubble .nav .dots i.on { background: var(--cn-blue); }
.ct-bubble .nav .dots i.done { background: #b9c8ea; }
.ct-bubble .nav button { white-space: nowrap; flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--cn-line); background: #fff; color: var(--cn-ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.ct-bubble .nav button:hover { background: var(--cn-ground); }
.ct-bubble .nav button:disabled { opacity: .4; cursor: default; }
.ct-bubble .nav button.next { background: var(--cn-blue); border-color: var(--cn-blue); color: #fff; }
.ct-bubble .nav button.next:hover { background: var(--cn-blue-ink); }
.ct-bubble > .end { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 7px; border: 0; background: transparent; color: var(--cn-muted); font-size: 18px; line-height: 1; cursor: pointer; }
.ct-bubble > .end:hover { background: var(--cn-ground); color: var(--cn-ink); }
.ct-bubble button:focus-visible, .tbar .btn:focus-visible { outline: 2px solid var(--cn-blue); outline-offset: 2px; }

/* restart pill after tour ends */
.ct-restart { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--cn-navy); color: #fff; font-size: 13.5px; font-weight: 600; border: 0; cursor: pointer; box-shadow: 0 10px 30px rgba(8,14,30,.3); }
.ct-restart.show { display: inline-flex; }
.ct-restart svg { width: 15px; height: 15px; }

/* generic mock toast */
.mock-toast { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 950; background: #fff; border: 1px solid var(--cn-line); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(8,14,30,.15); display: flex; gap: 8px; align-items: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.mock-toast.show { opacity: 1; }
.mock-toast .ok { width: 18px; height: 18px; border-radius: 50%; background: var(--cn-green); color: #fff; display: grid; place-items: center; font-size: 11px; }
