/* Live demo (2026-11-15 boarddemo): read-only board demo. Loaded only on /live-demo. */
.bbd-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:10px 14px;
  border:1px solid rgba(247,147,26,.45);border-radius:10px;background:rgba(247,147,26,.08);color:var(--text,#e8eaed);font-size:13px;line-height:1.4}
.bbd-banner-txt strong{color:#f7931a}
.bbd-banner-go,.bbd-lock-go,.bbd-signup-go{background:#f7931a;color:#0b0e11;border-color:#f7931a;font-weight:800;text-decoration:none;white-space:nowrap}
.bbd-banner-go:hover,.bbd-lock-go:hover,.bbd-signup-go:hover{background:#ffa733;color:#0b0e11}

/* Locked controls: greyed, a click opens the sign-up prompt (board-demo.js). */
body.bb-demo-board #boardTab-ath,
body.bb-demo-board #lookupTickerBtn,
body.bb-demo-board [data-star],
body.bb-demo-board #chartFavBtn,
body.bb-demo-board [data-bell],
body.bb-demo-board [data-alert-btn],
body.bb-demo-board #chartAlertsBtn,
body.bb-demo-board #hdrAlertsBtn,
body.bb-demo-board #boardAlertsTab,
body.bb-demo-board #orderListsBtn,
body.bb-demo-board #newListBtn,
body.bb-demo-board #tickerInput{opacity:.45;filter:grayscale(1);cursor:pointer}
body.bb-demo-board #boardTab-ath::after,
body.bb-demo-board #lookupTickerBtn::after,
body.bb-demo-board #newListBtn::after{content:" 🔒";font-size:.85em}
body.bb-demo-board #tickerInput{cursor:pointer}
/* Shown greyed (not hidden) so visitors see they exist; new-member restrictions still hide the rest. */
body.bb-demo-board.bb-tabs-restricted #newListBtn{display:inline-flex !important}
body.bb-demo-board #orderAssetsBtn,
body.bb-demo-board #addDividerBtn,
body.bb-demo-board #deleteListBtn{display:none !important}

/* Locked timeframes: buttons stay clickable (they show the blurred placeholder). */
body.bb-demo-board .bbd-tf-locked{position:relative}
body.bb-demo-board .bbd-tf-locked::after{content:"🔒";font-size:9px;position:absolute;top:1px;right:2px;line-height:1;opacity:.9}

/* Board: blurred placeholder rows + overlay while 4H / 1D / 1W is selected. */
body.bb-demo-board #boardWrap,body.bb-demo-board .board-wrap{position:relative}
.bbd-lock{display:none}
body.bbd-board-locked #bbdBoardLock,
body.bbd-chart-locked #bbdChartLock{display:flex;position:absolute;inset:0;z-index:30;align-items:flex-start;justify-content:center;
  padding:48px 12px 12px;background:rgba(11,14,17,.25)}
body.bbd-chart-locked #bbdChartLock{align-items:center;padding:12px}
.bbd-lock-card{max-width:360px;padding:18px 20px;border:1px solid rgba(247,147,26,.55);border-radius:12px;background:rgba(18,22,28,.94);
  box-shadow:0 10px 30px rgba(0,0,0,.45);text-align:center;color:var(--text,#e8eaed)}
.bbd-lock-ico{font-size:22px;line-height:1}
.bbd-lock-title{margin:8px 0 4px;font-weight:800;font-size:16px}
.bbd-lock-sub{margin:0 0 12px;font-size:13px;color:var(--muted,#9aa4b2)}
body.bbd-board-locked #boardBody,
body.bbd-board-locked #lastUpdated{filter:blur(7px);user-select:none;pointer-events:none}
body.bbd-board-locked #errorPanel{display:none !important}

/* Chart viewer: blurred placeholder chart + overlay; the 4H / 1D / 1W cards always blurred. */
body.bb-demo-board #chartModal .chart-canvas-wrap{position:relative}
body.bbd-chart-locked #chartCanvas,
body.bbd-chart-locked #chartBias,
body.bbd-chart-locked #chartModalSubtitle{filter:blur(8px);user-select:none;pointer-events:none}
body.bb-demo-board .chart-tf-card[data-tf="4H"],
body.bb-demo-board .chart-tf-card[data-tf="1D"],
body.bb-demo-board .chart-tf-card[data-tf="1W"]{position:relative;overflow:hidden}
body.bb-demo-board .chart-tf-card[data-tf="4H"] > *,
body.bb-demo-board .chart-tf-card[data-tf="1D"] > *,
body.bb-demo-board .chart-tf-card[data-tf="1W"] > *{filter:blur(5px);user-select:none}
body.bb-demo-board .chart-tf-card[data-tf="4H"]::after,
body.bb-demo-board .chart-tf-card[data-tf="1D"]::after,
body.bb-demo-board .chart-tf-card[data-tf="1W"]::after{content:"🔒 Sign up to unlock";position:absolute;inset:auto 0 50% 0;transform:translateY(50%);
  text-align:center;font-size:11px;font-weight:800;color:#f7931a;text-shadow:0 1px 3px #000;pointer-events:none}

/* Sign-up prompt */
.bbd-signup{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.6)}
.bbd-signup.show{display:flex}
.bbd-signup-card{position:relative;max-width:400px;width:100%;padding:22px 22px 18px;border:1px solid rgba(247,147,26,.55);border-radius:14px;
  background:var(--bg2,#12161c);color:var(--text,#e8eaed);text-align:center;box-shadow:0 14px 40px rgba(0,0,0,.5)}
.bbd-signup-card h3{margin:0 0 8px;font-size:19px;color:#f7931a}
.bbd-signup-msg{margin:0 0 8px;font-size:14px;line-height:1.45}
.bbd-signup-price{margin:0 0 14px;font-size:13px;color:var(--muted,#9aa4b2)}
.bbd-signup-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.bbd-signup-login{text-decoration:none}
.bbd-signup-x{position:absolute;top:6px;right:8px;width:36px;height:36px;border:0;background:none;color:var(--muted,#9aa4b2);font-size:22px;cursor:pointer}
.bbd-signup-btn{background:#f7931a !important;color:#0b0e11 !important;border-color:#f7931a !important;font-weight:800}

/* Hint when See Chart Read is tapped with no ticker open. */
.bbd-hint{position:fixed;left:50%;bottom:22px;transform:translateX(-50%) translateY(12px);z-index:1100;max-width:min(420px,calc(100% - 24px));
  padding:10px 14px;border:1px solid rgba(247,147,26,.55);border-radius:10px;background:rgba(18,22,28,.96);color:var(--text,#e8eaed);
  font-size:13px;line-height:1.4;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.45);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.bbd-hint.show{opacity:1;transform:translateX(-50%) translateY(0)}
