/* ══════════════════════════════════════════════════════════════
   Price Prediction Page — blockspot.io
   Scoped under #bs-price-prediction-page.
   ══════════════════════════════════════════════════════════════ */

/* ── Page container ─────────────────────────────────────── */

/* The page box (max-width, centring, padding) is owned by .bs-coin-single in
   bs-coin-single.css — shared verbatim with the coin overview so the two line up.
   Nothing box-related belongs here: this id (1,1,0) would out-specify it. */

/* Full-width white hero band holding ad + breadcrumb + hero + tab nav —
   mirrors the layout of the main coin page where this whole block sits on a
   white bar that spans the viewport. */
#bs-price-prediction-page .bs-pp-hero-band {
    background: #fff;
    width: 100%;
}

#bs-price-prediction-page .bs-pp-hero-band-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 16px 20px;
}

/* Centered ad slot. AdInserter emits the ad inside a <div class="code-block">
   with inline style="margin: 8px 0; clear:both;" — left-aligned by default.
   Converting it to inline-block lets the parent's text-align:center handle
   horizontal centering without needing !important to fight the inline style. */
.bs-pp-hdr-ad {
    text-align: center;
    margin: 0 0 12px;
}

.bs-pp-hdr-ad > .code-block {
    display: inline-block;
    max-width: 100%;
}

.bs-pp-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 16px 0;
}

/* ── Coin hero — moved to bs-coin-hero.css (shared with main coin page) ── */

/* ── Cards ───────────────────────────────────────────────── */

.bs-pp-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

/* Below-fold cards: skip painting/layout until near viewport.
   Chart card + forecast summary stay normal (they paint with hero on most viewports).
   contain-intrinsic-size is a hint; browser refines after first paint. */
.bs-pp-targets-card,
.bs-pp-mom-card,
.bs-pp-indicators,
.bs-pp-pivots-card,
.bs-ta-summary,
.bs-pp-table-card,
.bs-pp-corr-card,
.bs-pp-methodology-card,
.bs-pp-faq-card,
.bs-pp-calc-card,
.bs-pp-similar-card,
.bs-pp-te-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.bs-pp-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #111318;
    margin: 0 0 20px;
}

.bs-pp-sub-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 20px 0 12px;
}

/* ── Signal / trend badges ───────────────────────────────── */

.bs-pp-signal-badge,
.bs-pp-trend-badge {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 8px;
    margin-top: 6px;
}

.bs-signal-strong-buy  { background: #d1fae5; color: #065f46; }
.bs-signal-buy         { background: #e6f7f2; color: #1D9E75; }
.bs-signal-neutral     { background: #f3f4f6; color: #374151; }
.bs-signal-sell        { background: #fef2f2; color: #E24B4A; }
.bs-signal-strong-sell { background: #fee2e2; color: #991b1b; }

.bs-trend-bullish { background: #e6f7f2; color: #1D9E75; }
.bs-trend-bearish { background: #fef2f2; color: #E24B4A; }
.bs-trend-neutral { background: #f3f4f6; color: #374151; }

.bs-pp-trend-str {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
    margin-left: 4px;
}

/* ── Signal + Trend ──────────────────────────────────────── */

.bs-pp-signals-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 20px;
}

/* Left stack: Overall Signal + Trend Direction */
.bs-pp-signal-stack {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #f3f4f6;
    padding-right: 32px;
}

.bs-pp-signal-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.bs-pp-signal-item:first-child { padding-top: 0; }
.bs-pp-signal-item:last-child  { border-bottom: none; padding-bottom: 0; }

/* Right column: Signal Breakdown */
.bs-pp-ci-col {
    padding-left: 32px;
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.bs-pp-signal-desc {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.4;
}

/* Composite indicator rows */

.bs-pp-ci-list {
    display: flex;
    flex-direction: column;
    margin-top: 6px;
}

.bs-pp-ci-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f9fafb;
}

.bs-pp-ci-row:last-child { border-bottom: none; padding-bottom: 0; }
.bs-pp-ci-row:first-child { padding-top: 0; }

.bs-pp-ci-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bs-pp-ci-name {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
}

.bs-pp-ci-desc {
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.3;
}

.bs-pp-ci-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

/* Weight bar inside CI row */

.bs-pp-ci-weight {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bs-pp-ci-weight-bar {
    width: 52px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.bs-pp-ci-weight-fill {
    height: 100%;
    background: #9ca3af;
    border-radius: 2px;
}

.bs-pp-ci-pct {
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    white-space: nowrap;
}

/* CI Section (full-width below signals row) */

.bs-pp-ci-section {
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
    margin-top: 4px;
    margin-bottom: 0;
}

.bs-pp-ci-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.bs-pp-section-note {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}

/* .bs-pp-mom-title-row defined in momentum section below */

/* Price targets legend note */

.bs-pp-rl-pct-note {
    font-size: 10px;
    color: #9ca3af;
    font-style: italic;
}

/* Strength bar */

.bs-pp-strength-wrap {
    margin-top: 4px;
}

.bs-pp-strength-bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.bs-pp-strength-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.bs-pp-str-bull { background: #1D9E75; }
.bs-pp-str-bear { background: #E24B4A; }
.bs-pp-str-neut { background: #9ca3af; }

.bs-pp-strength-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}

.bs-pp-strength-lo,
.bs-pp-strength-hi {
    color: #d1d5db;
    font-weight: 500;
}

.bs-pp-strength-val {
    font-size: 11px;
    font-weight: 700;
    color: #374151;
}

/* ── Composite score meter ───────────────────────────────── */

.bs-pp-score-meter {
    margin: 10px 0 6px;
}

.bs-pp-score-track {
    position: relative;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #E24B4A 0%, #E24B4A 20%, #f59e0b 30%, #d1d5db 40%, #d1d5db 60%, #6ee7b7 70%, #1D9E75 80%, #1D9E75 100%);
    margin-bottom: 4px;
}

.bs-pp-score-neutral-zone {
    position: absolute;
    top: 0; bottom: 0;
    left: 40%; width: 20%;
    background: rgba(255,255,255,0.25);
    border-left: 1px solid rgba(255,255,255,0.5);
    border-right: 1px solid rgba(255,255,255,0.5);
    border-radius: 0;
    pointer-events: none;
}

.bs-pp-score-needle {
    position: absolute;
    top: -3px; bottom: -3px;
    width: 3px;
    background: #111318;
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,0.3);
}

.bs-pp-score-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 4px;
}

.bs-pp-score-explain {
    font-size: 10px;
    color: #9ca3af;
    margin: 2px 0 0;
    line-height: 1.4;
}

.bs-pp-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 4px;
}

/* ── Two-column layout ─────────────────────────────────── */

.bs-pp-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.bs-pp-main {
    flex: 1;
    min-width: 0;
}

.bs-pp-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bs-pp-sidebar .bs-pp-card {
    border-color: #b8e4f5;
    margin-bottom: 0;
}

.bs-pp-sidebar-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #111318;
    margin: 0 0 10px;
}

.bs-pp-sidebar-title img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Signal History (sidebar timeline) ──────────────────── */
.bs-pp-sh-timeline { margin-top: 2px; }
.bs-pp-sh-item {
    position: relative;
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 11px;
    padding-bottom: 15px;
}
.bs-pp-sh-item:last-child { padding-bottom: 0; }
.bs-pp-sh-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 15px;
    bottom: -2px;
    width: 2px;
    background: #e2e5ea;
}
.bs-pp-sh-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-top: 3px;
    z-index: 1;
    box-shadow: 0 0 0 3px #fff;
}
.bs-pp-sh-item.bs-pp-sh-cur .bs-pp-sh-dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #b8e4f5; }
.bs-pp-sh-dot.bs-signal-strong-buy  { background: #059669; }
.bs-pp-sh-dot.bs-signal-buy         { background: #1D9E75; }
.bs-pp-sh-dot.bs-signal-neutral     { background: #9CA3AF; }
.bs-pp-sh-dot.bs-signal-sell        { background: #E24B4A; }
.bs-pp-sh-dot.bs-signal-strong-sell { background: #991b1b; }
.bs-pp-sh-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}
.bs-pp-sh-date { font-size: 13px; font-weight: 700; color: #111318; }
.bs-pp-sh-dur { font-size: 11.5px; color: #6b7280; font-weight: 500; white-space: nowrap; }
.bs-pp-sh-trans { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.bs-pp-sh-chip {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 9px;
    border-radius: 6px;
}
.bs-pp-sh-from { font-size: 11.5px; color: #6b7280; }
.bs-pp-sh-price { margin-left: auto; font-size: 12px; font-weight: 700; color: #206389; white-space: nowrap; }
.bs-pp-sh-price sub { font-size: 0.7em; }

/* ── Investment Calculator ──────────────────────────────── */

.bs-pp-calc-desc {
    font-size: 13px;
    color: #374151;
    line-height: 1.65;
    margin: 0 0 14px;
}

.bs-pp-calc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bs-pp-calc-field--period,
.bs-pp-calc-field--inv {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.bs-pp-calc-field--period {
    margin-top: 10px;
}

.bs-pp-calc-field--period .bs-pp-calc-periods {
    flex: 1;
}

.bs-pp-calc-field--inv .bs-pp-calc-input-wrap {
    flex: 1;
    max-width: 130px;
}

.bs-pp-calc-field--inv {
    margin-top: 8px;
}

.bs-pp-calc-field--inv .bs-pp-calc-prefix {
    padding-top: 4px;
    padding-bottom: 4px;
}

.bs-pp-calc-field--inv #bs-pp-calc-amount,
.bs-pp-calc-field--inv #bs-pp-calc-amount:focus,
.bs-pp-calc-field--inv #bs-pp-calc-amount:active {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 14px;
}

.bs-pp-calc-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.bs-pp-calc-field--period .bs-pp-calc-label,
.bs-pp-calc-field--inv .bs-pp-calc-label {
    font-size: 14px;
    font-weight: 700;
    color: #111318;
    white-space: nowrap;
}

.bs-pp-calc-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    transition: border-color 0.15s;
}

.bs-pp-calc-input-wrap:focus-within {
    border-color: #1D9E75;
    box-shadow: 0 0 0 2px rgba(29,158,117,0.15);
}

.bs-pp-calc-prefix {
    padding: 10px 0 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    line-height: 1;
    user-select: none;
}

#bs-pp-calc-amount,
#bs-pp-calc-amount:focus,
#bs-pp-calc-amount:active {
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 12px 10px 4px;
    font-size: 15px;
    font-weight: 600;
    color: #111318;
    width: 100%;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
}

.bs-pp-calc-periods {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

#bs-pp-calc-periods .bs-pp-calc-period {
    min-width: 0;
    padding: 8px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1;
}

#bs-pp-calc-periods .bs-pp-calc-period:hover,
#bs-pp-calc-periods .bs-pp-calc-period:focus {
    border-color: #1D9E75;
    color: #1D9E75;
    background: #f0fdf4;
    outline: none;
    box-shadow: none;
}

#bs-pp-calc-periods .bs-pp-calc-period.bs-pp-calc-period--active,
#bs-pp-calc-periods .bs-pp-calc-period.bs-pp-calc-period--active:hover,
#bs-pp-calc-periods .bs-pp-calc-period.bs-pp-calc-period--active:focus {
    background: #1D9E75;
    border-color: #1D9E75;
    color: #fff;
    outline: none;
    box-shadow: none;
}

.bs-pp-calc-result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
}

.bs-pp-calc-result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bs-pp-calc-result-label {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bs-pp-calc-result-val {
    font-size: 18px;
    font-weight: 700;
    color: #111318;
}

.bs-pp-calc-result-arrow {
    color: #d1d5db;
    padding-top: 16px;
}

.bs-pp-calc-profit-bar-wrap {
    margin-bottom: 8px;
}

.bs-pp-calc-profit-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f6;
}

.bs-pp-calc-profit-base {
    background: #d1d5db;
    transition: width 0.3s;
}

.bs-pp-calc-profit-gain {
    background: #16c784;
    transition: width 0.3s;
}

.bs-pp-calc-profit-gain.bs-pp-calc-loss {
    background: #ea3943;
}

.bs-pp-calc-profit-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
}

.bs-pp-calc-profit-val {
    font-weight: 700;
    font-size: 14px;
}

.bs-pp-calc-disclaimer {
    margin: 14px 0 0;
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.4;
}

.bs-pp-calc-disclaimer strong {
    color: #6b7280;
    font-weight: 700;
}

/* ── Similar Predictions sidebar widget ─────────────────── */

.bs-pp-similar-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bs-pp-similar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: background 0.12s;
    border-radius: 6px;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
}

.bs-pp-similar-item:last-child {
    border-bottom: none;
}

.bs-pp-similar-item:hover {
    background: #f9fafb;
}

.bs-pp-similar-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bs-pp-similar-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bs-pp-similar-name {
    font-size: 13px;
    font-weight: 600;
    color: #111318;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bs-pp-similar-ticker {
    font-weight: 400;
    color: #9ca3af;
    font-size: 11px;
}

.bs-pp-similar-mcap {
    font-size: 11px;
    color: #9ca3af;
}

.bs-pp-similar-right {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bs-pp-similar-price {
    font-size: 13px;
    font-weight: 600;
    color: #111318;
    white-space: nowrap;
}

.bs-pp-similar-chg {
    font-size: 11px;
    font-weight: 600;
}

/* ── Momentum indicators: column-per-indicator layout ───── */

.bs-pp-mom-title-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.bs-pp-seg-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.bs-pp-seg-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    min-width: 0;
}

.bs-pp-seg-col .bs-pp-ind-badge {
    align-self: center;
}

.bs-pp-seg {
    width: 100%;
    height: 12px;
    border-radius: 4px;
}

.bs-pp-seg-buy  { background: #1D9E75; }
.bs-pp-seg-sell { background: #E24B4A; }
.bs-pp-seg-neut { background: #d1d5db; }

.bs-pp-seg-name {
    font-size: 10px;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
    word-break: break-word;
}

.bs-pp-seg-val {
    font-size: 10px;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.bs-pp-seg-counts {
    display: flex;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.bs-pp-seg-count { white-space: nowrap; }

.bs-ind-buy    { color: #1D9E75; }
.bs-ind-sell   { color: #E24B4A; }
.bs-ind-neutral { color: #6b7280; }

/* ── Price Targets card ─────────────────────────────────── */

.bs-pp-targets-card {
    overflow: visible;
}

.bs-pp-targets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 6px;
}

.bs-pp-targets-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.bs-pp-tl-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bs-pp-tl-range-line {
    display: inline-block;
    width: 24px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
}

.bs-pp-tl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
}

.bs-pp-tl-current {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: #9ca3af;
    border-left: 1px dashed #9ca3af;
}

.bs-pp-targets-cols {
    display: grid;
    grid-template-columns: 36px 1fr 60px;
    gap: 0;
    padding: 0 0 6px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 2px;
}

.bs-pp-targets-col-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

.bs-pp-targets-col-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bs-pp-targets-col-pess {
    text-align: left;
}

.bs-pp-targets-col-opt {
    text-align: right;
}

.bs-pp-targets-col-tpct {
    text-align: right;
}

.bs-pp-targets-cols {
    position: relative;
}

.bs-pp-target-row {
    display: grid;
    grid-template-columns: 36px 1fr 60px;
    gap: 0;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.bs-pp-target-row:last-child {
    border-bottom: none;
}

.bs-pp-target-label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.02em;
}

.bs-pp-target-bar-area {
    position: relative;
    height: 20px;
    cursor: pointer;
}

.bs-pp-target-current-line {
    position: absolute;
    top: -2px;
    width: 1px;
    height: 24px;
    background: #9ca3af;
    z-index: 1;
}

.bs-pp-target-range {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
}

.bs-pp-target-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    z-index: 2;
}

.bs-pp-target-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0;
    font-size: 12px;
    color: #374151;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
    min-width: 240px;
}

.bs-pp-target-row:hover .bs-pp-target-tooltip {
    display: block;
}

.bs-pp-tt-header {
    padding: 10px 14px 8px;
    font-weight: 700;
    font-size: 13px;
    color: #111318;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.bs-pp-tt-rows {
    padding: 6px 14px 4px;
}

.bs-pp-tt-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.bs-pp-tt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bs-pp-tt-dot-pess { background: #ef4444; }
.bs-pp-tt-dot-target { background: #3b82f6; }
.bs-pp-tt-dot-opt { background: #22c55e; }

.bs-pp-tt-label {
    color: #6b7280;
    min-width: 76px;
}

.bs-pp-tt-value {
    font-weight: 600;
    color: #111318;
    margin-left: auto;
}

.bs-pp-tt-pct {
    font-size: 11px;
    font-weight: 500;
    min-width: 48px;
    text-align: right;
}

.bs-pp-tt-spread {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
    color: #6b7280;
    font-size: 11px;
}

.bs-pp-tt-spread svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.bs-pp-tt-spread-val {
    font-weight: 600;
    color: #374151;
    margin-left: auto;
}

.bs-pp-target-pct {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

/* ── Technical indicator header + summary ───────────────── */

.bs-pp-ind-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.bs-pp-ind-header .bs-pp-card-title {
    margin-bottom: 0;
}

.bs-pp-ind-summary {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ── Technical indicator grid (2×2) ─────────────────────── */

.bs-pp-ind-blocks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 4px;
}

.bs-pp-ind-block {
    padding: 18px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
}

.bs-pp-ind-block-bearish {
    background: #fef8f8;
    border-color: #f3d5d5;
}

.bs-pp-ind-block-bearish .bs-pp-ind-desc {
    border-top-color: #f3d5d5;
}

.bs-pp-indicators .bs-pp-sub-title {
    margin-top: 4px;
}

.bs-pp-ind-block-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bs-pp-ind-block-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0;
    text-transform: none;
}

.bs-pp-ind-big-value {
    font-size: 28px;
    font-weight: 700;
    color: #111318;
    line-height: 1.2;
    margin-bottom: 4px;
}

.bs-pp-ind-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.bs-ind-buy    .bs-pp-ind-badge,
.bs-pp-ind-badge.bs-ind-buy    { background: #e6f7f2; color: #1D9E75; }
.bs-ind-sell   .bs-pp-ind-badge,
.bs-pp-ind-badge.bs-ind-sell   { background: #fef2f2; color: #E24B4A; }
.bs-ind-neutral .bs-pp-ind-badge,
.bs-pp-ind-badge.bs-ind-neutral { background: #f3f4f6; color: #374151; }

.bs-pp-ind-na {
    font-size: 14px;
    color: #9ca3af;
}

/* ── Inline card description (replaces tooltip) ─────────── */

.bs-pp-ind-desc {
    font-size: 11px;
    line-height: 1.5;
    color: #9ca3af;
    margin: auto 0 0;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.bs-pp-table-card .bs-pp-ind-desc {
    border-top: none;
}

/* ── MACD signal line text ──────────────────────────────── */

.bs-pp-macd-signal-line {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

/* ── MACD histogram bars ────────────────────────────────── */

.bs-pp-macd-histogram {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
    margin-bottom: 4px;
}

.bs-pp-hist-bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    min-height: 2px;
}

.bs-pp-hist-bar.bs-pp-hist-pos { background: #1D9E75; }
.bs-pp-hist-bar.bs-pp-hist-neg { background: #E24B4A; }

/* ── Comparison bar (EMA visual) ────────────────────────── */

.bs-pp-compare-bar {
    position: relative;
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}

.bs-pp-compare-fill {
    height: 100%;
    border-radius: 3px;
}

.bs-pp-compare-fill.bs-pp-fill-buy  { background: #1D9E75; }
.bs-pp-compare-fill.bs-pp-fill-sell { background: #E24B4A; }

.bs-pp-compare-label {
    display: block;
    font-size: 11px;
    color: #1D9E75;
    margin-top: 6px;
}

.bs-pp-ind-block-bearish .bs-pp-compare-label {
    color: #E24B4A;
}

/* ── Dual values (EMA / MA Cross side-by-side) ──────────── */

.bs-pp-dual-values {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.bs-pp-dual-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bs-pp-dual-label {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bs-pp-dual-num {
    font-size: 18px;
    font-weight: 700;
    color: #111318;
    white-space: nowrap;
}

.bs-pp-dual-sep {
    font-size: 18px;
    color: #d1d5db;
    margin-top: 14px;
}

/* ── Cross signal text (Golden / Death Cross) ───────────── */

.bs-pp-cross-signal {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.bs-pp-cross-bull { color: #1D9E75; }
.bs-pp-cross-bear { color: #E24B4A; }

/* ── RSI gauge ───────────────────────────────────────────── */

.bs-pp-rsi-gauge {
    margin-top: 4px;
}

.bs-pp-rsi-zones {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #9ca3af;
    margin-top: 4px;
}

.bs-pp-rsi-track {
    position: relative;
    height: 8px;
    background: linear-gradient(to right,
        #1D9E75 0%, #1D9E75 30%,
        #f3a7a6 30%, #f3a7a6 45%,
        #d1d5db 45%, #d1d5db 55%,
        #a3dfc9 55%, #a3dfc9 70%,
        #E24B4A 70%);
    border-radius: 4px;
}

.bs-pp-rsi-zones-5 {
    font-size: 9px;
}

.bs-pp-rsi-marker {
    position: absolute;
    top: -4px;
    width: 4px;
    height: 16px;
    background: #111318;
    border-radius: 2px;
    transform: translateX(-50%);
}

/* ── MA pills (horizontal chip layout) ──────────────────── */

.bs-pp-ma-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bs-pp-ma-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 10px 16px;
    flex: 1;
    min-width: 160px;
}

.bs-pp-ma-pill-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

.bs-pp-ma-pill-value {
    font-size: 14px;
    font-weight: 700;
    color: #111318;
    white-space: nowrap;
}

.bs-pp-ma-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bs-pp-ma-pill-dot.bs-ind-buy    { background: #1D9E75; }
.bs-pp-ma-pill-dot.bs-ind-sell   { background: #E24B4A; }
.bs-pp-ma-pill-dot.bs-ind-neutral { background: #9ca3af; }

/* ── Prediction table ────────────────────────────────────── */

.bs-pp-pred-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bs-pp-pred-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bs-pp-pred-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    padding: 8px 16px;
    border-bottom: 1px solid #d1d5db;
}

.bs-pp-pred-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
}

.bs-pp-pred-table tbody tr:last-child td,
.bs-pp-pred-table tbody tr.bs-pp-last-page-row td {
    border-bottom: 1px solid #d1d5db;
}

.bs-pp-pred-table tbody tr:hover td {
    background: #f9fafb;
}

.bs-pp-tf-label {
    font-weight: 700;
    color: #111318;
}

.bs-pp-td-low  { color: #E24B4A; }
.bs-pp-td-high { color: #1D9E75; }
.bs-pp-td-mid  { font-weight: 600; color: #111318; }

.bs-pp-td-pct {
    font-size: 11px;
    font-weight: 500;
    margin-left: 6px;
}

.bs-pp-current-note {
    font-size: 12px;
    color: #6b7280;
    margin: 12px 0 0;
}

/* ── Prediction pagination tabs ─────────────────────────── */

.bs-pp-page-tabs,
.bs-pp-year-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.bs-pp-page-tab,
.bs-pp-year-tab {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bs-pp-page-tab:hover,
.bs-pp-year-tab:hover {
    background: #f3f4f6;
    color: #374151;
}

.bs-pp-page-tab.active,
.bs-pp-year-tab.active {
    background: #111318;
    border-color: #111318;
    color: #fff;
}

.bs-pp-year-tabs {
    margin-top: 0;
    margin-bottom: 12px;
    /* 25 year tabs (2026-2050) rendered in two rows — 13 cols × 2 rows desktop */
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 6px;
}
.bs-pp-year-tab {
    text-align: center;
    padding: 6px 4px;
}
@media (max-width: 1023px) {
    .bs-pp-year-tabs { grid-template-columns: repeat(9, 1fr); }
}
@media (max-width: 639px) {
    .bs-pp-year-tabs { grid-template-columns: repeat(5, 1fr); gap: 4px; }
    .bs-pp-year-tab { padding: 5px 2px; font-size: 11px; }
}

.bs-pp-year-panel {
    display: none;
}

.bs-pp-year-panel.active {
    display: block;
}

/* ── Disclaimer ──────────────────────────────────────────── */

.bs-pp-disclaimer {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 12px;
    color: #78350f;
    line-height: 1.6;
    margin-bottom: 16px;
}

.bs-pp-disclaimer strong {
    font-weight: 700;
}

/* ── Methodology ─────────────────────────────────────────── */

.bs-pp-methodology-card p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 10px;
}

.bs-pp-methodology-card p:last-child { margin-bottom: 0; }

.bs-pp-methodology-card ul {
    margin: 10px 0;
    padding-left: 20px;
}

.bs-pp-methodology-card li {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 6px;
}

.bs-pp-methodology-card li strong {
    color: #374151;
}

/* ── Info tooltips ───────────────────────────────────────── */

.bs-pp-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 9px;
    font-weight: 700;
    font-style: normal;
    color: #9ca3af;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: help;
    position: relative;
    vertical-align: middle;
    margin-left: 4px;
    flex-shrink: 0;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    outline: none;
}

.bs-pp-info::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #f9fafb;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 6px;
    width: 230px;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 200;
    text-transform: none;
    letter-spacing: 0;
}

.bs-pp-info:hover::after,
.bs-pp-info:focus::after,
.bs-pp-info.active::after {
    opacity: 1;
}

/* ── Compact disclaimer (inline, above summary card) ─────── */

.bs-pp-remark {
    margin-top: 0;
    margin-bottom: 16px;
    font-style: normal;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

/* ── Market stats bar ──────────────────────────────────── */

.bs-pp-market-stats {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
}

.bs-pp-stat {
    flex: 1;
    padding: 14px 16px;
    min-width: 0;
}

.bs-pp-stat + .bs-pp-stat {
    border-left: 1px solid #f3f4f6;
}

.bs-pp-stat-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
    white-space: nowrap;
}

.bs-pp-stat-label svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.bs-pp-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #111318;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bs-pp-stat-value .bs-pp-signal-badge {
    font-size: 12px;
    padding: 3px 10px;
    margin-top: 2px;
}

.bs-pp-stat-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ── Forecast summary + Fear & Greed row ──────────────── */

.bs-pp-forecast-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}

.bs-pp-forecast-summary {
    flex: 1 1 0;
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    line-height: 1.75;
}

.bs-pp-forecast-right {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bs-pp-forecast-summary p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #374151;
}

.bs-pp-fs-signal {
    font-weight: 700;
    text-transform: lowercase;
}

.bs-pp-fs-pct {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.bs-pp-change-neut {
    color: #6b7280;
}

.bs-pp-fs-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #9ca3af;
    flex-wrap: wrap;
}

.bs-pp-fs-sep {
    color: #d1d5db;
}

/* ── Forecast summary header ───────────────────────────── */

.bs-pp-fs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.bs-pp-fs-title {
    font-size: 14px;
    font-weight: 700;
    color: #111318;
}

.bs-pp-fs-caveat {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 8px 0 10px;
    font-style: italic;
}

.bs-pp-fs-speculative {
    margin: 4px 0 10px;
    font-size: 13px;
}

.bs-pp-fs-speculative > summary {
    cursor: pointer;
    color: #6b7280;
    font-weight: 600;
    padding: 6px 0;
    user-select: none;
}

.bs-pp-fs-speculative > summary:hover {
    color: #111318;
}

.bs-pp-fs-speculative > p {
    margin: 6px 0 0;
    color: #4b5563;
    line-height: 1.6;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fs-caveat {
    color: #9ca3af;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fs-speculative > summary {
    color: #9ca3af;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fs-speculative > summary:hover {
    color: #e5e7eb;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fs-speculative > p {
    color: #d1d5db;
}

/* ── Green Days card ────────────────────────────────────── */

.bs-pp-gd-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bs-pp-gd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 0;
}

.bs-pp-gd-title {
    font-size: 14px;
    font-weight: 700;
    color: #111318;
}

.bs-pp-gd-count {
    font-size: 12px;
    color: #9ca3af;
}

.bs-pp-gd-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px 8px;
}

.bs-pp-gd-donut {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.bs-pp-gd-donut svg {
    width: 100%;
    height: 100%;
}

.bs-pp-gd-donut-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1;
}

.bs-pp-gd-donut-pct {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #16c784;
}

.bs-pp-gd-donut-label {
    display: block;
    font-size: 10px;
    color: #6b7280;
    margin-top: 1px;
}

.bs-pp-gd-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bs-pp-gd-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bs-pp-gd-stat-label {
    font-size: 12px;
    color: #6b7280;
}

.bs-pp-gd-stat-row span:last-child {
    font-size: 12px;
    font-weight: 600;
}

.bs-pp-gd-day-num {
    font-weight: 400;
    color: #9ca3af;
    font-size: 11px;
}

.bs-pp-gd-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
    padding: 4px 16px 4px;
}

.bs-pp-gd-block {
    aspect-ratio: 1;
    border-radius: 4px;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bs-pp-gd-block span {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    line-height: 1;
}

.bs-pp-gd-up {
    background: #16c784;
}

.bs-pp-gd-down {
    background: #ea3943;
}

.bs-pp-gd-labels {
    display: flex;
    justify-content: space-between;
    padding: 2px 16px 10px;
    font-size: 9px;
    color: #9ca3af;
}

/* "30 days ago" sits above the first (top-left) block; "Today" below the last
   (bottom-right) block — the grid fills left-to-right, top-to-bottom. */
.bs-pp-gd-labels--top {
    justify-content: flex-start;
    padding-top: 6px;
    padding-bottom: 2px;
}

.bs-pp-gd-labels--bottom {
    justify-content: flex-end;
}

.bs-pp-gd-info {
    margin: 0;
    padding: 8px 16px 10px;
    border-top: 1px solid #f3f4f6;
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.4;
}

/* ── Fear & Greed gauge ────────────────────────────────── */

.bs-pp-fg-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bs-pp-fg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 0;
}

.bs-pp-fg-title {
    font-size: 14px;
    font-weight: 700;
    color: #111318;
}

.bs-pp-fg-coin {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
}

.bs-pp-fg-body {
    display: flex;
    gap: 0;
    padding: 8px 20px 16px;
}

.bs-pp-fg-gauge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    flex-shrink: 0;
}

.bs-pp-fg-gauge {
    width: 170px;
    height: auto;
}

.bs-pp-fg-svg {
    width: 100%;
    height: auto;
    display: block;
}

.bs-pp-fg-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -8px;
}

.bs-pp-fg-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.bs-pp-fg-label {
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

.bs-fg-extreme-fear { color: #ea3943; }
.bs-fg-fear { color: #ea8c00; }
.bs-fg-neutral { color: #6b7280; }
.bs-fg-greed { color: #93c47d; }
.bs-fg-extreme-greed { color: #16c784; }

.bs-pp-fg-detail-col {
    flex: 1;
    min-width: 0;
    padding-left: 16px;
    border-left: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bs-pp-fg-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bs-pp-fg-comp {
    cursor: default;
}

.bs-pp-fg-comp-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3px;
}

.bs-pp-fg-comp-label {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
}

.bs-pp-fg-comp-weight {
    font-size: 10px;
    color: #9ca3af;
}

.bs-pp-fg-comp-bar {
    height: 5px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.bs-pp-fg-comp-fill {
    height: 100%;
    border-radius: 3px;
}

.bs-pp-fg-comp-fill.bs-fg-extreme-fear { background: #ea3943; }
.bs-pp-fg-comp-fill.bs-fg-fear { background: #ea8c00; }
.bs-pp-fg-comp-fill.bs-fg-neutral { background: #9ca3af; }
.bs-pp-fg-comp-fill.bs-fg-greed { background: #93c47d; }
.bs-pp-fg-comp-fill.bs-fg-extreme-greed { background: #16c784; }

.bs-pp-fg-comp-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

.bs-pp-fg-comp-reading {
    font-size: 10px;
    font-weight: 600;
}

.bs-pp-fg-comp-val {
    font-size: 10px;
    color: #9ca3af;
}

.bs-pp-fg-explain-wrap {
    border-top: 1px solid #f3f4f6;
    margin-top: 10px;
    padding-top: 10px;
    width: 100%;
}

.bs-pp-fg-explain {
    margin: 0;
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.5;
    text-align: center;
}

/* ── Chart card ──────────────────────────────────────────── */

.bs-pp-chart-card {
    padding-bottom: 16px;
}

#bs-pp-tf-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

#bs-pp-tf-controls::-webkit-scrollbar { display: none; }

#bs-pp-tf-controls .bs-pp-tf-btn {
    flex: 1;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    background: #f9fafb;
    color: #111318;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    text-align: left;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: none;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#bs-pp-tf-controls .bs-pp-tf-btn:hover,
#bs-pp-tf-controls .bs-pp-tf-btn:focus {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111318;
    text-decoration: none;
    box-shadow: none;
    outline: none;
}

#bs-pp-tf-controls .bs-pp-tf-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

#bs-pp-tf-controls .bs-pp-tf-btn.bs-pp-tf-btn--active {
    background: #eff6ff;
    border-color: #2563eb;
    color: #111318;
}

#bs-pp-tf-controls .bs-pp-tf-btn.bs-pp-tf-btn--active:hover,
#bs-pp-tf-controls .bs-pp-tf-btn.bs-pp-tf-btn--active:focus {
    background: #dbeafe;
    color: #111318;
    text-decoration: none;
}

#bs-pp-tf-controls .bs-pp-tf-period {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1;
}

#bs-pp-tf-controls .bs-pp-tf-btn.bs-pp-tf-btn--active .bs-pp-tf-period {
    color: #2563eb;
}

#bs-pp-tf-controls .bs-pp-tf-price {
    font-size: 15px;
    font-weight: 700;
    color: #111318;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

#bs-pp-tf-controls .bs-pp-tf-dir {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

#bs-pp-tf-controls .bs-pp-tf-up   { color: #1D9E75; }
#bs-pp-tf-controls .bs-pp-tf-down { color: #E24B4A; }

.bs-pp-chart-wrap {
    width: 100%;
    /* Reserve the exact height uPlot will render at first paint to prevent CLS.
       bs-price-prediction.js sets chartH = clamp(260, container.clientWidth * 0.45, 380).
       aspect-ratio 20/9 => height = width * 0.45; min/max-height replicate the clamp.
       Without this the box was min-height:260 but rendered up to 380 on desktop
       (wide column), growing ~120px and shifting all content below. Mobile was
       already 260 (narrow width clamps to the floor), which is why CLS was
       desktop-only. */
    aspect-ratio: 20 / 9;
    min-height: 260px;
    max-height: 380px;
    position: relative;
}

.bs-pp-chart-wrap .uplot {
    width: 100%;
}

/* iOS touch scrubbing: stop Safari from selecting the tooltip/legend/axis text
   and popping the magnifier "loupe" while a finger drags the chart. */
#bs-pp-chart,
.bs-pp-chart-wrap,
.bs-pp-sub-pane-chart,
.bs-pp-chart-tooltip,
.bs-pp-chart-legend {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
#bs-pp-chart .uplot,
#bs-pp-chart .u-over,
.bs-pp-sub-pane-chart .uplot,
.bs-pp-sub-pane-chart .u-over,
.bs-pp-chart-tooltip {
    touch-action: none;
}

.bs-pp-chart-legend {
    display: flex;
    gap: 20px;
    padding: 12px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.bs-pp-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bs-pp-legend-line {
    display: inline-block;
    width: 18px;
    height: 2px;
    background: #2563eb;
    border-radius: 1px;
}

.bs-pp-legend-area {
    display: inline-block;
    width: 18px;
    height: 10px;
    background: rgba(29, 158, 117, 0.2);
    border: 1px solid rgba(29, 158, 117, 0.4);
    border-radius: 2px;
}

.bs-pp-legend-dash {
    display: inline-block;
    width: 18px;
    height: 0;
    border-top: 2px dashed #1D9E75;
}

/* ── Chart header (indicator controls above chart) ──────── */

.bs-pp-chart-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* ── Chart toolbar (legend only, below chart) ───────────── */

.bs-pp-chart-toolbar {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
}

/* ── Indicator dropdown ─────────────────────────────────── */

.bs-pp-indicator-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bs-pp-indicator-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 16px;
    border: 1px solid #d0dfff;
    background: #f0f6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

#bs-pp-ind-btn,
#bs-pp-ind-btn:hover,
#bs-pp-ind-btn:focus,
#bs-pp-ind-btn:active,
#bs-pp-ind-btn:visited {
    background: #f0f6ff;
    color: #2563eb;
    border-color: #d0dfff;
    outline: none;
    box-shadow: none;
    text-decoration: none;
}

#bs-pp-ind-btn:hover,
#bs-pp-ind-btn:focus {
    background: #dbeafe;
    color: #2563eb;
    border-color: #93c5fd;
}

.bs-pp-indicator-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 200;
    min-width: 300px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 8px;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 4px;
}

.bs-pp-indicator-menu.open {
    display: grid;
}

.bs-pp-ind-cat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bs-pp-ind-cat-hdr {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    padding: 6px 8px 2px;
}

.bs-pp-ind-menu-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
}

.bs-pp-ind-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bs-pp-ind-menu-item:hover {
    background: #f3f4f6;
}

.bs-pp-ind-menu-item.active {
    background: #e8f0fe;
    color: #2563eb;
}

.bs-pp-indicator-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.bs-pp-ind-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f0f6ff;
    border: 1px solid #d0dfff;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
}

.bs-pp-ind-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bs-pp-ind-tag-x {
    cursor: pointer;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1;
}

.bs-pp-ind-tag-x:hover {
    color: #E24B4A;
}

.bs-pp-ind-clear {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.bs-pp-ind-clear:hover,
.bs-pp-ind-clear:focus {
    background: #fef3c7;
    border-color: #f59e0b;
    outline: none;
    box-shadow: none;
    color: #92400e;
}

/* ── Indicator sub-panes ────────────────────────────────── */

.bs-pp-sub-pane {
    border-top: 1px solid #eee;
    margin-top: 2px;
}

.bs-pp-sub-pane-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #1e3a5f;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 6px 0 2px;
}

.bs-pp-sub-pane-label img {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.bs-pp-sub-pane-chart {
    position: relative;
}

/* ── Chart tooltip ──────────────────────────────────────── */

.bs-pp-chart-tooltip {
    position: absolute;
    z-index: 100;
    background: #1f2937;
    color: #f9fafb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.5;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bs-pp-tt-date {
    font-weight: 600;
    margin-bottom: 2px;
    color: #d1d5db;
    font-size: 11px;
}

.bs-pp-tt-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bs-pp-tt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bs-pp-tt-pred {
    font-weight: 600;
}

.bs-pp-tt-range {
    color: #9ca3af;
    padding-left: 14px;
    font-size: 11px;
}

/* ── Coin correlation widget ─────────────────────────────── */

.bs-pp-corr-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.bs-pp-corr-desc {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 16px;
    line-height: 1.5;
}

.bs-pp-corr-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.bs-pp-corr-metric {
    padding: 0;
}

.bs-pp-corr-metric-label {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 4px;
}

.bs-pp-corr-metric-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0;
}

.bs-pp-corr-metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #111318;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.bs-pp-corr-strength {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    line-height: 1.4;
}

.bs-pp-corr-strength-weak {
    background: #f1f5f9;
    color: #64748b;
}

.bs-pp-corr-strength-moderate {
    background: #e0f2fe;
    color: #0369a1;
}

.bs-pp-corr-strength-strong {
    background: #dcfce7;
    color: #166534;
}

.bs-pp-corr-metric-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.bs-pp-corr-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
}

.bs-pp-corr-col-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bs-pp-corr-block {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.bs-pp-corr-list {
    display: flex;
    flex-direction: column;
}

.bs-pp-corr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 4px;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.12s ease;
}

a.bs-pp-corr-item:hover {
    background: #f9fafb;
    text-decoration: none;
}

.bs-pp-corr-item:last-child {
    border-bottom: none;
}

.bs-pp-corr-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    overflow: hidden;
}

.bs-pp-corr-logo img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.bs-pp-corr-name {
    flex: 1;
    font-size: 13px;
    color: #111318;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.bs-pp-corr-ticker {
    color: #9ca3af;
    margin-left: 4px;
    font-size: 12px;
}

.bs-pp-corr-value {
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.bs-pp-corr-pos { color: #059669; }
.bs-pp-corr-neg { color: #dc2626; }

.bs-pp-corr-footer {
    font-size: 12px;
    color: #9ca3af;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    line-height: 1.5;
}

/* ── Classical pivot points widget ───────────────────────── */

.bs-pp-pv-live {
    font-weight: 700;
    color: #111318;
}

.bs-pp-pv-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.bs-pp-pivots-ladder {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bs-pp-pv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bs-pp-pv-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
}

.bs-pp-pv-right-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}

.bs-pp-pv-right-title img {
    flex-shrink: 0;
}

.bs-pp-pv-summary-line {
    font-size: 14px;
    color: #111318;
    line-height: 1.55;
    margin: 0;
}

.bs-pp-pv-summary-line strong {
    font-weight: 700;
    color: #0f172a;
}

.bs-pp-pv-about {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.bs-pp-pv-about strong {
    color: #111318;
    font-weight: 600;
}

.bs-pp-pv-source {
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 0;
    line-height: 1.5;
}

.bs-pp-pv-col {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.bs-pp-pv-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    column-gap: 14px;
    padding: 11px 16px;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}

.bs-pp-pv-col .bs-pp-pv-row:last-child { border-bottom: none; }

.bs-pp-pv-r { background: #fef2f2; }
.bs-pp-pv-s { background: #f0fdf4; }

.bs-pp-pv-p {
    background: #e0f2fe;
    font-weight: 600;
    border: 1px solid #bae6fd;
    border-radius: 10px;
}

/* No inset left stripe on the central pivot row — the blue fill already signals emphasis */
.bs-pp-pv-p.bs-pp-pv-current {
    box-shadow: none;
}

.bs-pp-pv-label {
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    text-align: center;
    padding: 3px 0;
    background: rgba(255,255,255,0.6);
    border-radius: 4px;
}

.bs-pp-pv-r .bs-pp-pv-label { color: #b91c1c; }
.bs-pp-pv-p .bs-pp-pv-label { color: #0369a1; }
.bs-pp-pv-s .bs-pp-pv-label { color: #166534; }

.bs-pp-pv-val {
    font-size: 14px;
    font-weight: 600;
    color: #111318;
    font-variant-numeric: tabular-nums;
}

.bs-pp-pv-pct {
    font-size: 12px;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    justify-self: end;
}

.bs-pp-pv-current {
    box-shadow: inset 4px 0 0 #1db0e1;
}

.bs-pp-pv-current .bs-pp-pv-pct {
    visibility: hidden;
}

.bs-pp-pv-current-badge {
    position: absolute;
    right: 16px;
    top: 6px;
    background: #1db0e1;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.4;
}

/* ── Fibonacci retracement ladder (reuses .bs-pp-pv-* row/colour/dark classes) ── */
.bs-pp-fib-ladder {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.bs-pp-fib-head {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    column-gap: 14px;
    padding: 9px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: #6b7280;
}

.bs-pp-fib-head span { white-space: nowrap; }
.bs-pp-fib-h-level { text-align: center; }
.bs-pp-fib-h-pct { justify-self: end; }

.bs-pp-fib-row {
    grid-template-columns: 64px 1fr auto;
}

.bs-pp-fib-ladder .bs-pp-fib-row:last-child { border-bottom: none; }

.bs-pp-fib-ratio {
    white-space: nowrap;
}

/* Extension levels project above the 52-week high — gold accent marks them as upside targets */
.bs-pp-fib-ext { background: #fffbeb; }
.bs-pp-fib-ext .bs-pp-pv-label { color: #b45309; }

.bs-pp-pivot-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 6px;
}

.bs-pp-pv-right .bs-pp-pivot-summary {
    grid-template-columns: 1fr;
    margin-bottom: 0;
}

.bs-pp-pivot-group {
    border-radius: 10px;
    padding: 18px 16px;
}

.bs-pp-pivot-group-support    { background: #f0fdf4; }
.bs-pp-pivot-group-resistance { background: #fef2f2; }

.bs-pp-pivot-group-label {
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 4px;
}

.bs-pp-pivot-group-val {
    font-size: 18px;
    font-weight: 700;
    color: #111318;
    font-variant-numeric: tabular-nums;
}

.bs-pp-pivot-group-val span {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin-left: 4px;
}

.bs-pp-pivot-group-delta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.bs-pp-pivot-group-support .bs-pp-pivot-group-delta    { color: #059669; }
.bs-pp-pivot-group-resistance .bs-pp-pivot-group-delta { color: #dc2626; }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 767px) {
    /* Mobile page padding also comes from .bs-coin-single (same as the coin overview). */

    .bs-pp-container {
        padding-left: 0;
        padding-right: 0;
    }

    .bs-pp-corr-metrics {
        grid-template-columns: 1fr;
    }
    .bs-pp-corr-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .bs-pp-pivot-summary {
        grid-template-columns: 1fr;
    }
    .bs-pp-pv-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .bs-pp-pv-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .bs-pp-pv-row {
        grid-template-columns: 40px 1fr auto;
        column-gap: 10px;
        padding: 10px 12px;
    }
    .bs-pp-fib-row,
    .bs-pp-fib-head {
        grid-template-columns: 56px 1fr auto;
    }

    .bs-pp-forecast-row {
        flex-direction: column;
    }

    .bs-pp-fg-card,
    .bs-pp-gd-card {
        width: 100%;
    }

    .bs-pp-forecast-summary {
        padding-left: 3px;
        padding-right: 3px;
    }

    .bs-pp-gd-header,
    .bs-pp-gd-top,
    .bs-pp-gd-grid,
    .bs-pp-gd-labels,
    .bs-pp-gd-info,
    .bs-pp-fg-header,
    .bs-pp-fg-body {
        padding-left: 3px;
        padding-right: 3px;
    }

    .bs-pp-fg-body {
        flex-direction: column;
        align-items: center;
    }

    .bs-pp-fg-detail-col {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #f3f4f6;
        padding-top: 12px;
        width: 100%;
    }

    .bs-pp-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .bs-pp-main {
        width: 100%;
        min-width: 0;
    }

    .bs-pp-sidebar {
        width: 100%;
        position: static;
    }

    .bs-pp-market-stats {
        flex-wrap: wrap;
    }

    .bs-pp-stat {
        flex: 1 1 calc(50% - 1px);
        padding: 10px 12px;
    }

    .bs-pp-stat:nth-child(odd) + .bs-pp-stat {
        border-left: 1px solid #f3f4f6;
    }

    .bs-pp-stat:nth-child(n+3) {
        border-top: 1px solid #f3f4f6;
    }

    .bs-pp-stat:nth-child(2n+1):nth-child(n+3) {
        border-left: none;
    }

    .bs-pp-signals-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bs-pp-signal-stack {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #f3f4f6;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .bs-pp-ci-col {
        padding-left: 0;
        border-top: none;
        padding-top: 0;
    }

    .bs-pp-ind-blocks-grid {
        grid-template-columns: 1fr;
    }

    .bs-pp-seg-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bs-pp-target-row {
        grid-template-columns: 30px 1fr 54px;
        gap: 6px;
    }

    .bs-pp-targets-cols {
        grid-template-columns: 30px 1fr 54px;
        gap: 6px;
    }

    .bs-pp-targets-legend {
        gap: 8px 12px;
        font-size: 10px;
        flex-wrap: wrap;
    }

    .bs-pp-tl-item {
        white-space: normal;
    }

    .bs-pp-target-tooltip {
        min-width: 200px;
        max-width: calc(100vw - 40px);
    }

    .bs-pp-card {
        padding: 16px;
    }

    #bs-pp-tf-controls {
        gap: 6px;
    }

    #bs-pp-tf-controls .bs-pp-tf-btn {
        padding: 10px 10px;
    }

    #bs-pp-tf-controls .bs-pp-tf-price {
        font-size: 13px;
    }

    .bs-pp-chart-legend {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* ── Dark mode ───────────────────────────────────────────── */

html.bs-dark #bs-price-prediction-page .bs-pp-ind-value strong,
html.bs-dark #bs-price-prediction-page .bs-pp-tf-label,
html.bs-dark #bs-price-prediction-page .bs-pp-td-mid {
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-label,
html.bs-dark #bs-price-prediction-page .bs-pp-ind-block-title,
html.bs-dark #bs-price-prediction-page .bs-pp-current-note {
    color: #a8a8be;
}

html.bs-dark #bs-price-prediction-page .bs-pp-card {
    background: #1e1e2d;
    border-color: #3a3a52;
}

html.bs-dark #bs-price-prediction-page .bs-pp-card-title,
html.bs-dark #bs-price-prediction-page .bs-pp-sub-title {
    color: #e4e4ed;
}

/* Signal History timeline — dark */
html.bs-dark #bs-price-prediction-page .bs-pp-sh-item:not(:last-child)::before { background: #3a3a52; }
html.bs-dark #bs-price-prediction-page .bs-pp-sh-dot { box-shadow: 0 0 0 3px #1e1e2d; }
html.bs-dark #bs-price-prediction-page .bs-pp-sh-item.bs-pp-sh-cur .bs-pp-sh-dot { box-shadow: 0 0 0 3px #1e1e2d, 0 0 0 5px #31597a; }
html.bs-dark #bs-price-prediction-page .bs-pp-sh-date { color: #e4e4ed; }
html.bs-dark #bs-price-prediction-page .bs-pp-sh-dur,
html.bs-dark #bs-price-prediction-page .bs-pp-sh-from { color: #9a9ab0; }
html.bs-dark #bs-price-prediction-page .bs-pp-sh-price { color: #7cc4e6; }

html.bs-dark #bs-price-prediction-page .bs-pp-ind-block {
    background: #16162a;
    border-color: #3a3a52;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ind-block-bearish {
    background: #2a1a1a;
    border-color: #4a2a2a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-compare-bar {
    background: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-compare-label {
    color: #6b7280;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ind-big-value,
html.bs-dark #bs-price-prediction-page .bs-pp-dual-num {
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-macd-signal-line,
html.bs-dark #bs-price-prediction-page .bs-pp-dual-label {
    color: #a8a8be;
}

html.bs-dark #bs-price-prediction-page .bs-pp-dual-sep {
    color: #3a3a52;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ma-pill {
    background: #16162a;
    border-color: #3a3a52;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ma-pill-label {
    color: #a8a8be;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ma-pill-value {
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-page-tab,
html.bs-dark #bs-price-prediction-page .bs-pp-year-tab {
    background: #16162a;
    border-color: #3a3a52;
    color: #a8a8be;
}

html.bs-dark #bs-price-prediction-page .bs-pp-page-tab:hover,
html.bs-dark #bs-price-prediction-page .bs-pp-year-tab:hover {
    background: #2a2a3d;
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-page-tab.active,
html.bs-dark #bs-price-prediction-page .bs-pp-year-tab.active {
    background: #e4e4ed;
    border-color: #e4e4ed;
    color: #111318;
}

html.bs-dark #bs-price-prediction-page .bs-pp-pred-table th {
    color: #a8a8be;
    border-color: #374151;
}

html.bs-dark #bs-price-prediction-page .bs-pp-pred-table td {
    color: #c4c4d8;
    border-color: #1f2937;
}

html.bs-dark #bs-price-prediction-page .bs-pp-pred-table tbody tr:last-child td,
html.bs-dark #bs-price-prediction-page .bs-pp-pred-table tbody tr.bs-pp-last-page-row td {
    border-bottom-color: #374151;
}

html.bs-dark #bs-price-prediction-page .bs-pp-pred-table tbody tr:hover td {
    background: #16162a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-targets-card {
    background: #1e1e2d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-targets-cols {
    border-bottom-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-target-row {
    border-bottom-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-target-label {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-target-range {
    background: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-target-dot {
    border-color: #1e1e2d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-target-current-line {
    background: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-target-tooltip {
    background: #1e1e2d;
    border-color: #3a3a52;
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-tt-header {
    background: #252538;
    border-bottom-color: #3a3a52;
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-tt-value {
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-tt-label {
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-tt-spread {
    background: #252538;
    border-top-color: #3a3a52;
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-tt-spread-val {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-tt-spread svg {
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-targets-legend {
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-tl-range-line {
    background: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-tl-current {
    border-color: #5a5a7a;
    background: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-signal-item {
    border-bottom-color: #3a3a52;
}

html.bs-dark #bs-price-prediction-page .bs-pp-signal-stack {
    border-color: #3a3a52;
}

html.bs-dark #bs-price-prediction-page .bs-pp-signal-desc {
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ci-row {
    border-bottom-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-seg-neut {
    background: #3a3a52;
}

html.bs-dark #bs-price-prediction-page .bs-pp-mom-row {
    border-bottom-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-seg-name {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-seg-val {
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ci-name {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ci-desc {
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-strength-bar {
    background: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-strength-val {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-strength-lo,
html.bs-dark #bs-price-prediction-page .bs-pp-strength-hi {
    color: #3a3a52;
}

html.bs-dark #bs-price-prediction-page .bs-pp-score-needle {
    background: #e2e8f0;
    box-shadow: 0 0 0 2px #1e1e2d, 0 1px 4px rgba(0,0,0,0.5);
}

html.bs-dark #bs-price-prediction-page .bs-pp-score-labels {
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-score-explain {
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ci-section {
    border-top-color: #3a3a52;
}

html.bs-dark #bs-price-prediction-page .bs-pp-section-note,
html.bs-dark #bs-price-prediction-page .bs-pp-rl-pct-note {
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ci-weight-bar {
    background: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ci-weight-fill {
    background: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ci-pct {
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-target-pct {
    opacity: 0.9;
}

html.bs-dark #bs-price-prediction-page .bs-pp-disclaimer {
    background: #2d2a12;
    border-color: #d97706;
    color: #fcd34d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-methodology-card p,
html.bs-dark #bs-price-prediction-page .bs-pp-methodology-card li {
    color: #a8a8be;
}

html.bs-dark #bs-price-prediction-page .bs-pp-methodology-card li strong {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-rsi-zones {
    color: #a8a8be;
}

html.bs-dark #bs-price-prediction-page .bs-pp-rsi-marker {
    background: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ind-na {
    color: #a8a8be;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ind-desc {
    color: #6b7280;
    border-top-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-hist-bar.bs-pp-hist-pos {
    background: #22b07e;
}

html.bs-dark #bs-price-prediction-page .bs-pp-hist-bar.bs-pp-hist-neg {
    background: #ef5350;
}

html.bs-dark #bs-price-prediction-page .bs-pp-info {
    background: #2a2a3d;
    color: #6b7280;
}

html.bs-dark #bs-price-prediction-page .bs-pp-remark {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-market-stats {
    background: #1e1e2d;
    border-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-stat + .bs-pp-stat {
    border-left-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-stat-label {
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-stat-label svg {
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-stat-value {
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-stat-sub {
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-forecast-summary {
    background: #1e1e2d;
    border-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-forecast-summary p {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fs-meta {
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fs-sep {
    color: #3a3a52;
}

html.bs-dark #bs-price-prediction-page .bs-pp-change-neut {
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fs-title {
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-gd-card {
    background: #1e1e2d;
    border-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-gd-title {
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-gd-count {
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-gd-donut svg circle[stroke="#f3f4f6"] {
    stroke: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-gd-donut-label {
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-gd-stat-label {
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-gd-block span {
    color: rgba(255,255,255,0.9);
}

html.bs-dark #bs-price-prediction-page .bs-pp-gd-labels {
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-gd-info {
    border-top-color: #2a2a3d;
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-card {
    background: #1e1e2d;
    border-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-title {
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-coin {
    background: #2a2a3d;
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-svg line {
    stroke: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-svg circle[r="6"] {
    fill: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-svg circle[r="3"] {
    fill: #1e1e2d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-svg text {
    fill: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-svg path[stroke="#f3f4f6"] {
    stroke: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-detail-col {
    border-left-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-comp-label {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-comp-weight {
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-comp-bar {
    background: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-comp-val {
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-sidebar .bs-pp-card {
    border-color: #1a3a4a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-sidebar-title {
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-similar-item {
    border-bottom-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-similar-item:hover {
    background: #16162a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-similar-name {
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-similar-ticker {
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-similar-mcap {
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-similar-price {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-calc-desc {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-calc-input-wrap {
    background: #16162a;
    border-color: #3a3a52;
}

html.bs-dark #bs-price-prediction-page #bs-pp-calc-amount,
html.bs-dark #bs-price-prediction-page #bs-pp-calc-amount:focus {
    color: #e4e4ed;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

html.bs-dark #bs-price-prediction-page .bs-pp-calc-prefix {
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-calc-label {
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-calc-field--period .bs-pp-calc-label,
html.bs-dark #bs-price-prediction-page .bs-pp-calc-field--inv .bs-pp-calc-label {
    color: #e2e8f0;
}

html.bs-dark #bs-price-prediction-page #bs-pp-calc-periods .bs-pp-calc-period {
    background: #16162a;
    border-color: #3a3a52;
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page #bs-pp-calc-periods .bs-pp-calc-period:hover,
html.bs-dark #bs-price-prediction-page #bs-pp-calc-periods .bs-pp-calc-period:focus {
    border-color: #1D9E75;
    color: #1D9E75;
    background: #16162a;
}

html.bs-dark #bs-price-prediction-page #bs-pp-calc-periods .bs-pp-calc-period.bs-pp-calc-period--active,
html.bs-dark #bs-price-prediction-page #bs-pp-calc-periods .bs-pp-calc-period.bs-pp-calc-period--active:hover,
html.bs-dark #bs-price-prediction-page #bs-pp-calc-periods .bs-pp-calc-period.bs-pp-calc-period--active:focus {
    background: #1D9E75;
    border-color: #1D9E75;
    color: #fff;
}

html.bs-dark #bs-price-prediction-page .bs-pp-calc-input-wrap:focus-within {
    border-color: #1D9E75;
    box-shadow: 0 0 0 2px rgba(29,158,117,0.2);
}

html.bs-dark #bs-price-prediction-page .bs-pp-calc-result-val {
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-calc-result-arrow {
    color: #3a3a52;
}

html.bs-dark #bs-price-prediction-page .bs-pp-calc-profit-bar {
    background: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-calc-profit-base {
    background: #3a3a52;
}

html.bs-dark #bs-price-prediction-page .bs-pp-calc-profit-text {
    color: #5a5a7a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-calc-disclaimer {
    color: #4a4a6a;
}

html.bs-dark #bs-price-prediction-page .bs-pp-calc-disclaimer strong {
    color: #8a8aa5;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-explain-wrap {
    border-top-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-fg-explain {
    color: #4a4a6a;
}

html.bs-dark #bs-pp-tf-controls .bs-pp-tf-btn {
    background: #16162a;
    border-color: #3a3a52;
    color: #e4e4ed;
}

html.bs-dark #bs-pp-tf-controls .bs-pp-tf-btn:hover,
html.bs-dark #bs-pp-tf-controls .bs-pp-tf-btn:focus {
    background: #2a2a3d;
    border-color: #4a4a62;
    color: #e4e4ed;
}

html.bs-dark #bs-pp-tf-controls .bs-pp-tf-btn.bs-pp-tf-btn--active {
    background: #1a2a4a;
    border-color: #2563eb;
    color: #e4e4ed;
}

html.bs-dark #bs-pp-tf-controls .bs-pp-tf-btn.bs-pp-tf-btn--active:hover,
html.bs-dark #bs-pp-tf-controls .bs-pp-tf-btn.bs-pp-tf-btn--active:focus {
    background: #1e3055;
    color: #e4e4ed;
}

html.bs-dark #bs-pp-tf-controls .bs-pp-tf-price {
    color: #e4e4ed;
}

html.bs-dark #bs-pp-tf-controls .bs-pp-tf-period {
    color: #7a7a9a;
}

html.bs-dark #bs-pp-tf-controls .bs-pp-tf-btn.bs-pp-tf-btn--active .bs-pp-tf-period {
    color: #60a5fa;
}

html.bs-dark #bs-price-prediction-page .bs-pp-chart-legend {
    color: #a8a8be;
}

html.bs-dark #bs-price-prediction-page .bs-pp-legend-area {
    background: rgba(29, 158, 117, 0.25);
    border-color: rgba(29, 158, 117, 0.5);
}

html.bs-dark #bs-price-prediction-page .bs-pp-indicator-btn {
    background: #22223a;
    color: #a8a8be;
    border-color: #3a3a52;
}

html.bs-dark #bs-price-prediction-page .bs-pp-indicator-btn:hover {
    background: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page #bs-pp-ind-btn,
html.bs-dark #bs-price-prediction-page #bs-pp-ind-btn:hover,
html.bs-dark #bs-price-prediction-page #bs-pp-ind-btn:focus {
    background: #1e2d4a;
    color: #93c5fd;
    border-color: #2d4a7a;
}

html.bs-dark #bs-price-prediction-page #bs-pp-ind-btn:hover,
html.bs-dark #bs-price-prediction-page #bs-pp-ind-btn:focus {
    background: #243557;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ind-clear {
    background: #2d2000;
    color: #fcd34d;
    border-color: #5c3d00;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ind-clear:hover {
    background: #3d2d00;
    border-color: #d97706;
}

html.bs-dark #bs-price-prediction-page .bs-pp-indicator-menu {
    background: #1e1e2d;
    border-color: #3a3a52;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

html.bs-dark #bs-price-prediction-page .bs-pp-ind-menu-item {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ind-menu-item:hover {
    background: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ind-menu-item.active {
    background: #2d2d48;
    color: #60a5fa;
}

html.bs-dark #bs-price-prediction-page .bs-pp-ind-tag {
    background: #22223a;
    border-color: #3a3a52;
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-sub-pane {
    border-top-color: #3a3a52;
}

html.bs-dark #bs-price-prediction-page .bs-pp-sub-pane-label {
    color: #7eb3e0;
}

/* ── Correlation widget — dark mode ───────────────────── */

html.bs-dark #bs-price-prediction-page .bs-pp-corr-desc {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-corr-metrics {
    border-top-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-corr-strength-weak {
    background: #22223a;
    color: #a8a8be;
}

html.bs-dark #bs-price-prediction-page .bs-pp-corr-strength-moderate {
    background: #173045;
    color: #7eb3e0;
}

html.bs-dark #bs-price-prediction-page .bs-pp-corr-strength-strong {
    background: #14331f;
    color: #6ee7b7;
}

html.bs-dark #bs-price-prediction-page a.bs-pp-corr-item:hover {
    background: #1a1a2e;
}

html.bs-dark #bs-price-prediction-page .bs-pp-corr-metric-label {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-corr-metric-value {
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-corr-metric-sub {
    color: #7a7a96;
}

html.bs-dark #bs-price-prediction-page .bs-pp-corr-col-title {
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-corr-item {
    border-bottom-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-corr-name {
    color: #e4e4ed;
}

html.bs-dark #bs-price-prediction-page .bs-pp-corr-ticker {
    color: #7a7a96;
}

html.bs-dark #bs-price-prediction-page .bs-pp-corr-logo {
    background: #22223a;
    color: #a8a8be;
}

html.bs-dark #bs-price-prediction-page .bs-pp-corr-footer {
    color: #7a7a96;
    border-top-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-corr-pos { color: #34d399; }
html.bs-dark #bs-price-prediction-page .bs-pp-corr-neg { color: #f87171; }

/* ── Pivot points widget — dark mode ──────────────────── */

html.bs-dark #bs-price-prediction-page .bs-pp-pv-live { color: #e4e4ed; }

html.bs-dark #bs-price-prediction-page .bs-pp-pv-col {
    border-color: #2a2a3d;
}

html.bs-dark #bs-price-prediction-page .bs-pp-pv-p {
    border-color: #173045;
}

html.bs-dark #bs-price-prediction-page .bs-pp-pv-row {
    border-bottom-color: #1a1a2e;
}

html.bs-dark #bs-price-prediction-page .bs-pp-pv-r { background: #2a1414; }
html.bs-dark #bs-price-prediction-page .bs-pp-pv-p { background: #102a3a; }
html.bs-dark #bs-price-prediction-page .bs-pp-pv-s { background: #102a1c; }

html.bs-dark #bs-price-prediction-page .bs-pp-fib-ladder { border-color: #2a2a35; }
html.bs-dark #bs-price-prediction-page .bs-pp-fib-head {
    background: #15151f;
    border-bottom-color: #2a2a35;
    color: #8a8a9e;
}
html.bs-dark #bs-price-prediction-page .bs-pp-fib-ext { background: #2a2412; }
html.bs-dark #bs-price-prediction-page .bs-pp-fib-ext .bs-pp-pv-label { color: #fcd34d; }

html.bs-dark #bs-price-prediction-page .bs-pp-pv-label {
    background: rgba(0,0,0,0.3);
    color: #c4c4d8;
}

html.bs-dark #bs-price-prediction-page .bs-pp-pv-r .bs-pp-pv-label { color: #fca5a5; }
html.bs-dark #bs-price-prediction-page .bs-pp-pv-p .bs-pp-pv-label { color: #7eb3e0; }
html.bs-dark #bs-price-prediction-page .bs-pp-pv-s .bs-pp-pv-label { color: #6ee7b7; }

html.bs-dark #bs-price-prediction-page .bs-pp-pv-val { color: #e4e4ed; }
html.bs-dark #bs-price-prediction-page .bs-pp-pv-pct { color: #a8a8be; }

html.bs-dark #bs-price-prediction-page .bs-pp-pivot-group-support    { background: #102a1c; }
html.bs-dark #bs-price-prediction-page .bs-pp-pivot-group-resistance { background: #2a1414; }
html.bs-dark #bs-price-prediction-page .bs-pp-pivot-group-label      { color: #c4c4d8; }
html.bs-dark #bs-price-prediction-page .bs-pp-pivot-group-val        { color: #e4e4ed; }
html.bs-dark #bs-price-prediction-page .bs-pp-pivot-group-val span   { color: #a8a8be; }
html.bs-dark #bs-price-prediction-page .bs-pp-pivot-group-delta      { color: #a8a8be; }
html.bs-dark #bs-price-prediction-page .bs-pp-pivot-group-support .bs-pp-pivot-group-delta    { color: #34d399; }
html.bs-dark #bs-price-prediction-page .bs-pp-pivot-group-resistance .bs-pp-pivot-group-delta { color: #f87171; }

html.bs-dark #bs-price-prediction-page .bs-pp-pv-right {
    background: linear-gradient(180deg, #16162a 0%, #11111e 100%);
    border-color: #2a2a3d;
}
html.bs-dark #bs-price-prediction-page .bs-pp-pv-right-title {
    color: #e4e4ed;
}
html.bs-dark #bs-price-prediction-page .bs-pp-pv-summary-line {
    color: #e4e4ed;
}
html.bs-dark #bs-price-prediction-page .bs-pp-pv-summary-line strong {
    color: #ffffff;
}
html.bs-dark #bs-price-prediction-page .bs-pp-pv-about strong {
    color: #e4e4ed;
}
html.bs-dark #bs-price-prediction-page .bs-pp-pv-source {
    color: #7a7a96;
}

/* ── FAQ Card ─────────────────────────────────────────────── */
#bs-price-prediction-page .bs-pp-faq-list {
    display: flex;
    flex-direction: column;
}
#bs-price-prediction-page .bs-pp-faq-item {
    border-bottom: 1px solid #f3f4f6;
    padding: 12px 0;
}
#bs-price-prediction-page .bs-pp-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
#bs-price-prediction-page .bs-pp-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
}
#bs-price-prediction-page .bs-pp-faq-item summary::-webkit-details-marker { display: none; }
#bs-price-prediction-page .bs-pp-faq-item summary::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    background: url('https://cdn.blockspot.io/brand/blocks/block-dark-blue-16x16.webp') center/contain no-repeat;
    flex-shrink: 0;
}
#bs-price-prediction-page .bs-pp-faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 400;
    color: #9ca3af;
    flex-shrink: 0;
    margin-left: auto;
}
#bs-price-prediction-page .bs-pp-faq-item[open] summary::after {
    content: '\2212';
}
#bs-price-prediction-page .bs-pp-faq-item p {
    margin: 10px 0 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #6b7280;
}
/* Dark mode */
html.bs-dark #bs-price-prediction-page .bs-pp-faq-item {
    border-color: #2d3748;
}
html.bs-dark #bs-price-prediction-page .bs-pp-faq-item summary {
    color: #e4e4ed;
}
html.bs-dark #bs-price-prediction-page .bs-pp-faq-item summary::before {
    background-image: url('https://cdn.blockspot.io/brand/blocks/block-light-blue-16x16-v1.webp');
}
html.bs-dark #bs-price-prediction-page .bs-pp-faq-item p {
    color: #9ca3af;
}

/* ── Trading Explained sidebar widget ─────────────────────── */
#bs-price-prediction-page .bs-pp-te-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
#bs-price-prediction-page .bs-pp-te-item {
    border-bottom: 1px solid #eef2f6;
    padding: 10px 0;
}
#bs-price-prediction-page .bs-pp-te-item:first-child {
    padding-top: 4px;
}
#bs-price-prediction-page .bs-pp-te-item:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}
#bs-price-prediction-page .bs-pp-te-link {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}
#bs-price-prediction-page .bs-pp-te-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f5f8;
}
#bs-price-prediction-page .bs-pp-te-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    display: block;
}
#bs-price-prediction-page .bs-pp-te-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
#bs-price-prediction-page .bs-pp-te-title {
    font-size: 13px;
    line-height: 1.35;
    color: #1a202c;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#bs-price-prediction-page .bs-pp-te-link:hover .bs-pp-te-title {
    color: #0e72b8;
}
#bs-price-prediction-page .bs-pp-te-date {
    font-size: 11px;
    color: #7a8594;
}

/* Dark mode */
html.bs-dark #bs-price-prediction-page .bs-pp-te-item {
    border-bottom-color: #2d3748;
}
html.bs-dark #bs-price-prediction-page .bs-pp-te-title {
    color: #e4e4ed;
}
html.bs-dark #bs-price-prediction-page .bs-pp-te-thumb {
    background: #1f2937;
}
html.bs-dark #bs-price-prediction-page .bs-pp-te-date {
    color: #9ca3af;
}
html.bs-dark #bs-price-prediction-page .bs-pp-te-link:hover .bs-pp-te-title {
    color: #4fb3ed;
}

/* ───────────── Technical Analysis Summary ───────────── */
#bs-price-prediction-page .bs-ta-summary { margin-top: 24px; }

#bs-price-prediction-page .bs-ta-gauge {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    align-items: stretch;
    margin: 16px 0 24px;
}
#bs-price-prediction-page .bs-ta-gauge-overall {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 14px;
    border-radius: 10px;
    background: #f3f4f6;
    text-align: center;
}
#bs-price-prediction-page .bs-ta-gauge-overall.bs-signal-strong-buy  { background: #d1fae5; color: #065f46; }
#bs-price-prediction-page .bs-ta-gauge-overall.bs-signal-strong-sell { background: #fee2e2; color: #991b1b; }
#bs-price-prediction-page .bs-ta-gauge-overall.bs-ind-buy            { background: #e6f7f2; color: #0f6d50; }
#bs-price-prediction-page .bs-ta-gauge-overall.bs-ind-sell           { background: #fef2f2; color: #991b1b; }
#bs-price-prediction-page .bs-ta-gauge-overall.bs-ind-neutral        { background: #f3f4f6; color: #374151; }
#bs-price-prediction-page .bs-ta-gauge-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
}
#bs-price-prediction-page .bs-ta-gauge-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 4px;
}
#bs-price-prediction-page .bs-ta-gauge-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}
#bs-price-prediction-page .bs-ta-gauge-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
#bs-price-prediction-page .bs-ta-gauge-row-label {
    font-weight: 600;
    color: #374151;
    min-width: 130px;
}
#bs-price-prediction-page .bs-ta-gauge-pills {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

#bs-price-prediction-page .bs-ta-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
#bs-price-prediction-page .bs-ta-pill.bs-ind-buy     { background: #e6f7f2; color: #0f6d50; }
#bs-price-prediction-page .bs-ta-pill.bs-ind-sell    { background: #fef2f2; color: #991b1b; }
#bs-price-prediction-page .bs-ta-pill.bs-ind-neutral { background: #f3f4f6; color: #374151; }
#bs-price-prediction-page .bs-ta-pill.bs-signal-strong-buy  { background: #d1fae5; color: #065f46; }
#bs-price-prediction-page .bs-ta-pill.bs-signal-strong-sell { background: #fee2e2; color: #991b1b; }

#bs-price-prediction-page .bs-ta-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
#bs-price-prediction-page .bs-ta-table-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
#bs-price-prediction-page .bs-ta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
#bs-price-prediction-page .bs-ta-table thead th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 10px;
    border-bottom: 1px solid #d1d5db;
}
#bs-price-prediction-page .bs-ta-table th.bs-ta-th-num,
#bs-price-prediction-page .bs-ta-table td.bs-ta-val { text-align: right; }
#bs-price-prediction-page .bs-ta-table th.bs-ta-th-act,
#bs-price-prediction-page .bs-ta-table td.bs-ta-act { text-align: right; }
#bs-price-prediction-page .bs-ta-table tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
}
#bs-price-prediction-page .bs-ta-table tbody tr:last-child td {
    border-bottom: 1px solid #d1d5db;
}
#bs-price-prediction-page .bs-ta-table td.bs-ta-val {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#bs-price-prediction-page .bs-ta-explainer {
    margin: 16px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
}

@media (max-width: 640px) {
    #bs-price-prediction-page .bs-ta-gauge { grid-template-columns: 1fr; }
    #bs-price-prediction-page .bs-ta-tables { grid-template-columns: 1fr; }
}

/* Dark mode */
html.bs-dark #bs-price-prediction-page .bs-ta-gauge-overall           { background: #1f2937; }
html.bs-dark #bs-price-prediction-page .bs-ta-gauge-overall.bs-signal-strong-buy  { background: #064e3b; color: #a7f3d0; }
html.bs-dark #bs-price-prediction-page .bs-ta-gauge-overall.bs-signal-strong-sell { background: #7f1d1d; color: #fecaca; }
html.bs-dark #bs-price-prediction-page .bs-ta-gauge-overall.bs-ind-buy            { background: #064e3b; color: #a7f3d0; }
html.bs-dark #bs-price-prediction-page .bs-ta-gauge-overall.bs-ind-sell           { background: #7f1d1d; color: #fecaca; }
html.bs-dark #bs-price-prediction-page .bs-ta-gauge-overall.bs-ind-neutral        { background: #1f2937; color: #d1d5db; }
html.bs-dark #bs-price-prediction-page .bs-ta-gauge-row-label { color: #d1d5db; }
html.bs-dark #bs-price-prediction-page .bs-ta-pill.bs-ind-buy     { background: #064e3b; color: #a7f3d0; }
html.bs-dark #bs-price-prediction-page .bs-ta-pill.bs-ind-sell    { background: #7f1d1d; color: #fecaca; }
html.bs-dark #bs-price-prediction-page .bs-ta-pill.bs-ind-neutral { background: #1f2937; color: #d1d5db; }
html.bs-dark #bs-price-prediction-page .bs-ta-pill.bs-signal-strong-buy  { background: #065f46; color: #d1fae5; }
html.bs-dark #bs-price-prediction-page .bs-ta-pill.bs-signal-strong-sell { background: #991b1b; color: #fee2e2; }
html.bs-dark #bs-price-prediction-page .bs-ta-table-title { color: #d1d5db; }
html.bs-dark #bs-price-prediction-page .bs-ta-table thead th { color: #9ca3af; border-bottom-color: #374151; }
html.bs-dark #bs-price-prediction-page .bs-ta-table tbody td { color: #e5e7eb; border-bottom-color: #1f2937; }
html.bs-dark #bs-price-prediction-page .bs-ta-table tbody tr:last-child td { border-bottom-color: #374151; }
html.bs-dark #bs-price-prediction-page .bs-ta-explainer { color: #9ca3af; }

/* ── Change pills — see bs-coin-hero.css for .bs-pp-change-up/down dark rules ── */

/* ── Signal badges (.bs-signal-* global classes) ─────────── */
html.bs-dark #bs-price-prediction-page .bs-signal-strong-buy  { background: #064e3b; color: #a7f3d0; }
html.bs-dark #bs-price-prediction-page .bs-signal-buy         { background: #0a2e1f; color: #6ee7b7; }
html.bs-dark #bs-price-prediction-page .bs-signal-neutral     { background: #1f2937; color: #d1d5db; }
html.bs-dark #bs-price-prediction-page .bs-signal-sell        { background: #2a1414; color: #fca5a5; }
html.bs-dark #bs-price-prediction-page .bs-signal-strong-sell { background: #7f1d1d; color: #fecaca; }

/* ── Trend badges ─────────────────────────────────────────── */
html.bs-dark #bs-price-prediction-page .bs-trend-bullish { background: #0a2e1f; color: #6ee7b7; }
html.bs-dark #bs-price-prediction-page .bs-trend-bearish { background: #2a1414; color: #fca5a5; }
html.bs-dark #bs-price-prediction-page .bs-trend-neutral { background: #1f2937; color: #d1d5db; }

/* ── Indicator badges ─────────────────────────────────────── */
html.bs-dark #bs-price-prediction-page .bs-pp-ind-badge.bs-ind-buy,
html.bs-dark #bs-price-prediction-page .bs-ind-buy .bs-pp-ind-badge     { background: #102a1c; color: #6ee7b7; }
html.bs-dark #bs-price-prediction-page .bs-pp-ind-badge.bs-ind-sell,
html.bs-dark #bs-price-prediction-page .bs-ind-sell .bs-pp-ind-badge    { background: #2a1414; color: #fca5a5; }
html.bs-dark #bs-price-prediction-page .bs-pp-ind-badge.bs-ind-neutral,
html.bs-dark #bs-price-prediction-page .bs-ind-neutral .bs-pp-ind-badge { background: #1f2937; color: #9ca3af; }

/* ══════════════════════════════════════════════════════════════
   Page chrome — now INHERITED from the coin single, not duplicated here.
   Since the Elementor-decommission port (Phase 3 item 3) this page renders from
   inc/coin-tabs.php as <main id="bs-price-prediction-page" class="bs-coin-single">,
   so the sticky tab nav, its full-bleed white bar, the full-bleed grey band and
   body.single-coin's overflow-x:clip all come from bs-coin-single.css — the exact
   same declarations the coin overview uses, which is what keeps the
   overview<->prediction switch pixel-perfect.

   The old copies lived here scoped to #bs-price-prediction-page, alongside a
   position:fixed JS hack (assets/js/bs-pp-sticky-nav.js) that CSS sticky needed
   because the nav's Elementor parent container was only ~119px tall. The native
   wrapper is a tall sticky ancestor, so both are deleted. Do NOT re-add id-scoped
   copies: an id (1,1,0) silently out-specifies .bs-coin-single (0,2,0) and the two
   pages drift apart again.
   ══════════════════════════════════════════════════════════════ */

/* .bs-cns-band supplies the band's top padding, so drop the container's own 24px
   (it carried the gap under the nav back when this page stood on its own). */
#bs-price-prediction-page .bs-cns-band .bs-pp-container {
    padding-top: 0;
}
